diff --git a/src/Migrate/Az.Migrate.format.ps1xml b/src/Migrate/Az.Migrate.format.ps1xml index 7d1812e348e9..d708756c86a2 100644 --- a/src/Migrate/Az.Migrate.format.ps1xml +++ b/src/Migrate/Az.Migrate.format.ps1xml @@ -196,9 +196,6 @@ - - - @@ -311,9 +308,6 @@ ReplicatedProtectedItemName - - ReplicationProtectedItemName - ResourceGroupName @@ -349,6 +343,28 @@ + + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders + + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders + + + + + + + + + + + + Location + + + + + + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.SitesRefreshAcceptedResponseHeaders @@ -394,9 +410,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AAddDisksInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AAddDisksInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AAddDisksInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AAddDisksInput @@ -416,9 +432,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AApplyRecoveryPointInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AApplyRecoveryPointInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AApplyRecoveryPointInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AApplyRecoveryPointInput @@ -438,9 +454,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AContainerCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AContainerCreationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AContainerCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AContainerCreationInput @@ -460,9 +476,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AContainerMappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AContainerMappingInput @@ -500,9 +516,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ACreateProtectionIntentInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ACreateProtectionIntentInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ACreateProtectionIntentInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ACreateProtectionIntentInput @@ -600,9 +616,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ACrossClusterMigrationApplyRecoveryPointInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ACrossClusterMigrationApplyRecoveryPointInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ACrossClusterMigrationApplyRecoveryPointInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ACrossClusterMigrationApplyRecoveryPointInput @@ -622,9 +638,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ACrossClusterMigrationContainerCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ACrossClusterMigrationContainerCreationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ACrossClusterMigrationContainerCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ACrossClusterMigrationContainerCreationInput @@ -644,9 +660,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ACrossClusterMigrationEnableProtectionInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ACrossClusterMigrationEnableProtectionInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ACrossClusterMigrationEnableProtectionInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ACrossClusterMigrationEnableProtectionInput @@ -678,9 +694,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ACrossClusterMigrationPolicyCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ACrossClusterMigrationPolicyCreationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ACrossClusterMigrationPolicyCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ACrossClusterMigrationPolicyCreationInput @@ -700,9 +716,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ACrossClusterMigrationReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ACrossClusterMigrationReplicationDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ACrossClusterMigrationReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ACrossClusterMigrationReplicationDetails @@ -758,9 +774,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AEnableProtectionInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AEnableProtectionInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AEnableProtectionInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AEnableProtectionInput @@ -864,9 +880,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AEventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AEventDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AEventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AEventDetails @@ -922,9 +938,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2APolicyCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2APolicyCreationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2APolicyCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2APolicyCreationInput @@ -968,9 +984,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2APolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2APolicyDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2APolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2APolicyDetails @@ -1020,9 +1036,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectedDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectedDiskDetails @@ -1174,9 +1190,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectedManagedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectedManagedDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectedManagedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectedManagedDiskDetails @@ -1358,9 +1374,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionContainerMappingDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionContainerMappingDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionContainerMappingDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionContainerMappingDetails @@ -1410,9 +1426,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentDiskInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentDiskInputDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentDiskInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentDiskInputDetails @@ -1432,9 +1448,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentManagedDiskInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentManagedDiskInputDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentManagedDiskInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentManagedDiskInputDetails @@ -1472,9 +1488,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ARecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ARecoveryPointDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ARecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ARecoveryPointDetails @@ -1506,9 +1522,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ARemoveDisksInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ARemoveDisksInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ARemoveDisksInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ARemoveDisksInput @@ -1540,9 +1556,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AReplicationDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AReplicationDetails @@ -1826,9 +1842,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AReplicationIntentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AReplicationIntentDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AReplicationIntentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AReplicationIntentDetails @@ -1926,9 +1942,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AReprotectInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AReprotectInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AReprotectInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AReprotectInput @@ -1978,9 +1994,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ASwitchProtectionInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ASwitchProtectionInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ASwitchProtectionInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ASwitchProtectionInput @@ -2060,9 +2076,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ATestFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ATestFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2ATestFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2ATestFailoverInput @@ -2094,9 +2110,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AUnplannedFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AUnplannedFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AUnplannedFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AUnplannedFailoverInput @@ -2128,9 +2144,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AUnprotectedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AUnprotectedDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AUnprotectedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AUnprotectedDiskDetails @@ -2156,9 +2172,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AUpdateContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AUpdateContainerMappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AUpdateContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AUpdateContainerMappingInput @@ -2196,9 +2212,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AUpdateReplicationProtectedItemInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AUpdateReplicationProtectedItemInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AUpdateReplicationProtectedItemInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AUpdateReplicationProtectedItemInput @@ -2260,9 +2276,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmDiskInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmDiskInputDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmDiskInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmDiskInputDetails @@ -2294,9 +2310,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskInputDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskInputDetails @@ -2346,9 +2362,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskUpdateDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskUpdateDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskUpdateDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskUpdateDetails @@ -2392,9 +2408,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AZoneDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AZoneDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AZoneDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AZoneDetails @@ -2420,9 +2436,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksProviderSpecificInput @@ -2442,9 +2458,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddRecoveryServicesProviderInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddRecoveryServicesProviderInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddRecoveryServicesProviderInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddRecoveryServicesProviderInputProperties @@ -2476,9 +2492,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddVCenterRequestProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddVCenterRequestProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddVCenterRequestProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddVCenterRequestProperties @@ -2522,9 +2538,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AgentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AgentDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AgentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AgentDetails @@ -2562,9 +2578,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AgentDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AgentDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AgentDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AgentDiskDetails @@ -2608,9 +2624,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Alert + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Alert - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Alert + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Alert @@ -2636,9 +2652,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AlertCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AlertCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AlertCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AlertCollection @@ -2658,9 +2674,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AlertProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AlertProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AlertProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AlertProperties @@ -2692,9 +2708,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceCollection @@ -2714,9 +2730,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceQueryParameter - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceQueryParameter @@ -2736,9 +2752,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceSpecificDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceSpecificDetails @@ -2758,9 +2774,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointInputProperties @@ -2780,9 +2796,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput @@ -2802,9 +2818,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrJobDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrJobDetails @@ -2824,9 +2840,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTask + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTask - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTask + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTask @@ -2894,9 +2910,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AutomationRunbookTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AutomationRunbookTaskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AutomationRunbookTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AutomationRunbookTaskDetails @@ -2970,9 +2986,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureFabricCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureFabricCreationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureFabricCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureFabricCreationInput @@ -2998,9 +3014,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureFabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureFabricSpecificDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureFabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureFabricSpecificDetails @@ -3032,9 +3048,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureCreateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureCreateNetworkMappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureCreateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureCreateNetworkMappingInput @@ -3060,9 +3076,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureNetworkMappingSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureNetworkMappingSettings - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureNetworkMappingSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureNetworkMappingSettings @@ -3094,9 +3110,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureUpdateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureUpdateNetworkMappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureUpdateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureUpdateNetworkMappingInput @@ -3122,9 +3138,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureVMSyncedConfigDetailsTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureVMSyncedConfigDetailsTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureVMSyncedConfigDetailsTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureVMSyncedConfigDetailsTags @@ -3144,9 +3160,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureVMDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureVMDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureVMDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureVMDiskDetails @@ -3220,9 +3236,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ComputeSizeErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ComputeSizeErrorDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ComputeSizeErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ComputeSizeErrorDetails @@ -3248,9 +3264,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettings - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettings @@ -3270,9 +3286,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigureAlertRequestProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigureAlertRequestProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigureAlertRequestProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigureAlertRequestProperties @@ -3304,9 +3320,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConsistencyCheckTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConsistencyCheckTaskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConsistencyCheckTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConsistencyCheckTaskDetails @@ -3326,9 +3342,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateNetworkMappingInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateNetworkMappingInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateNetworkMappingInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateNetworkMappingInputProperties @@ -3354,9 +3370,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionContainerMappingInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionContainerMappingInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionContainerMappingInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionContainerMappingInputProperties @@ -3382,9 +3398,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentProviderSpecificDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentProviderSpecificDetails @@ -3404,9 +3420,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateRecoveryPlanInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateRecoveryPlanInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateRecoveryPlanInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateRecoveryPlanInputProperties @@ -3438,9 +3454,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CriticalJobHistoryDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CriticalJobHistoryDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CriticalJobHistoryDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CriticalJobHistoryDetails @@ -3478,9 +3494,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentJobDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentJobDetails @@ -3512,9 +3528,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetails @@ -3546,9 +3562,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DataStore + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DataStore - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DataStore + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DataStore @@ -3586,9 +3602,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionInputProperties @@ -3608,9 +3624,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionProviderSpecificInput @@ -3630,9 +3646,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiscoverProtectableItemRequestProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiscoverProtectableItemRequestProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiscoverProtectableItemRequestProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiscoverProtectableItemRequestProperties @@ -3664,9 +3680,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetails @@ -3704,9 +3720,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfo @@ -3732,9 +3748,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskVolumeDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskVolumeDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskVolumeDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskVolumeDetails @@ -3760,9 +3776,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Display + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Display - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Display + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Display @@ -3800,9 +3816,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DraDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DraDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DraDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DraDetails @@ -3858,9 +3874,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationInputProperties @@ -3880,9 +3896,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationProviderSpecificInput @@ -3902,9 +3918,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionInputProperties @@ -3930,9 +3946,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput @@ -3952,9 +3968,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EncryptionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EncryptionDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EncryptionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EncryptionDetails @@ -3986,9 +4002,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Event + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Event - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Event + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Event @@ -4014,9 +4030,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventCollectionAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventCollectionAutoGenerated - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventCollectionAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventCollectionAutoGenerated @@ -4036,9 +4052,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProperties @@ -4100,9 +4116,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails @@ -4122,9 +4138,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventQueryParameter - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventQueryParameter @@ -4186,9 +4202,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventSpecificDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventSpecificDetails @@ -4208,9 +4224,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExistingProtectionProfile + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExistingProtectionProfile - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExistingProtectionProfile + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExistingProtectionProfile @@ -4236,9 +4252,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExistingRecoveryAvailabilitySet + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExistingRecoveryAvailabilitySet - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExistingRecoveryAvailabilitySet + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExistingRecoveryAvailabilitySet @@ -4264,9 +4280,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExistingRecoveryProximityPlacementGroup + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExistingRecoveryProximityPlacementGroup - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExistingRecoveryProximityPlacementGroup + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExistingRecoveryProximityPlacementGroup @@ -4292,9 +4308,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExistingRecoveryResourceGroup + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExistingRecoveryResourceGroup - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExistingRecoveryResourceGroup + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExistingRecoveryResourceGroup @@ -4320,9 +4336,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExistingRecoveryVirtualNetwork + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExistingRecoveryVirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExistingRecoveryVirtualNetwork + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExistingRecoveryVirtualNetwork @@ -4354,9 +4370,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExistingStorageAccount + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExistingStorageAccount - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExistingStorageAccount + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExistingStorageAccount @@ -4382,9 +4398,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExportJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExportJobDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExportJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExportJobDetails @@ -4416,9 +4432,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation @@ -4438,9 +4454,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricCollection @@ -4460,9 +4476,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricProperties @@ -4500,9 +4516,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricQueryParameter - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricQueryParameter @@ -4552,9 +4568,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricReplicationGroupTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricReplicationGroupTaskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricReplicationGroupTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricReplicationGroupTaskDetails @@ -4622,9 +4638,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInput @@ -4644,9 +4660,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInput @@ -4666,9 +4682,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails @@ -4688,9 +4704,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInput @@ -4710,9 +4726,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverJobDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverJobDetails @@ -4732,9 +4748,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverProcessServerRequestProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverProcessServerRequestProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverProcessServerRequestProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverProcessServerRequestProperties @@ -4778,9 +4794,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverReplicationProtectedItemDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverReplicationProtectedItemDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverReplicationProtectedItemDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverReplicationProtectedItemDetails @@ -4848,9 +4864,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.GroupTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.GroupTaskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.GroupTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.GroupTaskDetails @@ -4870,9 +4886,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError @@ -4970,9 +4986,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummary + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummary - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummary + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummary @@ -5028,9 +5044,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVHostDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVHostDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVHostDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVHostDetails @@ -5056,9 +5072,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplica2012EventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplica2012EventDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplica2012EventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplica2012EventDetails @@ -5102,9 +5118,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplica2012R2EventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplica2012R2EventDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplica2012R2EventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplica2012R2EventDetails @@ -5148,9 +5164,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureApplyRecoveryPointInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureApplyRecoveryPointInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureApplyRecoveryPointInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureApplyRecoveryPointInput @@ -5182,9 +5198,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureDiskInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureDiskInputDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureDiskInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureDiskInputDetails @@ -5222,9 +5238,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInput @@ -5382,9 +5398,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags @@ -5404,9 +5420,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags @@ -5426,9 +5442,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetNicTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetNicTags @@ -5448,9 +5464,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetVmtags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetVmtags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetVmtags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetVmtags @@ -5470,9 +5486,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEventDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEventDetails @@ -5510,9 +5526,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureFailbackProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureFailbackProviderInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureFailbackProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureFailbackProviderInput @@ -5550,9 +5566,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureManagedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureManagedDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureManagedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureManagedDiskDetails @@ -5590,9 +5606,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzurePlannedFailoverProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzurePlannedFailoverProviderInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzurePlannedFailoverProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzurePlannedFailoverProviderInput @@ -5630,9 +5646,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzurePolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzurePolicyDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzurePolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzurePolicyDetails @@ -5688,9 +5704,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzurePolicyInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzurePolicyInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzurePolicyInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzurePolicyInput @@ -5740,9 +5756,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetails @@ -5906,9 +5922,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags @@ -5928,9 +5944,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags @@ -5950,9 +5966,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetNicTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetNicTags @@ -5972,9 +5988,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetVmtags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetVmtags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetVmtags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetVmtags @@ -5994,9 +6010,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReprotectInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReprotectInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReprotectInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReprotectInput @@ -6052,9 +6068,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureTestFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureTestFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureTestFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureTestFailoverInput @@ -6092,9 +6108,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUnplannedFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUnplannedFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUnplannedFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUnplannedFailoverInput @@ -6132,9 +6148,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInput @@ -6190,9 +6206,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap @@ -6212,9 +6228,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags @@ -6234,9 +6250,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags @@ -6256,9 +6272,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags @@ -6278,9 +6294,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaBaseEventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaBaseEventDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaBaseEventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaBaseEventDetails @@ -6324,9 +6340,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaBasePolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaBasePolicyDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaBasePolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaBasePolicyDetails @@ -6406,9 +6422,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaBaseReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaBaseReplicationDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaBaseReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaBaseReplicationDetails @@ -6452,9 +6468,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaBluePolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaBluePolicyDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaBluePolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaBluePolicyDetails @@ -6540,9 +6556,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaBluePolicyInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaBluePolicyInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaBluePolicyInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaBluePolicyInput @@ -6628,9 +6644,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaBlueReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaBlueReplicationDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaBlueReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaBlueReplicationDetails @@ -6674,9 +6690,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaPolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaPolicyDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaPolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaPolicyDetails @@ -6756,9 +6772,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaPolicyInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaPolicyInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaPolicyInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaPolicyInput @@ -6838,9 +6854,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaReplicationDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaReplicationDetails @@ -6884,9 +6900,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVSiteDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVSiteDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVSiteDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVSiteDetails @@ -6906,9 +6922,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVVirtualMachineDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVVirtualMachineDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVVirtualMachineDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVVirtualMachineDetails @@ -6964,9 +6980,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetails @@ -7010,9 +7026,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInput @@ -7056,9 +7072,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InconsistentVMDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InconsistentVMDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InconsistentVMDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InconsistentVMDetails @@ -7096,9 +7112,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails @@ -7124,9 +7140,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InlineWorkflowTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InlineWorkflowTaskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InlineWorkflowTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InlineWorkflowTaskDetails @@ -7152,9 +7168,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAgentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAgentDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAgentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAgentDetails @@ -7192,9 +7208,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ApplyRecoveryPointInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ApplyRecoveryPointInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ApplyRecoveryPointInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ApplyRecoveryPointInput @@ -7214,9 +7230,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2DiskInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2DiskInputDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2DiskInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2DiskInputDetails @@ -7254,9 +7270,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInput @@ -7402,9 +7418,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputSeedManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputSeedManagedDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputSeedManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputSeedManagedDiskTags @@ -7424,9 +7440,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetManagedDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetManagedDiskTags @@ -7446,9 +7462,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetNicTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetNicTags @@ -7468,9 +7484,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetVMTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetVMTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetVMTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetVMTags @@ -7490,9 +7506,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EventDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EventDetails @@ -7554,9 +7570,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ManagedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ManagedDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ManagedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ManagedDiskDetails @@ -7600,9 +7616,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2PolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2PolicyDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2PolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2PolicyDetails @@ -7652,9 +7668,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2PolicyInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2PolicyInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2PolicyInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2PolicyInput @@ -7704,9 +7720,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ProtectedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ProtectedDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ProtectedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ProtectedDiskDetails @@ -7858,9 +7874,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2RecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2RecoveryPointDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2RecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2RecoveryPointDetails @@ -7886,9 +7902,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetails @@ -8244,9 +8260,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsSeedManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsSeedManagedDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsSeedManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsSeedManagedDiskTags @@ -8266,9 +8282,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetManagedDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetManagedDiskTags @@ -8288,9 +8304,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetNicTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetNicTags @@ -8310,9 +8326,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetVMTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetVMTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetVMTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetVMTags @@ -8332,9 +8348,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReprotectInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReprotectInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReprotectInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReprotectInput @@ -8396,9 +8412,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetails @@ -8436,9 +8452,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters @@ -8458,9 +8474,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags @@ -8480,9 +8496,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderDetails @@ -8520,9 +8536,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderInput @@ -8560,9 +8576,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2TestFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2TestFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2TestFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2TestFailoverInput @@ -8588,9 +8604,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UnplannedFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UnplannedFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UnplannedFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UnplannedFailoverInput @@ -8616,9 +8632,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInput @@ -8674,9 +8690,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags @@ -8696,9 +8712,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags @@ -8718,9 +8734,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags @@ -8740,9 +8756,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageBasePolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageBasePolicyDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageBasePolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageBasePolicyDetails @@ -8786,9 +8802,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDisableProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDisableProtectionProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDisableProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDisableProtectionProviderSpecificInput @@ -8814,9 +8830,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskDetails @@ -8860,9 +8876,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskSignatureExclusionOptions + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskSignatureExclusionOptions - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskSignatureExclusionOptions + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskSignatureExclusionOptions @@ -8882,9 +8898,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageEnableProtectionInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageEnableProtectionInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageEnableProtectionInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageEnableProtectionInput @@ -8958,9 +8974,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetails @@ -8998,9 +9014,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters @@ -9020,9 +9036,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorTags @@ -9042,9 +9058,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMagePolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMagePolicyDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMagePolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMagePolicyDetails @@ -9088,9 +9104,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMagePolicyInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMagePolicyInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMagePolicyInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMagePolicyInput @@ -9134,9 +9150,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageProtectedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageProtectedDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageProtectedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageProtectedDiskDetails @@ -9282,9 +9298,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetails @@ -9322,9 +9338,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters @@ -9344,9 +9360,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags @@ -9366,9 +9382,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmApplianceDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmApplianceDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmApplianceDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmApplianceDetails @@ -9394,9 +9410,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmApplianceSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmApplianceSpecificDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmApplianceSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmApplianceSpecificDetails @@ -9416,9 +9432,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmApplyRecoveryPointInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmApplyRecoveryPointInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmApplyRecoveryPointInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmApplyRecoveryPointInput @@ -9444,9 +9460,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDiscoveredProtectedVMDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDiscoveredProtectedVMDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDiscoveredProtectedVMDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDiscoveredProtectedVMDetails @@ -9532,9 +9548,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDiskInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDiskInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDiskInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDiskInput @@ -9572,9 +9588,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDisksDefaultInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDisksDefaultInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDisksDefaultInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDisksDefaultInput @@ -9606,9 +9622,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmEnableProtectionInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmEnableProtectionInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmEnableProtectionInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmEnableProtectionInput @@ -9724,9 +9740,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmEventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmEventDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmEventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmEventDetails @@ -9794,9 +9810,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricCreationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricCreationInput @@ -9828,9 +9844,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSpecificDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSpecificDetails @@ -9892,9 +9908,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetails @@ -9932,9 +9948,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters @@ -9954,9 +9970,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags @@ -9976,9 +9992,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackDiscoveredProtectedVMDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackDiscoveredProtectedVMDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackDiscoveredProtectedVMDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackDiscoveredProtectedVMDetails @@ -10064,9 +10080,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackEventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackEventDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackEventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackEventDetails @@ -10116,9 +10132,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackMobilityAgentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackMobilityAgentDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackMobilityAgentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackMobilityAgentDetails @@ -10186,9 +10202,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackNicDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackNicDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackNicDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackNicDetails @@ -10226,9 +10242,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackPlannedFailoverProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackPlannedFailoverProviderInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackPlannedFailoverProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackPlannedFailoverProviderInput @@ -10254,9 +10270,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackPolicyCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackPolicyCreationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackPolicyCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackPolicyCreationInput @@ -10288,9 +10304,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackPolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackPolicyDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackPolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackPolicyDetails @@ -10322,9 +10338,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackProtectedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackProtectedDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackProtectedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackProtectedDiskDetails @@ -10392,9 +10408,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackReplicationDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackReplicationDetails @@ -10564,9 +10580,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackReprotectInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackReprotectInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackReprotectInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackReprotectInput @@ -10604,9 +10620,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackSyncDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackSyncDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackSyncDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackSyncDetails @@ -10668,9 +10684,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetails @@ -10708,9 +10724,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters @@ -10730,9 +10746,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorTags @@ -10752,9 +10768,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmMobilityAgentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmMobilityAgentDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmMobilityAgentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmMobilityAgentDetails @@ -10828,9 +10844,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmNicDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmNicDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmNicDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmNicDetails @@ -10922,9 +10938,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmNicInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmNicInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmNicInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmNicInput @@ -10980,9 +10996,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmPolicyCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmPolicyCreationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmPolicyCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmPolicyCreationInput @@ -11026,9 +11042,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmPolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmPolicyDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmPolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmPolicyDetails @@ -11072,9 +11088,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmProtectedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmProtectedDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmProtectedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmProtectedDiskDetails @@ -11166,9 +11182,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmProtectionContainerMappingDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmProtectionContainerMappingDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmProtectionContainerMappingDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmProtectionContainerMappingDetails @@ -11194,9 +11210,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmRecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmRecoveryPointDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmRecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmRecoveryPointDetails @@ -11222,9 +11238,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmReplicationDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmReplicationDetails @@ -11520,9 +11536,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmReprotectInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmReprotectInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmReprotectInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmReprotectInput @@ -11566,9 +11582,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmSyncDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmSyncDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmSyncDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmSyncDetails @@ -11630,9 +11646,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmTestFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmTestFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmTestFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmTestFailoverInput @@ -11664,9 +11680,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmUnplannedFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmUnplannedFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmUnplannedFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmUnplannedFailoverInput @@ -11698,9 +11714,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmUpdateApplianceForReplicationProtectedItemInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmUpdateApplianceForReplicationProtectedItemInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmUpdateApplianceForReplicationProtectedItemInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmUpdateApplianceForReplicationProtectedItemInput @@ -11726,9 +11742,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmUpdateContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmUpdateContainerMappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmUpdateContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmUpdateContainerMappingInput @@ -11754,9 +11770,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmUpdateReplicationProtectedItemInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmUpdateReplicationProtectedItemInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmUpdateReplicationProtectedItemInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmUpdateReplicationProtectedItemInput @@ -11836,9 +11852,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageReplicationDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageReplicationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageReplicationDetails @@ -12056,9 +12072,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageReplicationDetailsConsistencyPoints + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageReplicationDetailsConsistencyPoints - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageReplicationDetailsConsistencyPoints + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageReplicationDetailsConsistencyPoints @@ -12078,9 +12094,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageReprotectInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageReprotectInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageReprotectInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageReprotectInput @@ -12142,9 +12158,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageTestFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageTestFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageTestFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageTestFailoverInput @@ -12176,9 +12192,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageUnplannedFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageUnplannedFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageUnplannedFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageUnplannedFailoverInput @@ -12210,9 +12226,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageVolumeExclusionOptions + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageVolumeExclusionOptions - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageVolumeExclusionOptions + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageVolumeExclusionOptions @@ -12238,9 +12254,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InnerHealthError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InnerHealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InnerHealthError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InnerHealthError @@ -12338,9 +12354,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InputEndpoint + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InputEndpoint - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InputEndpoint + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InputEndpoint @@ -12378,9 +12394,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPConfigDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPConfigDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPConfigDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPConfigDetails @@ -12484,9 +12500,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPConfigInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPConfigInputDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPConfigInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPConfigInputDetails @@ -12566,9 +12582,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobCollection @@ -12588,9 +12604,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails @@ -12610,9 +12626,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails @@ -12632,9 +12648,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobEntity + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobEntity - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobEntity + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobEntity @@ -12684,9 +12700,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobErrorDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobErrorDetails @@ -12718,9 +12734,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobPropertiesAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobPropertiesAutoGenerated - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobPropertiesAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobPropertiesAutoGenerated @@ -12800,9 +12816,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobQueryParameter - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobQueryParameter @@ -12864,9 +12880,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobStatusEventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobStatusEventDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobStatusEventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobStatusEventDetails @@ -12910,9 +12926,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobTaskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobTaskDetails @@ -12932,9 +12948,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfo @@ -12960,9 +12976,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetwork + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetwork - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetwork + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetwork @@ -12988,9 +13004,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetworkCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetworkCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetworkCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetworkCollection @@ -13010,9 +13026,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetworkProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetworkProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetworkProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetworkProperties @@ -13050,9 +13066,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ManualActionTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ManualActionTaskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ManualActionTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ManualActionTaskDetails @@ -13090,9 +13106,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MarsAgentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MarsAgentDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MarsAgentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MarsAgentDetails @@ -13148,9 +13164,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MasterTargetServer + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MasterTargetServer - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MasterTargetServer + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MasterTargetServer @@ -13230,9 +13246,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateProviderSpecificInput @@ -13252,9 +13268,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemCollection @@ -13274,9 +13290,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemProperties @@ -13386,9 +13402,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemsQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemsQueryParameter - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemsQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemsQueryParameter @@ -13420,9 +13436,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationProviderSpecificSettings - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationProviderSpecificSettings @@ -13442,9 +13458,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPoint - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPoint @@ -13470,9 +13486,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPointCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPointCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPointCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPointCollection @@ -13492,9 +13508,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPointProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPointProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPointProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPointProperties @@ -13520,9 +13536,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MobilityServiceUpdate + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MobilityServiceUpdate - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MobilityServiceUpdate + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MobilityServiceUpdate @@ -13554,9 +13570,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Network + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Network - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Network + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Network @@ -13582,9 +13598,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkCollection @@ -13604,9 +13620,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMapping + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMapping - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMapping + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMapping @@ -13632,9 +13648,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingCollection @@ -13654,9 +13670,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettings - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettings @@ -13676,9 +13692,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingProperties @@ -13740,9 +13756,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkProperties @@ -13774,9 +13790,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NewProtectionProfile + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NewProtectionProfile - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NewProtectionProfile + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NewProtectionProfile @@ -13826,9 +13842,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NewRecoveryVirtualNetwork + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NewRecoveryVirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NewRecoveryVirtualNetwork + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NewRecoveryVirtualNetwork @@ -13860,9 +13876,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OperationsDiscovery + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OperationsDiscovery - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OperationsDiscovery + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OperationsDiscovery @@ -13888,9 +13904,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OperationsDiscoveryCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OperationsDiscoveryCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OperationsDiscoveryCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OperationsDiscoveryCollection @@ -13910,9 +13926,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDetails @@ -13962,9 +13978,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDiskDetails @@ -13996,9 +14012,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSVersionWrapper + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSVersionWrapper - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSVersionWrapper + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSVersionWrapper @@ -14024,9 +14040,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PauseReplicationInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PauseReplicationInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PauseReplicationInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PauseReplicationInputProperties @@ -14046,9 +14062,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverInputProperties @@ -14068,9 +14084,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInput @@ -14090,9 +14106,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Policy + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Policy - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Policy + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Policy @@ -14118,9 +14134,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyCollection @@ -14140,9 +14156,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProperties @@ -14162,9 +14178,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails @@ -14184,9 +14200,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput @@ -14206,9 +14222,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServer + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServer - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServer + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServer @@ -14414,9 +14430,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerDetails @@ -14592,9 +14608,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItem + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItem - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItem + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItem @@ -14620,9 +14636,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItemCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItemCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItemCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItemCollection @@ -14642,9 +14658,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItemProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItemProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItemProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItemProperties @@ -14694,9 +14710,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItemQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItemQueryParameter - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItemQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItemQueryParameter @@ -14716,9 +14732,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectedItemsQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectedItemsQueryParameter - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectedItemsQueryParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectedItemsQueryParameter @@ -14780,9 +14796,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainer + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainer - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainer + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainer @@ -14808,9 +14824,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerCollection @@ -14830,9 +14846,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerFabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerFabricSpecificDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerFabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerFabricSpecificDetails @@ -14852,9 +14868,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMapping + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMapping - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMapping + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMapping @@ -14880,9 +14896,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingCollection @@ -14902,9 +14918,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProperties @@ -14972,9 +14988,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProviderSpecificDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProviderSpecificDetails @@ -14994,9 +15010,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerProperties @@ -15046,9 +15062,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetails @@ -15068,9 +15084,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderError @@ -15114,9 +15130,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetails @@ -15136,9 +15152,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PushInstallerDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PushInstallerDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PushInstallerDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PushInstallerDetails @@ -15194,9 +15210,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RcmProxyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RcmProxyDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RcmProxyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RcmProxyDetails @@ -15258,9 +15274,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryAvailabilitySetCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryAvailabilitySetCustomDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryAvailabilitySetCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryAvailabilitySetCustomDetails @@ -15280,9 +15296,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlan + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlan - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlan + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlan @@ -15308,9 +15324,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanA2ADetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanA2ADetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanA2ADetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanA2ADetails @@ -15342,9 +15358,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanA2AFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanA2AFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanA2AFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanA2AFailoverInput @@ -15382,9 +15398,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanA2AInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanA2AInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanA2AInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanA2AInput @@ -15416,9 +15432,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanAction + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanAction - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanAction + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanAction @@ -15450,9 +15466,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionDetails @@ -15472,9 +15488,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanAutomationRunbookActionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanAutomationRunbookActionDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanAutomationRunbookActionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanAutomationRunbookActionDetails @@ -15512,9 +15528,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanCollection @@ -15534,9 +15550,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroup + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroup - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroup + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroup @@ -15556,9 +15572,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTaskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTaskDetails @@ -15596,9 +15612,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanHyperVReplicaAzureFailbackInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanHyperVReplicaAzureFailbackInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanHyperVReplicaAzureFailbackInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanHyperVReplicaAzureFailbackInput @@ -15630,9 +15646,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanHyperVReplicaAzureFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanHyperVReplicaAzureFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanHyperVReplicaAzureFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanHyperVReplicaAzureFailoverInput @@ -15670,9 +15686,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanInMageAzureV2FailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanInMageAzureV2FailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanInMageAzureV2FailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanInMageAzureV2FailoverInput @@ -15704,9 +15720,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanInMageFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanInMageFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanInMageFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanInMageFailoverInput @@ -15732,9 +15748,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanInMageRcmFailbackFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanInMageRcmFailbackFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanInMageRcmFailbackFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanInMageRcmFailbackFailoverInput @@ -15766,9 +15782,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanInMageRcmFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanInMageRcmFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanInMageRcmFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanInMageRcmFailoverInput @@ -15800,9 +15816,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanManualActionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanManualActionDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanManualActionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanManualActionDetails @@ -15828,9 +15844,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanPlannedFailoverInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanPlannedFailoverInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanPlannedFailoverInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanPlannedFailoverInputProperties @@ -15850,9 +15866,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProperties @@ -15944,9 +15960,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProtectedItem + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProtectedItem - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProtectedItem + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProtectedItem @@ -15966,9 +15982,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificDetails @@ -15988,9 +16004,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput @@ -16010,9 +16026,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificInput @@ -16032,9 +16048,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanScriptActionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanScriptActionDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanScriptActionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanScriptActionDetails @@ -16072,9 +16088,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanShutdownGroupTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanShutdownGroupTaskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanShutdownGroupTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanShutdownGroupTaskDetails @@ -16112,9 +16128,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTestFailoverCleanupInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTestFailoverCleanupInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTestFailoverCleanupInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTestFailoverCleanupInputProperties @@ -16134,9 +16150,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTestFailoverInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTestFailoverInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTestFailoverInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTestFailoverInputProperties @@ -16168,9 +16184,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanUnplannedFailoverInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanUnplannedFailoverInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanUnplannedFailoverInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanUnplannedFailoverInputProperties @@ -16196,9 +16212,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPoint - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPoint @@ -16224,9 +16240,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPointCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPointCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPointCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPointCollection @@ -16246,9 +16262,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPointProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPointProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPointProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPointProperties @@ -16274,9 +16290,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryProximityPlacementGroupCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryProximityPlacementGroupCustomDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryProximityPlacementGroupCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryProximityPlacementGroupCustomDetails @@ -16296,9 +16312,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryResourceGroupCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryResourceGroupCustomDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryResourceGroupCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryResourceGroupCustomDetails @@ -16318,9 +16334,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProvider + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProvider - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProvider + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProvider @@ -16346,9 +16362,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProviderCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProviderCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProviderCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProviderCollection @@ -16368,9 +16384,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProviderProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProviderProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProviderProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProviderProperties @@ -16474,9 +16490,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetails @@ -16496,9 +16512,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksProviderSpecificInput @@ -16518,9 +16534,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RenewCertificateInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RenewCertificateInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RenewCertificateInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RenewCertificateInputProperties @@ -16540,9 +16556,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationAgentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationAgentDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationAgentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationAgentDetails @@ -16598,9 +16614,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResults + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResults - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResults + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResults @@ -16620,9 +16636,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsErrorInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsErrorInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsErrorInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsErrorInfo @@ -16666,9 +16682,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsProperties @@ -16688,9 +16704,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationGroupDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationGroupDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationGroupDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationGroupDetails @@ -16710,9 +16726,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem @@ -16738,9 +16754,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItemCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItemCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItemCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItemCollection @@ -16760,9 +16776,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItemProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItemProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItemProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItemProperties @@ -16938,9 +16954,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntent + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntent - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntent + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntent @@ -16966,9 +16982,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentCollection @@ -16988,9 +17004,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProperties @@ -17034,9 +17050,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProviderSpecificSettings - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProviderSpecificSettings @@ -17056,9 +17072,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderContainerUnmappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderContainerUnmappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderContainerUnmappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderContainerUnmappingInput @@ -17078,9 +17094,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerCreationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerCreationInput @@ -17100,9 +17116,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerMappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerMappingInput @@ -17122,9 +17138,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings @@ -17144,9 +17160,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificUpdateContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificUpdateContainerMappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificUpdateContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificUpdateContainerMappingInput @@ -17166,9 +17182,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReprotectAgentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReprotectAgentDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReprotectAgentDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReprotectAgentDetails @@ -17248,9 +17264,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResolveHealthError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResolveHealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResolveHealthError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResolveHealthError @@ -17270,9 +17286,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource @@ -17298,9 +17314,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummary + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummary - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummary + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummary @@ -17320,9 +17336,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCounts + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCounts - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCounts + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCounts @@ -17342,9 +17358,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeJobParamsProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeJobParamsProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeJobParamsProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeJobParamsProperties @@ -17364,9 +17380,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationProviderSpecificInput @@ -17386,9 +17402,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncProviderSpecificInput @@ -17408,9 +17424,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RetentionVolume + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RetentionVolume - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RetentionVolume + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RetentionVolume @@ -17448,9 +17464,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationInputProperties @@ -17470,9 +17486,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput @@ -17492,9 +17508,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RoleAssignment + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RoleAssignment - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RoleAssignment + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RoleAssignment @@ -17532,9 +17548,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RunAsAccount + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RunAsAccount - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RunAsAccount + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RunAsAccount @@ -17560,9 +17576,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ScriptActionTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ScriptActionTaskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ScriptActionTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ScriptActionTaskDetails @@ -17606,9 +17622,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ServiceError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ServiceError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ServiceError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ServiceError @@ -17652,9 +17668,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails @@ -17674,9 +17690,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassification + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassification - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassification + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassification @@ -17702,9 +17718,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationCollection @@ -17724,9 +17740,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMapping + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMapping - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMapping + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMapping @@ -17752,9 +17768,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMappingCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMappingCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMappingCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMappingCollection @@ -17774,9 +17790,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMappingProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMappingProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMappingProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMappingProperties @@ -17796,9 +17812,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationProperties @@ -17818,9 +17834,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageMappingInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageMappingInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageMappingInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageMappingInputProperties @@ -17840,9 +17856,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Subnet + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Subnet - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Subnet + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Subnet @@ -17874,9 +17890,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOperatingSystems + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOperatingSystems - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOperatingSystems + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOperatingSystems @@ -17902,9 +17918,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSDetails @@ -17930,9 +17946,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSProperty + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSProperty - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSProperty + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSProperty @@ -17952,9 +17968,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionInputProperties @@ -17974,9 +17990,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionJobDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionJobDetails @@ -18002,9 +18018,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionProviderSpecificInput @@ -18024,9 +18040,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderInputProperties @@ -18046,9 +18062,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderSpecificInput @@ -18068,9 +18084,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSize + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSize - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSize + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSize @@ -18090,9 +18106,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSizeCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSizeCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSizeCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSizeCollection @@ -18112,9 +18128,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSizeProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSizeProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSizeProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSizeProperties @@ -18182,9 +18198,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails @@ -18204,9 +18220,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverCleanupInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverCleanupInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverCleanupInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverCleanupInputProperties @@ -18226,9 +18242,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverInputProperties @@ -18260,9 +18276,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverJobDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverJobDetails @@ -18312,9 +18328,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput @@ -18334,9 +18350,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateCleanupInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateCleanupInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateCleanupInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateCleanupInputProperties @@ -18356,9 +18372,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateProviderSpecificInput @@ -18378,9 +18394,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverInputProperties @@ -18406,9 +18422,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput @@ -18428,9 +18444,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemInputProperties @@ -18450,9 +18466,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemProviderSpecificInput @@ -18472,9 +18488,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateDiskInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateDiskInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateDiskInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateDiskInput @@ -18500,9 +18516,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemProviderSpecificInput @@ -18522,9 +18538,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMobilityServiceRequestProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMobilityServiceRequestProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMobilityServiceRequestProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMobilityServiceRequestProperties @@ -18544,9 +18560,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateNetworkMappingInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateNetworkMappingInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateNetworkMappingInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateNetworkMappingInputProperties @@ -18572,9 +18588,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemInputProperties @@ -18636,9 +18652,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInput @@ -18658,9 +18674,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateVCenterRequestProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateVCenterRequestProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateVCenterRequestProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateVCenterRequestProperties @@ -18704,9 +18720,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultHealthDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultHealthDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultHealthDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultHealthDetails @@ -18732,9 +18748,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSetting + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSetting - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSetting + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSetting @@ -18760,9 +18776,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingCollection - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingCollection + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingCollection @@ -18782,9 +18798,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingCreationInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingCreationInputProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingCreationInputProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingCreationInputProperties @@ -18810,9 +18826,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingProperties + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingProperties @@ -18838,9 +18854,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterAutoGenerated - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterAutoGenerated @@ -18866,9 +18882,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterCollectionAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterCollectionAutoGenerated - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterCollectionAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterCollectionAutoGenerated @@ -18888,9 +18904,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterPropertiesAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterPropertiesAutoGenerated - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterPropertiesAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterPropertiesAutoGenerated @@ -18964,9 +18980,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails @@ -18998,9 +19014,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VirtualMachineTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VirtualMachineTaskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VirtualMachineTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VirtualMachineTaskDetails @@ -19068,9 +19084,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmDetails @@ -19090,9 +19106,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmToAzureCreateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmToAzureCreateNetworkMappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmToAzureCreateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmToAzureCreateNetworkMappingInput @@ -19112,9 +19128,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmToAzureNetworkMappingSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmToAzureNetworkMappingSettings - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmToAzureNetworkMappingSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmToAzureNetworkMappingSettings @@ -19134,9 +19150,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmToAzureUpdateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmToAzureUpdateNetworkMappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmToAzureUpdateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmToAzureUpdateNetworkMappingInput @@ -19156,9 +19172,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmToVmmCreateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmToVmmCreateNetworkMappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmToVmmCreateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmToVmmCreateNetworkMappingInput @@ -19178,9 +19194,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmToVmmNetworkMappingSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmToVmmNetworkMappingSettings - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmToVmmNetworkMappingSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmToVmmNetworkMappingSettings @@ -19200,9 +19216,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmToVmmUpdateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmToVmmUpdateNetworkMappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmToVmmUpdateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmToVmmUpdateNetworkMappingInput @@ -19222,9 +19238,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmVirtualMachineDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmVirtualMachineDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmmVirtualMachineDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmmVirtualMachineDetails @@ -19316,9 +19332,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetails @@ -19440,9 +19456,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicInputDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicInputDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicInputDetails @@ -19534,9 +19550,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicUpdatesTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicUpdatesTaskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicUpdatesTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicUpdatesTaskDetails @@ -19574,9 +19590,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtContainerCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtContainerCreationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtContainerCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtContainerCreationInput @@ -19596,9 +19612,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtContainerMappingInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtContainerMappingInput @@ -19654,9 +19670,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtDiskInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtDiskInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtDiskInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtDiskInput @@ -19706,15 +19722,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInput + + + @@ -19724,6 +19743,9 @@ + + + @@ -19773,6 +19795,9 @@ InstanceType + + ConfidentialVMKeyVaultId + DataMoverRunAsAccountId @@ -19782,6 +19807,9 @@ PerformAutoResync + + PerformSqlBulkRegistration + SnapshotRunAsAccountId @@ -19830,9 +19858,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputSeedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputSeedDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputSeedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputSeedDiskTags @@ -19852,9 +19880,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetDiskTags @@ -19874,9 +19902,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetNicTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetNicTags @@ -19896,9 +19924,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetVmtags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetVmtags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetVmtags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetVmtags @@ -19918,9 +19946,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEventDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEventDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEventDetails @@ -19946,15 +19974,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrateInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrateInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrateInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrateInput + + + @@ -19965,6 +19996,9 @@ InstanceType + + OSUpgradeVersion + PerformShutdown @@ -19974,15 +20008,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetails + + + @@ -20010,6 +20047,9 @@ + + + @@ -20043,6 +20083,9 @@ + + + @@ -20086,6 +20129,9 @@ InstanceType + + ConfidentialVMKeyVaultId + DataMoverRunAsAccountId @@ -20113,6 +20159,9 @@ MigrationRecoveryPointId + + OSName + OSType @@ -20146,6 +20195,9 @@ StorageAccountId + + SupportedOSVersion + TargetAvailabilitySetId @@ -20188,9 +20240,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsSeedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsSeedDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsSeedDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsSeedDiskTags @@ -20210,9 +20262,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetDiskTags @@ -20232,9 +20284,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetNicTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetNicTags @@ -20254,9 +20306,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetVmtags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetVmtags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetVmtags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetVmtags @@ -20276,9 +20328,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicDetails @@ -20376,9 +20428,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicInput @@ -20440,9 +20492,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtPolicyCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtPolicyCreationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtPolicyCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtPolicyCreationInput @@ -20480,9 +20532,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmwareCbtPolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmwareCbtPolicyDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VmwareCbtPolicyDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VmwareCbtPolicyDetails @@ -20520,9 +20572,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectedDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectedDiskDetails @@ -20620,15 +20672,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectionContainerMappingDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectionContainerMappingDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectionContainerMappingDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectionContainerMappingDetails + + + @@ -20654,6 +20709,9 @@ InstanceType + + ExcludedSku + KeyVaultId @@ -20678,9 +20736,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap @@ -20700,9 +20758,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtResumeReplicationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtResumeReplicationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtResumeReplicationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtResumeReplicationInput @@ -20728,9 +20786,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtResyncInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtResyncInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtResyncInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtResyncInput @@ -20756,9 +20814,55 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtTestMigrateInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtSecurityProfileProperties - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtTestMigrateInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtSecurityProfileProperties + + + + + + + + + + + + + + + + + + + + + + + + IsTargetVMConfidentialEncryptionEnabled + + + IsTargetVMIntegrityMonitoringEnabled + + + IsTargetVMSecureBootEnabled + + + IsTargetVMTpmEnabled + + + TargetVMSecurityType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtTestMigrateInput + + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtTestMigrateInput @@ -20768,6 +20872,9 @@ + + + @@ -20781,6 +20888,9 @@ NetworkId + + OSUpgradeVersion + RecoveryPointId @@ -20790,9 +20900,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateDiskInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateDiskInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateDiskInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateDiskInput @@ -20824,9 +20934,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInput @@ -20918,9 +21028,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetDiskTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetDiskTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetDiskTags @@ -20940,9 +21050,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetNicTags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetNicTags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetNicTags @@ -20962,9 +21072,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetVmtags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetVmtags - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetVmtags + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetVmtags @@ -20984,9 +21094,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareDetails @@ -21174,9 +21284,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareV2FabricCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareV2FabricCreationInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareV2FabricCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareV2FabricCreationInput @@ -21214,9 +21324,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareV2FabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareV2FabricSpecificDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareV2FabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareV2FabricSpecificDetails @@ -21272,9 +21382,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareVirtualMachineDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareVirtualMachineDetails - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareVirtualMachineDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareVirtualMachineDetails diff --git a/src/Migrate/Az.Migrate.psd1 b/src/Migrate/Az.Migrate.psd1 index 6702a5dc7066..a492f02fe2bc 100644 --- a/src/Migrate/Az.Migrate.psd1 +++ b/src/Migrate/Az.Migrate.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 10/28/2022 +# Generated on: 6/8/2023 # @{ @@ -127,8 +127,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Added parameter ''CacheStorageAccountId'' to ''Initialize-AzMigrateReplicationInfrastructure'' -* Added support for OS Disk Swap and Test Migrate Subnet Selection' + # ReleaseNotes = '' # Prerelease string of this module # Prerelease = '' diff --git a/src/Migrate/ChangeLog.md b/src/Migrate/ChangeLog.md index 796a88b4656f..f5cfbc7d5fb2 100644 --- a/src/Migrate/ChangeLog.md +++ b/src/Migrate/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release +* Fixed keyvault SPN Id coming as null for some users +* Added support for Windows Server OS upgrade while migrating the server to Azure using Azure Migrate ## Version 2.1.0 * Added parameter `CacheStorageAccountId` to `Initialize-AzMigrateReplicationInfrastructure` diff --git a/src/Migrate/Migrate.sln b/src/Migrate/Migrate.sln index 18b932a10324..0a97172ce167 100644 --- a/src/Migrate/Migrate.sln +++ b/src/Migrate/Migrate.sln @@ -1,104 +1,58 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.6.30114.105 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{0EEDFEA2-6C41-4916-8A43-0F404F94C32F}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{92ED11A2-105F-4AC5-8436-3750131A2538}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{194876CC-862D-4623-95DA-0A5BC87EE8CF}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{1DFA1541-8C5D-48DF-9E46-1FA1307F506F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{969E8B23-F9EF-411E-995C-BE94CD05CD8B}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{5745EFB8-D618-4DB0-B868-9124309FEBF2}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{9F655341-B79E-479D-96C8-F35C56B6C5F4}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{CD0DC30B-1A10-4AC3-B7E8-D43F6680DC3A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{F37AAD1D-39D6-45F9-B6E9-58395DC2623C}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Migrate", "Az.Migrate.csproj", "{A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{14BDFA22-67D2-4A9D-8359-0D2C1347CB7A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Migrate", "Az.Migrate.csproj", "{62C8B8F8-D2CF-4EAD-93ED-ABE4F4B1F7D1}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Debug|x64.ActiveCfg = Debug|Any CPU - {0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Debug|x64.Build.0 = Debug|Any CPU - {0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Debug|x86.ActiveCfg = Debug|Any CPU - {0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Debug|x86.Build.0 = Debug|Any CPU - {0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Release|Any CPU.Build.0 = Release|Any CPU - {0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Release|x64.ActiveCfg = Release|Any CPU - {0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Release|x64.Build.0 = Release|Any CPU - {0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Release|x86.ActiveCfg = Release|Any CPU - {0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Release|x86.Build.0 = Release|Any CPU - {194876CC-862D-4623-95DA-0A5BC87EE8CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {194876CC-862D-4623-95DA-0A5BC87EE8CF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {194876CC-862D-4623-95DA-0A5BC87EE8CF}.Debug|x64.ActiveCfg = Debug|Any CPU - {194876CC-862D-4623-95DA-0A5BC87EE8CF}.Debug|x64.Build.0 = Debug|Any CPU - {194876CC-862D-4623-95DA-0A5BC87EE8CF}.Debug|x86.ActiveCfg = Debug|Any CPU - {194876CC-862D-4623-95DA-0A5BC87EE8CF}.Debug|x86.Build.0 = Debug|Any CPU - {194876CC-862D-4623-95DA-0A5BC87EE8CF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {194876CC-862D-4623-95DA-0A5BC87EE8CF}.Release|Any CPU.Build.0 = Release|Any CPU - {194876CC-862D-4623-95DA-0A5BC87EE8CF}.Release|x64.ActiveCfg = Release|Any CPU - {194876CC-862D-4623-95DA-0A5BC87EE8CF}.Release|x64.Build.0 = Release|Any CPU - {194876CC-862D-4623-95DA-0A5BC87EE8CF}.Release|x86.ActiveCfg = Release|Any CPU - {194876CC-862D-4623-95DA-0A5BC87EE8CF}.Release|x86.Build.0 = Release|Any CPU - {969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Debug|x64.ActiveCfg = Debug|Any CPU - {969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Debug|x64.Build.0 = Debug|Any CPU - {969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Debug|x86.ActiveCfg = Debug|Any CPU - {969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Debug|x86.Build.0 = Debug|Any CPU - {969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Release|Any CPU.Build.0 = Release|Any CPU - {969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Release|x64.ActiveCfg = Release|Any CPU - {969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Release|x64.Build.0 = Release|Any CPU - {969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Release|x86.ActiveCfg = Release|Any CPU - {969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Release|x86.Build.0 = Release|Any CPU - {9F655341-B79E-479D-96C8-F35C56B6C5F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9F655341-B79E-479D-96C8-F35C56B6C5F4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9F655341-B79E-479D-96C8-F35C56B6C5F4}.Debug|x64.ActiveCfg = Debug|Any CPU - {9F655341-B79E-479D-96C8-F35C56B6C5F4}.Debug|x64.Build.0 = Debug|Any CPU - {9F655341-B79E-479D-96C8-F35C56B6C5F4}.Debug|x86.ActiveCfg = Debug|Any CPU - {9F655341-B79E-479D-96C8-F35C56B6C5F4}.Debug|x86.Build.0 = Debug|Any CPU - {9F655341-B79E-479D-96C8-F35C56B6C5F4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9F655341-B79E-479D-96C8-F35C56B6C5F4}.Release|Any CPU.Build.0 = Release|Any CPU - {9F655341-B79E-479D-96C8-F35C56B6C5F4}.Release|x64.ActiveCfg = Release|Any CPU - {9F655341-B79E-479D-96C8-F35C56B6C5F4}.Release|x64.Build.0 = Release|Any CPU - {9F655341-B79E-479D-96C8-F35C56B6C5F4}.Release|x86.ActiveCfg = Release|Any CPU - {9F655341-B79E-479D-96C8-F35C56B6C5F4}.Release|x86.Build.0 = Release|Any CPU - {3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Debug|x64.ActiveCfg = Debug|Any CPU - {3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Debug|x64.Build.0 = Debug|Any CPU - {3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Debug|x86.ActiveCfg = Debug|Any CPU - {3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Debug|x86.Build.0 = Debug|Any CPU - {3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Release|Any CPU.Build.0 = Release|Any CPU - {3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Release|x64.ActiveCfg = Release|Any CPU - {3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Release|x64.Build.0 = Release|Any CPU - {3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Release|x86.ActiveCfg = Release|Any CPU - {3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Release|x86.Build.0 = Release|Any CPU - {A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Debug|x64.ActiveCfg = Debug|Any CPU - {A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Debug|x64.Build.0 = Debug|Any CPU - {A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Debug|x86.ActiveCfg = Debug|Any CPU - {A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Debug|x86.Build.0 = Debug|Any CPU - {A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Release|Any CPU.Build.0 = Release|Any CPU - {A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Release|x64.ActiveCfg = Release|Any CPU - {A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Release|x64.Build.0 = Release|Any CPU - {A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Release|x86.ActiveCfg = Release|Any CPU - {A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Release|x86.Build.0 = Release|Any CPU + {92ED11A2-105F-4AC5-8436-3750131A2538}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {92ED11A2-105F-4AC5-8436-3750131A2538}.Debug|Any CPU.Build.0 = Debug|Any CPU + {92ED11A2-105F-4AC5-8436-3750131A2538}.Release|Any CPU.ActiveCfg = Release|Any CPU + {92ED11A2-105F-4AC5-8436-3750131A2538}.Release|Any CPU.Build.0 = Release|Any CPU + {1DFA1541-8C5D-48DF-9E46-1FA1307F506F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1DFA1541-8C5D-48DF-9E46-1FA1307F506F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1DFA1541-8C5D-48DF-9E46-1FA1307F506F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1DFA1541-8C5D-48DF-9E46-1FA1307F506F}.Release|Any CPU.Build.0 = Release|Any CPU + {5745EFB8-D618-4DB0-B868-9124309FEBF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5745EFB8-D618-4DB0-B868-9124309FEBF2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5745EFB8-D618-4DB0-B868-9124309FEBF2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5745EFB8-D618-4DB0-B868-9124309FEBF2}.Release|Any CPU.Build.0 = Release|Any CPU + {CD0DC30B-1A10-4AC3-B7E8-D43F6680DC3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CD0DC30B-1A10-4AC3-B7E8-D43F6680DC3A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CD0DC30B-1A10-4AC3-B7E8-D43F6680DC3A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CD0DC30B-1A10-4AC3-B7E8-D43F6680DC3A}.Release|Any CPU.Build.0 = Release|Any CPU + {F37AAD1D-39D6-45F9-B6E9-58395DC2623C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F37AAD1D-39D6-45F9-B6E9-58395DC2623C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F37AAD1D-39D6-45F9-B6E9-58395DC2623C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F37AAD1D-39D6-45F9-B6E9-58395DC2623C}.Release|Any CPU.Build.0 = Release|Any CPU + {14BDFA22-67D2-4A9D-8359-0D2C1347CB7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {14BDFA22-67D2-4A9D-8359-0D2C1347CB7A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {14BDFA22-67D2-4A9D-8359-0D2C1347CB7A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {14BDFA22-67D2-4A9D-8359-0D2C1347CB7A}.Release|Any CPU.Build.0 = Release|Any CPU + {62C8B8F8-D2CF-4EAD-93ED-ABE4F4B1F7D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {62C8B8F8-D2CF-4EAD-93ED-ABE4F4B1F7D1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {62C8B8F8-D2CF-4EAD-93ED-ABE4F4B1F7D1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {62C8B8F8-D2CF-4EAD-93ED-ABE4F4B1F7D1}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/Migrate/README.md b/src/Migrate/README.md index 1c816c95b512..749da2c821fb 100644 --- a/src/Migrate/README.md +++ b/src/Migrate/README.md @@ -53,7 +53,7 @@ require: input-file: - $(repo)/specification/migrate/resource-manager/Microsoft.OffAzure/stable/2020-01-01/migrate.json - $(repo)/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json - - $(repo)/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-05-01/service.json + - $(repo)/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/service.json module-version: 1.0.1 title: Migrate @@ -102,55 +102,55 @@ directive: - MigrateProjectProperties - FabricProperties # Remove variants not in scope - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Test$ subject: ^ReplicationMigrationItemMigrate variant: ^TestViaIdentity$|^TestViaIdentityExpanded$|^Test$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Get$ subject: ReplicationFabric$|ReplicationPolicy$|ReplicationProtectionContainer$|ReplicationMigrationItem$|ReplicationJob$|ReplicationProtectionContainerMapping$|ReplicationRecoveryServicesProvider$ variant: ^GetViaIdentity$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Remove$ subject: ^ReplicationMigrationItem variant: ^DeleteViaIdentity$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Move$ subject: ^ReplicationMigrationItem variant: ^MigrateViaIdentityExpanded$|^Migrate$|^MigrateViaIdentity$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Suspend$ subject: ^ReplicationMigrationItemReplication variant: ^PauseViaIdentityExpanded$|^Pause$|^PauseViaIdentity$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Resume$ subject: ^ReplicationMigrationItemReplication variant: ^ResumeViaIdentityExpanded$|^Resume$|^ResumeViaIdentity$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Invoke$ subject: ^ResyncReplicationMigrationItem variant: ^ResyncViaIdentityExpanded$|^ResyncViaIdentity$|^Resync$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: New$ subject: ^ReplicationMigrationItem|ReplicationProtectionContainerMapping$|ReplicationPolicy$ variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Create$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Update$ subject: ^ReplicationMigrationItem @@ -247,95 +247,95 @@ directive: verb: Update$ subject: Project$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: subject: ^ReplicationRecoveryPlan|ReplicationRecoveryServiceProvider$|ReplicationEvent$|ReplicationAlertSetting$|ReplicationLogicalNetwork$|^ReplicationProtectedItem|^ReplicationNetwork|^ReplicationStorage|RecoveryPoint$|ProtectableItem$|FabricGateway$|FabricToAad$|ReplicationvCenter$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Export$|Find$|Switch$|Clear$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: subject: ^Commit|^Planned|^Renew|^Reprotect|^Unplanned|VaultHealth$|ComputeSize$|FabricConsistency$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: New$|Remove$ subject: Fabric$|ProtectionContainer$|ReplicationRecoveryServicesProvider$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Remove$ subject: ReplicationPolicy$|ReplicationProtectionContainerMapping$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Update$ subject: Fabric$|Policy$|ProtectionContainer$|ReplicationProtectionContainerMapping$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Stop$|Resume$|Restart$ subject: Job$ remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Get subject: ^ReplicationAppliance|^ReplicationEligibilityResult|^ReplicationProtectionIntent remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Get subject: ^ReplicationVaultSetting|^SupportedOperatingSystem|^ReplicationProtectionIntent remove: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: New subject: ^ReplicationVaultSetting|^SupportedOperatingSystem|^ReplicationProtectionIntent remove: true # Hide cmldets used by custom - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Get$ subject: ReplicationMigrationItem$|ReplicationJob$ hide: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Test$ subject: ^ReplicationMigrationItemMigrate hide: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: New$|Remove$ subject: ^ReplicationMigrationItem hide: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Move$ subject: ^ReplicationMigrationItem hide: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Restart$ subject: ^ReplicationJob hide: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Invoke$ subject: ^ResyncReplicationMigrationItem hide: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Update$ subject: ^ReplicationMigrationItem hide: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Suspend$ subject: ^ReplicationMigrationItemReplication hide: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: verb: Resume$ subject: ^ReplicationMigrationItemReplication @@ -375,19 +375,18 @@ directive: parameter-name: Name clear-alias: true # Table output formatting - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: model-name: MigrationItem set: suppress-format: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: model-name: Job set: suppress-format: true - - from: Microsoft.RecoveryServices/stable/2022-05-01/service.json + - from: Microsoft.RecoveryServices/stable/2023-01-01/service.json where: model-name: Fabric set: suppress-format: true -``` \ No newline at end of file diff --git a/src/Migrate/build-module.ps1 b/src/Migrate/build-module.ps1 index 6c6b7a533a8d..737a58e36efb 100644 --- a/src/Migrate/build-module.ps1 +++ b/src/Migrate/build-module.ps1 @@ -123,6 +123,10 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...' $modelCmdlets = @() +$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets' +if (Test-Path $modelCmdletFolder) { + $null = Remove-Item -Force -Recurse -Path $modelCmdletFolder +} if ($modelCmdlets.Count -gt 0) { . (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1') CreateModelCmdlet($modelCmdlets) diff --git a/src/Migrate/create-model-cmdlets.ps1 b/src/Migrate/create-model-cmdlets.ps1 index 9fc955d9f784..cbee52ade1b0 100644 --- a/src/Migrate/create-model-cmdlets.ps1 +++ b/src/Migrate/create-model-cmdlets.ps1 @@ -23,9 +23,13 @@ function CreateModelCmdlet { } $ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models' - $ModuleName = 'Migrate' $OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets' $null = New-Item -ItemType Directory -Force -Path $OutputDir + if (''.length -gt 0) { + $ModuleName = '' + } else { + $ModuleName = 'Az.Migrate' + } $CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs $Content = '' @@ -64,10 +68,10 @@ function CreateModelCmdlet { $ObjectType = $Model $ObjectTypeWithNamespace = "${Namespace}.${ObjectType}" # remove duplicated module name - if ($ObjectType.StartsWith($ModuleName)) { + if ($ObjectType.StartsWith('Migrate')) { $ModulePrefix = '' } else { - $ModulePrefix = $ModuleName + $ModulePrefix = 'Migrate' } $OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir @@ -158,7 +162,7 @@ Create an in-memory object for ${ObjectType}. .Outputs ${ObjectTypeWithNamespace} .Link -https://learn.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object +https://learn.microsoft.com/powershell/module/${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object #> function New-Az${ModulePrefix}${ObjectType}Object { [OutputType('${ObjectTypeWithNamespace}')] diff --git a/src/Migrate/custom/Get-AzMigrateJob.ps1 b/src/Migrate/custom/Get-AzMigrateJob.ps1 index 881db80bd966..6db2b4848a14 100644 --- a/src/Migrate/custom/Get-AzMigrateJob.ps1 +++ b/src/Migrate/custom/Get-AzMigrateJob.ps1 @@ -22,7 +22,7 @@ The Get-AzMigrateJob cmdlet retrives the status of an Azure Migrate job. https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratejob #> function Get-AzMigrateJob { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName = 'ListByName', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'GetById', Mandatory)] @@ -53,7 +53,7 @@ function Get-AzMigrateJob { [Parameter(ParameterSetName = 'GetByInputObject', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob] # Specifies the job object of the replicating server. ${InputObject}, diff --git a/src/Migrate/custom/Get-AzMigrateServerReplication.ps1 b/src/Migrate/custom/Get-AzMigrateServerReplication.ps1 index 07024acf5372..17fee5f4fa40 100644 --- a/src/Migrate/custom/Get-AzMigrateServerReplication.ps1 +++ b/src/Migrate/custom/Get-AzMigrateServerReplication.ps1 @@ -22,7 +22,7 @@ The Get-AzMigrateServerReplication cmdlet retrieves the object for the replicati https://learn.microsoft.com/powershell/module/az.migrate/get-azmigrateserverreplication #> function Get-AzMigrateServerReplication { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName = 'ListByName', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'GetBySRSID', Mandatory)] @@ -53,7 +53,7 @@ function Get-AzMigrateServerReplication { [Parameter(ParameterSetName = 'GetByInputObject', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the machine object of the replicating server. ${InputObject}, diff --git a/src/Migrate/custom/Initialize-AzMigrateReplicationInfrastructure.ps1 b/src/Migrate/custom/Initialize-AzMigrateReplicationInfrastructure.ps1 index b4eb61616fd8..5a878bc42f3a 100644 --- a/src/Migrate/custom/Initialize-AzMigrateReplicationInfrastructure.ps1 +++ b/src/Migrate/custom/Initialize-AzMigrateReplicationInfrastructure.ps1 @@ -356,7 +356,7 @@ public static int hashForArtifact(String artifact) if ($CloudEnvironMent -eq "AzureUSGovernment") { $HyperVManagerAppId = "AFAE2AF7-62E0-4AA4-8F66-B11F74F56326" } - $hyperVManagerObject = Get-AzADServicePrincipal -ApplicationID $HyperVManagerAppId + $hyperVManagerObject = Get-AzADServicePrincipal -ApplicationID $HyperVManagerAppId $accessPolicies = @() $userAccessPolicy = @{ "tenantId" = $tenantID; @@ -449,7 +449,24 @@ public static int hashForArtifact(String artifact) # RoleAssignments $roleDefinitionId = "81a9662b-bebf-436f-a333-f67b29880f12" - $kvspnid = (Get-AzADServicePrincipal -DisplayName "Azure Key Vault" )[0].Id + $kvspnid = Get-AzADServicePrincipal -DisplayName "Azure Key Vault" + $Id = "" + if($kvspnid -ne $null){ + $type = $kvspnid.GetType().BaseType + Write-Host $type.Name + if ($type.Name -eq "Array"){ + $Id = $kvspnid[0].Id + } + else{ + $Id = $kvspnid.Id + } + } + else{ + Write-Host "Unable to retrieve KV SPN Id" + } + Write-Host $Id + + $kvspnid = $Id $gwyStorageAccount = Get-AzResource -ResourceName $GateWayStorageAcName -ResourceGroupName $ResourceGroupName $lsaStorageAccount = Get-AzResource -ResourceName $LogStorageAcName -ResourceGroupName $ResourceGroupName $gwyRoleAssignments = Get-AzRoleAssignment -ObjectId $kvspnid -Scope $gwyStorageAccount.Id -ErrorVariable notPresent -ErrorAction SilentlyContinue @@ -525,7 +542,7 @@ public static int hashForArtifact(String artifact) $policyName = $MigratePrefix + $SiteName + "policy" $existingPolicyObject = Get-AzMigrateReplicationPolicy -PolicyName $policyName -ResourceGroupName $ResourceGroupName -ResourceName $VaultName -ErrorVariable notPresent -ErrorAction SilentlyContinue if (!$existingPolicyObject) { - $providerSpecificPolicy = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtPolicyCreationInput]::new() + $providerSpecificPolicy = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtPolicyCreationInput]::new() $providerSpecificPolicy.AppConsistentFrequencyInMinute = 240 $providerSpecificPolicy.InstanceType = "VMwareCbt" $providerSpecificPolicy.RecoveryPointHistoryInMinute = 360 @@ -549,7 +566,7 @@ public static int hashForArtifact(String artifact) Write-Host $mappingName, " for ", $applianceName, $LogStringSkipping } else { - $providerSpecificInput = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtContainerMappingInput]::new() + $providerSpecificInput = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtContainerMappingInput]::new() $providerSpecificInput.InstanceType = "VMwareCbt" $providerSpecificInput.TargetLocation = $TargetRegion if ([string]::IsNullOrEmpty($CacheStorageAccountId)) { diff --git a/src/Migrate/custom/New-AzMigrateDiskMapping.ps1 b/src/Migrate/custom/New-AzMigrateDiskMapping.ps1 index e7a87fb48910..675eff7176ad 100644 --- a/src/Migrate/custom/New-AzMigrateDiskMapping.ps1 +++ b/src/Migrate/custom/New-AzMigrateDiskMapping.ps1 @@ -22,7 +22,7 @@ The New-AzMigrateDiskMapping cmdlet creates a mapping of the source disk attache https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratediskmapping #> function New-AzMigrateDiskMapping { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput])] [CmdletBinding(DefaultParameterSetName = 'VMwareCbt', PositionalBinding = $false)] param( [Parameter(Mandatory)] @@ -55,7 +55,7 @@ function New-AzMigrateDiskMapping { ) process { - $DiskObject = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtDiskInput]::new() + $DiskObject = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtDiskInput]::new() $DiskObject.DiskId = $DiskID $validDiskTypeSpellings = @{ diff --git a/src/Migrate/custom/New-AzMigrateNicMapping.ps1 b/src/Migrate/custom/New-AzMigrateNicMapping.ps1 index 2faddee66644..797f80fe47f1 100644 --- a/src/Migrate/custom/New-AzMigrateNicMapping.ps1 +++ b/src/Migrate/custom/New-AzMigrateNicMapping.ps1 @@ -22,7 +22,7 @@ The New-AzMigrateNicMapping cmdlet creates a mapping of the source NIC attached https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratenicmapping #> function New-AzMigrateNicMapping { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput])] [CmdletBinding(DefaultParameterSetName = 'VMwareCbt', PositionalBinding = $false)] param( [Parameter(Mandatory)] @@ -71,7 +71,7 @@ function New-AzMigrateNicMapping { ) process { - $NicObject = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicInput]::new() + $NicObject = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicInput]::new() $NicObject.NicId = $NicID if ($PSBoundParameters.ContainsKey('TargetNicSelectionType')) { if ($TargetNicSelectionType -eq 'primary') { diff --git a/src/Migrate/custom/New-AzMigrateServerReplication.ps1 b/src/Migrate/custom/New-AzMigrateServerReplication.ps1 index 5eb2b8a97f29..c6f6a678cf43 100644 --- a/src/Migrate/custom/New-AzMigrateServerReplication.ps1 +++ b/src/Migrate/custom/New-AzMigrateServerReplication.ps1 @@ -22,7 +22,7 @@ The New-AzMigrateServerReplication cmdlet starts the replication for a particula https://learn.microsoft.com/powershell/module/az.migrate/new-azmigrateserverreplication #> function New-AzMigrateServerReplication { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName = 'ByIdDefaultUser', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'ByIdDefaultUser', Mandatory)] @@ -42,7 +42,7 @@ function New-AzMigrateServerReplication { [Parameter(ParameterSetName = 'ByIdPowerUser', Mandatory)] [Parameter(ParameterSetName = 'ByInputObjectPowerUser', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput[]] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput[]] # Specifies the disks on the source server to be included for replication. ${DiskToInclude}, @@ -141,19 +141,19 @@ function New-AzMigrateServerReplication { [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags] # Specifies the tag to be used for VM creation. ${VMTag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags] # Specifies the tag to be used for NIC creation. ${NicTag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags] # Specifies the tag to be used for disk creation. ${DiskTag}, @@ -533,7 +533,7 @@ public static int hashForArtifact(String artifact) $null = $PSBoundParameters.Add("MigrationItemName", $MachineName) $null = $PSBoundParameters.Add("PolicyId", $PolicyId) - $ProviderSpecificDetails = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInput]::new() + $ProviderSpecificDetails = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInput]::new() $ProviderSpecificDetails.DataMoverRunAsAccountId = $VMWarerunasaccountID $ProviderSpecificDetails.SnapshotRunAsAccountId = $VMWarerunasaccountID $ProviderSpecificDetails.InstanceType = 'VMwareCbt' @@ -655,10 +655,10 @@ public static int hashForArtifact(String artifact) $uniqueDiskUuids = [System.Collections.Generic.HashSet[String]]::new([StringComparer]::InvariantCultureIgnoreCase) if ($parameterSet -match 'DefaultUser') { - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput[]]$DiskToInclude = @() + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput[]]$DiskToInclude = @() foreach ($onPremDisk in $InputObject.Disk) { if ($onPremDisk.Uuid -ne $OSDiskID) { - $DiskObject = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtDiskInput]::new() + $DiskObject = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtDiskInput]::new() $DiskObject.DiskId = $onPremDisk.Uuid $DiskObject.DiskType = "Standard_LRS" $DiskObject.IsOSDisk = "false" @@ -670,7 +670,7 @@ public static int hashForArtifact(String artifact) $DiskToInclude += $DiskObject } } - $DiskObject = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtDiskInput]::new() + $DiskObject = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtDiskInput]::new() $DiskObject.DiskId = $OSDiskID $DiskObject.DiskType = $DiskType $DiskObject.IsOSDisk = "true" diff --git a/src/Migrate/custom/New-AzMigrateTestNicMapping .ps1 b/src/Migrate/custom/New-AzMigrateTestNicMapping .ps1 index 1290f10be541..13b0bdd2ee69 100644 --- a/src/Migrate/custom/New-AzMigrateTestNicMapping .ps1 +++ b/src/Migrate/custom/New-AzMigrateTestNicMapping .ps1 @@ -22,7 +22,7 @@ The New-AzMigrateTestNicMapping cmdlet creates a mapping of the source NIC attac https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratetestnicmapping #> function New-AzMigrateTestNicMapping { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput])] [CmdletBinding(DefaultParameterSetName = 'VMwareCbt', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter(Mandatory)] @@ -39,7 +39,7 @@ function New-AzMigrateTestNicMapping { ) process { - $NicObject = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicInput]::new() + $NicObject = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicInput]::new() $NicObject.NicId = $NicID if ($PSBoundParameters.ContainsKey('TestNicSubnet')) { diff --git a/src/Migrate/custom/Remove-AzMigrateServerReplication.ps1 b/src/Migrate/custom/Remove-AzMigrateServerReplication.ps1 index 2a96cf2660eb..2800eebd7bb5 100644 --- a/src/Migrate/custom/Remove-AzMigrateServerReplication.ps1 +++ b/src/Migrate/custom/Remove-AzMigrateServerReplication.ps1 @@ -22,7 +22,7 @@ The Remove-AzMigrateServerReplication cmdlet stops the replication for a migrate https://learn.microsoft.com/powershell/module/az.migrate/remove-azmigrateserverreplication #> function Remove-AzMigrateServerReplication { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName = 'ByIDVMwareCbt', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'ByIDVMwareCbt', Mandatory)] @@ -33,7 +33,7 @@ function Remove-AzMigrateServerReplication { [Parameter(ParameterSetName = 'ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the machine object of the replicating server. ${InputObject}, diff --git a/src/Migrate/custom/Restart-AzMigrateServerReplication.ps1 b/src/Migrate/custom/Restart-AzMigrateServerReplication.ps1 index f632644b2b4f..3df2059dae1f 100644 --- a/src/Migrate/custom/Restart-AzMigrateServerReplication.ps1 +++ b/src/Migrate/custom/Restart-AzMigrateServerReplication.ps1 @@ -22,7 +22,7 @@ The Restart-AzMigrateServerReplication cmdlet repairs the replication for the sp https://learn.microsoft.com/powershell/module/az.migrate/restart-azmigrateserverreplication #> function Restart-AzMigrateServerReplication { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName = 'ByIDVMwareCbt', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'ByIDVMwareCbt', Mandatory)] @@ -33,7 +33,7 @@ function Restart-AzMigrateServerReplication { [Parameter(ParameterSetName = 'ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the machine object of the replicating server. ${InputObject}, @@ -119,7 +119,7 @@ function Restart-AzMigrateServerReplication { $ReplicationMigrationItem = Az.Migrate.internal\Get-AzMigrateReplicationMigrationItem @PSBoundParameters if ($ReplicationMigrationItem -and ($ReplicationMigrationItem.ProviderSpecificDetail.InstanceType -eq 'VMwarecbt')) { - $ProviderSepcificDetail = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtResyncInput]::new() + $ProviderSepcificDetail = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtResyncInput]::new() $ProviderSepcificDetail.InstanceType = 'VMwareCbt' $ProviderSepcificDetail.SkipCbtReset = 'true' $null = $PSBoundParameters.Add('ProviderSpecificDetail', $ProviderSepcificDetail) diff --git a/src/Migrate/custom/Resume-AzMigrateServerReplication.ps1 b/src/Migrate/custom/Resume-AzMigrateServerReplication.ps1 index 8e3b57ae9517..af48792f3637 100644 --- a/src/Migrate/custom/Resume-AzMigrateServerReplication.ps1 +++ b/src/Migrate/custom/Resume-AzMigrateServerReplication.ps1 @@ -22,7 +22,7 @@ The Resume-AzMigrateServerReplication starts the replication that has been suspe https://learn.microsoft.com/powershell/module/az.migrate/resume-azmigrateserverreplication #> function Resume-AzMigrateServerReplication { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName = 'ByIDVMwareCbt', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter(ParameterSetName = 'ByIDVMwareCbt', Mandatory)] @@ -33,7 +33,7 @@ function Resume-AzMigrateServerReplication { [Parameter(ParameterSetName = 'ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the resume replication needs to be initiated. The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet ${InputObject}, @@ -203,7 +203,7 @@ function Resume-AzMigrateServerReplication { } - $ProviderSpecificDetailInput = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtResumeReplicationInput]::new() + $ProviderSpecificDetailInput = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtResumeReplicationInput]::new() $ProviderSpecificDetailInput.InstanceType = 'VMwareCbt' $ProviderSpecificDetailInput.DeleteMigrationResource = $PerformDeleteResource $null = $PSBoundParameters.Add('ProviderSpecificDetail', $ProviderSpecificDetailInput) diff --git a/src/Migrate/custom/Set-AzMigrateDiskMapping.ps1 b/src/Migrate/custom/Set-AzMigrateDiskMapping.ps1 index db907bf78235..f415bb33969a 100644 --- a/src/Migrate/custom/Set-AzMigrateDiskMapping.ps1 +++ b/src/Migrate/custom/Set-AzMigrateDiskMapping.ps1 @@ -22,7 +22,7 @@ The Set-AzMigrateDiskMapping cmdlet updates a mapping of the source disk attache https://learn.microsoft.com/powershell/module/az.migrate/set-azmigratediskmapping #> function Set-AzMigrateDiskMapping { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput])] [CmdletBinding(DefaultParameterSetName = 'VMwareCbt', PositionalBinding = $false)] param( [Parameter(Mandatory)] @@ -47,7 +47,7 @@ function Set-AzMigrateDiskMapping { ) process { - $DiskObject = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateDiskInput]::new() + $DiskObject = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateDiskInput]::new() $DiskObject.DiskId = $DiskID if ($DiskName -and (($DiskName.length -gt 80) -or ($DiskName.length -eq 0))) { diff --git a/src/Migrate/custom/Set-AzMigrateServerReplication.ps1 b/src/Migrate/custom/Set-AzMigrateServerReplication.ps1 index aafe1078297d..16ddef3ad1cc 100644 --- a/src/Migrate/custom/Set-AzMigrateServerReplication.ps1 +++ b/src/Migrate/custom/Set-AzMigrateServerReplication.ps1 @@ -22,7 +22,7 @@ The Set-AzMigrateServerReplication cmdlet updates the target properties for the https://learn.microsoft.com/powershell/module/az.migrate/set-azmigrateserverreplication #> function Set-AzMigrateServerReplication { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName = 'ByIDVMwareCbt', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'ByIDVMwareCbt', Mandatory)] @@ -33,7 +33,7 @@ function Set-AzMigrateServerReplication { [Parameter(ParameterSetName = 'ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the properties need to be updated. The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet. ${InputObject}, @@ -75,13 +75,13 @@ function Set-AzMigrateServerReplication { [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[]] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[]] # Updates the NIC for the Azure VM to be created. ${NicToUpdate}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput[]] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput[]] # Updates the disk for the Azure VM to be created. ${DiskToUpdate}, @@ -121,7 +121,7 @@ function Set-AzMigrateServerReplication { [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags] # Specifies the tag to be used for VM creation. ${UpdateVMTag}, @@ -135,7 +135,7 @@ function Set-AzMigrateServerReplication { [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags] # Specifies the tag to be used for NIC creation. ${UpdateNicTag}, @@ -149,7 +149,7 @@ function Set-AzMigrateServerReplication { [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags] # Specifies the tag to be used for disk creation. ${UpdateDiskTag}, @@ -288,7 +288,7 @@ function Set-AzMigrateServerReplication { $ReplicationMigrationItem = Az.Migrate.internal\Get-AzMigrateReplicationMigrationItem @PSBoundParameters if ($ReplicationMigrationItem -and ($ReplicationMigrationItem.ProviderSpecificDetail.InstanceType -eq 'VMwarecbt')) { - $ProviderSpecificDetails = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInput]::new() + $ProviderSpecificDetails = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInput]::new() # Auto fill unchanged parameters $ProviderSpecificDetails.InstanceType = 'VMwareCbt' @@ -619,7 +619,7 @@ function Set-AzMigrateServerReplication { } } else { - $updateDisk = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateDiskInput]::new() + $updateDisk = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateDiskInput]::new() $updateDisk.DiskId = $previousOsDiskId $updateDisk.IsOSDisk = "False" $originalDisks = $ReplicationMigrationItem.ProviderSpecificDetail.ProtectedDisk @@ -672,11 +672,11 @@ function Set-AzMigrateServerReplication { throw "A disk with name $($TargetDiskName)' already exists in the target resource group." } - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput[]]$updateDisksArray = @() + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput[]]$updateDisksArray = @() $originalDisks = $ReplicationMigrationItem.ProviderSpecificDetail.ProtectedDisk foreach ($DiskObject in $originalDisks) { if ( $DiskObject.IsOSDisk) { - $updateDisk = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateDiskInput]::new() + $updateDisk = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateDiskInput]::new() $updateDisk.DiskId = $DiskObject.DiskId $updateDisk.TargetDiskName = $TargetDiskName $updateDisksArray += $updateDisk @@ -687,12 +687,12 @@ function Set-AzMigrateServerReplication { } $originalNics = $ReplicationMigrationItem.ProviderSpecificDetail.VMNic - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[]]$updateNicsArray = @() + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[]]$updateNicsArray = @() $nicNamePresentinRg = New-Object Collections.Generic.List[String] $duplicateNicName = New-Object System.Collections.Generic.HashSet[String] foreach ($storedNic in $originalNics) { - $updateNic = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicInput]::new() + $updateNic = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicInput]::new() $updateNic.IsPrimaryNic = $storedNic.IsPrimaryNic $updateNic.IsSelectedForMigration = $storedNic.IsSelectedForMigration $updateNic.NicId = $storedNic.NicId diff --git a/src/Migrate/custom/Start-AzMigrateServerMigration.ps1 b/src/Migrate/custom/Start-AzMigrateServerMigration.ps1 index c275eb5a2c5a..e04b393705be 100644 --- a/src/Migrate/custom/Start-AzMigrateServerMigration.ps1 +++ b/src/Migrate/custom/Start-AzMigrateServerMigration.ps1 @@ -22,7 +22,7 @@ Starts the migration for the replicating server. https://learn.microsoft.com/powershell/module/az.migrate/start-azmigrateservermigration #> function Start-AzMigrateServerMigration { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName = 'ByIDVMwareCbt', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'ByIDVMwareCbt', Mandatory)] @@ -33,10 +33,16 @@ function Start-AzMigrateServerMigration { [Parameter(ParameterSetName = 'ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which migration needs to be initiated. The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet. ${InputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] + [System.String] + # Specifies the target version to which the Os has to be upgraded to. The valid values can be selected from SupportedOSVersions retrieved using Get-AzMigrateServerReplication cmdlet. + ${OsUpgradeVersion}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.Management.Automation.SwitchParameter] @@ -106,6 +112,7 @@ function Start-AzMigrateServerMigration { $PerformShutDown = "false" } $null = $PSBoundParameters.Remove('TurnOffSourceServer') + $null = $PSBoundParameters.Remove('OsUpgradeVersion') $null = $PSBoundParameters.Remove('TargetObjectID') $null = $PSBoundParameters.Remove('ResourceGroupName') $null = $PSBoundParameters.Remove('ProjectName') @@ -133,9 +140,21 @@ function Start-AzMigrateServerMigration { $ReplicationMigrationItem = Az.Migrate.internal\Get-AzMigrateReplicationMigrationItem @PSBoundParameters if ($ReplicationMigrationItem -and ($ReplicationMigrationItem.ProviderSpecificDetail.InstanceType -eq 'VMwarecbt') -and ($ReplicationMigrationItem.AllowedOperation -contains 'Migrate' )) { - $ProviderSpecificDetailInput = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrateInput]::new() + $ProviderSpecificDetailInput = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrateInput]::new() $ProviderSpecificDetailInput.InstanceType = 'VMwareCbt' $ProviderSpecificDetailInput.PerformShutdown = $PerformShutDown + if ($OsUpgradeVersion) { + $SupportedOSVersions = $ReplicationMigrationItem.ProviderSpecificDetail.SupportedOSVersion + if ($null -eq $SupportedOSVersions) { + throw "There is no supported target OS available. Please check or remove the OsUpgradeVersion input." + } + elseif ($SupportedOSVersions -contains $OsUpgradeVersion) { + $ProviderSpecificDetailInput.OSUpgradeVersion = $OsUpgradeVersion + } + else { + throw "Please choose the appropriate option from SupportedOSVersions retrieved using Get-AzMigrateServerReplication cmdlet" + } + } $null = $PSBoundParameters.Add('ProviderSpecificDetail', $ProviderSpecificDetailInput) $null = $PSBoundParameters.Add('NoWait', $true) @@ -159,4 +178,4 @@ function Start-AzMigrateServerMigration { throw "Either machine doesn't exist or provider/action isn't supported for this machine" } } -} \ No newline at end of file +} diff --git a/src/Migrate/custom/Start-AzMigrateTestMigration.ps1 b/src/Migrate/custom/Start-AzMigrateTestMigration.ps1 index aa832e7ce995..1df2b40defba 100644 --- a/src/Migrate/custom/Start-AzMigrateTestMigration.ps1 +++ b/src/Migrate/custom/Start-AzMigrateTestMigration.ps1 @@ -22,7 +22,7 @@ The Start-AzMigrateTestMigration cmdlet initiates the test migration for the rep https://learn.microsoft.com/powershell/module/az.migrate/start-azmigratetestmigration #> function Start-AzMigrateTestMigration { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName = 'ByIDVMwareCbt', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'ByIDVMwareCbt', Mandatory)] @@ -33,7 +33,7 @@ function Start-AzMigrateTestMigration { [Parameter(ParameterSetName = 'ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the test migration needs to be initiated. The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet. ${InputObject}, @@ -45,7 +45,13 @@ function Start-AzMigrateTestMigration { [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[]] + [System.String] + # Specifies the target version to which the Os has to be upgraded to. The valid values can be selected from SupportedOSVersions retrieved using Get-AzMigrateServerReplication cmdlet. + ${OsUpgradeVersion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[]] # Updates the NIC for the Azure VM to be created. ${NicToUpdate}, @@ -177,9 +183,21 @@ function Start-AzMigrateTestMigration { } if ($ReplicationMigrationItem -and ($ReplicationMigrationItem.ProviderSpecificDetail.InstanceType -eq 'VMwarecbt') -and ($ReplicationMigrationItem.AllowedOperation -contains 'TestMigrate' )) { - $ProviderSpecificDetailInput = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtTestMigrateInput]::new() + $ProviderSpecificDetailInput = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtTestMigrateInput]::new() $ProviderSpecificDetailInput.InstanceType = 'VMwareCbt' $ProviderSpecificDetailInput.NetworkId = $TestNetworkID + if ($OsUpgradeVersion) { + $SupportedOSVersions = $ReplicationMigrationItem.ProviderSpecificDetail.SupportedOSVersion + if ($null -eq $SupportedOSVersions) { + throw "There is no supported target OS available. Please check or remove the OsUpgradeVersion input." + } + elseif ($SupportedOSVersions -contains $OsUpgradeVersion) { + $ProviderSpecificDetailInput.OsUpgradeVersion = $OsUpgradeVersion + } + else { + throw "Please choose the appropriate option from SupportedOSVersions retrieved using Get-AzMigrateServerReplication cmdlet" + } + } $ProviderSpecificDetailInput.VMNic = $NicToUpdate $ProviderSpecificDetailInput.RecoveryPointId = $ReplicationMigrationItem.ProviderSpecificDetail.LastRecoveryPointId @@ -205,4 +223,4 @@ function Start-AzMigrateTestMigration { throw "Either machine doesn't exist or provider/action isn't supported for this machine" } } -} \ No newline at end of file +} diff --git a/src/Migrate/custom/Start-AzMigrateTestMigrationCleanup.ps1 b/src/Migrate/custom/Start-AzMigrateTestMigrationCleanup.ps1 index 3fa2b4ac94f9..7a02c854ef2c 100644 --- a/src/Migrate/custom/Start-AzMigrateTestMigrationCleanup.ps1 +++ b/src/Migrate/custom/Start-AzMigrateTestMigrationCleanup.ps1 @@ -22,7 +22,7 @@ The Start-AzMigrateTestMigrationCleanup cmdlet initiates the clean up of the tes https://learn.microsoft.com/powershell/module/az.migrate/start-azmigratetestmigrationcleanup #> function Start-AzMigrateTestMigrationCleanup { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName = 'ByIDVMwareCbt', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'ByIDVMwareCbt', Mandatory)] @@ -33,7 +33,7 @@ function Start-AzMigrateTestMigrationCleanup { [Parameter(ParameterSetName = 'ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the test migration cleanup needs to be initiated. The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet ${InputObject}, diff --git a/src/Migrate/custom/Suspend-AzMigrateServerReplication.ps1 b/src/Migrate/custom/Suspend-AzMigrateServerReplication.ps1 index 697eff0c7a32..bbd25e20c970 100644 --- a/src/Migrate/custom/Suspend-AzMigrateServerReplication.ps1 +++ b/src/Migrate/custom/Suspend-AzMigrateServerReplication.ps1 @@ -22,7 +22,7 @@ The Suspend-AzMigrateServerReplication suspends the ongoing replication. https://learn.microsoft.com/powershell/module/az.migrate/suspend-azmigrateserverreplication #> function Suspend-AzMigrateServerReplication { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName = 'ByIDVMwareCbt', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter(ParameterSetName = 'ByIDVMwareCbt', Mandatory)] @@ -33,7 +33,7 @@ function Suspend-AzMigrateServerReplication { [Parameter(ParameterSetName = 'ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the suspend replication needs to be initiated. The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet ${InputObject}, diff --git a/src/Migrate/examples/Resume-AzMigrateServerReplication.md b/src/Migrate/examples/Resume-AzMigrateServerReplication.md index 65c26d56b28f..668828fbfda5 100644 --- a/src/Migrate/examples/Resume-AzMigrateServerReplication.md +++ b/src/Migrate/examples/Resume-AzMigrateServerReplication.md @@ -6,7 +6,7 @@ Resume-AzMigrateServerReplication -TargetObjectID "/Subscriptions/xxx-xxx-xxxxxx ```output ActivityId : 0b810233-b0aa-4a4c-a44e-bea4589c0513 ActivityId: ccb4889b-b9ec-4a76-af4d-4eb59c76ebac AllowedAction : {} -CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetails +CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails CustomDetailInstanceType : AsrJobDetails EndTime : Error : {} @@ -36,7 +36,7 @@ Resume-AzMigrateServerReplication -InputObject $obj ```output ActivityId : 0b810233-b0aa-4a4c-a44e-bea4589c0513 ActivityId: ccb4889b-b9ec-4a76-af4d-4eb59c76ebac AllowedAction : {} -CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetails +CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails CustomDetailInstanceType : AsrJobDetails EndTime : Error : {} diff --git a/src/Migrate/examples/Suspend-AzMigrateServerReplication.md b/src/Migrate/examples/Suspend-AzMigrateServerReplication.md index 72dfa8904a50..c7b08934eeb1 100644 --- a/src/Migrate/examples/Suspend-AzMigrateServerReplication.md +++ b/src/Migrate/examples/Suspend-AzMigrateServerReplication.md @@ -6,7 +6,7 @@ Suspend-AzMigrateServerReplication -TargetObjectID "/Subscriptions/xxx-xxx-xxxxx ```output ActivityId : da61a495-48b7-40df-a251-f23f491b2566 ActivityId: e16e0301-be13-4c35-8242-1451cb057994 AllowedAction : {} -CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetails +CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails CustomDetailInstanceType : AsrJobDetails EndTime : Error : {} @@ -36,7 +36,7 @@ Suspend-AzMigrateServerReplication -InputObject $obj ```output ActivityId : da61a495-48b7-40df-a251-f23f491b2566 ActivityId: e16e0301-be13-4c35-8242-1451cb057994 AllowedAction : {} -CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetails +CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails CustomDetailInstanceType : AsrJobDetails EndTime : Error : {} diff --git a/src/Migrate/exports/Get-AzMigrateDiscoveredServer.ps1 b/src/Migrate/exports/Get-AzMigrateDiscoveredServer.ps1 index 66cf17d931dc..76eee6f9c4ce 100644 --- a/src/Migrate/exports/Get-AzMigrateDiscoveredServer.ps1 +++ b/src/Migrate/exports/Get-AzMigrateDiscoveredServer.ps1 @@ -94,7 +94,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Get-AzMigrateJob.ps1 b/src/Migrate/exports/Get-AzMigrateJob.ps1 index 37d1ceeba094..4986390747c7 100644 --- a/src/Migrate/exports/Get-AzMigrateJob.ps1 +++ b/src/Migrate/exports/Get-AzMigrateJob.ps1 @@ -27,7 +27,7 @@ Get-AzMigrateJob -ResourceGroupName 'azmigratepwshtestasr13072020' -ProjectName Get-AzMigrateJob -ResourceGroupName 'azmigratepwshtestasr13072020' -ProjectName 'AzMigrateTestProjectPWSH' -JobName 7ae1ee7c-442c-499d-8b0e-81d52a42b71e .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -81,7 +81,7 @@ INPUTOBJECT : Specifies the job object of the replicating server. https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratejob #> function Get-AzMigrateJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ListByName', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ListByName', Mandatory)] @@ -119,7 +119,7 @@ param( [Parameter(ParameterSetName='GetByInputObject', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob] # Specifies the job object of the replicating server. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, @@ -200,7 +200,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Get-AzMigrateProject.ps1 b/src/Migrate/exports/Get-AzMigrateProject.ps1 index 53c891c4b396..fcbeb3fa4796 100644 --- a/src/Migrate/exports/Get-AzMigrateProject.ps1 +++ b/src/Migrate/exports/Get-AzMigrateProject.ps1 @@ -56,7 +56,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -108,7 +109,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Get-AzMigrateReplicationFabric.ps1 b/src/Migrate/exports/Get-AzMigrateReplicationFabric.ps1 index 47b0d7f5c918..35df6abe983d 100644 --- a/src/Migrate/exports/Get-AzMigrateReplicationFabric.ps1 +++ b/src/Migrate/exports/Get-AzMigrateReplicationFabric.ps1 @@ -25,12 +25,12 @@ Get-AzMigrateReplicationFabric -ResourceGroupName azmigratepwshtestasr13072020 - Get-AzMigrateReplicationFabric -ResourceGroupName azmigratepwshtestasr13072020 -ResourceName AzMigrateTestProjectPWSH02aarsvault .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationfabric #> function Get-AzMigrateReplicationFabric { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -69,7 +69,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -121,7 +122,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Get-AzMigrateReplicationPolicy.ps1 b/src/Migrate/exports/Get-AzMigrateReplicationPolicy.ps1 index d49f36e14867..d11dfeabc051 100644 --- a/src/Migrate/exports/Get-AzMigrateReplicationPolicy.ps1 +++ b/src/Migrate/exports/Get-AzMigrateReplicationPolicy.ps1 @@ -25,12 +25,12 @@ Get-AzMigrateReplicationPolicy -ResourceGroupName azmigratepwshtestasr13072020 - Get-AzMigrateReplicationPolicy -ResourceGroupName azmigratepwshtestasr13072020 -ResourceName AzMigrateTestProjectPWSH02aarsvault -PolicyName migrateAzMigratePWSHTc8d1sitepolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationpolicy #> function Get-AzMigrateReplicationPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -63,7 +63,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -115,7 +116,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Get-AzMigrateReplicationProtectionContainer.ps1 b/src/Migrate/exports/Get-AzMigrateReplicationProtectionContainer.ps1 index 59a6b2e71f2e..beb84aebc12a 100644 --- a/src/Migrate/exports/Get-AzMigrateReplicationProtectionContainer.ps1 +++ b/src/Migrate/exports/Get-AzMigrateReplicationProtectionContainer.ps1 @@ -25,12 +25,12 @@ Get-AzMigrateReplicationProtectionContainer -ResourceGroupName azmigratepwshtest Get-AzMigrateReplicationProtectionContainer -ResourceGroupName azmigratepwshtestasr13072020 -ResourceName AzMigrateTestProjectPWSH02aarsvault -FabricName AzMigratePWSHTc8d1replicationfabric -ProtectionContainerName AzMigratePWSHTc8d1replicationcontainer .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationprotectioncontainer #> function Get-AzMigrateReplicationProtectionContainer { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -70,7 +70,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -122,7 +123,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Get-AzMigrateReplicationProtectionContainerMapping.ps1 b/src/Migrate/exports/Get-AzMigrateReplicationProtectionContainerMapping.ps1 index 3b064ddef689..ada3ecdb3188 100644 --- a/src/Migrate/exports/Get-AzMigrateReplicationProtectionContainerMapping.ps1 +++ b/src/Migrate/exports/Get-AzMigrateReplicationProtectionContainerMapping.ps1 @@ -23,12 +23,12 @@ Gets the details of a protection container mapping. Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName azmigratepwshtestasr13072020 -ResourceName AzMigrateTestProjectPWSH02aarsvault -FabricName AzMigratePWSHTc8d1replicationfabric -ProtectionContainerName AzMigratePWSHTc8d1replicationcontainer -MappingName "containermapping" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationprotectioncontainermapping #> function Get-AzMigrateReplicationProtectionContainerMapping { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -75,7 +75,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -127,7 +128,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Get-AzMigrateReplicationRecoveryServicesProvider.ps1 b/src/Migrate/exports/Get-AzMigrateReplicationRecoveryServicesProvider.ps1 index 319e8cc6e8a5..ba328d3565b0 100644 --- a/src/Migrate/exports/Get-AzMigrateReplicationRecoveryServicesProvider.ps1 +++ b/src/Migrate/exports/Get-AzMigrateReplicationRecoveryServicesProvider.ps1 @@ -23,12 +23,12 @@ Gets the details of registered recovery services provider. Get-AzMigrateReplicationRecoveryServicesProvider -ResourceGroupName azmigratepwshtestasr13072020 -ResourceName AzMigrateTestProjectPWSH02aarsvault .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationrecoveryservicesprovider #> function Get-AzMigrateReplicationRecoveryServicesProvider { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -67,7 +67,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -119,7 +120,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Get-AzMigrateRunAsAccount.ps1 b/src/Migrate/exports/Get-AzMigrateRunAsAccount.ps1 index 0cab9639b981..437f2e73befa 100644 --- a/src/Migrate/exports/Get-AzMigrateRunAsAccount.ps1 +++ b/src/Migrate/exports/Get-AzMigrateRunAsAccount.ps1 @@ -64,7 +64,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -116,7 +117,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Get-AzMigrateServerReplication.ps1 b/src/Migrate/exports/Get-AzMigrateServerReplication.ps1 index c1a9e2cd920c..6d96893fcd0b 100644 --- a/src/Migrate/exports/Get-AzMigrateServerReplication.ps1 +++ b/src/Migrate/exports/Get-AzMigrateServerReplication.ps1 @@ -27,7 +27,7 @@ Get-AzMigrateServerReplication -ResourceGroupID /Subscriptions/xxx-xxx-xxx/resou Get-AzMigrateServerReplication -ResourceGroupName azmigratepwshtestasr13072020 -ProjectName AzMigrateTestProjectPWSH .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Notes COMPLEX PARAMETER PROPERTIES @@ -41,7 +41,7 @@ INPUTOBJECT : Specifies the machine object of the replicating se https://learn.microsoft.com/powershell/module/az.migrate/get-azmigrateserverreplication #> function Get-AzMigrateServerReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='ListByName', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ListByName', Mandatory)] @@ -85,7 +85,7 @@ param( [Parameter(ParameterSetName='GetByInputObject', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the machine object of the replicating server. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, @@ -173,7 +173,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Get-AzMigrateSite.ps1 b/src/Migrate/exports/Get-AzMigrateSite.ps1 index 24776f1e4f71..eb3d440946ee 100644 --- a/src/Migrate/exports/Get-AzMigrateSite.ps1 +++ b/src/Migrate/exports/Get-AzMigrateSite.ps1 @@ -57,7 +57,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -109,7 +110,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Get-AzMigrateSolution.ps1 b/src/Migrate/exports/Get-AzMigrateSolution.ps1 index a1b891565e05..920dee4f9106 100644 --- a/src/Migrate/exports/Get-AzMigrateSolution.ps1 +++ b/src/Migrate/exports/Get-AzMigrateSolution.ps1 @@ -62,7 +62,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -114,7 +115,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Initialize-AzMigrateReplicationInfrastructure.ps1 b/src/Migrate/exports/Initialize-AzMigrateReplicationInfrastructure.ps1 index 2444ba2efa6c..7031a582b514 100644 --- a/src/Migrate/exports/Initialize-AzMigrateReplicationInfrastructure.ps1 +++ b/src/Migrate/exports/Initialize-AzMigrateReplicationInfrastructure.ps1 @@ -131,7 +131,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/New-AzMigrateDiskMapping.ps1 b/src/Migrate/exports/New-AzMigrateDiskMapping.ps1 index d58c65ffd7a5..a0266dab0bbd 100644 --- a/src/Migrate/exports/New-AzMigrateDiskMapping.ps1 +++ b/src/Migrate/exports/New-AzMigrateDiskMapping.ps1 @@ -23,12 +23,12 @@ The New-AzMigrateDiskMapping cmdlet creates a mapping of the source disk attache New-AzMigrateDiskMapping -DiskID a -DiskType Standard -IsOSDisk 'true' .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput .Link https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratediskmapping #> function New-AzMigrateDiskMapping { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput])] [CmdletBinding(DefaultParameterSetName='VMwareCbt', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -67,7 +67,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/New-AzMigrateNicMapping.ps1 b/src/Migrate/exports/New-AzMigrateNicMapping.ps1 index e76774b528b7..adbc433b2860 100644 --- a/src/Migrate/exports/New-AzMigrateNicMapping.ps1 +++ b/src/Migrate/exports/New-AzMigrateNicMapping.ps1 @@ -24,12 +24,12 @@ This object is provided as an input to the Set-AzMigrateServerReplication cmdlet New-AzMigrateNicMapping -NicID a2399354-653a-464e-a567-d30ef5467a31 -TargetNicSelectionType primary -TargetNicIP "172.17.1.17" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput .Link https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratenicmapping #> function New-AzMigrateNicMapping { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput])] [CmdletBinding(DefaultParameterSetName='VMwareCbt', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -85,7 +85,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/New-AzMigrateProject.ps1 b/src/Migrate/exports/New-AzMigrateProject.ps1 index c70e8afecb57..d1b23bffaa3d 100644 --- a/src/Migrate/exports/New-AzMigrateProject.ps1 +++ b/src/Migrate/exports/New-AzMigrateProject.ps1 @@ -84,7 +84,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/New-AzMigrateReplicationPolicy.ps1 b/src/Migrate/exports/New-AzMigrateReplicationPolicy.ps1 index fe376fdfc778..9e95b0b31558 100644 --- a/src/Migrate/exports/New-AzMigrateReplicationPolicy.ps1 +++ b/src/Migrate/exports/New-AzMigrateReplicationPolicy.ps1 @@ -28,7 +28,7 @@ $providerSpecificPolicy.CrashConsistentFrequencyInMinute = 60 New-AzMigrateReplicationPolicy -PolicyName TestPolicy -ResourceGroupName ResourceGroup -ResourceName VaultName -SubscriptionId SubscriptionId -ProviderSpecificInput $providerSpecificPolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -40,7 +40,7 @@ PROVIDERSPECIFICINPUT : The ReplicationProviderSet https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratereplicationpolicy #> function New-AzMigrateReplicationPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -70,7 +70,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput] # The ReplicationProviderSettings. # To construct, see NOTES section for PROVIDERSPECIFICINPUT properties and create a hash table. ${ProviderSpecificInput}, @@ -80,7 +80,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -144,7 +145,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/New-AzMigrateReplicationProtectionContainerMapping.ps1 b/src/Migrate/exports/New-AzMigrateReplicationProtectionContainerMapping.ps1 index dff8a6ee3e41..ee60398162ad 100644 --- a/src/Migrate/exports/New-AzMigrateReplicationProtectionContainerMapping.ps1 +++ b/src/Migrate/exports/New-AzMigrateReplicationProtectionContainerMapping.ps1 @@ -32,7 +32,7 @@ $providerSpecificInput.TargetLocation = "centraluseuap" New-AzMigrateReplicationProtectionContainerMapping -FabricName "AzMigratePWSHTc8d1replicationfabric" -MappingName "containermapping" -ProtectionContainerName "AzMigratePWSHTc8d1replicationcontainer" -ResourceGroupName "azmigratepwshtestasr13072020" -ResourceName "AzMigrateTestProjectPWSH02aarsvault" -PolicyId "/subscriptionsxxx-xxx-xxx/resourceGroups/azmigratepwshtestasr13072020/providers/Microsoft.RecoveryServices/vaults/AzMigrateTestProjectPWSH02aarsvault/replicationPolicies/migrateAzMigratePWSHTc8d1sitepolicy" -ProviderSpecificInput $providerSpecificInput -TargetProtectionContainerId "Microsoft Azure" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping .Notes COMPLEX PARAMETER PROPERTIES @@ -44,7 +44,7 @@ PROVIDERSPECIFICINPUT : Provi https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratereplicationprotectioncontainermapping #> function New-AzMigrateReplicationProtectionContainerMapping { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -92,7 +92,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput] # Provider specific input for pairing. # To construct, see NOTES section for PROVIDERSPECIFICINPUT properties and create a hash table. ${ProviderSpecificInput}, @@ -108,7 +108,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -172,7 +173,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/New-AzMigrateServerReplication.ps1 b/src/Migrate/exports/New-AzMigrateServerReplication.ps1 index 416f67fcc04f..6e8d74288825 100644 --- a/src/Migrate/exports/New-AzMigrateServerReplication.ps1 +++ b/src/Migrate/exports/New-AzMigrateServerReplication.ps1 @@ -29,7 +29,7 @@ $DisksToInclude += $DataDisk New-AzMigrateServerReplication -MachineId "/subscriptions/xxx-xxx-xxx/resourceGroups/azmigratepwshtestasr13072020/providers/Microsoft.OffAzure/VMwareSites/AzMigratePWSHTc8d1site/machines/bcdr-vcenter-fareast-corp-micro-cfcc5a24-a40e-56b9-a6af-e206c9ca4f93_50063baa-9806-d6d6-7e09-c0ae87309b4f" -LicenseType NoLicenseType -TargetResourceGroupId "/subscriptions/xxx-xxx-xxx/resourceGroups/AzMigratePWSHtargetRG" -TargetNetworkId "/subscriptions/xxx-xxx-xxx/resourceGroups/AzMigratePWSHtargetRG/providers/Microsoft.Network/virtualNetworks/AzMigrateTargetNetwork" -TargetSubnetName default -TargetVMName "prsadhu-TestVM" -DiskToInclude $DisksToInclude -PerformAutoResync true .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -58,7 +58,7 @@ VMTAG : Specifies the tag to be used https://learn.microsoft.com/powershell/module/az.migrate/new-azmigrateserverreplication #> function New-AzMigrateServerReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIdDefaultUser', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -172,21 +172,21 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags] # Specifies the tag to be used for VM creation. # To construct, see NOTES section for VMTAG properties and create a hash table. ${VMTag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags] # Specifies the tag to be used for NIC creation. # To construct, see NOTES section for NICTAG properties and create a hash table. ${NicTag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags] # Specifies the tag to be used for disk creation. # To construct, see NOTES section for DISKTAG properties and create a hash table. ${DiskTag}, @@ -220,7 +220,7 @@ param( [Parameter(ParameterSetName='ByIdPowerUser', Mandatory)] [Parameter(ParameterSetName='ByInputObjectPowerUser', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput[]] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput[]] # Specifies the disks on the source server to be included for replication. # To construct, see NOTES section for DISKTOINCLUDE properties and create a hash table. ${DiskToInclude}, @@ -291,7 +291,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/New-AzMigrateTestNicMapping.ps1 b/src/Migrate/exports/New-AzMigrateTestNicMapping.ps1 index 9c33463ce23e..ae59b715201d 100644 --- a/src/Migrate/exports/New-AzMigrateTestNicMapping.ps1 +++ b/src/Migrate/exports/New-AzMigrateTestNicMapping.ps1 @@ -24,12 +24,12 @@ This object is provided as an input to the Start-AzMigrateTestMigration cmdlet t New-AzMigrateTestNicMapping -NicID a2399354-653a-464e-a567-d30ef5467a31 -TestNicSubnet subnet1 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput .Link https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratetestnicmapping #> function New-AzMigrateTestNicMapping { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput])] [CmdletBinding(DefaultParameterSetName='VMwareCbt', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -54,7 +54,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/ProxyCmdletDefinitions.ps1 b/src/Migrate/exports/ProxyCmdletDefinitions.ps1 index 0427d3076796..869ada34eed0 100644 --- a/src/Migrate/exports/ProxyCmdletDefinitions.ps1 +++ b/src/Migrate/exports/ProxyCmdletDefinitions.ps1 @@ -56,7 +56,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -108,7 +109,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -187,12 +188,12 @@ Get-AzMigrateReplicationFabric -ResourceGroupName azmigratepwshtestasr13072020 - Get-AzMigrateReplicationFabric -ResourceGroupName azmigratepwshtestasr13072020 -ResourceName AzMigrateTestProjectPWSH02aarsvault .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationfabric #> function Get-AzMigrateReplicationFabric { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -231,7 +232,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -283,7 +285,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -363,12 +365,12 @@ Get-AzMigrateReplicationPolicy -ResourceGroupName azmigratepwshtestasr13072020 - Get-AzMigrateReplicationPolicy -ResourceGroupName azmigratepwshtestasr13072020 -ResourceName AzMigrateTestProjectPWSH02aarsvault -PolicyName migrateAzMigratePWSHTc8d1sitepolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationpolicy #> function Get-AzMigrateReplicationPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -401,7 +403,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -453,7 +456,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -531,12 +534,12 @@ Gets the details of a protection container mapping. Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName azmigratepwshtestasr13072020 -ResourceName AzMigrateTestProjectPWSH02aarsvault -FabricName AzMigratePWSHTc8d1replicationfabric -ProtectionContainerName AzMigratePWSHTc8d1replicationcontainer -MappingName "containermapping" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationprotectioncontainermapping #> function Get-AzMigrateReplicationProtectionContainerMapping { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -583,7 +586,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -635,7 +639,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -716,12 +720,12 @@ Get-AzMigrateReplicationProtectionContainer -ResourceGroupName azmigratepwshtest Get-AzMigrateReplicationProtectionContainer -ResourceGroupName azmigratepwshtestasr13072020 -ResourceName AzMigrateTestProjectPWSH02aarsvault -FabricName AzMigratePWSHTc8d1replicationfabric -ProtectionContainerName AzMigratePWSHTc8d1replicationcontainer .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationprotectioncontainer #> function Get-AzMigrateReplicationProtectionContainer { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -761,7 +765,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -813,7 +818,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -892,12 +897,12 @@ Gets the details of registered recovery services provider. Get-AzMigrateReplicationRecoveryServicesProvider -ResourceGroupName azmigratepwshtestasr13072020 -ResourceName AzMigrateTestProjectPWSH02aarsvault .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationrecoveryservicesprovider #> function Get-AzMigrateReplicationRecoveryServicesProvider { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -936,7 +941,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -988,7 +994,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1107,7 +1113,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1159,7 +1166,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1271,7 +1278,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1323,7 +1331,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1439,7 +1447,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1491,7 +1500,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1573,7 +1582,7 @@ $providerSpecificPolicy.CrashConsistentFrequencyInMinute = 60 New-AzMigrateReplicationPolicy -PolicyName TestPolicy -ResourceGroupName ResourceGroup -ResourceName VaultName -SubscriptionId SubscriptionId -ProviderSpecificInput $providerSpecificPolicy .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -1585,7 +1594,7 @@ PROVIDERSPECIFICINPUT : The ReplicationProviderSet https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratereplicationpolicy #> function New-AzMigrateReplicationPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1615,7 +1624,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput] # The ReplicationProviderSettings. # To construct, see NOTES section for PROVIDERSPECIFICINPUT properties and create a hash table. ${ProviderSpecificInput}, @@ -1625,7 +1634,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1689,7 +1699,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1775,7 +1785,7 @@ $providerSpecificInput.TargetLocation = "centraluseuap" New-AzMigrateReplicationProtectionContainerMapping -FabricName "AzMigratePWSHTc8d1replicationfabric" -MappingName "containermapping" -ProtectionContainerName "AzMigratePWSHTc8d1replicationcontainer" -ResourceGroupName "azmigratepwshtestasr13072020" -ResourceName "AzMigrateTestProjectPWSH02aarsvault" -PolicyId "/subscriptionsxxx-xxx-xxx/resourceGroups/azmigratepwshtestasr13072020/providers/Microsoft.RecoveryServices/vaults/AzMigrateTestProjectPWSH02aarsvault/replicationPolicies/migrateAzMigratePWSHTc8d1sitepolicy" -ProviderSpecificInput $providerSpecificInput -TargetProtectionContainerId "Microsoft Azure" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping .Notes COMPLEX PARAMETER PROPERTIES @@ -1787,7 +1797,7 @@ PROVIDERSPECIFICINPUT : Provi https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratereplicationprotectioncontainermapping #> function New-AzMigrateReplicationProtectionContainerMapping { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1835,7 +1845,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput] # Provider specific input for pairing. # To construct, see NOTES section for PROVIDERSPECIFICINPUT properties and create a hash table. ${ProviderSpecificInput}, @@ -1851,7 +1861,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1915,7 +1926,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2037,7 +2048,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2089,7 +2101,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2208,7 +2220,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2266,7 +2279,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2414,7 +2427,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2498,7 +2511,7 @@ Get-AzMigrateJob -ResourceGroupName 'azmigratepwshtestasr13072020' -ProjectName Get-AzMigrateJob -ResourceGroupName 'azmigratepwshtestasr13072020' -ProjectName 'AzMigrateTestProjectPWSH' -JobName 7ae1ee7c-442c-499d-8b0e-81d52a42b71e .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -2552,7 +2565,7 @@ INPUTOBJECT : Specifies the job object of the replicating server. https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratejob #> function Get-AzMigrateJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ListByName', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ListByName', Mandatory)] @@ -2590,7 +2603,7 @@ param( [Parameter(ParameterSetName='GetByInputObject', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob] # Specifies the job object of the replicating server. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, @@ -2671,7 +2684,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2756,7 +2769,7 @@ Get-AzMigrateServerReplication -ResourceGroupID /Subscriptions/xxx-xxx-xxx/resou Get-AzMigrateServerReplication -ResourceGroupName azmigratepwshtestasr13072020 -ProjectName AzMigrateTestProjectPWSH .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Notes COMPLEX PARAMETER PROPERTIES @@ -2770,7 +2783,7 @@ INPUTOBJECT : Specifies the machine object of the replicating se https://learn.microsoft.com/powershell/module/az.migrate/get-azmigrateserverreplication #> function Get-AzMigrateServerReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='ListByName', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ListByName', Mandatory)] @@ -2814,7 +2827,7 @@ param( [Parameter(ParameterSetName='GetByInputObject', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the machine object of the replicating server. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, @@ -2902,7 +2915,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3092,7 +3105,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3169,12 +3182,12 @@ The New-AzMigrateDiskMapping cmdlet creates a mapping of the source disk attache New-AzMigrateDiskMapping -DiskID a -DiskType Standard -IsOSDisk 'true' .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput .Link https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratediskmapping #> function New-AzMigrateDiskMapping { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput])] [CmdletBinding(DefaultParameterSetName='VMwareCbt', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -3213,7 +3226,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3288,12 +3301,12 @@ This object is provided as an input to the Set-AzMigrateServerReplication cmdlet New-AzMigrateNicMapping -NicID a2399354-653a-464e-a567-d30ef5467a31 -TargetNicSelectionType primary -TargetNicIP "172.17.1.17" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput .Link https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratenicmapping #> function New-AzMigrateNicMapping { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput])] [CmdletBinding(DefaultParameterSetName='VMwareCbt', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -3349,7 +3362,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3484,7 +3497,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3567,7 +3580,7 @@ $DisksToInclude += $DataDisk New-AzMigrateServerReplication -MachineId "/subscriptions/xxx-xxx-xxx/resourceGroups/azmigratepwshtestasr13072020/providers/Microsoft.OffAzure/VMwareSites/AzMigratePWSHTc8d1site/machines/bcdr-vcenter-fareast-corp-micro-cfcc5a24-a40e-56b9-a6af-e206c9ca4f93_50063baa-9806-d6d6-7e09-c0ae87309b4f" -LicenseType NoLicenseType -TargetResourceGroupId "/subscriptions/xxx-xxx-xxx/resourceGroups/AzMigratePWSHtargetRG" -TargetNetworkId "/subscriptions/xxx-xxx-xxx/resourceGroups/AzMigratePWSHtargetRG/providers/Microsoft.Network/virtualNetworks/AzMigrateTargetNetwork" -TargetSubnetName default -TargetVMName "prsadhu-TestVM" -DiskToInclude $DisksToInclude -PerformAutoResync true .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -3596,7 +3609,7 @@ VMTAG : Specifies the tag to be used https://learn.microsoft.com/powershell/module/az.migrate/new-azmigrateserverreplication #> function New-AzMigrateServerReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIdDefaultUser', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -3710,21 +3723,21 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags] # Specifies the tag to be used for VM creation. # To construct, see NOTES section for VMTAG properties and create a hash table. ${VMTag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags] # Specifies the tag to be used for NIC creation. # To construct, see NOTES section for NICTAG properties and create a hash table. ${NicTag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags] # Specifies the tag to be used for disk creation. # To construct, see NOTES section for DISKTAG properties and create a hash table. ${DiskTag}, @@ -3758,7 +3771,7 @@ param( [Parameter(ParameterSetName='ByIdPowerUser', Mandatory)] [Parameter(ParameterSetName='ByInputObjectPowerUser', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput[]] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput[]] # Specifies the disks on the source server to be included for replication. # To construct, see NOTES section for DISKTOINCLUDE properties and create a hash table. ${DiskToInclude}, @@ -3829,7 +3842,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3910,12 +3923,12 @@ This object is provided as an input to the Start-AzMigrateTestMigration cmdlet t New-AzMigrateTestNicMapping -NicID a2399354-653a-464e-a567-d30ef5467a31 -TestNicSubnet subnet1 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput .Link https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratetestnicmapping #> function New-AzMigrateTestNicMapping { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput])] [CmdletBinding(DefaultParameterSetName='VMwareCbt', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -3940,7 +3953,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4017,7 +4030,7 @@ $obj = Get-AzMigrateServerReplication -TargetObjectID "/Subscriptions/xxx-xxx-xx Remove-AzMigrateServerReplication -InputObject $obj .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -4031,7 +4044,7 @@ INPUTOBJECT : Specifies the machine object of the replicating se https://learn.microsoft.com/powershell/module/az.migrate/remove-azmigrateserverreplication #> function Remove-AzMigrateServerReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ByIDVMwareCbt', Mandatory)] @@ -4050,7 +4063,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the machine object of the replicating server. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, @@ -4118,7 +4131,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4199,7 +4212,7 @@ $obj = Get-AzMigrateServerReplication -TargetObjectID "/Subscriptions/xxx-xxx-xx $output = Restart-AzMigrateServerReplication -InputObject $obj .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -4213,7 +4226,7 @@ INPUTOBJECT : Specifies the machine object of the replicating se https://learn.microsoft.com/powershell/module/az.migrate/restart-azmigrateserverreplication #> function Restart-AzMigrateServerReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ByIDVMwareCbt', Mandatory)] @@ -4232,7 +4245,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the machine object of the replicating server. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, @@ -4294,7 +4307,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4375,7 +4388,7 @@ $obj = Get-AzMigrateServerReplication -ProjectName "signoffccyproj" -ResourceGro Resume-AzMigrateServerReplication -InputObject $obj .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -4389,7 +4402,7 @@ INPUTOBJECT : Specifies the replicating server for which the res https://learn.microsoft.com/powershell/module/az.migrate/resume-azmigrateserverreplication #> function Resume-AzMigrateServerReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='ByIDVMwareCbt', Mandatory)] @@ -4414,7 +4427,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the resume replication needs to be initiated. # The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. @@ -4483,7 +4496,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4561,12 +4574,12 @@ The Set-AzMigrateDiskMapping cmdlet updates a mapping of the source disk attache Set-AzMigrateDiskMapping -DiskID "6000C294-1217-dec3-bc18-81f117220424" -DiskName "ContosoDisk_1" -IsOSDisk "True" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput .Link https://learn.microsoft.com/powershell/module/az.migrate/set-azmigratediskmapping #> function Set-AzMigrateDiskMapping { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput])] [CmdletBinding(DefaultParameterSetName='VMwareCbt', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -4598,7 +4611,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4677,7 +4690,7 @@ $DiskMapping = $OSDisk, $DataDisk Set-AzMigrateServerReplication -TargetObjectId "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2105srcrg/providers/Microsoft.RecoveryServices/vaults/signoff2105app1452vault/replicationFabrics/signoff2105app1c36replicationfabric/replicationProtectionContainers/signoff2105app1c36replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-6f5e3b29-29ad-4e62-abbd-6cd33c4183ef_5015f6d8-fc84-afdf-de47-1eab79330f00" -DiskToUpdate $DiskMapping .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -4715,7 +4728,7 @@ UPDATEVMTAG : Specifies the tag to b https://learn.microsoft.com/powershell/module/az.migrate/set-azmigrateserverreplication #> function Set-AzMigrateServerReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ByIDVMwareCbt', Mandatory)] @@ -4764,14 +4777,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[]] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[]] # Updates the NIC for the Azure VM to be created. # To construct, see NOTES section for NICTOUPDATE properties and create a hash table. ${NicToUpdate}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput[]] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput[]] # Updates the disk for the Azure VM to be created. # To construct, see NOTES section for DISKTOUPDATE properties and create a hash table. ${DiskToUpdate}, @@ -4810,7 +4823,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags] # Specifies the tag to be used for VM creation. # To construct, see NOTES section for UPDATEVMTAG properties and create a hash table. ${UpdateVMTag}, @@ -4824,7 +4837,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags] # Specifies the tag to be used for NIC creation. # To construct, see NOTES section for UPDATENICTAG properties and create a hash table. ${UpdateNicTag}, @@ -4838,7 +4851,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags] # Specifies the tag to be used for disk creation. # To construct, see NOTES section for UPDATEDISKTAG properties and create a hash table. ${UpdateDiskTag}, @@ -4865,7 +4878,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the properties need to be updated. # The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. @@ -4928,7 +4941,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -5006,7 +5019,7 @@ Starts the migration for the replicating server. Start-AzMigrateServerMigration -TargetObjectID "/Subscriptions/7xxx-xxx-xxx/resourceGroups/azmigratepwshtestasr13072020/providers/Microsoft.RecoveryServices/vaults/AzMigrateTestProjectPWSH02aarsvault/replicationFabrics/AzMigratePWSHTc8d1replicationfabric/replicationProtectionContainers/AzMigratePWSHTc8d1replicationcontainer/replicationMigrationItems/bcdr-vcenter-fareast-corp-micro-cfcc5a24-a40e-56b9-a6af-e206c9ca4f93_52f42ee7-8eb3-1aa4-e2d5-1ae83f86b085" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -5020,7 +5033,7 @@ INPUTOBJECT : Specifies the replicating server for which migrati https://learn.microsoft.com/powershell/module/az.migrate/start-azmigrateservermigration #> function Start-AzMigrateServerMigration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ByIDVMwareCbt', Mandatory)] @@ -5030,6 +5043,13 @@ param( # The ID should be retrieved using the Get-AzMigrateServerReplication cmdlet. ${TargetObjectID}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] + [System.String] + # Specifies the target version to which the Os has to be upgraded to. + # The valid values can be selected from SupportedOSVersions retrieved using Get-AzMigrateServerReplication cmdlet. + ${OsUpgradeVersion}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.Management.Automation.SwitchParameter] @@ -5045,7 +5065,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which migration needs to be initiated. # The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. @@ -5108,7 +5128,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -5189,7 +5209,7 @@ $obj = Get-AzMigrateServerReplication -TargetObjectID $env.srsMachineId -Subscri Start-AzMigrateTestMigration -InputObject $obj -TestNetworkId '/subscriptions/xxx-xxx-xxx/resourceGroups/AzMigratePWSHtargetRG/providers/Microsoft.Network/virtualNetworks/AzMigrateTargetNetwork' .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -5213,7 +5233,7 @@ NICTOUPDATE : Updates the NIC for the Azure VM to be creat https://learn.microsoft.com/powershell/module/az.migrate/start-azmigratetestmigration #> function Start-AzMigrateTestMigration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -5231,7 +5251,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[]] + [System.String] + # Specifies the target version to which the Os has to be upgraded to. + # The valid values can be selected from SupportedOSVersions retrieved using Get-AzMigrateServerReplication cmdlet. + ${OsUpgradeVersion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[]] # Updates the NIC for the Azure VM to be created. # To construct, see NOTES section for NICTOUPDATE properties and create a hash table. ${NicToUpdate}, @@ -5245,7 +5272,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the test migration needs to be initiated. # The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. @@ -5308,7 +5335,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -5389,7 +5416,7 @@ $obj = Get-AzMigrateServerReplication -TargetObjectID $env.srsMachineId -Subscri Start-AzMigrateTestMigrationCleanup -InputObject $ob .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -5403,7 +5430,7 @@ INPUTOBJECT : Specifies the replicating server for which the tes https://learn.microsoft.com/powershell/module/az.migrate/start-azmigratetestmigrationcleanup #> function Start-AzMigrateTestMigrationCleanup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ByIDVMwareCbt', Mandatory)] @@ -5422,7 +5449,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the test migration cleanup needs to be initiated. # The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. @@ -5485,7 +5512,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -5566,7 +5593,7 @@ $obj = Get-AzMigrateServerReplication -ProjectName "signoffccyproj" -ResourceGro Suspend-AzMigrateServerReplication -InputObject $obj .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -5580,7 +5607,7 @@ INPUTOBJECT : Specifies the replicating server for which the sus https://learn.microsoft.com/powershell/module/az.migrate/suspend-azmigrateserverreplication #> function Suspend-AzMigrateServerReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='ByIDVMwareCbt', Mandatory)] @@ -5599,7 +5626,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the suspend replication needs to be initiated. # The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. @@ -5662,7 +5689,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Register-AzMigrateProjectTool.ps1 b/src/Migrate/exports/Register-AzMigrateProjectTool.ps1 index b17a0989b226..a32eb8044772 100644 --- a/src/Migrate/exports/Register-AzMigrateProjectTool.ps1 +++ b/src/Migrate/exports/Register-AzMigrateProjectTool.ps1 @@ -68,7 +68,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -120,7 +121,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Remove-AzMigrateProject.ps1 b/src/Migrate/exports/Remove-AzMigrateProject.ps1 index c9dfbf2255b2..6b13611847f9 100644 --- a/src/Migrate/exports/Remove-AzMigrateProject.ps1 +++ b/src/Migrate/exports/Remove-AzMigrateProject.ps1 @@ -65,7 +65,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -123,7 +124,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Remove-AzMigrateServerReplication.ps1 b/src/Migrate/exports/Remove-AzMigrateServerReplication.ps1 index b9783145e420..642d714d2099 100644 --- a/src/Migrate/exports/Remove-AzMigrateServerReplication.ps1 +++ b/src/Migrate/exports/Remove-AzMigrateServerReplication.ps1 @@ -26,7 +26,7 @@ $obj = Get-AzMigrateServerReplication -TargetObjectID "/Subscriptions/xxx-xxx-xx Remove-AzMigrateServerReplication -InputObject $obj .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -40,7 +40,7 @@ INPUTOBJECT : Specifies the machine object of the replicating se https://learn.microsoft.com/powershell/module/az.migrate/remove-azmigrateserverreplication #> function Remove-AzMigrateServerReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ByIDVMwareCbt', Mandatory)] @@ -59,7 +59,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the machine object of the replicating server. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, @@ -127,7 +127,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Restart-AzMigrateServerReplication.ps1 b/src/Migrate/exports/Restart-AzMigrateServerReplication.ps1 index 1a91d68fb954..449663826ac7 100644 --- a/src/Migrate/exports/Restart-AzMigrateServerReplication.ps1 +++ b/src/Migrate/exports/Restart-AzMigrateServerReplication.ps1 @@ -26,7 +26,7 @@ $obj = Get-AzMigrateServerReplication -TargetObjectID "/Subscriptions/xxx-xxx-xx $output = Restart-AzMigrateServerReplication -InputObject $obj .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -40,7 +40,7 @@ INPUTOBJECT : Specifies the machine object of the replicating se https://learn.microsoft.com/powershell/module/az.migrate/restart-azmigrateserverreplication #> function Restart-AzMigrateServerReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ByIDVMwareCbt', Mandatory)] @@ -59,7 +59,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the machine object of the replicating server. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, @@ -121,7 +121,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Resume-AzMigrateServerReplication.ps1 b/src/Migrate/exports/Resume-AzMigrateServerReplication.ps1 index fd683a9ba5f7..92d23cb7dc33 100644 --- a/src/Migrate/exports/Resume-AzMigrateServerReplication.ps1 +++ b/src/Migrate/exports/Resume-AzMigrateServerReplication.ps1 @@ -26,7 +26,7 @@ $obj = Get-AzMigrateServerReplication -ProjectName "signoffccyproj" -ResourceGro Resume-AzMigrateServerReplication -InputObject $obj .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -40,7 +40,7 @@ INPUTOBJECT : Specifies the replicating server for which the res https://learn.microsoft.com/powershell/module/az.migrate/resume-azmigrateserverreplication #> function Resume-AzMigrateServerReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='ByIDVMwareCbt', Mandatory)] @@ -65,7 +65,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the resume replication needs to be initiated. # The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. @@ -134,7 +134,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Set-AzMigrateDiskMapping.ps1 b/src/Migrate/exports/Set-AzMigrateDiskMapping.ps1 index f281a8dcf176..1561b47a7d7a 100644 --- a/src/Migrate/exports/Set-AzMigrateDiskMapping.ps1 +++ b/src/Migrate/exports/Set-AzMigrateDiskMapping.ps1 @@ -23,12 +23,12 @@ The Set-AzMigrateDiskMapping cmdlet updates a mapping of the source disk attache Set-AzMigrateDiskMapping -DiskID "6000C294-1217-dec3-bc18-81f117220424" -DiskName "ContosoDisk_1" -IsOSDisk "True" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput .Link https://learn.microsoft.com/powershell/module/az.migrate/set-azmigratediskmapping #> function Set-AzMigrateDiskMapping { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput])] [CmdletBinding(DefaultParameterSetName='VMwareCbt', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -60,7 +60,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Set-AzMigrateServerReplication.ps1 b/src/Migrate/exports/Set-AzMigrateServerReplication.ps1 index f4152bb3f554..39563ccec279 100644 --- a/src/Migrate/exports/Set-AzMigrateServerReplication.ps1 +++ b/src/Migrate/exports/Set-AzMigrateServerReplication.ps1 @@ -28,7 +28,7 @@ $DiskMapping = $OSDisk, $DataDisk Set-AzMigrateServerReplication -TargetObjectId "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2105srcrg/providers/Microsoft.RecoveryServices/vaults/signoff2105app1452vault/replicationFabrics/signoff2105app1c36replicationfabric/replicationProtectionContainers/signoff2105app1c36replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-6f5e3b29-29ad-4e62-abbd-6cd33c4183ef_5015f6d8-fc84-afdf-de47-1eab79330f00" -DiskToUpdate $DiskMapping .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -66,7 +66,7 @@ UPDATEVMTAG : Specifies the tag to b https://learn.microsoft.com/powershell/module/az.migrate/set-azmigrateserverreplication #> function Set-AzMigrateServerReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ByIDVMwareCbt', Mandatory)] @@ -115,14 +115,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[]] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[]] # Updates the NIC for the Azure VM to be created. # To construct, see NOTES section for NICTOUPDATE properties and create a hash table. ${NicToUpdate}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput[]] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput[]] # Updates the disk for the Azure VM to be created. # To construct, see NOTES section for DISKTOUPDATE properties and create a hash table. ${DiskToUpdate}, @@ -161,7 +161,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags] # Specifies the tag to be used for VM creation. # To construct, see NOTES section for UPDATEVMTAG properties and create a hash table. ${UpdateVMTag}, @@ -175,7 +175,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags] # Specifies the tag to be used for NIC creation. # To construct, see NOTES section for UPDATENICTAG properties and create a hash table. ${UpdateNicTag}, @@ -189,7 +189,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags] # Specifies the tag to be used for disk creation. # To construct, see NOTES section for UPDATEDISKTAG properties and create a hash table. ${UpdateDiskTag}, @@ -216,7 +216,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the properties need to be updated. # The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. @@ -279,7 +279,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Start-AzMigrateServerMigration.ps1 b/src/Migrate/exports/Start-AzMigrateServerMigration.ps1 index ca8524142b01..3bb401e6ebd3 100644 --- a/src/Migrate/exports/Start-AzMigrateServerMigration.ps1 +++ b/src/Migrate/exports/Start-AzMigrateServerMigration.ps1 @@ -23,7 +23,7 @@ Starts the migration for the replicating server. Start-AzMigrateServerMigration -TargetObjectID "/Subscriptions/7xxx-xxx-xxx/resourceGroups/azmigratepwshtestasr13072020/providers/Microsoft.RecoveryServices/vaults/AzMigrateTestProjectPWSH02aarsvault/replicationFabrics/AzMigratePWSHTc8d1replicationfabric/replicationProtectionContainers/AzMigratePWSHTc8d1replicationcontainer/replicationMigrationItems/bcdr-vcenter-fareast-corp-micro-cfcc5a24-a40e-56b9-a6af-e206c9ca4f93_52f42ee7-8eb3-1aa4-e2d5-1ae83f86b085" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -37,7 +37,7 @@ INPUTOBJECT : Specifies the replicating server for which migrati https://learn.microsoft.com/powershell/module/az.migrate/start-azmigrateservermigration #> function Start-AzMigrateServerMigration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ByIDVMwareCbt', Mandatory)] @@ -47,6 +47,13 @@ param( # The ID should be retrieved using the Get-AzMigrateServerReplication cmdlet. ${TargetObjectID}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] + [System.String] + # Specifies the target version to which the Os has to be upgraded to. + # The valid values can be selected from SupportedOSVersions retrieved using Get-AzMigrateServerReplication cmdlet. + ${OsUpgradeVersion}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] [System.Management.Automation.SwitchParameter] @@ -62,7 +69,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which migration needs to be initiated. # The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. @@ -125,7 +132,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Start-AzMigrateTestMigration.ps1 b/src/Migrate/exports/Start-AzMigrateTestMigration.ps1 index 25f2cbb752f4..67eec38d61c2 100644 --- a/src/Migrate/exports/Start-AzMigrateTestMigration.ps1 +++ b/src/Migrate/exports/Start-AzMigrateTestMigration.ps1 @@ -26,7 +26,7 @@ $obj = Get-AzMigrateServerReplication -TargetObjectID $env.srsMachineId -Subscri Start-AzMigrateTestMigration -InputObject $obj -TestNetworkId '/subscriptions/xxx-xxx-xxx/resourceGroups/AzMigratePWSHtargetRG/providers/Microsoft.Network/virtualNetworks/AzMigrateTargetNetwork' .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -50,7 +50,7 @@ NICTOUPDATE : Updates the NIC for the Azure VM to be creat https://learn.microsoft.com/powershell/module/az.migrate/start-azmigratetestmigration #> function Start-AzMigrateTestMigration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -68,7 +68,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[]] + [System.String] + # Specifies the target version to which the Os has to be upgraded to. + # The valid values can be selected from SupportedOSVersions retrieved using Get-AzMigrateServerReplication cmdlet. + ${OsUpgradeVersion}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[]] # Updates the NIC for the Azure VM to be created. # To construct, see NOTES section for NICTOUPDATE properties and create a hash table. ${NicToUpdate}, @@ -82,7 +89,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the test migration needs to be initiated. # The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet. # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. @@ -145,7 +152,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Start-AzMigrateTestMigrationCleanup.ps1 b/src/Migrate/exports/Start-AzMigrateTestMigrationCleanup.ps1 index 78320169da00..9f882e5c1c3f 100644 --- a/src/Migrate/exports/Start-AzMigrateTestMigrationCleanup.ps1 +++ b/src/Migrate/exports/Start-AzMigrateTestMigrationCleanup.ps1 @@ -26,7 +26,7 @@ $obj = Get-AzMigrateServerReplication -TargetObjectID $env.srsMachineId -Subscri Start-AzMigrateTestMigrationCleanup -InputObject $ob .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -40,7 +40,7 @@ INPUTOBJECT : Specifies the replicating server for which the tes https://learn.microsoft.com/powershell/module/az.migrate/start-azmigratetestmigrationcleanup #> function Start-AzMigrateTestMigrationCleanup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false)] param( [Parameter(ParameterSetName='ByIDVMwareCbt', Mandatory)] @@ -59,7 +59,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the test migration cleanup needs to be initiated. # The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. @@ -122,7 +122,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/exports/Suspend-AzMigrateServerReplication.ps1 b/src/Migrate/exports/Suspend-AzMigrateServerReplication.ps1 index 8686f3c39b21..e1fccdab89a0 100644 --- a/src/Migrate/exports/Suspend-AzMigrateServerReplication.ps1 +++ b/src/Migrate/exports/Suspend-AzMigrateServerReplication.ps1 @@ -26,7 +26,7 @@ $obj = Get-AzMigrateServerReplication -ProjectName "signoffccyproj" -ResourceGro Suspend-AzMigrateServerReplication -InputObject $obj .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Notes COMPLEX PARAMETER PROPERTIES @@ -40,7 +40,7 @@ INPUTOBJECT : Specifies the replicating server for which the sus https://learn.microsoft.com/powershell/module/az.migrate/suspend-azmigrateserverreplication #> function Suspend-AzMigrateServerReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='ByIDVMwareCbt', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='ByIDVMwareCbt', Mandatory)] @@ -59,7 +59,7 @@ param( [Parameter(ParameterSetName='ByInputObjectVMwareCbt', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem] # Specifies the replicating server for which the suspend replication needs to be initiated. # The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. @@ -122,7 +122,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/Migrate/generate-info.json b/src/Migrate/generate-info.json index 1fda8394a1c3..4e6c506956d4 100644 --- a/src/Migrate/generate-info.json +++ b/src/Migrate/generate-info.json @@ -1,8 +1,8 @@ { - "swagger_commit": "9685ef961fe7931fccdd9bf86afac8bca0b3ae88", + "swagger_commit": "dd6fbdd48ed2baf0f6d8c81148a0bf9f66580c15", "node": "v14.15.5", "autorest": "`-- (empty)", - "autorest_core": "3.9.3", + "autorest_core": "3.9.6", "autorest_modelerfour": "4.15.414", - "autorest_powershell": "3.0.497" + "autorest_powershell": "3.0.504" } diff --git a/src/Migrate/generated/api/Migrate.cs b/src/Migrate/generated/api/Migrate.cs index 9647212c9389..f4d64460b947 100644 --- a/src/Migrate/generated/api/Migrate.cs +++ b/src/Migrate/generated/api/Migrate.cs @@ -1432,7 +1432,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.Accepted: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.497\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); + await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.504\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); break; } default: @@ -1945,7 +1945,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.Accepted: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.497\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); + await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.504\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); break; } default: @@ -4443,7 +4443,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.Accepted: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.497\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); + await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.504\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); break; } default: @@ -5815,7 +5815,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.Accepted: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.497\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); + await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.504\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); break; } default: @@ -5983,7 +5983,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.Accepted: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.497\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); + await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.504\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); break; } default: @@ -7122,9 +7122,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationRecoveryPointsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, string migrationRecoveryPointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationRecoveryPointsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, string migrationRecoveryPointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7169,9 +7169,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationRecoveryPointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationRecoveryPointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7232,7 +7232,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MigrationRecoveryPointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task MigrationRecoveryPointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7250,7 +7250,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -7311,9 +7311,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationRecoveryPointsListByReplicationMigrationItems(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationRecoveryPointsListByReplicationMigrationItems(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7357,9 +7357,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationRecoveryPointsListByReplicationMigrationItemsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationRecoveryPointsListByReplicationMigrationItemsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7420,7 +7420,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MigrationRecoveryPointsListByReplicationMigrationItems_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task MigrationRecoveryPointsListByReplicationMigrationItems_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7438,7 +7438,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPointCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPointCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -7618,9 +7618,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsList2(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsList2(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7656,9 +7656,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsList2ViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsList2ViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7705,7 +7705,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationsList2_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsList2_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7723,7 +7723,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OperationsDiscoveryCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OperationsDiscoveryCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -7879,9 +7879,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RecoveryPointsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RecoveryPointsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, string recoveryPointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7926,9 +7926,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RecoveryPointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RecoveryPointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7989,7 +7989,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RecoveryPointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task RecoveryPointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8007,7 +8007,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -8068,9 +8068,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RecoveryPointsListByReplicationProtectedItems(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RecoveryPointsListByReplicationProtectedItems(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8114,9 +8114,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RecoveryPointsListByReplicationProtectedItemsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task RecoveryPointsListByReplicationProtectedItemsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8177,7 +8177,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RecoveryPointsListByReplicationProtectedItems_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task RecoveryPointsListByReplicationProtectedItems_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8195,7 +8195,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPointCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPointCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -8253,9 +8253,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationAlertSettingsCreate(string resourceName, string resourceGroupName, string subscriptionId, string alertSettingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationAlertSettingsCreate(string resourceName, string resourceGroupName, string subscriptionId, string alertSettingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8299,9 +8299,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationAlertSettingsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationAlertSettingsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8357,7 +8357,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationAlertSettingsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationAlertSettingsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8375,7 +8375,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Alert.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Alert.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -8407,7 +8407,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationAlertSettingsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string alertSettingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequest body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationAlertSettingsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string alertSettingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequest body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -8431,9 +8431,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationAlertSettingsGet(string resourceName, string resourceGroupName, string subscriptionId, string alertSettingName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationAlertSettingsGet(string resourceName, string resourceGroupName, string subscriptionId, string alertSettingName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8472,9 +8472,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationAlertSettingsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationAlertSettingsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8526,7 +8526,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationAlertSettingsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationAlertSettingsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8544,7 +8544,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Alert.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Alert.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -8596,9 +8596,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationAlertSettingsList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationAlertSettingsList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8636,9 +8636,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationAlertSettingsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationAlertSettingsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8688,7 +8688,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationAlertSettingsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationAlertSettingsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8706,7 +8706,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AlertCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AlertCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -8757,9 +8757,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationAppliancesList(string resourceName, string resourceGroupName, string subscriptionId, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationAppliancesList(string resourceName, string resourceGroupName, string subscriptionId, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8800,9 +8800,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationAppliancesListViaIdentity(global::System.String viaIdentity, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationAppliancesListViaIdentity(global::System.String viaIdentity, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8854,7 +8854,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationAppliancesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationAppliancesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8872,7 +8872,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -8926,9 +8926,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationEligibilityResultsGet(string resourceGroupName, string subscriptionId, string virtualMachineName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationEligibilityResultsGet(string resourceGroupName, string subscriptionId, string virtualMachineName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8968,9 +8968,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationEligibilityResultsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationEligibilityResultsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9020,7 +9020,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationEligibilityResultsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationEligibilityResultsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9038,7 +9038,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResults.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResults.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -9090,9 +9090,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationEligibilityResultsList(string resourceGroupName, string subscriptionId, string virtualMachineName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationEligibilityResultsList(string resourceGroupName, string subscriptionId, string virtualMachineName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9132,9 +9132,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationEligibilityResultsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationEligibilityResultsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9184,7 +9184,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationEligibilityResultsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationEligibilityResultsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9202,7 +9202,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -9253,9 +9253,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationEventsGet(string resourceName, string resourceGroupName, string subscriptionId, string eventName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationEventsGet(string resourceName, string resourceGroupName, string subscriptionId, string eventName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9294,9 +9294,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationEventsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationEventsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9348,7 +9348,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationEventsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationEventsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9366,7 +9366,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Event.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Event.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -9419,9 +9419,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationEventsList(string resourceName, string resourceGroupName, string subscriptionId, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationEventsList(string resourceName, string resourceGroupName, string subscriptionId, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9462,9 +9462,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationEventsListViaIdentity(global::System.String viaIdentity, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationEventsListViaIdentity(global::System.String viaIdentity, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9516,7 +9516,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationEventsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationEventsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9534,7 +9534,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventCollectionAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventCollectionAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -9587,9 +9587,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationFabricsCheckConsistency(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationFabricsCheckConsistency(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9629,9 +9629,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationFabricsCheckConsistencyViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationFabricsCheckConsistencyViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9684,7 +9684,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationFabricsCheckConsistency_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationFabricsCheckConsistency_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9802,7 +9802,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Fabric.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Fabric.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -9856,9 +9856,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationFabricsCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationFabricsCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9902,9 +9902,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationFabricsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationFabricsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9960,7 +9960,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationFabricsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationFabricsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10077,7 +10077,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Fabric.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Fabric.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -10109,7 +10109,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationFabricsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationFabricsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -10135,7 +10135,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationFabricsDelete(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10177,7 +10177,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationFabricsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10402,9 +10402,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationFabricsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationFabricsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10446,9 +10446,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationFabricsGetViaIdentity(global::System.String viaIdentity, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationFabricsGetViaIdentity(global::System.String viaIdentity, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10502,7 +10502,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationFabricsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationFabricsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10520,7 +10520,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Fabric.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Fabric.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -10574,9 +10574,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationFabricsList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationFabricsList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10614,9 +10614,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationFabricsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationFabricsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10666,7 +10666,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationFabricsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationFabricsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10684,7 +10684,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -10737,7 +10737,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationFabricsMigrateToAad(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10779,7 +10779,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationFabricsMigrateToAadViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11005,7 +11005,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationFabricsPurge(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11046,7 +11046,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationFabricsPurgeViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11272,9 +11272,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationFabricsReassociateGateway(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationFabricsReassociateGateway(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11321,9 +11321,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationFabricsReassociateGatewayViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationFabricsReassociateGatewayViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11382,7 +11382,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationFabricsReassociateGateway_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationFabricsReassociateGateway_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11500,7 +11500,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Fabric.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Fabric.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -11532,7 +11532,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationFabricsReassociateGateway_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequest body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationFabricsReassociateGateway_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequest body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -11557,9 +11557,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationFabricsRenewCertificate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationFabricsRenewCertificate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11604,9 +11604,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationFabricsRenewCertificateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationFabricsRenewCertificateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11663,7 +11663,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationFabricsRenewCertificate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationFabricsRenewCertificate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11781,7 +11781,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Fabric.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Fabric.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -11813,7 +11813,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationFabricsRenewCertificate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationFabricsRenewCertificate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -11837,9 +11837,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationJobsCancel(string resourceName, string resourceGroupName, string subscriptionId, string jobName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationJobsCancel(string resourceName, string resourceGroupName, string subscriptionId, string jobName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11879,9 +11879,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationJobsCancelViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationJobsCancelViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11934,7 +11934,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationJobsCancel_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationJobsCancel_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12052,7 +12052,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Job.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Job.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -12107,9 +12107,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationJobsExport(string resourceName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationJobsExport(string resourceName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12154,9 +12154,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationJobsExportViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationJobsExportViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12210,7 +12210,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationJobsExport_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationJobsExport_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12328,7 +12328,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Job.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Job.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -12359,7 +12359,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationJobsExport_Validate(string resourceName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameter body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationJobsExport_Validate(string resourceName, string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameter body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -12382,9 +12382,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationJobsGet(string resourceName, string resourceGroupName, string subscriptionId, string jobName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationJobsGet(string resourceName, string resourceGroupName, string subscriptionId, string jobName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12423,9 +12423,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationJobsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationJobsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12477,7 +12477,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationJobsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationJobsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12495,7 +12495,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Job.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Job.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -12548,9 +12548,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationJobsList(string resourceName, string resourceGroupName, string subscriptionId, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationJobsList(string resourceName, string resourceGroupName, string subscriptionId, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12591,9 +12591,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationJobsListViaIdentity(global::System.String viaIdentity, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationJobsListViaIdentity(global::System.String viaIdentity, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12645,7 +12645,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationJobsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationJobsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12663,7 +12663,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -12716,9 +12716,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationJobsRestart(string resourceName, string resourceGroupName, string subscriptionId, string jobName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationJobsRestart(string resourceName, string resourceGroupName, string subscriptionId, string jobName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12758,9 +12758,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationJobsRestartViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationJobsRestartViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12813,7 +12813,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationJobsRestart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationJobsRestart_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12931,7 +12931,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Job.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Job.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -12985,9 +12985,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationJobsResume(string resourceName, string resourceGroupName, string subscriptionId, string jobName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParams body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationJobsResume(string resourceName, string resourceGroupName, string subscriptionId, string jobName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParams body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13032,9 +13032,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationJobsResumeViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParams body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationJobsResumeViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParams body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13091,7 +13091,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationJobsResume_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationJobsResume_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13209,7 +13209,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Job.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Job.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -13241,7 +13241,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationJobsResume_Validate(string resourceName, string resourceGroupName, string subscriptionId, string jobName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParams body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationJobsResume_Validate(string resourceName, string resourceGroupName, string subscriptionId, string jobName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParams body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -13266,9 +13266,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationLogicalNetworksGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string logicalNetworkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationLogicalNetworksGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string logicalNetworkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13309,9 +13309,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationLogicalNetworksGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationLogicalNetworksGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13366,7 +13366,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationLogicalNetworksGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationLogicalNetworksGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13384,7 +13384,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetwork.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetwork.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -13439,9 +13439,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationLogicalNetworksListByReplicationFabrics(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationLogicalNetworksListByReplicationFabrics(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13481,9 +13481,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationLogicalNetworksListByReplicationFabricsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationLogicalNetworksListByReplicationFabricsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13538,7 +13538,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationLogicalNetworksListByReplicationFabrics_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationLogicalNetworksListByReplicationFabrics_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13556,7 +13556,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetworkCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetworkCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -13612,9 +13612,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13662,9 +13662,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13726,7 +13726,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13843,7 +13843,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -13877,7 +13877,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -13908,7 +13908,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationMigrationItemsDelete(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, string deleteOption, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13956,7 +13956,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationMigrationItemsDeleteViaIdentity(global::System.String viaIdentity, string deleteOption, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14195,9 +14195,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14240,9 +14240,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14300,7 +14300,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14318,7 +14318,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -14377,9 +14377,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsList(string resourceName, string resourceGroupName, string subscriptionId, string skipToken, string takeToken, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsList(string resourceName, string resourceGroupName, string subscriptionId, string skipToken, string takeToken, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14430,9 +14430,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsListByReplicationProtectionContainers(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string skipToken, string takeToken, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsListByReplicationProtectionContainers(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string skipToken, string takeToken, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14483,9 +14483,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsListByReplicationProtectionContainersViaIdentity(global::System.String viaIdentity, string skipToken, string takeToken, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsListByReplicationProtectionContainersViaIdentity(global::System.String viaIdentity, string skipToken, string takeToken, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14549,7 +14549,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsListByReplicationProtectionContainers_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsListByReplicationProtectionContainers_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14567,7 +14567,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -14628,9 +14628,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsListViaIdentity(global::System.String viaIdentity, string skipToken, string takeToken, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsListViaIdentity(global::System.String viaIdentity, string skipToken, string takeToken, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14686,7 +14686,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14704,7 +14704,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -14764,9 +14764,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsMigrate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsMigrate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14815,9 +14815,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsMigrateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsMigrateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14880,7 +14880,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsMigrate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsMigrate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14998,7 +14998,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -15032,7 +15032,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsMigrate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsMigrate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -15061,9 +15061,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsPauseReplication(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsPauseReplication(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15112,9 +15112,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsPauseReplicationViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsPauseReplicationViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15179,7 +15179,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsPauseReplication_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsPauseReplication_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -15297,7 +15297,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -15331,7 +15331,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsPauseReplication_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsPauseReplication_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -15360,9 +15360,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsResumeReplication(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsResumeReplication(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15411,9 +15411,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsResumeReplicationViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsResumeReplicationViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15478,7 +15478,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsResumeReplication_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsResumeReplication_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -15596,7 +15596,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -15630,7 +15630,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsResumeReplication_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsResumeReplication_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -15659,9 +15659,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsResync(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsResync(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15710,9 +15710,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsResyncViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsResyncViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15775,7 +15775,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsResync_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsResync_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -15893,7 +15893,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -15927,7 +15927,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsResync_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsResync_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -15956,9 +15956,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16012,9 +16012,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrateCleanup(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrateCleanup(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16063,9 +16063,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrateCleanupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrateCleanupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16130,7 +16130,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrateCleanup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrateCleanup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -16248,7 +16248,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -16282,7 +16282,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrateCleanup_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrateCleanup_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -16306,9 +16306,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16373,7 +16373,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -16491,7 +16491,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -16525,7 +16525,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsTestMigrate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -16554,9 +16554,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsUpdate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsUpdate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16604,9 +16604,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationMigrationItemsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationMigrationItemsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16668,7 +16668,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -16785,7 +16785,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -16819,7 +16819,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsUpdate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationMigrationItemsUpdate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string migrationItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -16848,9 +16848,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, string networkMappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, string networkMappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16898,9 +16898,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16962,7 +16962,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationNetworkMappingsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationNetworkMappingsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -17079,7 +17079,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -17113,7 +17113,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationNetworkMappingsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, string networkMappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationNetworkMappingsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, string networkMappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -17143,7 +17143,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsDelete(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, string networkMappingName, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17188,7 +17188,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17423,9 +17423,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, string networkMappingName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, string networkMappingName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17468,9 +17468,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17528,7 +17528,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationNetworkMappingsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationNetworkMappingsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -17546,7 +17546,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -17602,9 +17602,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17646,9 +17646,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsListByReplicationNetworks(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsListByReplicationNetworks(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17690,9 +17690,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsListByReplicationNetworksViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsListByReplicationNetworksViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17750,7 +17750,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationNetworkMappingsListByReplicationNetworks_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationNetworkMappingsListByReplicationNetworks_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -17768,7 +17768,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -17820,9 +17820,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17872,7 +17872,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationNetworkMappingsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationNetworkMappingsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -17890,7 +17890,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -17944,9 +17944,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsUpdate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, string networkMappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsUpdate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, string networkMappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17994,9 +17994,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworkMappingsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18058,7 +18058,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationNetworkMappingsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationNetworkMappingsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -18175,7 +18175,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -18209,7 +18209,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationNetworkMappingsUpdate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, string networkMappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationNetworkMappingsUpdate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, string networkMappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -18236,9 +18236,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworksGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworksGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string networkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18279,9 +18279,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworksGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworksGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18336,7 +18336,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationNetworksGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationNetworksGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -18354,7 +18354,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Network.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Network.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -18408,9 +18408,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworksList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworksList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18451,9 +18451,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworksListByReplicationFabrics(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworksListByReplicationFabrics(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18493,9 +18493,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworksListByReplicationFabricsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworksListByReplicationFabricsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18550,7 +18550,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationNetworksListByReplicationFabrics_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationNetworksListByReplicationFabrics_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -18568,7 +18568,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -18618,9 +18618,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationNetworksListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationNetworksListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18670,7 +18670,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationNetworksList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationNetworksList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -18688,7 +18688,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -18740,9 +18740,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationPoliciesCreate(string resourceName, string resourceGroupName, string subscriptionId, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationPoliciesCreate(string resourceName, string resourceGroupName, string subscriptionId, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18786,9 +18786,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationPoliciesCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationPoliciesCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18844,7 +18844,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationPoliciesCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationPoliciesCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -18961,7 +18961,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Policy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Policy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -18993,7 +18993,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationPoliciesCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationPoliciesCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -19019,7 +19019,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationPoliciesDelete(string resourceName, string resourceGroupName, string subscriptionId, string policyName, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19060,7 +19060,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationPoliciesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19283,9 +19283,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationPoliciesGet(string resourceName, string resourceGroupName, string subscriptionId, string policyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationPoliciesGet(string resourceName, string resourceGroupName, string subscriptionId, string policyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19324,9 +19324,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationPoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationPoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19378,7 +19378,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationPoliciesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationPoliciesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -19396,7 +19396,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Policy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Policy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -19448,9 +19448,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationPoliciesList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationPoliciesList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19488,9 +19488,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationPoliciesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationPoliciesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19540,7 +19540,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationPoliciesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationPoliciesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -19558,7 +19558,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -19610,9 +19610,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationPoliciesUpdate(string resourceName, string resourceGroupName, string subscriptionId, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationPoliciesUpdate(string resourceName, string resourceGroupName, string subscriptionId, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19656,9 +19656,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationPoliciesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationPoliciesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19714,7 +19714,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationPoliciesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationPoliciesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -19831,7 +19831,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Policy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Policy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -19863,7 +19863,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationPoliciesUpdate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationPoliciesUpdate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string policyName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -19889,9 +19889,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectableItemsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string protectableItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectableItemsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string protectableItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19934,9 +19934,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectableItemsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectableItemsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19994,7 +19994,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectableItemsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectableItemsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -20012,7 +20012,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -20073,9 +20073,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectableItemsListByReplicationProtectionContainers(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string Filter, string Take, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectableItemsListByReplicationProtectionContainers(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string Filter, string Take, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20126,9 +20126,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectableItemsListByReplicationProtectionContainersViaIdentity(global::System.String viaIdentity, string Filter, string Take, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectableItemsListByReplicationProtectionContainersViaIdentity(global::System.String viaIdentity, string Filter, string Take, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20192,7 +20192,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectableItemsListByReplicationProtectionContainers_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectableItemsListByReplicationProtectionContainers_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -20210,7 +20210,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItemCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItemCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -20274,9 +20274,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsAddDisks(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsAddDisks(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20325,9 +20325,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsAddDisksViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsAddDisksViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20390,7 +20390,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsAddDisks_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsAddDisks_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -20508,7 +20508,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -20542,7 +20542,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsAddDisks_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsAddDisks_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -20573,9 +20573,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsApplyRecoveryPoint(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsApplyRecoveryPoint(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20626,9 +20626,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsApplyRecoveryPointViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsApplyRecoveryPointViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20693,7 +20693,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsApplyRecoveryPoint_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsApplyRecoveryPoint_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -20811,7 +20811,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -20845,7 +20845,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsApplyRecoveryPoint_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsApplyRecoveryPoint_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -20874,9 +20874,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20924,9 +20924,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20988,7 +20988,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -21105,7 +21105,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -21139,7 +21139,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -21170,9 +21170,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsDelete(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInput body, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsDelete(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInput body, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21223,9 +21223,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsDeleteViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInput body, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsDeleteViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInput body, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21440,7 +21440,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsDelete_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsDelete_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -21468,9 +21468,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsFailoverCancel(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsFailoverCancel(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21514,9 +21514,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsFailoverCancelViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsFailoverCancelViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21577,7 +21577,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsFailoverCancel_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsFailoverCancel_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -21695,7 +21695,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -21754,9 +21754,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsFailoverCommit(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsFailoverCommit(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21800,9 +21800,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsFailoverCommitViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsFailoverCommitViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21863,7 +21863,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsFailoverCommit_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsFailoverCommit_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -21981,7 +21981,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -22040,9 +22040,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22085,9 +22085,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22145,7 +22145,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -22163,7 +22163,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -22221,9 +22221,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsList(string resourceName, string resourceGroupName, string subscriptionId, string skipToken, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsList(string resourceName, string resourceGroupName, string subscriptionId, string skipToken, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22269,9 +22269,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsListByReplicationProtectionContainers(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsListByReplicationProtectionContainers(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22313,9 +22313,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsListByReplicationProtectionContainersViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsListByReplicationProtectionContainersViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22373,7 +22373,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsListByReplicationProtectionContainers_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsListByReplicationProtectionContainers_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -22391,7 +22391,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItemCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItemCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -22445,9 +22445,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsListViaIdentity(global::System.String viaIdentity, string skipToken, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsListViaIdentity(global::System.String viaIdentity, string skipToken, string Filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22501,7 +22501,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -22519,7 +22519,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItemCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItemCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -22577,9 +22577,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsPlannedFailover(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsPlannedFailover(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22628,9 +22628,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsPlannedFailoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsPlannedFailoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22695,7 +22695,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsPlannedFailover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsPlannedFailover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -22813,7 +22813,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -22847,7 +22847,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsPlannedFailover_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsPlannedFailover_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -22880,7 +22880,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationProtectedItemsPurge(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22928,7 +22928,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationProtectedItemsPurgeViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23164,9 +23164,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsRemoveDisks(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsRemoveDisks(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23215,9 +23215,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsRemoveDisksViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsRemoveDisksViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23282,7 +23282,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsRemoveDisks_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsRemoveDisks_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -23400,7 +23400,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -23434,7 +23434,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsRemoveDisks_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsRemoveDisks_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -23464,9 +23464,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsRepairReplication(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsRepairReplication(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23512,9 +23512,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsRepairReplicationViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsRepairReplicationViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23575,7 +23575,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsRepairReplication_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsRepairReplication_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -23693,7 +23693,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -23755,9 +23755,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsReprotect(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsReprotect(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23808,9 +23808,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsReprotectViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsReprotectViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23873,7 +23873,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsReprotect_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsReprotect_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -23991,7 +23991,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -24025,7 +24025,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsReprotect_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsReprotect_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -24054,9 +24054,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsResolveHealthErrors(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsResolveHealthErrors(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24105,9 +24105,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsResolveHealthErrorsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsResolveHealthErrorsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24172,7 +24172,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsResolveHealthErrors_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsResolveHealthErrors_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -24290,7 +24290,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -24324,7 +24324,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsResolveHealthErrors_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsResolveHealthErrors_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -24353,9 +24353,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsSwitchProvider(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsSwitchProvider(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24404,9 +24404,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsSwitchProviderViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsSwitchProviderViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24471,7 +24471,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsSwitchProvider_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsSwitchProvider_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -24586,7 +24586,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -24620,7 +24620,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsSwitchProvider_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsSwitchProvider_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -24649,9 +24649,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailover(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailover(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24705,9 +24705,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailoverCleanup(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailoverCleanup(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24756,9 +24756,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailoverCleanupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailoverCleanupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24823,7 +24823,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailoverCleanup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailoverCleanup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -24941,7 +24941,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -24975,7 +24975,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailoverCleanup_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailoverCleanup_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -24999,9 +24999,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25066,7 +25066,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -25184,7 +25184,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -25218,7 +25218,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailover_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsTestFailover_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -25247,9 +25247,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUnplannedFailover(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUnplannedFailover(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25298,9 +25298,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUnplannedFailoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUnplannedFailoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25365,7 +25365,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUnplannedFailover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUnplannedFailover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -25483,7 +25483,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -25517,7 +25517,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUnplannedFailover_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUnplannedFailover_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -25548,9 +25548,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25603,9 +25603,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateAppliance(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateAppliance(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25654,9 +25654,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateApplianceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateApplianceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25721,7 +25721,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateAppliance_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateAppliance_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -25839,7 +25839,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -25873,7 +25873,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateAppliance_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateAppliance_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -25897,7 +25897,7 @@ public partial class Migrate /// Azure Subscription Id in which migrate project was created. /// The name of the fabric containing the protected item. /// The name of the container containing the protected item. - /// The name of the protected item on which the agent is to be updated. + /// The name of the protected item on which the agent is to be updated. /// Request to update the mobility service on the protected item. /// a delegate that is called when the remote service returns 200 (OK). /// an instance that will receive events. @@ -25905,9 +25905,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateMobilityService(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicationProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateMobilityService(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25924,7 +25924,7 @@ public partial class Migrate + "/replicationProtectionContainers/" + global::System.Uri.EscapeDataString(protectionContainerName) + "/replicationProtectedItems/" - + global::System.Uri.EscapeDataString(replicationProtectedItemName) + + global::System.Uri.EscapeDataString(replicatedProtectedItemName) + "/updateMobilityService" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -25959,18 +25959,18 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateMobilityServiceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateMobilityServiceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.RecoveryServices/vaults/(?[^/]+)/replicationFabrics/(?[^/]+)/replicationProtectionContainers/(?[^/]+)/replicationProtectedItems/(?[^/]+)/updateMobilityService$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.RecoveryServices/vaults/(?[^/]+)/replicationFabrics/(?[^/]+)/replicationProtectionContainers/(?[^/]+)/replicationProtectedItems/(?[^/]+)/updateMobilityService$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicationProtectedItemName}/updateMobilityService'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/updateMobilityService'"); } // replace URI parameters with values from identity @@ -25979,7 +25979,7 @@ public partial class Migrate var subscriptionId = _match.Groups["subscriptionId"].Value; var fabricName = _match.Groups["fabricName"].Value; var protectionContainerName = _match.Groups["protectionContainerName"].Value; - var replicationProtectedItemName = _match.Groups["replicationProtectedItemName"].Value; + var replicatedProtectedItemName = _match.Groups["replicatedProtectedItemName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -25993,7 +25993,7 @@ public partial class Migrate + "/replicationProtectionContainers/" + protectionContainerName + "/replicationProtectedItems/" - + replicationProtectedItemName + + replicatedProtectedItemName + "/updateMobilityService" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) @@ -26026,7 +26026,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateMobilityService_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateMobilityService_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -26039,7 +26039,7 @@ public partial class Migrate await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -26123,19 +26123,16 @@ public partial class Migrate continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -26144,7 +26141,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -26172,13 +26169,13 @@ public partial class Migrate /// Azure Subscription Id in which migrate project was created. /// The name of the fabric containing the protected item. /// The name of the container containing the protected item. - /// The name of the protected item on which the agent is to be updated. + /// The name of the protected item on which the agent is to be updated. /// Request to update the mobility service on the protected item. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateMobilityService_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicationProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequest body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateMobilityService_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequest body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -26187,7 +26184,7 @@ public partial class Migrate await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(fabricName),fabricName); await eventListener.AssertNotNull(nameof(protectionContainerName),protectionContainerName); - await eventListener.AssertNotNull(nameof(replicationProtectedItemName),replicationProtectedItemName); + await eventListener.AssertNotNull(nameof(replicatedProtectedItemName),replicatedProtectedItemName); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } @@ -26204,9 +26201,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26268,7 +26265,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -26385,7 +26382,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -26419,7 +26416,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectedItemsUpdate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -26448,9 +26445,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26498,9 +26495,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26564,7 +26561,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -26681,7 +26678,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -26715,7 +26712,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -26744,9 +26741,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsDelete(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInput body, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsDelete(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInput body, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26795,9 +26792,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsDeleteViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInput body, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsDeleteViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInput body, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27014,7 +27011,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsDelete_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsDelete_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -27042,9 +27039,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27087,9 +27084,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27149,7 +27146,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -27167,7 +27164,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -27223,9 +27220,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27267,9 +27264,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsListByReplicationProtectionContainers(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsListByReplicationProtectionContainers(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27311,9 +27308,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsListByReplicationProtectionContainersViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsListByReplicationProtectionContainersViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27371,7 +27368,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsListByReplicationProtectionContainers_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsListByReplicationProtectionContainers_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -27389,7 +27386,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -27441,9 +27438,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27495,7 +27492,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -27513,7 +27510,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -27568,7 +27565,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsPurge(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27613,7 +27610,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsPurgeViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27851,9 +27848,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsUpdate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsUpdate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27901,9 +27898,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27967,7 +27964,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -28084,7 +28081,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -28118,7 +28115,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsUpdate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainerMappingsUpdate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string mappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -28146,9 +28143,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainersCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainersCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28194,9 +28191,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainersCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainersCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28257,7 +28254,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -28374,7 +28371,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainer.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainer.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -28407,7 +28404,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -28435,7 +28432,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationProtectionContainersDelete(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28479,7 +28476,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationProtectionContainersDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28714,9 +28711,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainersDiscoverProtectableItem(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainersDiscoverProtectableItem(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28765,9 +28762,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainersDiscoverProtectableItemViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainersDiscoverProtectableItemViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28829,7 +28826,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersDiscoverProtectableItem_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersDiscoverProtectableItem_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -28947,7 +28944,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainer.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainer.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -28980,7 +28977,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersDiscoverProtectableItem_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequest body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersDiscoverProtectableItem_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequest body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -29006,9 +29003,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainersGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainersGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29049,9 +29046,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainersGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainersGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29106,7 +29103,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -29124,7 +29121,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainer.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainer.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -29178,9 +29175,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainersList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainersList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29221,9 +29218,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainersListByReplicationFabrics(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainersListByReplicationFabrics(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29263,9 +29260,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainersListByReplicationFabricsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainersListByReplicationFabricsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29320,7 +29317,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersListByReplicationFabrics_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersListByReplicationFabrics_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -29338,7 +29335,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -29388,9 +29385,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainersListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainersListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29440,7 +29437,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -29458,7 +29455,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -29513,9 +29510,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainersSwitchProtection(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainersSwitchProtection(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29564,9 +29561,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionContainersSwitchProtectionViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionContainersSwitchProtectionViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29628,7 +29625,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersSwitchProtection_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersSwitchProtection_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -29746,7 +29743,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainer.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainer.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -29779,7 +29776,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersSwitchProtection_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectionContainersSwitchProtection_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -29805,9 +29802,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionIntentsCreate(string resourceName, string resourceGroupName, string subscriptionId, string intentObjectName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionIntentsCreate(string resourceName, string resourceGroupName, string subscriptionId, string intentObjectName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29851,9 +29848,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionIntentsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionIntentsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29909,7 +29906,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionIntentsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectionIntentsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -29927,7 +29924,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -29959,7 +29956,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionIntentsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string intentObjectName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationProtectionIntentsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string intentObjectName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -29983,9 +29980,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionIntentsGet(string resourceName, string resourceGroupName, string subscriptionId, string intentObjectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionIntentsGet(string resourceName, string resourceGroupName, string subscriptionId, string intentObjectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30024,9 +30021,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionIntentsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionIntentsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30078,7 +30075,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionIntentsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectionIntentsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -30096,7 +30093,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntent.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -30150,9 +30147,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionIntentsList(string resourceName, string resourceGroupName, string subscriptionId, string skipToken, string takeToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionIntentsList(string resourceName, string resourceGroupName, string subscriptionId, string skipToken, string takeToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30196,9 +30193,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationProtectionIntentsListViaIdentity(global::System.String viaIdentity, string skipToken, string takeToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationProtectionIntentsListViaIdentity(global::System.String viaIdentity, string skipToken, string takeToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30252,7 +30249,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationProtectionIntentsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationProtectionIntentsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -30270,7 +30267,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -30326,9 +30323,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansCreate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansCreate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30372,9 +30369,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30430,7 +30427,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -30547,7 +30544,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -30579,7 +30576,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -30605,7 +30602,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansDelete(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30646,7 +30643,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30869,9 +30866,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansFailoverCancel(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansFailoverCancel(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30911,9 +30908,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansFailoverCancelViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansFailoverCancelViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30968,7 +30965,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansFailoverCancel_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansFailoverCancel_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31086,7 +31083,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -31139,9 +31136,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansFailoverCommit(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansFailoverCommit(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31181,9 +31178,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansFailoverCommitViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansFailoverCommitViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31238,7 +31235,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansFailoverCommit_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansFailoverCommit_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31356,7 +31353,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -31409,9 +31406,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansGet(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansGet(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31450,9 +31447,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31504,7 +31501,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31522,7 +31519,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -31574,9 +31571,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31614,9 +31611,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31666,7 +31663,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31684,7 +31681,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -31736,9 +31733,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansPlannedFailover(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansPlannedFailover(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31783,9 +31780,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansPlannedFailoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansPlannedFailoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31844,7 +31841,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansPlannedFailover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansPlannedFailover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31962,7 +31959,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -31994,7 +31991,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansPlannedFailover_Validate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansPlannedFailover_Validate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -32018,9 +32015,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansReprotect(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansReprotect(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32060,9 +32057,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansReprotectViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansReprotectViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32115,7 +32112,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansReprotect_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansReprotect_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -32233,7 +32230,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -32287,9 +32284,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailover(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailover(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32337,9 +32334,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailoverCleanup(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailoverCleanup(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32384,9 +32381,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailoverCleanupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailoverCleanupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32445,7 +32442,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailoverCleanup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailoverCleanup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -32563,7 +32560,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -32595,7 +32592,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailoverCleanup_Validate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailoverCleanup_Validate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -32617,9 +32614,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32678,7 +32675,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -32796,7 +32793,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -32828,7 +32825,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailover_Validate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansTestFailover_Validate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -32853,9 +32850,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUnplannedFailover(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUnplannedFailover(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32900,9 +32897,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUnplannedFailoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUnplannedFailoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32961,7 +32958,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUnplannedFailover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUnplannedFailover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -33079,7 +33076,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -33111,7 +33108,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUnplannedFailover_Validate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUnplannedFailover_Validate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -33136,9 +33133,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUpdate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUpdate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33182,9 +33179,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33240,7 +33237,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -33357,7 +33354,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlan.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -33389,7 +33386,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUpdate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryPlansUpdate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string recoveryPlanName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -33415,9 +33412,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string providerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string providerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33463,9 +33460,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33526,7 +33523,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -33643,7 +33640,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProvider.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProvider.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -33676,7 +33673,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string providerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string providerName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -33706,7 +33703,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersDelete(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string providerName, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33752,7 +33749,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33984,9 +33981,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string providerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string providerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34027,9 +34024,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34086,7 +34083,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -34104,7 +34101,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProvider.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProvider.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -34158,9 +34155,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34201,9 +34198,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersListByReplicationFabrics(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersListByReplicationFabrics(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34243,9 +34240,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersListByReplicationFabricsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersListByReplicationFabricsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34300,7 +34297,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersListByReplicationFabrics_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersListByReplicationFabrics_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -34318,7 +34315,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProviderCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProviderCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -34368,9 +34365,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34422,7 +34419,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -34440,7 +34437,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProviderCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProviderCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -34496,7 +34493,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersPurge(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string providerName, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34541,7 +34538,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersPurgeViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34772,9 +34769,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersRefreshProvider(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string providerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersRefreshProvider(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string providerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34816,9 +34813,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersRefreshProviderViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersRefreshProviderViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34876,7 +34873,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersRefreshProvider_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationRecoveryServicesProvidersRefreshProvider_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -34994,7 +34991,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProvider.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProvider.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -35052,9 +35049,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string storageClassificationName, string storageClassificationMappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string storageClassificationName, string storageClassificationMappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35102,9 +35099,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35168,7 +35165,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -35285,7 +35282,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -35319,7 +35316,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string storageClassificationName, string storageClassificationMappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string storageClassificationName, string storageClassificationMappingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -35349,7 +35346,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsDelete(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string storageClassificationName, string storageClassificationMappingName, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35394,7 +35391,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35631,9 +35628,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string storageClassificationName, string storageClassificationMappingName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string storageClassificationName, string storageClassificationMappingName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35676,9 +35673,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35738,7 +35735,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -35756,7 +35753,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMapping.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -35812,9 +35809,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35856,9 +35853,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsListByReplicationStorageClassifications(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string storageClassificationName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsListByReplicationStorageClassifications(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string storageClassificationName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35900,9 +35897,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsListByReplicationStorageClassificationsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsListByReplicationStorageClassificationsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35960,7 +35957,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsListByReplicationStorageClassifications_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsListByReplicationStorageClassifications_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -35978,7 +35975,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMappingCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMappingCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -36030,9 +36027,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36084,7 +36081,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationMappingsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -36102,7 +36099,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMappingCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMappingCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -36154,9 +36151,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationStorageClassificationsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string storageClassificationName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationStorageClassificationsGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string storageClassificationName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36197,9 +36194,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationStorageClassificationsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationStorageClassificationsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36256,7 +36253,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -36274,7 +36271,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassification.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassification.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -36328,9 +36325,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationStorageClassificationsList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationStorageClassificationsList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36371,9 +36368,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationStorageClassificationsListByReplicationFabrics(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationStorageClassificationsListByReplicationFabrics(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36413,9 +36410,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationStorageClassificationsListByReplicationFabricsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationStorageClassificationsListByReplicationFabricsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36470,7 +36467,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationsListByReplicationFabrics_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationsListByReplicationFabrics_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -36488,7 +36485,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -36538,9 +36535,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationStorageClassificationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationStorageClassificationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36592,7 +36589,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationStorageClassificationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -36610,7 +36607,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -36660,9 +36657,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationVaultHealthGet(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationVaultHealthGet(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36700,9 +36697,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationVaultHealthGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationVaultHealthGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36752,7 +36749,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationVaultHealthGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationVaultHealthGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -36770,7 +36767,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultHealthDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultHealthDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -36820,9 +36817,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationVaultHealthRefresh(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationVaultHealthRefresh(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36860,9 +36857,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationVaultHealthRefreshViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationVaultHealthRefreshViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36912,7 +36909,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationVaultHealthRefresh_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationVaultHealthRefresh_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -37030,7 +37027,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultHealthDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultHealthDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -37082,9 +37079,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationVaultSettingCreate(string resourceName, string resourceGroupName, string subscriptionId, string vaultSettingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationVaultSettingCreate(string resourceName, string resourceGroupName, string subscriptionId, string vaultSettingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37128,9 +37125,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationVaultSettingCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationVaultSettingCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInput body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37186,7 +37183,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationVaultSettingCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationVaultSettingCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -37303,7 +37300,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSetting.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSetting.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -37335,7 +37332,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationVaultSettingCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string vaultSettingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationVaultSettingCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string vaultSettingName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInput body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -37359,9 +37356,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationVaultSettingGet(string resourceName, string resourceGroupName, string subscriptionId, string vaultSettingName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationVaultSettingGet(string resourceName, string resourceGroupName, string subscriptionId, string vaultSettingName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37400,9 +37397,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationVaultSettingGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationVaultSettingGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37454,7 +37451,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationVaultSettingGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationVaultSettingGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -37472,7 +37469,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSetting.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSetting.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -37526,9 +37523,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationVaultSettingList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationVaultSettingList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37568,9 +37565,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationVaultSettingListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationVaultSettingListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37620,7 +37617,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationVaultSettingList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationVaultSettingList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -37638,7 +37635,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -37691,9 +37688,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationvCentersCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string vcenterName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationvCentersCreate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string vcenterName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37739,9 +37736,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationvCentersCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationvCentersCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37800,7 +37797,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationvCentersCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationvCentersCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -37917,7 +37914,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -37950,7 +37947,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationvCentersCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string vcenterName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequest body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationvCentersCreate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string vcenterName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequest body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -37978,7 +37975,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationvCentersDelete(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string vcenterName, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -38021,7 +38018,7 @@ public partial class Migrate /// public async global::System.Threading.Tasks.Task ReplicationvCentersDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -38250,9 +38247,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationvCentersGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string vcenterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationvCentersGet(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string vcenterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -38293,9 +38290,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationvCentersGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationvCentersGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -38350,7 +38347,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationvCentersGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationvCentersGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -38368,7 +38365,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -38422,9 +38419,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationvCentersList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationvCentersList(string resourceName, string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -38465,9 +38462,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationvCentersListByReplicationFabrics(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationvCentersListByReplicationFabrics(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -38507,9 +38504,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationvCentersListByReplicationFabricsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationvCentersListByReplicationFabricsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -38564,7 +38561,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationvCentersListByReplicationFabrics_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationvCentersListByReplicationFabrics_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -38582,7 +38579,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterCollectionAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterCollectionAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -38632,9 +38629,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationvCentersListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationvCentersListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -38684,7 +38681,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationvCentersList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationvCentersList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -38702,7 +38699,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterCollectionAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterCollectionAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -38755,9 +38752,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationvCentersUpdate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string vcenterName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationvCentersUpdate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string vcenterName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -38803,9 +38800,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ReplicationvCentersUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ReplicationvCentersUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -38864,7 +38861,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationvCentersUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ReplicationvCentersUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -38981,7 +38978,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -39014,7 +39011,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ReplicationvCentersUpdate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string vcenterName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequest body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ReplicationvCentersUpdate_Validate(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string vcenterName, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequest body, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -40299,7 +40296,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.Accepted: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.497\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); + await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.504\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); break; } default: @@ -41745,9 +41742,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SupportedOperatingSystemsGet(string resourceName, string resourceGroupName, string subscriptionId, string instanceType, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SupportedOperatingSystemsGet(string resourceName, string resourceGroupName, string subscriptionId, string instanceType, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -41788,9 +41785,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SupportedOperatingSystemsGetViaIdentity(global::System.String viaIdentity, string instanceType, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SupportedOperatingSystemsGetViaIdentity(global::System.String viaIdentity, string instanceType, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -41842,7 +41839,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SupportedOperatingSystemsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SupportedOperatingSystemsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -41860,7 +41857,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOperatingSystems.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOperatingSystems.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -41915,9 +41912,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task TargetComputeSizesListByReplicationProtectedItems(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TargetComputeSizesListByReplicationProtectedItems(string resourceName, string resourceGroupName, string subscriptionId, string fabricName, string protectionContainerName, string replicatedProtectedItemName, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -41961,9 +41958,9 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task TargetComputeSizesListByReplicationProtectedItemsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TargetComputeSizesListByReplicationProtectedItemsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { - var apiVersion = @"2022-05-01"; + var apiVersion = @"2023-01-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -42024,7 +42021,7 @@ public partial class Migrate /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task TargetComputeSizesListByReplicationProtectedItems_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task TargetComputeSizesListByReplicationProtectedItems_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -42042,7 +42039,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSizeCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSizeCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -42222,7 +42219,7 @@ public partial class Migrate case global::System.Net.HttpStatusCode.Accepted: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.497\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); + await onAccepted(_response,null /* deserializeFromResponse doesn't support '-header-' C:\Users\cloudtest\.autorest\@autorest_powershell@3.0.504\node_modules\@autorest\powershell\dist\llcsharp\schema\object.js*/); break; } default: diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AAddDisksInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AAddDisksInput.PowerShell.cs deleted file mode 100644 index 02ea2bc2dfb4..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AAddDisksInput.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A add disk(s) input. - [System.ComponentModel.TypeConverter(typeof(A2AAddDisksInputTypeConverter))] - public partial class A2AAddDisksInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AAddDisksInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInputInternal)this).InstanceType, 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 A2AAddDisksInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AAddDisksInput(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.Migrate.Models.Api20220501.IA2AAddDisksInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AAddDisksInput(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.Migrate.Models.Api20220501.IA2AAddDisksInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A add disk(s) input. - [System.ComponentModel.TypeConverter(typeof(A2AAddDisksInputTypeConverter))] - public partial interface IA2AAddDisksInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AContainerCreationInput.cs b/src/Migrate/generated/api/Models/Api20220501/A2AContainerCreationInput.cs deleted file mode 100644 index 86abe5911414..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AContainerCreationInput.cs +++ /dev/null @@ -1,57 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// A2A cloud creation input. - public partial class A2AContainerCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerCreationInputInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput __replicationProviderSpecificContainerCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerCreationInput(); - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)__replicationProviderSpecificContainerCreationInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)__replicationProviderSpecificContainerCreationInput).InstanceType = value ; } - - /// Creates an new instance. - public A2AContainerCreationInput() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__replicationProviderSpecificContainerCreationInput), __replicationProviderSpecificContainerCreationInput); - await eventListener.AssertObjectIsValid(nameof(__replicationProviderSpecificContainerCreationInput), __replicationProviderSpecificContainerCreationInput); - } - } - /// A2A cloud creation input. - public partial interface IA2AContainerCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput - { - - } - /// A2A cloud creation input. - internal partial interface IA2AContainerCreationInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AContainerMappingInput.PowerShell.cs deleted file mode 100644 index f8d5efa6f43e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AContainerMappingInput.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A container mapping input. - [System.ComponentModel.TypeConverter(typeof(A2AContainerMappingInputTypeConverter))] - public partial class A2AContainerMappingInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AContainerMappingInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentAutoUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInputInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInputInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); - } - if (content.Contains("AutomationAccountArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInputInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInputInternal)this).AutomationAccountArmId, global::System.Convert.ToString); - } - if (content.Contains("AutomationAccountAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInputInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInputInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType, 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 A2AContainerMappingInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentAutoUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInputInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInputInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); - } - if (content.Contains("AutomationAccountArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInputInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInputInternal)this).AutomationAccountArmId, global::System.Convert.ToString); - } - if (content.Contains("AutomationAccountAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInputInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInputInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AContainerMappingInput(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.Migrate.Models.Api20220501.IA2AContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AContainerMappingInput(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.Migrate.Models.Api20220501.IA2AContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A container mapping input. - [System.ComponentModel.TypeConverter(typeof(A2AContainerMappingInputTypeConverter))] - public partial interface IA2AContainerMappingInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACreateProtectionIntentInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2ACreateProtectionIntentInput.PowerShell.cs deleted file mode 100644 index b4b6236c7966..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACreateProtectionIntentInput.PowerShell.cs +++ /dev/null @@ -1,418 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A create protection intent input. - [System.ComponentModel.TypeConverter(typeof(A2ACreateProtectionIntentInputTypeConverter))] - public partial class A2ACreateProtectionIntentInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2ACreateProtectionIntentInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProtectionProfileCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails) content.GetValueForProperty("ProtectionProfileCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("PrimaryStagingStorageAccountCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryAvailabilitySetCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails) content.GetValueForProperty("RecoveryAvailabilitySetCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryAvailabilitySetCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryVirtualNetworkCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails) content.GetValueForProperty("RecoveryVirtualNetworkCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryProximityPlacementGroupCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails) content.GetValueForProperty("RecoveryProximityPlacementGroupCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryProximityPlacementGroupCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryBootDiagStorageAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails) content.GetValueForProperty("RecoveryBootDiagStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).PrimaryLocation = (string) content.GetValueForProperty("PrimaryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).PrimaryLocation, global::System.Convert.ToString); - } - if (content.Contains("RecoveryLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryLocation = (string) content.GetValueForProperty("RecoveryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryLocation, global::System.Convert.ToString); - } - if (content.Contains("RecoverySubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoverySubscriptionId = (string) content.GetValueForProperty("RecoverySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoverySubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType) content.GetValueForProperty("RecoveryAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType.CreateFrom); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("AutoProtectionOfDataDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AutoProtectionOfDataDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("AutoProtectionOfDataDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AutoProtectionOfDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.CreateFrom); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentManagedDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("AgentAutoUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); - } - if (content.Contains("AutomationAccountAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); - } - if (content.Contains("AutomationAccountArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountArmId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("ProtectionProfileCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInputResourceType = (string) content.GetValueForProperty("ProtectionProfileCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("PrimaryStagingStorageAccountCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySetCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInputResourceType = (string) content.GetValueForProperty("RecoveryAvailabilitySetCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVirtualNetworkCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInputResourceType = (string) content.GetValueForProperty("RecoveryVirtualNetworkCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProximityPlacementGroupCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInputResourceType = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryBootDiagStorageAccountResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccountResourceType = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccountResourceType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2ACreateProtectionIntentInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProtectionProfileCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails) content.GetValueForProperty("ProtectionProfileCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("PrimaryStagingStorageAccountCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryAvailabilitySetCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails) content.GetValueForProperty("RecoveryAvailabilitySetCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryAvailabilitySetCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryVirtualNetworkCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails) content.GetValueForProperty("RecoveryVirtualNetworkCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryProximityPlacementGroupCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails) content.GetValueForProperty("RecoveryProximityPlacementGroupCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryProximityPlacementGroupCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryBootDiagStorageAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails) content.GetValueForProperty("RecoveryBootDiagStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).PrimaryLocation = (string) content.GetValueForProperty("PrimaryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).PrimaryLocation, global::System.Convert.ToString); - } - if (content.Contains("RecoveryLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryLocation = (string) content.GetValueForProperty("RecoveryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryLocation, global::System.Convert.ToString); - } - if (content.Contains("RecoverySubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoverySubscriptionId = (string) content.GetValueForProperty("RecoverySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoverySubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType) content.GetValueForProperty("RecoveryAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType.CreateFrom); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("AutoProtectionOfDataDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AutoProtectionOfDataDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("AutoProtectionOfDataDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AutoProtectionOfDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.CreateFrom); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentManagedDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("AgentAutoUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); - } - if (content.Contains("AutomationAccountAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); - } - if (content.Contains("AutomationAccountArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountArmId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("ProtectionProfileCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInputResourceType = (string) content.GetValueForProperty("ProtectionProfileCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("PrimaryStagingStorageAccountCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySetCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInputResourceType = (string) content.GetValueForProperty("RecoveryAvailabilitySetCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVirtualNetworkCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInputResourceType = (string) content.GetValueForProperty("RecoveryVirtualNetworkCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProximityPlacementGroupCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInputResourceType = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryBootDiagStorageAccountResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccountResourceType = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccountResourceType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2ACreateProtectionIntentInput(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.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2ACreateProtectionIntentInput(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.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A create protection intent input. - [System.ComponentModel.TypeConverter(typeof(A2ACreateProtectionIntentInputTypeConverter))] - public partial interface IA2ACreateProtectionIntentInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACreateProtectionIntentInput.cs b/src/Migrate/generated/api/Models/Api20220501/A2ACreateProtectionIntentInput.cs deleted file mode 100644 index 25c2ea15f70c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACreateProtectionIntentInput.cs +++ /dev/null @@ -1,556 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// A2A create protection intent input. - public partial class A2ACreateProtectionIntentInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails __createProtectionIntentProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentProviderSpecificDetails(); - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? _agentAutoUpdateStatus; - - /// A value indicating whether the auto update is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get => this._agentAutoUpdateStatus; set => this._agentAutoUpdateStatus = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? _autoProtectionOfDataDisk; - - /// A value indicating whether the auto protection is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? AutoProtectionOfDataDisk { get => this._autoProtectionOfDataDisk; set => this._autoProtectionOfDataDisk = value; } - - /// Backing field for property. - private string _automationAccountArmId; - - /// The automation account arm id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string AutomationAccountArmId { get => this._automationAccountArmId; set => this._automationAccountArmId = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? _automationAccountAuthenticationType; - - /// - /// A value indicating the authentication type for automation account. The default value is "RunAsAccount". - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? AutomationAccountAuthenticationType { get => this._automationAccountAuthenticationType; set => this._automationAccountAuthenticationType = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo _diskEncryptionInfo; - - /// The recovery disk encryption information (for two pass flows). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } - - /// The KeyVault resource ARM id for secret. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } - - /// The secret url / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } - - /// Backing field for property. - private string _fabricObjectId; - - /// The fabric specific object Id of the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string FabricObjectId { get => this._fabricObjectId; set => this._fabricObjectId = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetailsInternal)__createProtectionIntentProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetailsInternal)__createProtectionIntentProviderSpecificDetails).InstanceType = value ; } - - /// The key URL / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } - - /// The KeyVault resource ARM Id for key. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } - - /// Internal Acessors for DiskEncryptionInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } - - /// Internal Acessors for DiskEncryptionInfoDiskEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } - - /// Internal Acessors for DiskEncryptionInfoKeyEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } - - /// Internal Acessors for PrimaryStagingStorageAccountCustomInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal.PrimaryStagingStorageAccountCustomInput { get => (this._primaryStagingStorageAccountCustomInput = this._primaryStagingStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails()); set { {_primaryStagingStorageAccountCustomInput = value;} } } - - /// Internal Acessors for ProtectionProfileCustomInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal.ProtectionProfileCustomInput { get => (this._protectionProfileCustomInput = this._protectionProfileCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetails()); set { {_protectionProfileCustomInput = value;} } } - - /// Internal Acessors for RecoveryAvailabilitySetCustomInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal.RecoveryAvailabilitySetCustomInput { get => (this._recoveryAvailabilitySetCustomInput = this._recoveryAvailabilitySetCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryAvailabilitySetCustomDetails()); set { {_recoveryAvailabilitySetCustomInput = value;} } } - - /// Internal Acessors for RecoveryBootDiagStorageAccount - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal.RecoveryBootDiagStorageAccount { get => (this._recoveryBootDiagStorageAccount = this._recoveryBootDiagStorageAccount ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails()); set { {_recoveryBootDiagStorageAccount = value;} } } - - /// Internal Acessors for RecoveryProximityPlacementGroupCustomInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal.RecoveryProximityPlacementGroupCustomInput { get => (this._recoveryProximityPlacementGroupCustomInput = this._recoveryProximityPlacementGroupCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryProximityPlacementGroupCustomDetails()); set { {_recoveryProximityPlacementGroupCustomInput = value;} } } - - /// Internal Acessors for RecoveryVirtualNetworkCustomInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInputInternal.RecoveryVirtualNetworkCustomInput { get => (this._recoveryVirtualNetworkCustomInput = this._recoveryVirtualNetworkCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetails()); set { {_recoveryVirtualNetworkCustomInput = value;} } } - - /// Backing field for property. - private string _multiVMGroupId; - - /// The multi vm group id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string MultiVMGroupId { get => this._multiVMGroupId; set => this._multiVMGroupId = value; } - - /// Backing field for property. - private string _multiVMGroupName; - - /// The multi vm group name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string MultiVMGroupName { get => this._multiVMGroupName; set => this._multiVMGroupName = value; } - - /// Backing field for property. - private string _primaryLocation; - - /// The primary location for the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PrimaryLocation { get => this._primaryLocation; set => this._primaryLocation = value; } - - /// - /// Backing field for property. - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails _primaryStagingStorageAccountCustomInput; - - /// The primary staging storage account input. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get => (this._primaryStagingStorageAccountCustomInput = this._primaryStagingStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails()); set => this._primaryStagingStorageAccountCustomInput = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryStagingStorageAccountCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccountCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccountCustomInput).ResourceType = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails _protectionProfileCustomInput; - - /// The protection profile custom inputs. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails ProtectionProfileCustomInput { get => (this._protectionProfileCustomInput = this._protectionProfileCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetails()); set => this._protectionProfileCustomInput = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProtectionProfileCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)ProtectionProfileCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)ProtectionProfileCustomInput).ResourceType = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails _recoveryAvailabilitySetCustomInput; - - /// The recovery availability set input. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails RecoveryAvailabilitySetCustomInput { get => (this._recoveryAvailabilitySetCustomInput = this._recoveryAvailabilitySetCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryAvailabilitySetCustomDetails()); set => this._recoveryAvailabilitySetCustomInput = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryAvailabilitySetCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal)RecoveryAvailabilitySetCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal)RecoveryAvailabilitySetCustomInput).ResourceType = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType _recoveryAvailabilityType; - - /// The recovery availability type of the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType RecoveryAvailabilityType { get => this._recoveryAvailabilityType; set => this._recoveryAvailabilityType = value; } - - /// Backing field for property. - private string _recoveryAvailabilityZone; - - /// The recovery availability zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryAvailabilityZone { get => this._recoveryAvailabilityZone; set => this._recoveryAvailabilityZone = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails _recoveryBootDiagStorageAccount; - - /// The boot diagnostic storage account. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails RecoveryBootDiagStorageAccount { get => (this._recoveryBootDiagStorageAccount = this._recoveryBootDiagStorageAccount ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails()); set => this._recoveryBootDiagStorageAccount = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryBootDiagStorageAccountResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)RecoveryBootDiagStorageAccount).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)RecoveryBootDiagStorageAccount).ResourceType = value ?? null; } - - /// Backing field for property. - private string _recoveryLocation; - - /// The recovery location for the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryLocation { get => this._recoveryLocation; set => this._recoveryLocation = value; } - - /// - /// Backing field for property. - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails _recoveryProximityPlacementGroupCustomInput; - - /// The recovery proximity placement group custom input. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails RecoveryProximityPlacementGroupCustomInput { get => (this._recoveryProximityPlacementGroupCustomInput = this._recoveryProximityPlacementGroupCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryProximityPlacementGroupCustomDetails()); set => this._recoveryProximityPlacementGroupCustomInput = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryProximityPlacementGroupCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal)RecoveryProximityPlacementGroupCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal)RecoveryProximityPlacementGroupCustomInput).ResourceType = value ?? null; } - - /// Backing field for property. - private string _recoveryResourceGroupId; - - /// The recovery resource group Id. Valid for V2 scenarios. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryResourceGroupId { get => this._recoveryResourceGroupId; set => this._recoveryResourceGroupId = value; } - - /// Backing field for property. - private string _recoverySubscriptionId; - - /// The recovery subscription Id of the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoverySubscriptionId { get => this._recoverySubscriptionId; set => this._recoverySubscriptionId = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails _recoveryVirtualNetworkCustomInput; - - /// The recovery virtual network input. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails RecoveryVirtualNetworkCustomInput { get => (this._recoveryVirtualNetworkCustomInput = this._recoveryVirtualNetworkCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetails()); set => this._recoveryVirtualNetworkCustomInput = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryVirtualNetworkCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)RecoveryVirtualNetworkCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)RecoveryVirtualNetworkCustomInput).ResourceType = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails[] _vMDisk; - - /// The list of vm disk inputs. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails[] _vMManagedDisk; - - /// The list of vm managed disk inputs. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails[] VMManagedDisk { get => this._vMManagedDisk; set => this._vMManagedDisk = value; } - - /// Creates an new instance. - public A2ACreateProtectionIntentInput() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__createProtectionIntentProviderSpecificDetails), __createProtectionIntentProviderSpecificDetails); - await eventListener.AssertObjectIsValid(nameof(__createProtectionIntentProviderSpecificDetails), __createProtectionIntentProviderSpecificDetails); - } - } - /// A2A create protection intent input. - public partial interface IA2ACreateProtectionIntentInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails - { - /// A value indicating whether the auto update is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating whether the auto update is enabled.", - SerializedName = @"agentAutoUpdateStatus", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get; set; } - /// A value indicating whether the auto protection is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating whether the auto protection is enabled.", - SerializedName = @"autoProtectionOfDataDisk", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? AutoProtectionOfDataDisk { get; set; } - /// The automation account arm id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The automation account arm id.", - SerializedName = @"automationAccountArmId", - PossibleTypes = new [] { typeof(string) })] - string AutomationAccountArmId { get; set; } - /// - /// A value indicating the authentication type for automation account. The default value is "RunAsAccount". - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating the authentication type for automation account. The default value is ""RunAsAccount"".", - SerializedName = @"automationAccountAuthenticationType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? AutomationAccountAuthenticationType { get; set; } - /// The KeyVault resource ARM id for secret. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The KeyVault resource ARM id for secret.", - SerializedName = @"keyVaultResourceArmId", - PossibleTypes = new [] { typeof(string) })] - string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - /// The secret url / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The secret url / identifier.", - SerializedName = @"secretIdentifier", - PossibleTypes = new [] { typeof(string) })] - string DiskEncryptionKeyInfoSecretIdentifier { get; set; } - /// The fabric specific object Id of the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The fabric specific object Id of the virtual machine.", - SerializedName = @"fabricObjectId", - PossibleTypes = new [] { typeof(string) })] - string FabricObjectId { get; set; } - /// The key URL / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The key URL / identifier.", - SerializedName = @"keyIdentifier", - PossibleTypes = new [] { typeof(string) })] - string KeyEncryptionKeyInfoKeyIdentifier { get; set; } - /// The KeyVault resource ARM Id for key. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The KeyVault resource ARM Id for key.", - SerializedName = @"keyVaultResourceArmId", - PossibleTypes = new [] { typeof(string) })] - string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - /// The multi vm group id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The multi vm group id.", - SerializedName = @"multiVmGroupId", - PossibleTypes = new [] { typeof(string) })] - string MultiVMGroupId { get; set; } - /// The multi vm group name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The multi vm group name.", - SerializedName = @"multiVmGroupName", - PossibleTypes = new [] { typeof(string) })] - string MultiVMGroupName { get; set; } - /// The primary location for the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The primary location for the virtual machine.", - SerializedName = @"primaryLocation", - PossibleTypes = new [] { typeof(string) })] - string PrimaryLocation { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string PrimaryStagingStorageAccountCustomInputResourceType { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string ProtectionProfileCustomInputResourceType { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string RecoveryAvailabilitySetCustomInputResourceType { get; set; } - /// The recovery availability type of the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The recovery availability type of the virtual machine.", - SerializedName = @"recoveryAvailabilityType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType RecoveryAvailabilityType { get; set; } - /// The recovery availability zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery availability zone.", - SerializedName = @"recoveryAvailabilityZone", - PossibleTypes = new [] { typeof(string) })] - string RecoveryAvailabilityZone { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string RecoveryBootDiagStorageAccountResourceType { get; set; } - /// The recovery location for the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The recovery location for the virtual machine.", - SerializedName = @"recoveryLocation", - PossibleTypes = new [] { typeof(string) })] - string RecoveryLocation { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string RecoveryProximityPlacementGroupCustomInputResourceType { get; set; } - /// The recovery resource group Id. Valid for V2 scenarios. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The recovery resource group Id. Valid for V2 scenarios.", - SerializedName = @"recoveryResourceGroupId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryResourceGroupId { get; set; } - /// The recovery subscription Id of the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The recovery subscription Id of the virtual machine.", - SerializedName = @"recoverySubscriptionId", - PossibleTypes = new [] { typeof(string) })] - string RecoverySubscriptionId { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string RecoveryVirtualNetworkCustomInputResourceType { get; set; } - /// The list of vm disk inputs. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of vm disk inputs.", - SerializedName = @"vmDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails[] VMDisk { get; set; } - /// The list of vm managed disk inputs. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of vm managed disk inputs.", - SerializedName = @"vmManagedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails[] VMManagedDisk { get; set; } - - } - /// A2A create protection intent input. - internal partial interface IA2ACreateProtectionIntentInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetailsInternal - { - /// A value indicating whether the auto update is enabled. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get; set; } - /// A value indicating whether the auto protection is enabled. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? AutoProtectionOfDataDisk { get; set; } - /// The automation account arm id. - string AutomationAccountArmId { get; set; } - /// - /// A value indicating the authentication type for automation account. The default value is "RunAsAccount". - /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? AutomationAccountAuthenticationType { get; set; } - /// The recovery disk encryption information (for two pass flows). - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } - /// The recovery KeyVault reference for secret. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } - /// The recovery KeyVault reference for key. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } - /// The KeyVault resource ARM id for secret. - string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - /// The secret url / identifier. - string DiskEncryptionKeyInfoSecretIdentifier { get; set; } - /// The fabric specific object Id of the virtual machine. - string FabricObjectId { get; set; } - /// The key URL / identifier. - string KeyEncryptionKeyInfoKeyIdentifier { get; set; } - /// The KeyVault resource ARM Id for key. - string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - /// The multi vm group id. - string MultiVMGroupId { get; set; } - /// The multi vm group name. - string MultiVMGroupName { get; set; } - /// The primary location for the virtual machine. - string PrimaryLocation { get; set; } - /// The primary staging storage account input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get; set; } - /// The class type. - string PrimaryStagingStorageAccountCustomInputResourceType { get; set; } - /// The protection profile custom inputs. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails ProtectionProfileCustomInput { get; set; } - /// The class type. - string ProtectionProfileCustomInputResourceType { get; set; } - /// The recovery availability set input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails RecoveryAvailabilitySetCustomInput { get; set; } - /// The class type. - string RecoveryAvailabilitySetCustomInputResourceType { get; set; } - /// The recovery availability type of the virtual machine. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType RecoveryAvailabilityType { get; set; } - /// The recovery availability zone. - string RecoveryAvailabilityZone { get; set; } - /// The boot diagnostic storage account. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails RecoveryBootDiagStorageAccount { get; set; } - /// The class type. - string RecoveryBootDiagStorageAccountResourceType { get; set; } - /// The recovery location for the virtual machine. - string RecoveryLocation { get; set; } - /// The recovery proximity placement group custom input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails RecoveryProximityPlacementGroupCustomInput { get; set; } - /// The class type. - string RecoveryProximityPlacementGroupCustomInputResourceType { get; set; } - /// The recovery resource group Id. Valid for V2 scenarios. - string RecoveryResourceGroupId { get; set; } - /// The recovery subscription Id of the virtual machine. - string RecoverySubscriptionId { get; set; } - /// The recovery virtual network input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails RecoveryVirtualNetworkCustomInput { get; set; } - /// The class type. - string RecoveryVirtualNetworkCustomInputResourceType { get; set; } - /// The list of vm disk inputs. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails[] VMDisk { get; set; } - /// The list of vm managed disk inputs. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails[] VMManagedDisk { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationEnableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationEnableProtectionInput.PowerShell.cs deleted file mode 100644 index 300d2517c2a6..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationEnableProtectionInput.PowerShell.cs +++ /dev/null @@ -1,165 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A Cross-Cluster Migration enable protection input. - [System.ComponentModel.TypeConverter(typeof(A2ACrossClusterMigrationEnableProtectionInputTypeConverter))] - public partial class A2ACrossClusterMigrationEnableProtectionInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2ACrossClusterMigrationEnableProtectionInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, 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 A2ACrossClusterMigrationEnableProtectionInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2ACrossClusterMigrationEnableProtectionInput(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.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2ACrossClusterMigrationEnableProtectionInput(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.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A Cross-Cluster Migration enable protection input. - [System.ComponentModel.TypeConverter(typeof(A2ACrossClusterMigrationEnableProtectionInputTypeConverter))] - public partial interface IA2ACrossClusterMigrationEnableProtectionInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationReplicationDetails.PowerShell.cs deleted file mode 100644 index dc1e58679d95..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationReplicationDetails.PowerShell.cs +++ /dev/null @@ -1,197 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A provider specific settings. - [System.ComponentModel.TypeConverter(typeof(A2ACrossClusterMigrationReplicationDetailsTypeConverter))] - public partial class A2ACrossClusterMigrationReplicationDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2ACrossClusterMigrationReplicationDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).PrimaryFabricLocation = (string) content.GetValueForProperty("PrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).PrimaryFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("LifecycleId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).LifecycleId = (string) content.GetValueForProperty("LifecycleId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).LifecycleId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, 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 A2ACrossClusterMigrationReplicationDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).PrimaryFabricLocation = (string) content.GetValueForProperty("PrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).PrimaryFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("LifecycleId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).LifecycleId = (string) content.GetValueForProperty("LifecycleId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal)this).LifecycleId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2ACrossClusterMigrationReplicationDetails(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.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2ACrossClusterMigrationReplicationDetails(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.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A provider specific settings. - [System.ComponentModel.TypeConverter(typeof(A2ACrossClusterMigrationReplicationDetailsTypeConverter))] - public partial interface IA2ACrossClusterMigrationReplicationDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AEnableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AEnableProtectionInput.PowerShell.cs deleted file mode 100644 index 2976cae38d14..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AEnableProtectionInput.PowerShell.cs +++ /dev/null @@ -1,352 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A enable protection input. - [System.ComponentModel.TypeConverter(typeof(A2AEnableProtectionInputTypeConverter))] - public partial class A2AEnableProtectionInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AEnableProtectionInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryExtendedLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocationTypeConverter.ConvertFrom); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCloudServiceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryBootDiagStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryAzureNetworkId = (string) content.GetValueForProperty("RecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("RecoverySubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoverySubnetName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVirtualMachineScaleSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCapacityReservationGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("RecoveryExtendedLocationName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryExtendedLocationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2AEnableProtectionInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryExtendedLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocationTypeConverter.ConvertFrom); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCloudServiceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryBootDiagStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryAzureNetworkId = (string) content.GetValueForProperty("RecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("RecoverySubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoverySubnetName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVirtualMachineScaleSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCapacityReservationGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("RecoveryExtendedLocationName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryExtendedLocationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AEnableProtectionInput(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.Migrate.Models.Api20220501.IA2AEnableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AEnableProtectionInput(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.Migrate.Models.Api20220501.IA2AEnableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A enable protection input. - [System.ComponentModel.TypeConverter(typeof(A2AEnableProtectionInputTypeConverter))] - public partial interface IA2AEnableProtectionInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AEventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AEventDetails.PowerShell.cs deleted file mode 100644 index 5b8a56f4ba61..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AEventDetails.PowerShell.cs +++ /dev/null @@ -1,192 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Model class for event details of a A2A event. - [System.ComponentModel.TypeConverter(typeof(A2AEventDetailsTypeConverter))] - public partial class A2AEventDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AEventDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProtectedItemName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).ProtectedItemName = (string) content.GetValueForProperty("ProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).ProtectedItemName, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("FabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).FabricLocation = (string) content.GetValueForProperty("FabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).FabricLocation, global::System.Convert.ToString); - } - if (content.Contains("RemoteFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); - } - if (content.Contains("RemoteFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).RemoteFabricLocation = (string) content.GetValueForProperty("RemoteFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).RemoteFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 A2AEventDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProtectedItemName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).ProtectedItemName = (string) content.GetValueForProperty("ProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).ProtectedItemName, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("FabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).FabricLocation = (string) content.GetValueForProperty("FabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).FabricLocation, global::System.Convert.ToString); - } - if (content.Contains("RemoteFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); - } - if (content.Contains("RemoteFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).RemoteFabricLocation = (string) content.GetValueForProperty("RemoteFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal)this).RemoteFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AEventDetails(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.Migrate.Models.Api20220501.IA2AEventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AEventDetails(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.Migrate.Models.Api20220501.IA2AEventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Model class for event details of a A2A event. - [System.ComponentModel.TypeConverter(typeof(A2AEventDetailsTypeConverter))] - public partial interface IA2AEventDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2APolicyCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2APolicyCreationInput.PowerShell.cs deleted file mode 100644 index eb66a9d83551..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2APolicyCreationInput.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A Policy creation input. - [System.ComponentModel.TypeConverter(typeof(A2APolicyCreationInputTypeConverter))] - public partial class A2APolicyCreationInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2APolicyCreationInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 A2APolicyCreationInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2APolicyCreationInput(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.Migrate.Models.Api20220501.IA2APolicyCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2APolicyCreationInput(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.Migrate.Models.Api20220501.IA2APolicyCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A Policy creation input. - [System.ComponentModel.TypeConverter(typeof(A2APolicyCreationInputTypeConverter))] - public partial interface IA2APolicyCreationInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2APolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2APolicyDetails.PowerShell.cs deleted file mode 100644 index 21dd0fb4fd1e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2APolicyDetails.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A specific policy details. - [System.ComponentModel.TypeConverter(typeof(A2APolicyDetailsTypeConverter))] - public partial class A2APolicyDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2APolicyDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointThresholdInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 A2APolicyDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointThresholdInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2APolicyDetails(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.Migrate.Models.Api20220501.IA2APolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2APolicyDetails(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.Migrate.Models.Api20220501.IA2APolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A specific policy details. - [System.ComponentModel.TypeConverter(typeof(A2APolicyDetailsTypeConverter))] - public partial interface IA2APolicyDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AProtectedDiskDetails.PowerShell.cs deleted file mode 100644 index 2b05d3a83170..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedDiskDetails.PowerShell.cs +++ /dev/null @@ -1,320 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A protected disk details. - [System.ComponentModel.TypeConverter(typeof(A2AProtectedDiskDetailsTypeConverter))] - public partial class A2AProtectedDiskDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AProtectedDiskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskUri = (string) content.GetValueForProperty("DiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskUri, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).RecoveryAzureStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).RecoveryAzureStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryDiskAzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).PrimaryDiskAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryDiskAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).PrimaryDiskAzureStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryDiskUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).RecoveryDiskUri = (string) content.GetValueForProperty("RecoveryDiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).RecoveryDiskUri, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("DiskCapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("PrimaryStagingAzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskType = (string) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskType, global::System.Convert.ToString); - } - if (content.Contains("ResyncRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).ResyncRequired = (bool?) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).ResyncRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("MonitoringPercentageCompletion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).MonitoringPercentageCompletion = (int?) content.GetValueForProperty("MonitoringPercentageCompletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).MonitoringPercentageCompletion, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MonitoringJobType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).MonitoringJobType = (string) content.GetValueForProperty("MonitoringJobType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).MonitoringJobType, global::System.Convert.ToString); - } - if (content.Contains("DataPendingInStagingStorageAccountInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb = (double?) content.GetValueForProperty("DataPendingInStagingStorageAccountInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DataPendingAtSourceAgentInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DiskState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskState = (string) content.GetValueForProperty("DiskState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskState, global::System.Convert.ToString); - } - if (content.Contains("AllowedDiskLevelOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).AllowedDiskLevelOperation = (string[]) content.GetValueForProperty("AllowedDiskLevelOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).AllowedDiskLevelOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("IsDiskEncrypted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).IsDiskEncrypted = (bool?) content.GetValueForProperty("IsDiskEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).IsDiskEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).SecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DekKeyVaultArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DekKeyVaultArmId = (string) content.GetValueForProperty("DekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DekKeyVaultArmId, global::System.Convert.ToString); - } - if (content.Contains("IsDiskKeyEncrypted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).IsDiskKeyEncrypted = (bool?) content.GetValueForProperty("IsDiskKeyEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).IsDiskKeyEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("KeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).KeyIdentifier = (string) content.GetValueForProperty("KeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).KeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KekKeyVaultArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).KekKeyVaultArmId = (string) content.GetValueForProperty("KekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).KekKeyVaultArmId, global::System.Convert.ToString); - } - if (content.Contains("FailoverDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).FailoverDiskName = (string) content.GetValueForProperty("FailoverDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).FailoverDiskName, global::System.Convert.ToString); - } - if (content.Contains("TfoDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).TfoDiskName = (string) content.GetValueForProperty("TfoDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).TfoDiskName, 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 A2AProtectedDiskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskUri = (string) content.GetValueForProperty("DiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskUri, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).RecoveryAzureStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).RecoveryAzureStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryDiskAzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).PrimaryDiskAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryDiskAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).PrimaryDiskAzureStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryDiskUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).RecoveryDiskUri = (string) content.GetValueForProperty("RecoveryDiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).RecoveryDiskUri, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("DiskCapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("PrimaryStagingAzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskType = (string) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskType, global::System.Convert.ToString); - } - if (content.Contains("ResyncRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).ResyncRequired = (bool?) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).ResyncRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("MonitoringPercentageCompletion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).MonitoringPercentageCompletion = (int?) content.GetValueForProperty("MonitoringPercentageCompletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).MonitoringPercentageCompletion, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MonitoringJobType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).MonitoringJobType = (string) content.GetValueForProperty("MonitoringJobType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).MonitoringJobType, global::System.Convert.ToString); - } - if (content.Contains("DataPendingInStagingStorageAccountInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb = (double?) content.GetValueForProperty("DataPendingInStagingStorageAccountInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DataPendingAtSourceAgentInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DiskState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskState = (string) content.GetValueForProperty("DiskState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DiskState, global::System.Convert.ToString); - } - if (content.Contains("AllowedDiskLevelOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).AllowedDiskLevelOperation = (string[]) content.GetValueForProperty("AllowedDiskLevelOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).AllowedDiskLevelOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("IsDiskEncrypted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).IsDiskEncrypted = (bool?) content.GetValueForProperty("IsDiskEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).IsDiskEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).SecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DekKeyVaultArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DekKeyVaultArmId = (string) content.GetValueForProperty("DekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).DekKeyVaultArmId, global::System.Convert.ToString); - } - if (content.Contains("IsDiskKeyEncrypted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).IsDiskKeyEncrypted = (bool?) content.GetValueForProperty("IsDiskKeyEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).IsDiskKeyEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("KeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).KeyIdentifier = (string) content.GetValueForProperty("KeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).KeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KekKeyVaultArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).KekKeyVaultArmId = (string) content.GetValueForProperty("KekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).KekKeyVaultArmId, global::System.Convert.ToString); - } - if (content.Contains("FailoverDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).FailoverDiskName = (string) content.GetValueForProperty("FailoverDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).FailoverDiskName, global::System.Convert.ToString); - } - if (content.Contains("TfoDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).TfoDiskName = (string) content.GetValueForProperty("TfoDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal)this).TfoDiskName, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AProtectedDiskDetails(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.Migrate.Models.Api20220501.IA2AProtectedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AProtectedDiskDetails(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.Migrate.Models.Api20220501.IA2AProtectedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A protected disk details. - [System.ComponentModel.TypeConverter(typeof(A2AProtectedDiskDetailsTypeConverter))] - public partial interface IA2AProtectedDiskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedManagedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AProtectedManagedDiskDetails.PowerShell.cs deleted file mode 100644 index 0706eeff3cc6..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedManagedDiskDetails.PowerShell.cs +++ /dev/null @@ -1,362 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A protected managed disk details. - [System.ComponentModel.TypeConverter(typeof(A2AProtectedManagedDiskDetailsTypeConverter))] - public partial class A2AProtectedManagedDiskDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AProtectedManagedDiskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryTargetDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskId = (string) content.GetValueForProperty("RecoveryTargetDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryReplicaDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskId = (string) content.GetValueForProperty("RecoveryReplicaDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryOrignalTargetDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryOrignalTargetDiskId = (string) content.GetValueForProperty("RecoveryOrignalTargetDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryOrignalTargetDiskId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryReplicaDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryTargetDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryDiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryDiskEncryptionSetId = (string) content.GetValueForProperty("RecoveryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryDiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryDiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryDiskEncryptionSetId = (string) content.GetValueForProperty("PrimaryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryDiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("DiskCapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("PrimaryStagingAzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskType = (string) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskType, global::System.Convert.ToString); - } - if (content.Contains("ResyncRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).ResyncRequired = (bool?) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).ResyncRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("MonitoringPercentageCompletion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringPercentageCompletion = (int?) content.GetValueForProperty("MonitoringPercentageCompletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringPercentageCompletion, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MonitoringJobType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringJobType = (string) content.GetValueForProperty("MonitoringJobType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringJobType, global::System.Convert.ToString); - } - if (content.Contains("DataPendingInStagingStorageAccountInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb = (double?) content.GetValueForProperty("DataPendingInStagingStorageAccountInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DataPendingAtSourceAgentInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DiskState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskState = (string) content.GetValueForProperty("DiskState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskState, global::System.Convert.ToString); - } - if (content.Contains("AllowedDiskLevelOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).AllowedDiskLevelOperation = (string[]) content.GetValueForProperty("AllowedDiskLevelOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).AllowedDiskLevelOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("IsDiskEncrypted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskEncrypted = (bool?) content.GetValueForProperty("IsDiskEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).SecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DekKeyVaultArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DekKeyVaultArmId = (string) content.GetValueForProperty("DekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DekKeyVaultArmId, global::System.Convert.ToString); - } - if (content.Contains("IsDiskKeyEncrypted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskKeyEncrypted = (bool?) content.GetValueForProperty("IsDiskKeyEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskKeyEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("KeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).KeyIdentifier = (string) content.GetValueForProperty("KeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).KeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KekKeyVaultArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).KekKeyVaultArmId = (string) content.GetValueForProperty("KekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).KekKeyVaultArmId, global::System.Convert.ToString); - } - if (content.Contains("FailoverDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).FailoverDiskName = (string) content.GetValueForProperty("FailoverDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).FailoverDiskName, global::System.Convert.ToString); - } - if (content.Contains("TfoDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).TfoDiskName = (string) content.GetValueForProperty("TfoDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).TfoDiskName, 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 A2AProtectedManagedDiskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryTargetDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskId = (string) content.GetValueForProperty("RecoveryTargetDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryReplicaDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskId = (string) content.GetValueForProperty("RecoveryReplicaDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryOrignalTargetDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryOrignalTargetDiskId = (string) content.GetValueForProperty("RecoveryOrignalTargetDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryOrignalTargetDiskId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryReplicaDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryTargetDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryDiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryDiskEncryptionSetId = (string) content.GetValueForProperty("RecoveryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryDiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryDiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryDiskEncryptionSetId = (string) content.GetValueForProperty("PrimaryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryDiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("DiskCapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("PrimaryStagingAzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskType = (string) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskType, global::System.Convert.ToString); - } - if (content.Contains("ResyncRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).ResyncRequired = (bool?) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).ResyncRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("MonitoringPercentageCompletion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringPercentageCompletion = (int?) content.GetValueForProperty("MonitoringPercentageCompletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringPercentageCompletion, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MonitoringJobType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringJobType = (string) content.GetValueForProperty("MonitoringJobType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringJobType, global::System.Convert.ToString); - } - if (content.Contains("DataPendingInStagingStorageAccountInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb = (double?) content.GetValueForProperty("DataPendingInStagingStorageAccountInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DataPendingAtSourceAgentInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DiskState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskState = (string) content.GetValueForProperty("DiskState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DiskState, global::System.Convert.ToString); - } - if (content.Contains("AllowedDiskLevelOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).AllowedDiskLevelOperation = (string[]) content.GetValueForProperty("AllowedDiskLevelOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).AllowedDiskLevelOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("IsDiskEncrypted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskEncrypted = (bool?) content.GetValueForProperty("IsDiskEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).SecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DekKeyVaultArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DekKeyVaultArmId = (string) content.GetValueForProperty("DekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).DekKeyVaultArmId, global::System.Convert.ToString); - } - if (content.Contains("IsDiskKeyEncrypted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskKeyEncrypted = (bool?) content.GetValueForProperty("IsDiskKeyEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskKeyEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("KeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).KeyIdentifier = (string) content.GetValueForProperty("KeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).KeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KekKeyVaultArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).KekKeyVaultArmId = (string) content.GetValueForProperty("KekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).KekKeyVaultArmId, global::System.Convert.ToString); - } - if (content.Contains("FailoverDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).FailoverDiskName = (string) content.GetValueForProperty("FailoverDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).FailoverDiskName, global::System.Convert.ToString); - } - if (content.Contains("TfoDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).TfoDiskName = (string) content.GetValueForProperty("TfoDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal)this).TfoDiskName, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AProtectedManagedDiskDetails(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.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AProtectedManagedDiskDetails(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.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A protected managed disk details. - [System.ComponentModel.TypeConverter(typeof(A2AProtectedManagedDiskDetailsTypeConverter))] - public partial interface IA2AProtectedManagedDiskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionContainerMappingDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AProtectionContainerMappingDetails.PowerShell.cs deleted file mode 100644 index d1550c791893..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionContainerMappingDetails.PowerShell.cs +++ /dev/null @@ -1,188 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A provider specific settings. - [System.ComponentModel.TypeConverter(typeof(A2AProtectionContainerMappingDetailsTypeConverter))] - public partial class A2AProtectionContainerMappingDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AProtectionContainerMappingDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentAutoUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); - } - if (content.Contains("AutomationAccountArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountArmId, global::System.Convert.ToString); - } - if (content.Contains("AutomationAccountAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); - } - if (content.Contains("ScheduleName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).ScheduleName = (string) content.GetValueForProperty("ScheduleName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).ScheduleName, global::System.Convert.ToString); - } - if (content.Contains("JobScheduleName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).JobScheduleName = (string) content.GetValueForProperty("JobScheduleName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).JobScheduleName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, 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 A2AProtectionContainerMappingDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentAutoUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); - } - if (content.Contains("AutomationAccountArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountArmId, global::System.Convert.ToString); - } - if (content.Contains("AutomationAccountAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); - } - if (content.Contains("ScheduleName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).ScheduleName = (string) content.GetValueForProperty("ScheduleName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).ScheduleName, global::System.Convert.ToString); - } - if (content.Contains("JobScheduleName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).JobScheduleName = (string) content.GetValueForProperty("JobScheduleName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal)this).JobScheduleName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AProtectionContainerMappingDetails(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.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AProtectionContainerMappingDetails(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.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A provider specific settings. - [System.ComponentModel.TypeConverter(typeof(A2AProtectionContainerMappingDetailsTypeConverter))] - public partial interface IA2AProtectionContainerMappingDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentDiskInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentDiskInputDetails.PowerShell.cs deleted file mode 100644 index 51e273752526..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentDiskInputDetails.PowerShell.cs +++ /dev/null @@ -1,180 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Azure VM unmanaged disk input details. - [System.ComponentModel.TypeConverter(typeof(A2AProtectionIntentDiskInputDetailsTypeConverter))] - public partial class A2AProtectionIntentDiskInputDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AProtectionIntentDiskInputDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryAzureStorageAccountCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails) content.GetValueForProperty("RecoveryAzureStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("PrimaryStagingStorageAccountCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiskUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).DiskUri = (string) content.GetValueForProperty("DiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).DiskUri, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureStorageAccountCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("RecoveryAzureStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("PrimaryStagingStorageAccountCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType, 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 A2AProtectionIntentDiskInputDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryAzureStorageAccountCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails) content.GetValueForProperty("RecoveryAzureStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("PrimaryStagingStorageAccountCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiskUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).DiskUri = (string) content.GetValueForProperty("DiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).DiskUri, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureStorageAccountCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("RecoveryAzureStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("PrimaryStagingStorageAccountCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AProtectionIntentDiskInputDetails(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.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AProtectionIntentDiskInputDetails(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.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Azure VM unmanaged disk input details. - [System.ComponentModel.TypeConverter(typeof(A2AProtectionIntentDiskInputDetailsTypeConverter))] - public partial interface IA2AProtectionIntentDiskInputDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentDiskInputDetails.cs b/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentDiskInputDetails.cs deleted file mode 100644 index f20a91b6da48..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentDiskInputDetails.cs +++ /dev/null @@ -1,107 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Azure VM unmanaged disk input details. - public partial class A2AProtectionIntentDiskInputDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal - { - - /// Backing field for property. - private string _diskUri; - - /// The disk Uri. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string DiskUri { get => this._diskUri; set => this._diskUri = value; } - - /// Internal Acessors for PrimaryStagingStorageAccountCustomInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal.PrimaryStagingStorageAccountCustomInput { get => (this._primaryStagingStorageAccountCustomInput = this._primaryStagingStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails()); set { {_primaryStagingStorageAccountCustomInput = value;} } } - - /// Internal Acessors for RecoveryAzureStorageAccountCustomInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetailsInternal.RecoveryAzureStorageAccountCustomInput { get => (this._recoveryAzureStorageAccountCustomInput = this._recoveryAzureStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails()); set { {_recoveryAzureStorageAccountCustomInput = value;} } } - - /// - /// Backing field for property. - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails _primaryStagingStorageAccountCustomInput; - - /// The primary staging storage account input. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get => (this._primaryStagingStorageAccountCustomInput = this._primaryStagingStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails()); set => this._primaryStagingStorageAccountCustomInput = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryStagingStorageAccountCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccountCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccountCustomInput).ResourceType = value ?? null; } - - /// - /// Backing field for property. - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails _recoveryAzureStorageAccountCustomInput; - - /// The recovery VHD storage account input. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails RecoveryAzureStorageAccountCustomInput { get => (this._recoveryAzureStorageAccountCustomInput = this._recoveryAzureStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails()); set => this._recoveryAzureStorageAccountCustomInput = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryAzureStorageAccountCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)RecoveryAzureStorageAccountCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)RecoveryAzureStorageAccountCustomInput).ResourceType = value ?? null; } - - /// Creates an new instance. - public A2AProtectionIntentDiskInputDetails() - { - - } - } - /// Azure VM unmanaged disk input details. - public partial interface IA2AProtectionIntentDiskInputDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The disk Uri. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The disk Uri.", - SerializedName = @"diskUri", - PossibleTypes = new [] { typeof(string) })] - string DiskUri { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string PrimaryStagingStorageAccountCustomInputResourceType { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string RecoveryAzureStorageAccountCustomInputResourceType { get; set; } - - } - /// Azure VM unmanaged disk input details. - internal partial interface IA2AProtectionIntentDiskInputDetailsInternal - - { - /// The disk Uri. - string DiskUri { get; set; } - /// The primary staging storage account input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get; set; } - /// The class type. - string PrimaryStagingStorageAccountCustomInputResourceType { get; set; } - /// The recovery VHD storage account input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails RecoveryAzureStorageAccountCustomInput { get; set; } - /// The class type. - string RecoveryAzureStorageAccountCustomInputResourceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentManagedDiskInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentManagedDiskInputDetails.PowerShell.cs deleted file mode 100644 index 7eb4f6439044..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentManagedDiskInputDetails.PowerShell.cs +++ /dev/null @@ -1,261 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Azure VM managed disk input details. - [System.ComponentModel.TypeConverter(typeof(A2AProtectionIntentManagedDiskInputDetailsTypeConverter))] - public partial class A2AProtectionIntentManagedDiskInputDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AProtectionIntentManagedDiskInputDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryStagingStorageAccountCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryResourceGroupCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails) content.GetValueForProperty("RecoveryResourceGroupCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryResourceGroupCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryReplicaDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryTargetDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryDiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId = (string) content.GetValueForProperty("RecoveryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryStagingStorageAccountCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryResourceGroupCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInputResourceType = (string) content.GetValueForProperty("RecoveryResourceGroupCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2AProtectionIntentManagedDiskInputDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryStagingStorageAccountCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryResourceGroupCustomInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails) content.GetValueForProperty("RecoveryResourceGroupCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryResourceGroupCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryReplicaDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryTargetDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryDiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId = (string) content.GetValueForProperty("RecoveryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryStagingStorageAccountCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryResourceGroupCustomInputResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInputResourceType = (string) content.GetValueForProperty("RecoveryResourceGroupCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInputResourceType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AProtectionIntentManagedDiskInputDetails(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.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AProtectionIntentManagedDiskInputDetails(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.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Azure VM managed disk input details. - [System.ComponentModel.TypeConverter(typeof(A2AProtectionIntentManagedDiskInputDetailsTypeConverter))] - public partial interface IA2AProtectionIntentManagedDiskInputDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentManagedDiskInputDetails.cs b/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentManagedDiskInputDetails.cs deleted file mode 100644 index 75fd410c64dd..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentManagedDiskInputDetails.cs +++ /dev/null @@ -1,248 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Azure VM managed disk input details. - public partial class A2AProtectionIntentManagedDiskInputDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo _diskEncryptionInfo; - - /// The recovery disk encryption information (for one / single pass flows). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } - - /// The KeyVault resource ARM id for secret. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } - - /// The secret url / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } - - /// Backing field for property. - private string _diskId; - - /// The disk Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string DiskId { get => this._diskId; set => this._diskId = value; } - - /// The key URL / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } - - /// The KeyVault resource ARM Id for key. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } - - /// Internal Acessors for DiskEncryptionInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } - - /// Internal Acessors for DiskEncryptionInfoDiskEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } - - /// Internal Acessors for DiskEncryptionInfoKeyEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } - - /// Internal Acessors for PrimaryStagingStorageAccountCustomInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal.PrimaryStagingStorageAccountCustomInput { get => (this._primaryStagingStorageAccountCustomInput = this._primaryStagingStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails()); set { {_primaryStagingStorageAccountCustomInput = value;} } } - - /// Internal Acessors for RecoveryResourceGroupCustomInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetailsInternal.RecoveryResourceGroupCustomInput { get => (this._recoveryResourceGroupCustomInput = this._recoveryResourceGroupCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryResourceGroupCustomDetails()); set { {_recoveryResourceGroupCustomInput = value;} } } - - /// - /// Backing field for property. - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails _primaryStagingStorageAccountCustomInput; - - /// The primary staging storage account input. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get => (this._primaryStagingStorageAccountCustomInput = this._primaryStagingStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails()); set => this._primaryStagingStorageAccountCustomInput = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryStagingStorageAccountCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccountCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccountCustomInput).ResourceType = value ?? null; } - - /// Backing field for property. - private string _recoveryDiskEncryptionSetId; - - /// The recovery disk encryption set Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryDiskEncryptionSetId { get => this._recoveryDiskEncryptionSetId; set => this._recoveryDiskEncryptionSetId = value; } - - /// Backing field for property. - private string _recoveryReplicaDiskAccountType; - - /// - /// The replica disk type. Its an optional value and will be same as source disk type if not user provided. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryReplicaDiskAccountType { get => this._recoveryReplicaDiskAccountType; set => this._recoveryReplicaDiskAccountType = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails _recoveryResourceGroupCustomInput; - - /// The recovery resource group input. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails RecoveryResourceGroupCustomInput { get => (this._recoveryResourceGroupCustomInput = this._recoveryResourceGroupCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryResourceGroupCustomDetails()); set => this._recoveryResourceGroupCustomInput = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryResourceGroupCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetailsInternal)RecoveryResourceGroupCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetailsInternal)RecoveryResourceGroupCustomInput).ResourceType = value ?? null; } - - /// Backing field for property. - private string _recoveryTargetDiskAccountType; - - /// - /// The target disk type after failover. Its an optional value and will be same as source disk type if not user provided. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryTargetDiskAccountType { get => this._recoveryTargetDiskAccountType; set => this._recoveryTargetDiskAccountType = value; } - - /// - /// Creates an new instance. - /// - public A2AProtectionIntentManagedDiskInputDetails() - { - - } - } - /// Azure VM managed disk input details. - public partial interface IA2AProtectionIntentManagedDiskInputDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The KeyVault resource ARM id for secret. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The KeyVault resource ARM id for secret.", - SerializedName = @"keyVaultResourceArmId", - PossibleTypes = new [] { typeof(string) })] - string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - /// The secret url / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The secret url / identifier.", - SerializedName = @"secretIdentifier", - PossibleTypes = new [] { typeof(string) })] - string DiskEncryptionKeyInfoSecretIdentifier { get; set; } - /// The disk Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The disk Id.", - SerializedName = @"diskId", - PossibleTypes = new [] { typeof(string) })] - string DiskId { get; set; } - /// The key URL / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The key URL / identifier.", - SerializedName = @"keyIdentifier", - PossibleTypes = new [] { typeof(string) })] - string KeyEncryptionKeyInfoKeyIdentifier { get; set; } - /// The KeyVault resource ARM Id for key. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The KeyVault resource ARM Id for key.", - SerializedName = @"keyVaultResourceArmId", - PossibleTypes = new [] { typeof(string) })] - string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string PrimaryStagingStorageAccountCustomInputResourceType { get; set; } - /// The recovery disk encryption set Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery disk encryption set Id.", - SerializedName = @"recoveryDiskEncryptionSetId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryDiskEncryptionSetId { get; set; } - /// - /// The replica disk type. Its an optional value and will be same as source disk type if not user provided. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The replica disk type. Its an optional value and will be same as source disk type if not user provided.", - SerializedName = @"recoveryReplicaDiskAccountType", - PossibleTypes = new [] { typeof(string) })] - string RecoveryReplicaDiskAccountType { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string RecoveryResourceGroupCustomInputResourceType { get; set; } - /// - /// The target disk type after failover. Its an optional value and will be same as source disk type if not user provided. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target disk type after failover. Its an optional value and will be same as source disk type if not user provided.", - SerializedName = @"recoveryTargetDiskAccountType", - PossibleTypes = new [] { typeof(string) })] - string RecoveryTargetDiskAccountType { get; set; } - - } - /// Azure VM managed disk input details. - internal partial interface IA2AProtectionIntentManagedDiskInputDetailsInternal - - { - /// The recovery disk encryption information (for one / single pass flows). - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } - /// The recovery KeyVault reference for secret. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } - /// The recovery KeyVault reference for key. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } - /// The KeyVault resource ARM id for secret. - string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - /// The secret url / identifier. - string DiskEncryptionKeyInfoSecretIdentifier { get; set; } - /// The disk Id. - string DiskId { get; set; } - /// The key URL / identifier. - string KeyEncryptionKeyInfoKeyIdentifier { get; set; } - /// The KeyVault resource ARM Id for key. - string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - /// The primary staging storage account input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get; set; } - /// The class type. - string PrimaryStagingStorageAccountCustomInputResourceType { get; set; } - /// The recovery disk encryption set Id. - string RecoveryDiskEncryptionSetId { get; set; } - /// - /// The replica disk type. Its an optional value and will be same as source disk type if not user provided. - /// - string RecoveryReplicaDiskAccountType { get; set; } - /// The recovery resource group input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails RecoveryResourceGroupCustomInput { get; set; } - /// The class type. - string RecoveryResourceGroupCustomInputResourceType { get; set; } - /// - /// The target disk type after failover. Its an optional value and will be same as source disk type if not user provided. - /// - string RecoveryTargetDiskAccountType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ARecoveryPointDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2ARecoveryPointDetails.PowerShell.cs deleted file mode 100644 index 9de4f91557d3..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2ARecoveryPointDetails.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A provider specific recovery point details. - [System.ComponentModel.TypeConverter(typeof(A2ARecoveryPointDetailsTypeConverter))] - public partial class A2ARecoveryPointDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2ARecoveryPointDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointSyncType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetailsInternal)this).RecoveryPointSyncType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointSyncType?) content.GetValueForProperty("RecoveryPointSyncType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetailsInternal)this).RecoveryPointSyncType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointSyncType.CreateFrom); - } - if (content.Contains("Disk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetailsInternal)this).Disk = (string[]) content.GetValueForProperty("Disk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetailsInternal)this).Disk, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, 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 A2ARecoveryPointDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointSyncType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetailsInternal)this).RecoveryPointSyncType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointSyncType?) content.GetValueForProperty("RecoveryPointSyncType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetailsInternal)this).RecoveryPointSyncType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointSyncType.CreateFrom); - } - if (content.Contains("Disk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetailsInternal)this).Disk = (string[]) content.GetValueForProperty("Disk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetailsInternal)this).Disk, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2ARecoveryPointDetails(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.Migrate.Models.Api20220501.IA2ARecoveryPointDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2ARecoveryPointDetails(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.Migrate.Models.Api20220501.IA2ARecoveryPointDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A provider specific recovery point details. - [System.ComponentModel.TypeConverter(typeof(A2ARecoveryPointDetailsTypeConverter))] - public partial interface IA2ARecoveryPointDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ARemoveDisksInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2ARemoveDisksInput.PowerShell.cs deleted file mode 100644 index 4af74d43b538..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2ARemoveDisksInput.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A remove disk(s) input. - [System.ComponentModel.TypeConverter(typeof(A2ARemoveDisksInputTypeConverter))] - public partial class A2ARemoveDisksInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2ARemoveDisksInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VMDisksUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInputInternal)this).VMDisksUri = (string[]) content.GetValueForProperty("VMDisksUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInputInternal)this).VMDisksUri, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("VMManagedDisksId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInputInternal)this).VMManagedDisksId = (string[]) content.GetValueForProperty("VMManagedDisksId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInputInternal)this).VMManagedDisksId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInputInternal)this).InstanceType, 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 A2ARemoveDisksInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VMDisksUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInputInternal)this).VMDisksUri = (string[]) content.GetValueForProperty("VMDisksUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInputInternal)this).VMDisksUri, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("VMManagedDisksId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInputInternal)this).VMManagedDisksId = (string[]) content.GetValueForProperty("VMManagedDisksId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInputInternal)this).VMManagedDisksId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2ARemoveDisksInput(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.Migrate.Models.Api20220501.IA2ARemoveDisksInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2ARemoveDisksInput(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.Migrate.Models.Api20220501.IA2ARemoveDisksInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A remove disk(s) input. - [System.ComponentModel.TypeConverter(typeof(A2ARemoveDisksInputTypeConverter))] - public partial interface IA2ARemoveDisksInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AReplicationDetails.PowerShell.cs deleted file mode 100644 index 314e6d2e55bd..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationDetails.PowerShell.cs +++ /dev/null @@ -1,648 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A provider specific settings. - [System.ComponentModel.TypeConverter(typeof(A2AReplicationDetailsTypeConverter))] - public partial class A2AReplicationDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AReplicationDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InitialPrimaryExtendedLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation) content.GetValueForProperty("InitialPrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocationTypeConverter.ConvertFrom); - } - if (content.Contains("InitialRecoveryExtendedLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation) content.GetValueForProperty("InitialRecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocationTypeConverter.ConvertFrom); - } - if (content.Contains("VMSyncedConfigDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails) content.GetValueForProperty("VMSyncedConfigDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureVMSyncedConfigDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("PrimaryExtendedLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation) content.GetValueForProperty("PrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocationTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryExtendedLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocationTypeConverter.ConvertFrom); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("InitialPrimaryZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryZone = (string) content.GetValueForProperty("InitialPrimaryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryZone, global::System.Convert.ToString); - } - if (content.Contains("InitialPrimaryFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryFabricLocation = (string) content.GetValueForProperty("InitialPrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("InitialRecoveryZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryZone = (string) content.GetValueForProperty("InitialRecoveryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryZone, global::System.Convert.ToString); - } - if (content.Contains("InitialRecoveryFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryFabricLocation = (string) content.GetValueForProperty("InitialRecoveryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupCreateOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MultiVMGroupCreateOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption?) content.GetValueForProperty("MultiVMGroupCreateOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MultiVMGroupCreateOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption.CreateFrom); - } - if (content.Contains("ManagementId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).ManagementId = (string) content.GetValueForProperty("ManagementId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).ManagementId, global::System.Convert.ToString); - } - if (content.Contains("ProtectedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("UnprotectedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).UnprotectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails[]) content.GetValueForProperty("UnprotectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).UnprotectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AUnprotectedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("ProtectedManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).ProtectedManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails[]) content.GetValueForProperty("ProtectedManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).ProtectedManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectedManagedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryBootDiagStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryFabricLocation = (string) content.GetValueForProperty("PrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryFabricLocation = (string) content.GetValueForProperty("RecoveryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCloudService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryCloudService = (string) content.GetValueForProperty("RecoveryCloudService",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryCloudService, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAvailabilitySet = (string) content.GetValueForProperty("RecoveryAvailabilitySet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAvailabilitySet, global::System.Convert.ToString); - } - if (content.Contains("SelectedRecoveryAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedTfoAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("MonitoringPercentageCompletion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MonitoringPercentageCompletion = (int?) content.GetValueForProperty("MonitoringPercentageCompletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MonitoringPercentageCompletion, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MonitoringJobType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MonitoringJobType = (string) content.GetValueForProperty("MonitoringJobType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MonitoringJobType, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AgentVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("IsReplicationAgentUpdateRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).IsReplicationAgentUpdateRequired = (bool?) content.GetValueForProperty("IsReplicationAgentUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).IsReplicationAgentUpdateRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("AgentCertificateExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AgentCertificateExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentCertificateExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AgentCertificateExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("IsReplicationAgentCertificateUpdateRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).IsReplicationAgentCertificateUpdateRequired = (bool?) content.GetValueForProperty("IsReplicationAgentCertificateUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).IsReplicationAgentCertificateUpdateRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RecoveryFabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryFabricObjectId = (string) content.GetValueForProperty("RecoveryFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryFabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("LifecycleId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).LifecycleId = (string) content.GetValueForProperty("LifecycleId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).LifecycleId, global::System.Convert.ToString); - } - if (content.Contains("TestFailoverRecoveryFabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).TestFailoverRecoveryFabricObjectId = (string) content.GetValueForProperty("TestFailoverRecoveryFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).TestFailoverRecoveryFabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("RpoInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LastRpoCalculatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("PrimaryAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryAvailabilityZone = (string) content.GetValueForProperty("PrimaryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("VMEncryptionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMEncryptionType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMEncryptionType?) content.GetValueForProperty("VMEncryptionType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMEncryptionType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMEncryptionType.CreateFrom); - } - if (content.Contains("TfoAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).TfoAzureVMName = (string) content.GetValueForProperty("TfoAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).TfoAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureGeneration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureGeneration = (string) content.GetValueForProperty("RecoveryAzureGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureGeneration, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("AutoProtectionOfDataDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AutoProtectionOfDataDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("AutoProtectionOfDataDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AutoProtectionOfDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.CreateFrom); - } - if (content.Contains("RecoveryVirtualMachineScaleSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCapacityReservationGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("InitialPrimaryExtendedLocationName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationName = (string) content.GetValueForProperty("InitialPrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationName, global::System.Convert.ToString); - } - if (content.Contains("InitialPrimaryExtendedLocationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationType = (string) content.GetValueForProperty("InitialPrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationType, global::System.Convert.ToString); - } - if (content.Contains("InitialRecoveryExtendedLocationName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationName = (string) content.GetValueForProperty("InitialRecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationName, global::System.Convert.ToString); - } - if (content.Contains("InitialRecoveryExtendedLocationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationType = (string) content.GetValueForProperty("InitialRecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationType, global::System.Convert.ToString); - } - if (content.Contains("VMSyncedConfigDetailTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags) content.GetValueForProperty("VMSyncedConfigDetailTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureVMSyncedConfigDetailsTagsTypeConverter.ConvertFrom); - } - if (content.Contains("VMSyncedConfigDetailInputEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailInputEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint[]) content.GetValueForProperty("VMSyncedConfigDetailInputEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailInputEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InputEndpointTypeConverter.ConvertFrom)); - } - if (content.Contains("PrimaryExtendedLocationName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationName = (string) content.GetValueForProperty("PrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryExtendedLocationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationType = (string) content.GetValueForProperty("PrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryExtendedLocationName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryExtendedLocationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationType, 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 A2AReplicationDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InitialPrimaryExtendedLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation) content.GetValueForProperty("InitialPrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocationTypeConverter.ConvertFrom); - } - if (content.Contains("InitialRecoveryExtendedLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation) content.GetValueForProperty("InitialRecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocationTypeConverter.ConvertFrom); - } - if (content.Contains("VMSyncedConfigDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails) content.GetValueForProperty("VMSyncedConfigDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureVMSyncedConfigDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("PrimaryExtendedLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation) content.GetValueForProperty("PrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocationTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryExtendedLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocationTypeConverter.ConvertFrom); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("InitialPrimaryZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryZone = (string) content.GetValueForProperty("InitialPrimaryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryZone, global::System.Convert.ToString); - } - if (content.Contains("InitialPrimaryFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryFabricLocation = (string) content.GetValueForProperty("InitialPrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("InitialRecoveryZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryZone = (string) content.GetValueForProperty("InitialRecoveryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryZone, global::System.Convert.ToString); - } - if (content.Contains("InitialRecoveryFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryFabricLocation = (string) content.GetValueForProperty("InitialRecoveryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupCreateOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MultiVMGroupCreateOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption?) content.GetValueForProperty("MultiVMGroupCreateOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MultiVMGroupCreateOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption.CreateFrom); - } - if (content.Contains("ManagementId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).ManagementId = (string) content.GetValueForProperty("ManagementId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).ManagementId, global::System.Convert.ToString); - } - if (content.Contains("ProtectedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("UnprotectedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).UnprotectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails[]) content.GetValueForProperty("UnprotectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).UnprotectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AUnprotectedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("ProtectedManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).ProtectedManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails[]) content.GetValueForProperty("ProtectedManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).ProtectedManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectedManagedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryBootDiagStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryFabricLocation = (string) content.GetValueForProperty("PrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryFabricLocation = (string) content.GetValueForProperty("RecoveryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCloudService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryCloudService = (string) content.GetValueForProperty("RecoveryCloudService",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryCloudService, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAvailabilitySet = (string) content.GetValueForProperty("RecoveryAvailabilitySet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAvailabilitySet, global::System.Convert.ToString); - } - if (content.Contains("SelectedRecoveryAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedTfoAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("MonitoringPercentageCompletion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MonitoringPercentageCompletion = (int?) content.GetValueForProperty("MonitoringPercentageCompletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MonitoringPercentageCompletion, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MonitoringJobType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MonitoringJobType = (string) content.GetValueForProperty("MonitoringJobType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).MonitoringJobType, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AgentVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("IsReplicationAgentUpdateRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).IsReplicationAgentUpdateRequired = (bool?) content.GetValueForProperty("IsReplicationAgentUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).IsReplicationAgentUpdateRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("AgentCertificateExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AgentCertificateExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentCertificateExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AgentCertificateExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("IsReplicationAgentCertificateUpdateRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).IsReplicationAgentCertificateUpdateRequired = (bool?) content.GetValueForProperty("IsReplicationAgentCertificateUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).IsReplicationAgentCertificateUpdateRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RecoveryFabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryFabricObjectId = (string) content.GetValueForProperty("RecoveryFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryFabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("LifecycleId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).LifecycleId = (string) content.GetValueForProperty("LifecycleId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).LifecycleId, global::System.Convert.ToString); - } - if (content.Contains("TestFailoverRecoveryFabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).TestFailoverRecoveryFabricObjectId = (string) content.GetValueForProperty("TestFailoverRecoveryFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).TestFailoverRecoveryFabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("RpoInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LastRpoCalculatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("PrimaryAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryAvailabilityZone = (string) content.GetValueForProperty("PrimaryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("VMEncryptionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMEncryptionType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMEncryptionType?) content.GetValueForProperty("VMEncryptionType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMEncryptionType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMEncryptionType.CreateFrom); - } - if (content.Contains("TfoAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).TfoAzureVMName = (string) content.GetValueForProperty("TfoAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).TfoAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureGeneration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureGeneration = (string) content.GetValueForProperty("RecoveryAzureGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryAzureGeneration, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("AutoProtectionOfDataDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AutoProtectionOfDataDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("AutoProtectionOfDataDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).AutoProtectionOfDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.CreateFrom); - } - if (content.Contains("RecoveryVirtualMachineScaleSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCapacityReservationGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("InitialPrimaryExtendedLocationName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationName = (string) content.GetValueForProperty("InitialPrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationName, global::System.Convert.ToString); - } - if (content.Contains("InitialPrimaryExtendedLocationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationType = (string) content.GetValueForProperty("InitialPrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationType, global::System.Convert.ToString); - } - if (content.Contains("InitialRecoveryExtendedLocationName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationName = (string) content.GetValueForProperty("InitialRecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationName, global::System.Convert.ToString); - } - if (content.Contains("InitialRecoveryExtendedLocationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationType = (string) content.GetValueForProperty("InitialRecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationType, global::System.Convert.ToString); - } - if (content.Contains("VMSyncedConfigDetailTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags) content.GetValueForProperty("VMSyncedConfigDetailTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureVMSyncedConfigDetailsTagsTypeConverter.ConvertFrom); - } - if (content.Contains("VMSyncedConfigDetailInputEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailInputEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint[]) content.GetValueForProperty("VMSyncedConfigDetailInputEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailInputEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InputEndpointTypeConverter.ConvertFrom)); - } - if (content.Contains("PrimaryExtendedLocationName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationName = (string) content.GetValueForProperty("PrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryExtendedLocationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationType = (string) content.GetValueForProperty("PrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryExtendedLocationName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryExtendedLocationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AReplicationDetails(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.Migrate.Models.Api20220501.IA2AReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AReplicationDetails(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.Migrate.Models.Api20220501.IA2AReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A provider specific settings. - [System.ComponentModel.TypeConverter(typeof(A2AReplicationDetailsTypeConverter))] - public partial interface IA2AReplicationDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationIntentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AReplicationIntentDetails.PowerShell.cs deleted file mode 100644 index f0020973cc54..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationIntentDetails.PowerShell.cs +++ /dev/null @@ -1,418 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A provider specific settings. - [System.ComponentModel.TypeConverter(typeof(A2AReplicationIntentDetailsTypeConverter))] - public partial class A2AReplicationIntentDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AReplicationIntentDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProtectionProfile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).ProtectionProfile = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails) content.GetValueForProperty("ProtectionProfile",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).ProtectionProfile, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("PrimaryStagingStorageAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryAvailabilitySet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySet = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails) content.GetValueForProperty("RecoveryAvailabilitySet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryAvailabilitySetCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryVirtualNetwork")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails) content.GetValueForProperty("RecoveryVirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryProximityPlacementGroup")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroup = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails) content.GetValueForProperty("RecoveryProximityPlacementGroup",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroup, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryProximityPlacementGroupCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryBootDiagStorageAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails) content.GetValueForProperty("RecoveryBootDiagStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).PrimaryLocation = (string) content.GetValueForProperty("PrimaryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).PrimaryLocation, global::System.Convert.ToString); - } - if (content.Contains("RecoveryLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryLocation = (string) content.GetValueForProperty("RecoveryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryLocation, global::System.Convert.ToString); - } - if (content.Contains("RecoverySubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoverySubscriptionId = (string) content.GetValueForProperty("RecoverySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoverySubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentManagedDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("AutoProtectionOfDataDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AutoProtectionOfDataDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("AutoProtectionOfDataDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AutoProtectionOfDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.CreateFrom); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityType = (string) content.GetValueForProperty("RecoveryAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityType, global::System.Convert.ToString); - } - if (content.Contains("AgentAutoUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); - } - if (content.Contains("AutomationAccountArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AutomationAccountArmId, global::System.Convert.ToString); - } - if (content.Contains("AutomationAccountAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("ProtectionProfileResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).ProtectionProfileResourceType = (string) content.GetValueForProperty("ProtectionProfileResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).ProtectionProfileResourceType, global::System.Convert.ToString); - } - if (content.Contains("PrimaryStagingStorageAccountResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccountResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccountResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySetResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySetResourceType = (string) content.GetValueForProperty("RecoveryAvailabilitySetResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySetResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVirtualNetworkResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetworkResourceType = (string) content.GetValueForProperty("RecoveryVirtualNetworkResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetworkResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProximityPlacementGroupResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroupResourceType = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroupResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryBootDiagStorageAccountResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccountResourceType = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccountResourceType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2AReplicationIntentDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProtectionProfile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).ProtectionProfile = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails) content.GetValueForProperty("ProtectionProfile",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).ProtectionProfile, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("PrimaryStagingStorageAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryAvailabilitySet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySet = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails) content.GetValueForProperty("RecoveryAvailabilitySet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryAvailabilitySetCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryVirtualNetwork")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails) content.GetValueForProperty("RecoveryVirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryProximityPlacementGroup")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroup = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails) content.GetValueForProperty("RecoveryProximityPlacementGroup",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroup, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryProximityPlacementGroupCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryBootDiagStorageAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails) content.GetValueForProperty("RecoveryBootDiagStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).PrimaryLocation = (string) content.GetValueForProperty("PrimaryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).PrimaryLocation, global::System.Convert.ToString); - } - if (content.Contains("RecoveryLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryLocation = (string) content.GetValueForProperty("RecoveryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryLocation, global::System.Convert.ToString); - } - if (content.Contains("RecoverySubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoverySubscriptionId = (string) content.GetValueForProperty("RecoverySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoverySubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentManagedDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("AutoProtectionOfDataDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AutoProtectionOfDataDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("AutoProtectionOfDataDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AutoProtectionOfDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.CreateFrom); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityType = (string) content.GetValueForProperty("RecoveryAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityType, global::System.Convert.ToString); - } - if (content.Contains("AgentAutoUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); - } - if (content.Contains("AutomationAccountArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AutomationAccountArmId, global::System.Convert.ToString); - } - if (content.Contains("AutomationAccountAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("ProtectionProfileResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).ProtectionProfileResourceType = (string) content.GetValueForProperty("ProtectionProfileResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).ProtectionProfileResourceType, global::System.Convert.ToString); - } - if (content.Contains("PrimaryStagingStorageAccountResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccountResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccountResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySetResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySetResourceType = (string) content.GetValueForProperty("RecoveryAvailabilitySetResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySetResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVirtualNetworkResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetworkResourceType = (string) content.GetValueForProperty("RecoveryVirtualNetworkResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetworkResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProximityPlacementGroupResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroupResourceType = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroupResourceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryBootDiagStorageAccountResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccountResourceType = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccountResourceType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AReplicationIntentDetails(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.Migrate.Models.Api20220501.IA2AReplicationIntentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AReplicationIntentDetails(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.Migrate.Models.Api20220501.IA2AReplicationIntentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A provider specific settings. - [System.ComponentModel.TypeConverter(typeof(A2AReplicationIntentDetailsTypeConverter))] - public partial interface IA2AReplicationIntentDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationIntentDetails.cs b/src/Migrate/generated/api/Models/Api20220501/A2AReplicationIntentDetails.cs deleted file mode 100644 index 0810918b6a91..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationIntentDetails.cs +++ /dev/null @@ -1,546 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// A2A provider specific settings. - public partial class A2AReplicationIntentDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings __replicationProtectionIntentProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProviderSpecificSettings(); - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? _agentAutoUpdateStatus; - - /// A value indicating whether the auto update is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get => this._agentAutoUpdateStatus; set => this._agentAutoUpdateStatus = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? _autoProtectionOfDataDisk; - - /// A value indicating whether the auto protection is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? AutoProtectionOfDataDisk { get => this._autoProtectionOfDataDisk; set => this._autoProtectionOfDataDisk = value; } - - /// Backing field for property. - private string _automationAccountArmId; - - /// The automation account arm id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string AutomationAccountArmId { get => this._automationAccountArmId; set => this._automationAccountArmId = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? _automationAccountAuthenticationType; - - /// A value indicating the type authentication to use for automation Account. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? AutomationAccountAuthenticationType { get => this._automationAccountAuthenticationType; set => this._automationAccountAuthenticationType = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo _diskEncryptionInfo; - - /// The recovery disk encryption information (for two pass flows). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } - - /// The KeyVault resource ARM id for secret. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } - - /// The secret url / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } - - /// Backing field for property. - private string _fabricObjectId; - - /// The fabric specific object Id of the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string FabricObjectId { get => this._fabricObjectId; set => this._fabricObjectId = value; } - - /// Gets the Instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettingsInternal)__replicationProtectionIntentProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettingsInternal)__replicationProtectionIntentProviderSpecificSettings).InstanceType = value ; } - - /// The key URL / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } - - /// The KeyVault resource ARM Id for key. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } - - /// Internal Acessors for DiskEncryptionInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } - - /// Internal Acessors for DiskEncryptionInfoDiskEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } - - /// Internal Acessors for DiskEncryptionInfoKeyEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } - - /// Internal Acessors for PrimaryStagingStorageAccount - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal.PrimaryStagingStorageAccount { get => (this._primaryStagingStorageAccount = this._primaryStagingStorageAccount ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails()); set { {_primaryStagingStorageAccount = value;} } } - - /// Internal Acessors for ProtectionProfile - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal.ProtectionProfile { get => (this._protectionProfile = this._protectionProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetails()); set { {_protectionProfile = value;} } } - - /// Internal Acessors for RecoveryAvailabilitySet - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal.RecoveryAvailabilitySet { get => (this._recoveryAvailabilitySet = this._recoveryAvailabilitySet ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryAvailabilitySetCustomDetails()); set { {_recoveryAvailabilitySet = value;} } } - - /// Internal Acessors for RecoveryBootDiagStorageAccount - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal.RecoveryBootDiagStorageAccount { get => (this._recoveryBootDiagStorageAccount = this._recoveryBootDiagStorageAccount ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails()); set { {_recoveryBootDiagStorageAccount = value;} } } - - /// Internal Acessors for RecoveryProximityPlacementGroup - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal.RecoveryProximityPlacementGroup { get => (this._recoveryProximityPlacementGroup = this._recoveryProximityPlacementGroup ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryProximityPlacementGroupCustomDetails()); set { {_recoveryProximityPlacementGroup = value;} } } - - /// Internal Acessors for RecoveryVirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetailsInternal.RecoveryVirtualNetwork { get => (this._recoveryVirtualNetwork = this._recoveryVirtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetails()); set { {_recoveryVirtualNetwork = value;} } } - - /// Backing field for property. - private string _multiVMGroupId; - - /// The multi vm group id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string MultiVMGroupId { get => this._multiVMGroupId; set => this._multiVMGroupId = value; } - - /// Backing field for property. - private string _multiVMGroupName; - - /// The multi vm group name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string MultiVMGroupName { get => this._multiVMGroupName; set => this._multiVMGroupName = value; } - - /// Backing field for property. - private string _primaryLocation; - - /// The primary location for the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PrimaryLocation { get => this._primaryLocation; set => this._primaryLocation = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails _primaryStagingStorageAccount; - - /// The primary staging storage account details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails PrimaryStagingStorageAccount { get => (this._primaryStagingStorageAccount = this._primaryStagingStorageAccount ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails()); set => this._primaryStagingStorageAccount = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryStagingStorageAccountResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccount).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccount).ResourceType = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails _protectionProfile; - - /// The protection profile custom details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails ProtectionProfile { get => (this._protectionProfile = this._protectionProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetails()); set => this._protectionProfile = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProtectionProfileResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)ProtectionProfile).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)ProtectionProfile).ResourceType = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails _recoveryAvailabilitySet; - - /// The recovery availability set details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails RecoveryAvailabilitySet { get => (this._recoveryAvailabilitySet = this._recoveryAvailabilitySet ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryAvailabilitySetCustomDetails()); set => this._recoveryAvailabilitySet = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryAvailabilitySetResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal)RecoveryAvailabilitySet).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal)RecoveryAvailabilitySet).ResourceType = value ?? null; } - - /// Backing field for property. - private string _recoveryAvailabilityType; - - /// The recovery availability type of the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryAvailabilityType { get => this._recoveryAvailabilityType; set => this._recoveryAvailabilityType = value; } - - /// Backing field for property. - private string _recoveryAvailabilityZone; - - /// The recovery availability zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryAvailabilityZone { get => this._recoveryAvailabilityZone; set => this._recoveryAvailabilityZone = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails _recoveryBootDiagStorageAccount; - - /// The boot diagnostic storage account. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails RecoveryBootDiagStorageAccount { get => (this._recoveryBootDiagStorageAccount = this._recoveryBootDiagStorageAccount ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails()); set => this._recoveryBootDiagStorageAccount = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryBootDiagStorageAccountResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)RecoveryBootDiagStorageAccount).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)RecoveryBootDiagStorageAccount).ResourceType = value ?? null; } - - /// Backing field for property. - private string _recoveryLocation; - - /// The recovery location for the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryLocation { get => this._recoveryLocation; set => this._recoveryLocation = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails _recoveryProximityPlacementGroup; - - /// The recovery proximity placement group custom details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails RecoveryProximityPlacementGroup { get => (this._recoveryProximityPlacementGroup = this._recoveryProximityPlacementGroup ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryProximityPlacementGroupCustomDetails()); set => this._recoveryProximityPlacementGroup = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryProximityPlacementGroupResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal)RecoveryProximityPlacementGroup).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal)RecoveryProximityPlacementGroup).ResourceType = value ?? null; } - - /// Backing field for property. - private string _recoveryResourceGroupId; - - /// The recovery resource group id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryResourceGroupId { get => this._recoveryResourceGroupId; set => this._recoveryResourceGroupId = value; } - - /// Backing field for property. - private string _recoverySubscriptionId; - - /// The recovery subscription Id of the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoverySubscriptionId { get => this._recoverySubscriptionId; set => this._recoverySubscriptionId = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails _recoveryVirtualNetwork; - - /// The recovery virtual network details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails RecoveryVirtualNetwork { get => (this._recoveryVirtualNetwork = this._recoveryVirtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetails()); set => this._recoveryVirtualNetwork = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryVirtualNetworkResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)RecoveryVirtualNetwork).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)RecoveryVirtualNetwork).ResourceType = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails[] _vMDisk; - - /// The list of vm disk details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails[] _vMManagedDisk; - - /// The list of vm managed disk details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails[] VMManagedDisk { get => this._vMManagedDisk; set => this._vMManagedDisk = value; } - - /// Creates an new instance. - public A2AReplicationIntentDetails() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__replicationProtectionIntentProviderSpecificSettings), __replicationProtectionIntentProviderSpecificSettings); - await eventListener.AssertObjectIsValid(nameof(__replicationProtectionIntentProviderSpecificSettings), __replicationProtectionIntentProviderSpecificSettings); - } - } - /// A2A provider specific settings. - public partial interface IA2AReplicationIntentDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings - { - /// A value indicating whether the auto update is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating whether the auto update is enabled.", - SerializedName = @"agentAutoUpdateStatus", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get; set; } - /// A value indicating whether the auto protection is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating whether the auto protection is enabled.", - SerializedName = @"autoProtectionOfDataDisk", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? AutoProtectionOfDataDisk { get; set; } - /// The automation account arm id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The automation account arm id.", - SerializedName = @"automationAccountArmId", - PossibleTypes = new [] { typeof(string) })] - string AutomationAccountArmId { get; set; } - /// A value indicating the type authentication to use for automation Account. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating the type authentication to use for automation Account.", - SerializedName = @"automationAccountAuthenticationType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? AutomationAccountAuthenticationType { get; set; } - /// The KeyVault resource ARM id for secret. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The KeyVault resource ARM id for secret.", - SerializedName = @"keyVaultResourceArmId", - PossibleTypes = new [] { typeof(string) })] - string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - /// The secret url / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The secret url / identifier.", - SerializedName = @"secretIdentifier", - PossibleTypes = new [] { typeof(string) })] - string DiskEncryptionKeyInfoSecretIdentifier { get; set; } - /// The fabric specific object Id of the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The fabric specific object Id of the virtual machine.", - SerializedName = @"fabricObjectId", - PossibleTypes = new [] { typeof(string) })] - string FabricObjectId { get; set; } - /// The key URL / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The key URL / identifier.", - SerializedName = @"keyIdentifier", - PossibleTypes = new [] { typeof(string) })] - string KeyEncryptionKeyInfoKeyIdentifier { get; set; } - /// The KeyVault resource ARM Id for key. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The KeyVault resource ARM Id for key.", - SerializedName = @"keyVaultResourceArmId", - PossibleTypes = new [] { typeof(string) })] - string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - /// The multi vm group id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The multi vm group id.", - SerializedName = @"multiVmGroupId", - PossibleTypes = new [] { typeof(string) })] - string MultiVMGroupId { get; set; } - /// The multi vm group name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The multi vm group name.", - SerializedName = @"multiVmGroupName", - PossibleTypes = new [] { typeof(string) })] - string MultiVMGroupName { get; set; } - /// The primary location for the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The primary location for the virtual machine.", - SerializedName = @"primaryLocation", - PossibleTypes = new [] { typeof(string) })] - string PrimaryLocation { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string PrimaryStagingStorageAccountResourceType { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string ProtectionProfileResourceType { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string RecoveryAvailabilitySetResourceType { get; set; } - /// The recovery availability type of the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The recovery availability type of the virtual machine.", - SerializedName = @"recoveryAvailabilityType", - PossibleTypes = new [] { typeof(string) })] - string RecoveryAvailabilityType { get; set; } - /// The recovery availability zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery availability zone.", - SerializedName = @"recoveryAvailabilityZone", - PossibleTypes = new [] { typeof(string) })] - string RecoveryAvailabilityZone { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string RecoveryBootDiagStorageAccountResourceType { get; set; } - /// The recovery location for the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery location for the virtual machine.", - SerializedName = @"recoveryLocation", - PossibleTypes = new [] { typeof(string) })] - string RecoveryLocation { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string RecoveryProximityPlacementGroupResourceType { get; set; } - /// The recovery resource group id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery resource group id.", - SerializedName = @"recoveryResourceGroupId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryResourceGroupId { get; set; } - /// The recovery subscription Id of the virtual machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery subscription Id of the virtual machine.", - SerializedName = @"recoverySubscriptionId", - PossibleTypes = new [] { typeof(string) })] - string RecoverySubscriptionId { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"resourceType", - PossibleTypes = new [] { typeof(string) })] - string RecoveryVirtualNetworkResourceType { get; set; } - /// The list of vm disk details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of vm disk details.", - SerializedName = @"vmDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails[] VMDisk { get; set; } - /// The list of vm managed disk details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of vm managed disk details.", - SerializedName = @"vmManagedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails[] VMManagedDisk { get; set; } - - } - /// A2A provider specific settings. - internal partial interface IA2AReplicationIntentDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettingsInternal - { - /// A value indicating whether the auto update is enabled. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get; set; } - /// A value indicating whether the auto protection is enabled. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? AutoProtectionOfDataDisk { get; set; } - /// The automation account arm id. - string AutomationAccountArmId { get; set; } - /// A value indicating the type authentication to use for automation Account. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? AutomationAccountAuthenticationType { get; set; } - /// The recovery disk encryption information (for two pass flows). - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } - /// The recovery KeyVault reference for secret. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } - /// The recovery KeyVault reference for key. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } - /// The KeyVault resource ARM id for secret. - string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - /// The secret url / identifier. - string DiskEncryptionKeyInfoSecretIdentifier { get; set; } - /// The fabric specific object Id of the virtual machine. - string FabricObjectId { get; set; } - /// The key URL / identifier. - string KeyEncryptionKeyInfoKeyIdentifier { get; set; } - /// The KeyVault resource ARM Id for key. - string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - /// The multi vm group id. - string MultiVMGroupId { get; set; } - /// The multi vm group name. - string MultiVMGroupName { get; set; } - /// The primary location for the virtual machine. - string PrimaryLocation { get; set; } - /// The primary staging storage account details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails PrimaryStagingStorageAccount { get; set; } - /// The class type. - string PrimaryStagingStorageAccountResourceType { get; set; } - /// The protection profile custom details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails ProtectionProfile { get; set; } - /// The class type. - string ProtectionProfileResourceType { get; set; } - /// The recovery availability set details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails RecoveryAvailabilitySet { get; set; } - /// The class type. - string RecoveryAvailabilitySetResourceType { get; set; } - /// The recovery availability type of the virtual machine. - string RecoveryAvailabilityType { get; set; } - /// The recovery availability zone. - string RecoveryAvailabilityZone { get; set; } - /// The boot diagnostic storage account. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails RecoveryBootDiagStorageAccount { get; set; } - /// The class type. - string RecoveryBootDiagStorageAccountResourceType { get; set; } - /// The recovery location for the virtual machine. - string RecoveryLocation { get; set; } - /// The recovery proximity placement group custom details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails RecoveryProximityPlacementGroup { get; set; } - /// The class type. - string RecoveryProximityPlacementGroupResourceType { get; set; } - /// The recovery resource group id. - string RecoveryResourceGroupId { get; set; } - /// The recovery subscription Id of the virtual machine. - string RecoverySubscriptionId { get; set; } - /// The recovery virtual network details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails RecoveryVirtualNetwork { get; set; } - /// The class type. - string RecoveryVirtualNetworkResourceType { get; set; } - /// The list of vm disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails[] VMDisk { get; set; } - /// The list of vm managed disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails[] VMManagedDisk { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AReprotectInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AReprotectInput.PowerShell.cs deleted file mode 100644 index f01f5cb60d47..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AReprotectInput.PowerShell.cs +++ /dev/null @@ -1,192 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Azure specific reprotect input. - [System.ComponentModel.TypeConverter(typeof(A2AReprotectInputTypeConverter))] - public partial class A2AReprotectInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AReprotectInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCloudServiceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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 A2AReprotectInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCloudServiceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AReprotectInput(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.Migrate.Models.Api20220501.IA2AReprotectInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AReprotectInput(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.Migrate.Models.Api20220501.IA2AReprotectInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Azure specific reprotect input. - [System.ComponentModel.TypeConverter(typeof(A2AReprotectInputTypeConverter))] - public partial interface IA2AReprotectInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ASwitchProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2ASwitchProtectionInput.PowerShell.cs deleted file mode 100644 index f0125c810a20..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2ASwitchProtectionInput.PowerShell.cs +++ /dev/null @@ -1,296 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A specific switch protection input. - [System.ComponentModel.TypeConverter(typeof(A2ASwitchProtectionInputTypeConverter))] - public partial class A2ASwitchProtectionInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2ASwitchProtectionInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCloudServiceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryBootDiagStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVirtualMachineScaleSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCapacityReservationGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2ASwitchProtectionInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCloudServiceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryBootDiagStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVirtualMachineScaleSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCapacityReservationGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2ASwitchProtectionInput(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.Migrate.Models.Api20220501.IA2ASwitchProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2ASwitchProtectionInput(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.Migrate.Models.Api20220501.IA2ASwitchProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A specific switch protection input. - [System.ComponentModel.TypeConverter(typeof(A2ASwitchProtectionInputTypeConverter))] - public partial interface IA2ASwitchProtectionInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ATestFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2ATestFailoverInput.PowerShell.cs deleted file mode 100644 index 34a8903a7cd4..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2ATestFailoverInput.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A provider specific input for test failover. - [System.ComponentModel.TypeConverter(typeof(A2ATestFailoverInputTypeConverter))] - public partial class A2ATestFailoverInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2ATestFailoverInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("CloudServiceCreationOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInputInternal)this).CloudServiceCreationOption = (string) content.GetValueForProperty("CloudServiceCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInputInternal)this).CloudServiceCreationOption, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType, 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 A2ATestFailoverInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("CloudServiceCreationOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInputInternal)this).CloudServiceCreationOption = (string) content.GetValueForProperty("CloudServiceCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInputInternal)this).CloudServiceCreationOption, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2ATestFailoverInput(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.Migrate.Models.Api20220501.IA2ATestFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2ATestFailoverInput(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.Migrate.Models.Api20220501.IA2ATestFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A provider specific input for test failover. - [System.ComponentModel.TypeConverter(typeof(A2ATestFailoverInputTypeConverter))] - public partial interface IA2ATestFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUnplannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AUnplannedFailoverInput.PowerShell.cs deleted file mode 100644 index 555b2fc04e12..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUnplannedFailoverInput.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A provider specific input for unplanned failover. - [System.ComponentModel.TypeConverter(typeof(A2AUnplannedFailoverInputTypeConverter))] - public partial class A2AUnplannedFailoverInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AUnplannedFailoverInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("CloudServiceCreationOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInputInternal)this).CloudServiceCreationOption = (string) content.GetValueForProperty("CloudServiceCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInputInternal)this).CloudServiceCreationOption, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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 A2AUnplannedFailoverInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("CloudServiceCreationOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInputInternal)this).CloudServiceCreationOption = (string) content.GetValueForProperty("CloudServiceCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInputInternal)this).CloudServiceCreationOption, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AUnplannedFailoverInput(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.Migrate.Models.Api20220501.IA2AUnplannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AUnplannedFailoverInput(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.Migrate.Models.Api20220501.IA2AUnplannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A provider specific input for unplanned failover. - [System.ComponentModel.TypeConverter(typeof(A2AUnplannedFailoverInputTypeConverter))] - public partial interface IA2AUnplannedFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AUpdateContainerMappingInput.PowerShell.cs deleted file mode 100644 index 5f972ad6f374..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateContainerMappingInput.PowerShell.cs +++ /dev/null @@ -1,170 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A update protection container mapping. - [System.ComponentModel.TypeConverter(typeof(A2AUpdateContainerMappingInputTypeConverter))] - public partial class A2AUpdateContainerMappingInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AUpdateContainerMappingInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentAutoUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInputInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInputInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); - } - if (content.Contains("AutomationAccountArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountArmId, global::System.Convert.ToString); - } - if (content.Contains("AutomationAccountAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType, 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 A2AUpdateContainerMappingInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentAutoUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInputInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInputInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); - } - if (content.Contains("AutomationAccountArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountArmId, global::System.Convert.ToString); - } - if (content.Contains("AutomationAccountAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AUpdateContainerMappingInput(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.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AUpdateContainerMappingInput(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.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A update protection container mapping. - [System.ComponentModel.TypeConverter(typeof(A2AUpdateContainerMappingInputTypeConverter))] - public partial interface IA2AUpdateContainerMappingInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateReplicationProtectedItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AUpdateReplicationProtectedItemInput.PowerShell.cs deleted file mode 100644 index 2ce5ca058d19..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateReplicationProtectedItemInput.PowerShell.cs +++ /dev/null @@ -1,269 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMage Azure V2 input to update replication protected item. - [System.ComponentModel.TypeConverter(typeof(A2AUpdateReplicationProtectedItemInputTypeConverter))] - public partial class A2AUpdateReplicationProtectedItemInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AUpdateReplicationProtectedItemInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryCloudServiceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("ManagedDiskUpdateDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).ManagedDiskUpdateDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails[]) content.GetValueForProperty("ManagedDiskUpdateDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).ManagedDiskUpdateDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskUpdateDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryBootDiagStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TfoAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).TfoAzureVMName = (string) content.GetValueForProperty("TfoAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).TfoAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVirtualMachineScaleSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCapacityReservationGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2AUpdateReplicationProtectedItemInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryCloudServiceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("ManagedDiskUpdateDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).ManagedDiskUpdateDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails[]) content.GetValueForProperty("ManagedDiskUpdateDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).ManagedDiskUpdateDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskUpdateDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryBootDiagStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TfoAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).TfoAzureVMName = (string) content.GetValueForProperty("TfoAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).TfoAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVirtualMachineScaleSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryCapacityReservationGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AUpdateReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AUpdateReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMage Azure V2 input to update replication protected item. - [System.ComponentModel.TypeConverter(typeof(A2AUpdateReplicationProtectedItemInputTypeConverter))] - public partial interface IA2AUpdateReplicationProtectedItemInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AvmDiskInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AvmDiskInputDetails.PowerShell.cs deleted file mode 100644 index 7a68106c4ef2..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AvmDiskInputDetails.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A disk input details. - [System.ComponentModel.TypeConverter(typeof(A2AvmDiskInputDetailsTypeConverter))] - public partial class A2AvmDiskInputDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AvmDiskInputDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetailsInternal)this).DiskUri = (string) content.GetValueForProperty("DiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetailsInternal)this).DiskUri, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetailsInternal)this).RecoveryAzureStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetailsInternal)this).RecoveryAzureStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryStagingAzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId, 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 A2AvmDiskInputDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetailsInternal)this).DiskUri = (string) content.GetValueForProperty("DiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetailsInternal)this).DiskUri, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetailsInternal)this).RecoveryAzureStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetailsInternal)this).RecoveryAzureStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryStagingAzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AvmDiskInputDetails(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.Migrate.Models.Api20220501.IA2AvmDiskInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AvmDiskInputDetails(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.Migrate.Models.Api20220501.IA2AvmDiskInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A disk input details. - [System.ComponentModel.TypeConverter(typeof(A2AvmDiskInputDetailsTypeConverter))] - public partial interface IA2AvmDiskInputDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskInputDetails.PowerShell.cs deleted file mode 100644 index ddb78ec16e32..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskInputDetails.PowerShell.cs +++ /dev/null @@ -1,242 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A managed disk input details. - [System.ComponentModel.TypeConverter(typeof(A2AvmManagedDiskInputDetailsTypeConverter))] - public partial class A2AvmManagedDiskInputDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AvmManagedDiskInputDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryStagingAzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryReplicaDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryTargetDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryDiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId = (string) content.GetValueForProperty("RecoveryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2AvmManagedDiskInputDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryStagingAzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryReplicaDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryTargetDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryDiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId = (string) content.GetValueForProperty("RecoveryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AvmManagedDiskInputDetails(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.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AvmManagedDiskInputDetails(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.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A managed disk input details. - [System.ComponentModel.TypeConverter(typeof(A2AvmManagedDiskInputDetailsTypeConverter))] - public partial interface IA2AvmManagedDiskInputDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskUpdateDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskUpdateDetails.PowerShell.cs deleted file mode 100644 index a809031ad7cb..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskUpdateDetails.PowerShell.cs +++ /dev/null @@ -1,234 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A Vm managed disk update details. - [System.ComponentModel.TypeConverter(typeof(A2AvmManagedDiskUpdateDetailsTypeConverter))] - public partial class A2AvmManagedDiskUpdateDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal A2AvmManagedDiskUpdateDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryTargetDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryReplicaDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("FailoverDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).FailoverDiskName = (string) content.GetValueForProperty("FailoverDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).FailoverDiskName, global::System.Convert.ToString); - } - if (content.Contains("TfoDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).TfoDiskName = (string) content.GetValueForProperty("TfoDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).TfoDiskName, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2AvmManagedDiskUpdateDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskEncryptionInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryTargetDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryReplicaDiskAccountType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); - } - if (content.Contains("FailoverDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).FailoverDiskName = (string) content.GetValueForProperty("FailoverDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).FailoverDiskName, global::System.Convert.ToString); - } - if (content.Contains("TfoDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).TfoDiskName = (string) content.GetValueForProperty("TfoDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).TfoDiskName, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new A2AvmManagedDiskUpdateDetails(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.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new A2AvmManagedDiskUpdateDetails(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.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A Vm managed disk update details. - [System.ComponentModel.TypeConverter(typeof(A2AvmManagedDiskUpdateDetailsTypeConverter))] - public partial interface IA2AvmManagedDiskUpdateDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddDisksInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/AddDisksInput.PowerShell.cs deleted file mode 100644 index 6fe8078058cc..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AddDisksInput.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input for add disk(s) operation. - [System.ComponentModel.TypeConverter(typeof(AddDisksInputTypeConverter))] - public partial class AddDisksInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AddDisksInput(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.Migrate.Models.Api20220501.IAddDisksInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputInternal)this).ProviderSpecificDetailInstanceType, 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 AddDisksInput(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.Migrate.Models.Api20220501.IAddDisksInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AddDisksInput(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.Migrate.Models.Api20220501.IAddDisksInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AddDisksInput(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.Migrate.Models.Api20220501.IAddDisksInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Input for add disk(s) operation. - [System.ComponentModel.TypeConverter(typeof(AddDisksInputTypeConverter))] - public partial interface IAddDisksInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddDisksInput.cs b/src/Migrate/generated/api/Models/Api20220501/AddDisksInput.cs deleted file mode 100644 index d9ee844ffb8c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AddDisksInput.cs +++ /dev/null @@ -1,68 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input for add disk(s) operation. - public partial class AddDisksInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputProperties _property; - - /// Add disks input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksInputProperties()); set => this._property = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// Creates an new instance. - public AddDisksInput() - { - - } - } - /// Input for add disk(s) operation. - public partial interface IAddDisksInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Input for add disk(s) operation. - internal partial interface IAddDisksInputInternal - - { - /// Add disks input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputProperties Property { get; set; } - /// - /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, - /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. - /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddDisksInputProperties.cs b/src/Migrate/generated/api/Models/Api20220501/AddDisksInputProperties.cs deleted file mode 100644 index 84a9ac243ba9..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AddDisksInputProperties.cs +++ /dev/null @@ -1,66 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Add Disks input properties. - public partial class AddDisksInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputPropertiesInternal - { - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput _providerSpecificDetail; - - /// - /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, - /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksProviderSpecificInput()); set => this._providerSpecificDetail = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ; } - - /// Creates an new instance. - public AddDisksInputProperties() - { - - } - } - /// Add Disks input properties. - public partial interface IAddDisksInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Add Disks input properties. - internal partial interface IAddDisksInputPropertiesInternal - - { - /// - /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, - /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. - /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInput.PowerShell.cs deleted file mode 100644 index 98f66ee691cc..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInput.PowerShell.cs +++ /dev/null @@ -1,314 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input required to add a provider. - [System.ComponentModel.TypeConverter(typeof(AddRecoveryServicesProviderInputTypeConverter))] - public partial class AddRecoveryServicesProviderInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AddRecoveryServicesProviderInput(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.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddRecoveryServicesProviderInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("AuthenticationIdentityInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput) content.GetValueForProperty("AuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceAccessIdentityInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput) content.GetValueForProperty("ResourceAccessIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("DataPlaneAuthenticationIdentityInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput) content.GetValueForProperty("DataPlaneAuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("MachineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).MachineName, global::System.Convert.ToString); - } - if (content.Contains("MachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).MachineId, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("AuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputTenantId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputApplicationId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("AuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputObjectId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAudience = (string) content.GetValueForProperty("AuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAudience, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputTenantId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputApplicationId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputObjectId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAudience = (string) content.GetValueForProperty("ResourceAccessIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAudience, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputTenantId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputApplicationId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputObjectId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAudience, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority, 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 AddRecoveryServicesProviderInput(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.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddRecoveryServicesProviderInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("AuthenticationIdentityInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput) content.GetValueForProperty("AuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceAccessIdentityInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput) content.GetValueForProperty("ResourceAccessIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("DataPlaneAuthenticationIdentityInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput) content.GetValueForProperty("DataPlaneAuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("MachineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).MachineName, global::System.Convert.ToString); - } - if (content.Contains("MachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).MachineId, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("AuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputTenantId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputApplicationId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("AuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputObjectId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAudience = (string) content.GetValueForProperty("AuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAudience, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputTenantId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputApplicationId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputObjectId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAudience = (string) content.GetValueForProperty("ResourceAccessIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAudience, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputTenantId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputApplicationId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputObjectId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAudience, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AddRecoveryServicesProviderInput(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.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AddRecoveryServicesProviderInput(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.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Input required to add a provider. - [System.ComponentModel.TypeConverter(typeof(AddRecoveryServicesProviderInputTypeConverter))] - public partial interface IAddRecoveryServicesProviderInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInputProperties.PowerShell.cs deleted file mode 100644 index 53f2a711cd78..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInputProperties.PowerShell.cs +++ /dev/null @@ -1,309 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// The properties of an add provider request. - [System.ComponentModel.TypeConverter(typeof(AddRecoveryServicesProviderInputPropertiesTypeConverter))] - public partial class AddRecoveryServicesProviderInputProperties - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AddRecoveryServicesProviderInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AuthenticationIdentityInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput) content.GetValueForProperty("AuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceAccessIdentityInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput) content.GetValueForProperty("ResourceAccessIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("DataPlaneAuthenticationIdentityInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput) content.GetValueForProperty("DataPlaneAuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("MachineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineName, global::System.Convert.ToString); - } - if (content.Contains("MachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineId, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("AuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputTenantId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputApplicationId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("AuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputObjectId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAudience = (string) content.GetValueForProperty("AuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAudience, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputTenantId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputApplicationId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputObjectId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAudience = (string) content.GetValueForProperty("ResourceAccessIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAudience, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputTenantId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputApplicationId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputObjectId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAudience, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority, 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 AddRecoveryServicesProviderInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AuthenticationIdentityInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput) content.GetValueForProperty("AuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceAccessIdentityInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput) content.GetValueForProperty("ResourceAccessIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("DataPlaneAuthenticationIdentityInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput) content.GetValueForProperty("DataPlaneAuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("MachineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineName, global::System.Convert.ToString); - } - if (content.Contains("MachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineId, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("AuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputTenantId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputApplicationId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("AuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputObjectId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAudience = (string) content.GetValueForProperty("AuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAudience, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityInputAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputTenantId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputApplicationId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputObjectId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAudience = (string) content.GetValueForProperty("ResourceAccessIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAudience, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityInputAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputTenantId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputApplicationId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputObjectId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAudience, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityInputAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AddRecoveryServicesProviderInputProperties(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.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AddRecoveryServicesProviderInputProperties(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.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The properties of an add provider request. - [System.ComponentModel.TypeConverter(typeof(AddRecoveryServicesProviderInputPropertiesTypeConverter))] - public partial interface IAddRecoveryServicesProviderInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequest.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequest.PowerShell.cs deleted file mode 100644 index 43dd90923a9e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequest.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input required to add vCenter. - [System.ComponentModel.TypeConverter(typeof(AddVCenterRequestTypeConverter))] - public partial class AddVCenterRequest - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AddVCenterRequest(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.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddVCenterRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("Port")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).Port, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).RunAsAccountId, 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 AddVCenterRequest(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.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddVCenterRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("Port")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).Port, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AddVCenterRequest(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.Migrate.Models.Api20220501.IAddVCenterRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AddVCenterRequest(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.Migrate.Models.Api20220501.IAddVCenterRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Input required to add vCenter. - [System.ComponentModel.TypeConverter(typeof(AddVCenterRequestTypeConverter))] - public partial interface IAddVCenterRequest - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequest.cs b/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequest.cs deleted file mode 100644 index 345ec77ab0b4..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequest.cs +++ /dev/null @@ -1,116 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input required to add vCenter. - public partial class AddVCenterRequest : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequest, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal - { - - /// The friendly name of the vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)Property).FriendlyName = value ?? null; } - - /// The IP address of the vCenter to be discovered. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)Property).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)Property).IPAddress = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddVCenterRequestProperties()); set { {_property = value;} } } - - /// The port number for discovery. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Port { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)Property).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)Property).Port = value ?? null; } - - /// The process server Id from where the discovery is orchestrated. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProcessServerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)Property).ProcessServerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)Property).ProcessServerId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestProperties _property; - - /// The properties of an add vCenter request. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddVCenterRequestProperties()); set => this._property = value; } - - /// The account Id which has privileges to discover the vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RunAsAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)Property).RunAsAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)Property).RunAsAccountId = value ?? null; } - - /// Creates an new instance. - public AddVCenterRequest() - { - - } - } - /// Input required to add vCenter. - public partial interface IAddVCenterRequest : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The friendly name of the vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The friendly name of the vCenter.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// The IP address of the vCenter to be discovered. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The IP address of the vCenter to be discovered.", - SerializedName = @"ipAddress", - PossibleTypes = new [] { typeof(string) })] - string IPAddress { get; set; } - /// The port number for discovery. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The port number for discovery.", - SerializedName = @"port", - PossibleTypes = new [] { typeof(string) })] - string Port { get; set; } - /// The process server Id from where the discovery is orchestrated. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The process server Id from where the discovery is orchestrated.", - SerializedName = @"processServerId", - PossibleTypes = new [] { typeof(string) })] - string ProcessServerId { get; set; } - /// The account Id which has privileges to discover the vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The account Id which has privileges to discover the vCenter.", - SerializedName = @"runAsAccountId", - PossibleTypes = new [] { typeof(string) })] - string RunAsAccountId { get; set; } - - } - /// Input required to add vCenter. - internal partial interface IAddVCenterRequestInternal - - { - /// The friendly name of the vCenter. - string FriendlyName { get; set; } - /// The IP address of the vCenter to be discovered. - string IPAddress { get; set; } - /// The port number for discovery. - string Port { get; set; } - /// The process server Id from where the discovery is orchestrated. - string ProcessServerId { get; set; } - /// The properties of an add vCenter request. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestProperties Property { get; set; } - /// The account Id which has privileges to discover the vCenter. - string RunAsAccountId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequestProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequestProperties.PowerShell.cs deleted file mode 100644 index 2932c18b3bff..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequestProperties.PowerShell.cs +++ /dev/null @@ -1,178 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// The properties of an add vCenter request. - [System.ComponentModel.TypeConverter(typeof(AddVCenterRequestPropertiesTypeConverter))] - public partial class AddVCenterRequestProperties - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AddVCenterRequestProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("Port")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).Port, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).RunAsAccountId, 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 AddVCenterRequestProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("Port")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).Port, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AddVCenterRequestProperties(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.Migrate.Models.Api20220501.IAddVCenterRequestProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AddVCenterRequestProperties(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.Migrate.Models.Api20220501.IAddVCenterRequestProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The properties of an add vCenter request. - [System.ComponentModel.TypeConverter(typeof(AddVCenterRequestPropertiesTypeConverter))] - public partial interface IAddVCenterRequestProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AgentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/AgentDetails.PowerShell.cs deleted file mode 100644 index 82c65850fbae..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AgentDetails.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Agent details. - [System.ComponentModel.TypeConverter(typeof(AgentDetailsTypeConverter))] - public partial class AgentDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AgentDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).AgentId = (string) content.GetValueForProperty("AgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).AgentId, global::System.Convert.ToString); - } - if (content.Contains("MachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).MachineId, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("Disk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).Disk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetails[]) content.GetValueForProperty("Disk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).Disk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AgentDiskDetailsTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal AgentDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).AgentId = (string) content.GetValueForProperty("AgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).AgentId, global::System.Convert.ToString); - } - if (content.Contains("MachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).MachineId, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("Disk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).Disk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetails[]) content.GetValueForProperty("Disk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal)this).Disk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AgentDiskDetailsTypeConverter.ConvertFrom)); - } - 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.Migrate.Models.Api20220501.IAgentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AgentDetails(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.Migrate.Models.Api20220501.IAgentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AgentDetails(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.Migrate.Models.Api20220501.IAgentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Agent details. - [System.ComponentModel.TypeConverter(typeof(AgentDetailsTypeConverter))] - public partial interface IAgentDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AgentDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/AgentDiskDetails.PowerShell.cs deleted file mode 100644 index 85000dbcbf14..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AgentDiskDetails.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Agent disk details. - [System.ComponentModel.TypeConverter(typeof(AgentDiskDetailsTypeConverter))] - public partial class AgentDiskDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AgentDiskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("IsOSDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); - } - if (content.Contains("CapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LunId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).LunId = (int?) content.GetValueForProperty("LunId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).LunId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal AgentDiskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("IsOSDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); - } - if (content.Contains("CapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LunId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).LunId = (int?) content.GetValueForProperty("LunId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal)this).LunId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.Migrate.Models.Api20220501.IAgentDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AgentDiskDetails(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.Migrate.Models.Api20220501.IAgentDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AgentDiskDetails(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.Migrate.Models.Api20220501.IAgentDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Agent disk details. - [System.ComponentModel.TypeConverter(typeof(AgentDiskDetailsTypeConverter))] - public partial interface IAgentDiskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Alert.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/Alert.PowerShell.cs deleted file mode 100644 index af85922ed6fd..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/Alert.PowerShell.cs +++ /dev/null @@ -1,200 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Implements the Alert class. - [System.ComponentModel.TypeConverter(typeof(AlertTypeConverter))] - public partial class Alert - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Alert(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.Migrate.Models.Api20220501.IAlertInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AlertPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("SendToOwner")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal)this).SendToOwner, global::System.Convert.ToString); - } - if (content.Contains("CustomEmailAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("Locale")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal)this).Locale, 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 Alert(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.Migrate.Models.Api20220501.IAlertInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AlertPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("SendToOwner")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal)this).SendToOwner, global::System.Convert.ToString); - } - if (content.Contains("CustomEmailAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("Locale")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal)this).Locale, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlert DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Alert(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.Migrate.Models.Api20220501.IAlert DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Alert(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.Migrate.Models.Api20220501.IAlert FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Implements the Alert class. - [System.ComponentModel.TypeConverter(typeof(AlertTypeConverter))] - public partial interface IAlert - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Alert.cs b/src/Migrate/generated/api/Models/Api20220501/Alert.cs deleted file mode 100644 index e5d518ac5d66..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/Alert.cs +++ /dev/null @@ -1,132 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Implements the Alert class. - public partial class Alert : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlert, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// The custom email address for sending emails. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] CustomEmailAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)Property).CustomEmailAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)Property).CustomEmailAddress = value ?? null /* arrayOf */; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// The locale for the email notification. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Locale { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)Property).Locale; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)Property).Locale = value ?? null; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AlertProperties()); set { {_property = value;} } } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertProperties _property; - - /// Alert related data. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AlertProperties()); set => this._property = value; } - - /// A value indicating whether to send email to subscription administrator. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SendToOwner { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)Property).SendToOwner; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)Property).SendToOwner = value ?? null; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public Alert() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Implements the Alert class. - public partial interface IAlert : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// The custom email address for sending emails. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The custom email address for sending emails.", - SerializedName = @"customEmailAddresses", - PossibleTypes = new [] { typeof(string) })] - string[] CustomEmailAddress { get; set; } - /// The locale for the email notification. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The locale for the email notification.", - SerializedName = @"locale", - PossibleTypes = new [] { typeof(string) })] - string Locale { get; set; } - /// A value indicating whether to send email to subscription administrator. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating whether to send email to subscription administrator.", - SerializedName = @"sendToOwners", - PossibleTypes = new [] { typeof(string) })] - string SendToOwner { get; set; } - - } - /// Implements the Alert class. - internal partial interface IAlertInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The custom email address for sending emails. - string[] CustomEmailAddress { get; set; } - /// The locale for the email notification. - string Locale { get; set; } - /// Alert related data. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertProperties Property { get; set; } - /// A value indicating whether to send email to subscription administrator. - string SendToOwner { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInput.PowerShell.cs deleted file mode 100644 index fa4cb104cbbb..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInput.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input to apply recovery point. - [System.ComponentModel.TypeConverter(typeof(ApplyRecoveryPointInputTypeConverter))] - public partial class ApplyRecoveryPointInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ApplyRecoveryPointInput(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.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetailInstanceType, 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 ApplyRecoveryPointInput(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.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ApplyRecoveryPointInput(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.Migrate.Models.Api20220501.IApplyRecoveryPointInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ApplyRecoveryPointInput(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.Migrate.Models.Api20220501.IApplyRecoveryPointInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Input to apply recovery point. - [System.ComponentModel.TypeConverter(typeof(ApplyRecoveryPointInputTypeConverter))] - public partial interface IApplyRecoveryPointInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInput.cs b/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInput.cs deleted file mode 100644 index 5d3b4bf96119..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInput.cs +++ /dev/null @@ -1,79 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input to apply recovery point. - public partial class ApplyRecoveryPointInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties _property; - - /// The input properties to apply recovery point. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointInputProperties()); set => this._property = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ; } - - /// The recovery point Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)Property).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)Property).RecoveryPointId = value ?? null; } - - /// Creates an new instance. - public ApplyRecoveryPointInput() - { - - } - } - /// Input to apply recovery point. - public partial interface IApplyRecoveryPointInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - /// The recovery point Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery point Id.", - SerializedName = @"recoveryPointId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryPointId { get; set; } - - } - /// Input to apply recovery point. - internal partial interface IApplyRecoveryPointInputInternal - - { - /// The input properties to apply recovery point. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties Property { get; set; } - /// Provider specific input for applying recovery point. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - /// The recovery point Id. - string RecoveryPointId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInputProperties.PowerShell.cs deleted file mode 100644 index 0d5ad0889fa3..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInputProperties.PowerShell.cs +++ /dev/null @@ -1,164 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input properties to apply recovery point. - [System.ComponentModel.TypeConverter(typeof(ApplyRecoveryPointInputPropertiesTypeConverter))] - public partial class ApplyRecoveryPointInputProperties - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ApplyRecoveryPointInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 ApplyRecoveryPointInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ApplyRecoveryPointInputProperties(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.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ApplyRecoveryPointInputProperties(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.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Input properties to apply recovery point. - [System.ComponentModel.TypeConverter(typeof(ApplyRecoveryPointInputPropertiesTypeConverter))] - public partial interface IApplyRecoveryPointInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInputProperties.cs b/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInputProperties.cs deleted file mode 100644 index 91cc9d2be6b1..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInputProperties.cs +++ /dev/null @@ -1,77 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input properties to apply recovery point. - public partial class ApplyRecoveryPointInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal - { - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput _providerSpecificDetail; - - /// Provider specific input for applying recovery point. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput()); set => this._providerSpecificDetail = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ; } - - /// Backing field for property. - private string _recoveryPointId; - - /// The recovery point Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryPointId { get => this._recoveryPointId; set => this._recoveryPointId = value; } - - /// Creates an new instance. - public ApplyRecoveryPointInputProperties() - { - - } - } - /// Input properties to apply recovery point. - public partial interface IApplyRecoveryPointInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - /// The recovery point Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery point Id.", - SerializedName = @"recoveryPointId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryPointId { get; set; } - - } - /// Input properties to apply recovery point. - internal partial interface IApplyRecoveryPointInputPropertiesInternal - - { - /// Provider specific input for applying recovery point. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - /// The recovery point Id. - string RecoveryPointId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AsrTask.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/AsrTask.PowerShell.cs deleted file mode 100644 index 09355e38f59c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AsrTask.PowerShell.cs +++ /dev/null @@ -1,256 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Task of the Job. - [System.ComponentModel.TypeConverter(typeof(AsrTaskTypeConverter))] - public partial class AsrTask - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AsrTask(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("GroupTaskCustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).GroupTaskCustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails) content.GetValueForProperty("GroupTaskCustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).GroupTaskCustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.GroupTaskDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("TaskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).TaskId = (string) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).TaskId, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AllowedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).AllowedAction = (string[]) content.GetValueForProperty("AllowedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).AllowedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("StateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).StateDescription = (string) content.GetValueForProperty("StateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).StateDescription, global::System.Convert.ToString); - } - if (content.Contains("TaskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).TaskType = (string) content.GetValueForProperty("TaskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).TaskType, global::System.Convert.ToString); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("CustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); - } - if (content.Contains("GroupTaskCustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).GroupTaskCustomDetailInstanceType = (string) content.GetValueForProperty("GroupTaskCustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).GroupTaskCustomDetailInstanceType, global::System.Convert.ToString); - } - if (content.Contains("GroupTaskCustomDetailChildTask")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).GroupTaskCustomDetailChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[]) content.GetValueForProperty("GroupTaskCustomDetailChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).GroupTaskCustomDetailChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTaskTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal AsrTask(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("GroupTaskCustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).GroupTaskCustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails) content.GetValueForProperty("GroupTaskCustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).GroupTaskCustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.GroupTaskDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("TaskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).TaskId = (string) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).TaskId, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AllowedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).AllowedAction = (string[]) content.GetValueForProperty("AllowedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).AllowedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("StateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).StateDescription = (string) content.GetValueForProperty("StateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).StateDescription, global::System.Convert.ToString); - } - if (content.Contains("TaskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).TaskType = (string) content.GetValueForProperty("TaskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).TaskType, global::System.Convert.ToString); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("CustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); - } - if (content.Contains("GroupTaskCustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).GroupTaskCustomDetailInstanceType = (string) content.GetValueForProperty("GroupTaskCustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).GroupTaskCustomDetailInstanceType, global::System.Convert.ToString); - } - if (content.Contains("GroupTaskCustomDetailChildTask")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).GroupTaskCustomDetailChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[]) content.GetValueForProperty("GroupTaskCustomDetailChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal)this).GroupTaskCustomDetailChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTaskTypeConverter.ConvertFrom)); - } - 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.Migrate.Models.Api20220501.IAsrTask DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AsrTask(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.Migrate.Models.Api20220501.IAsrTask DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AsrTask(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.Migrate.Models.Api20220501.IAsrTask FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Task of the Job. - [System.ComponentModel.TypeConverter(typeof(AsrTaskTypeConverter))] - public partial interface IAsrTask - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AutomationRunbookTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/AutomationRunbookTaskDetails.PowerShell.cs deleted file mode 100644 index b1333ce499ef..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AutomationRunbookTaskDetails.PowerShell.cs +++ /dev/null @@ -1,218 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class represents the task details for an automation runbook. - [System.ComponentModel.TypeConverter(typeof(AutomationRunbookTaskDetailsTypeConverter))] - public partial class AutomationRunbookTaskDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AutomationRunbookTaskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("CloudServiceName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).CloudServiceName = (string) content.GetValueForProperty("CloudServiceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).CloudServiceName, global::System.Convert.ToString); - } - if (content.Contains("SubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).SubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("AccountName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).AccountName, global::System.Convert.ToString); - } - if (content.Contains("RunbookId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).RunbookId = (string) content.GetValueForProperty("RunbookId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).RunbookId, global::System.Convert.ToString); - } - if (content.Contains("RunbookName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).RunbookName = (string) content.GetValueForProperty("RunbookName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).RunbookName, global::System.Convert.ToString); - } - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("JobOutput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).JobOutput = (string) content.GetValueForProperty("JobOutput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).JobOutput, global::System.Convert.ToString); - } - if (content.Contains("IsPrimarySideScript")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).IsPrimarySideScript = (bool?) content.GetValueForProperty("IsPrimarySideScript",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).IsPrimarySideScript, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, 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 AutomationRunbookTaskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("CloudServiceName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).CloudServiceName = (string) content.GetValueForProperty("CloudServiceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).CloudServiceName, global::System.Convert.ToString); - } - if (content.Contains("SubscriptionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).SubscriptionId, global::System.Convert.ToString); - } - if (content.Contains("AccountName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).AccountName, global::System.Convert.ToString); - } - if (content.Contains("RunbookId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).RunbookId = (string) content.GetValueForProperty("RunbookId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).RunbookId, global::System.Convert.ToString); - } - if (content.Contains("RunbookName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).RunbookName = (string) content.GetValueForProperty("RunbookName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).RunbookName, global::System.Convert.ToString); - } - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("JobOutput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).JobOutput = (string) content.GetValueForProperty("JobOutput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).JobOutput, global::System.Convert.ToString); - } - if (content.Contains("IsPrimarySideScript")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).IsPrimarySideScript = (bool?) content.GetValueForProperty("IsPrimarySideScript",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal)this).IsPrimarySideScript, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AutomationRunbookTaskDetails(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.Migrate.Models.Api20220501.IAutomationRunbookTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AutomationRunbookTaskDetails(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.Migrate.Models.Api20220501.IAutomationRunbookTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class represents the task details for an automation runbook. - [System.ComponentModel.TypeConverter(typeof(AutomationRunbookTaskDetailsTypeConverter))] - public partial interface IAutomationRunbookTaskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureFabricSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/AzureFabricSpecificDetails.PowerShell.cs deleted file mode 100644 index 04703b9c1134..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AzureFabricSpecificDetails.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Azure Fabric Specific Details. - [System.ComponentModel.TypeConverter(typeof(AzureFabricSpecificDetailsTypeConverter))] - public partial class AzureFabricSpecificDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AzureFabricSpecificDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetailsInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetailsInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetailsInternal)this).ContainerId = (string[]) content.GetValueForProperty("ContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetailsInternal)this).ContainerId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("Zone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetailsInternal)this).Zone = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetails[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetailsInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AZoneDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType, 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 AzureFabricSpecificDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetailsInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetailsInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetailsInternal)this).ContainerId = (string[]) content.GetValueForProperty("ContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetailsInternal)this).ContainerId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("Zone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetailsInternal)this).Zone = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetails[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetailsInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AZoneDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AzureFabricSpecificDetails(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.Migrate.Models.Api20220501.IAzureFabricSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AzureFabricSpecificDetails(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.Migrate.Models.Api20220501.IAzureFabricSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Azure Fabric Specific Details. - [System.ComponentModel.TypeConverter(typeof(AzureFabricSpecificDetailsTypeConverter))] - public partial interface IAzureFabricSpecificDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureFabricSpecificDetails.cs b/src/Migrate/generated/api/Models/Api20220501/AzureFabricSpecificDetails.cs deleted file mode 100644 index d6c62f2f6d76..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AzureFabricSpecificDetails.cs +++ /dev/null @@ -1,108 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Azure Fabric Specific Details. - public partial class AzureFabricSpecificDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetailsInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails(); - - /// Backing field for property. - private string[] _containerId; - - /// The container Ids for the Azure fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string[] ContainerId { get => this._containerId; set => this._containerId = value; } - - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType = value ; } - - /// Backing field for property. - private string _location; - - /// The Location for the Azure fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetails[] _zone; - - /// The zones. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetails[] Zone { get => this._zone; set => this._zone = value; } - - /// Creates an new instance. - public AzureFabricSpecificDetails() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__fabricSpecificDetails), __fabricSpecificDetails); - await eventListener.AssertObjectIsValid(nameof(__fabricSpecificDetails), __fabricSpecificDetails); - } - } - /// Azure Fabric Specific Details. - public partial interface IAzureFabricSpecificDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails - { - /// The container Ids for the Azure fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The container Ids for the Azure fabric.", - SerializedName = @"containerIds", - PossibleTypes = new [] { typeof(string) })] - string[] ContainerId { get; set; } - /// The Location for the Azure fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Location for the Azure fabric.", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - /// The zones. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The zones.", - SerializedName = @"zones", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetails[] Zone { get; set; } - - } - /// Azure Fabric Specific Details. - internal partial interface IAzureFabricSpecificDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal - { - /// The container Ids for the Azure fabric. - string[] ContainerId { get; set; } - /// The Location for the Azure fabric. - string Location { get; set; } - /// The zones. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetails[] Zone { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureNetworkMappingSettings.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/AzureToAzureNetworkMappingSettings.PowerShell.cs deleted file mode 100644 index 4a4d30c658d4..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureNetworkMappingSettings.PowerShell.cs +++ /dev/null @@ -1,164 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// A2A Network Mapping fabric specific settings. - [System.ComponentModel.TypeConverter(typeof(AzureToAzureNetworkMappingSettingsTypeConverter))] - public partial class AzureToAzureNetworkMappingSettings - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AzureToAzureNetworkMappingSettings(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettingsInternal)this).PrimaryFabricLocation = (string) content.GetValueForProperty("PrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettingsInternal)this).PrimaryFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettingsInternal)this).RecoveryFabricLocation = (string) content.GetValueForProperty("RecoveryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettingsInternal)this).RecoveryFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, 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 AzureToAzureNetworkMappingSettings(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettingsInternal)this).PrimaryFabricLocation = (string) content.GetValueForProperty("PrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettingsInternal)this).PrimaryFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettingsInternal)this).RecoveryFabricLocation = (string) content.GetValueForProperty("RecoveryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettingsInternal)this).RecoveryFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AzureToAzureNetworkMappingSettings(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.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AzureToAzureNetworkMappingSettings(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.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A2A Network Mapping fabric specific settings. - [System.ComponentModel.TypeConverter(typeof(AzureToAzureNetworkMappingSettingsTypeConverter))] - public partial interface IAzureToAzureNetworkMappingSettings - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetails.PowerShell.cs deleted file mode 100644 index e709abf4da20..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetails.PowerShell.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Azure to Azure VM synced configuration details. - [System.ComponentModel.TypeConverter(typeof(AzureToAzureVMSyncedConfigDetailsTypeConverter))] - public partial class AzureToAzureVMSyncedConfigDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AzureToAzureVMSyncedConfigDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureVMSyncedConfigDetailsTagsTypeConverter.ConvertFrom); - } - if (content.Contains("InputEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsInternal)this).InputEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint[]) content.GetValueForProperty("InputEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsInternal)this).InputEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InputEndpointTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal AzureToAzureVMSyncedConfigDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureVMSyncedConfigDetailsTagsTypeConverter.ConvertFrom); - } - if (content.Contains("InputEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsInternal)this).InputEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint[]) content.GetValueForProperty("InputEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsInternal)this).InputEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InputEndpointTypeConverter.ConvertFrom)); - } - 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.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AzureToAzureVMSyncedConfigDetails(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.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AzureToAzureVMSyncedConfigDetails(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.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Azure to Azure VM synced configuration details. - [System.ComponentModel.TypeConverter(typeof(AzureToAzureVMSyncedConfigDetailsTypeConverter))] - public partial interface IAzureToAzureVMSyncedConfigDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureVMDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/AzureVMDiskDetails.PowerShell.cs deleted file mode 100644 index 4f596a044621..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/AzureVMDiskDetails.PowerShell.cs +++ /dev/null @@ -1,216 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Disk details for E2A provider. - [System.ComponentModel.TypeConverter(typeof(AzureVMDiskDetailsTypeConverter))] - public partial class AzureVMDiskDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AzureVMDiskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VhdType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).VhdType = (string) content.GetValueForProperty("VhdType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).VhdType, global::System.Convert.ToString); - } - if (content.Contains("VhdId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).VhdId = (string) content.GetValueForProperty("VhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).VhdId, global::System.Convert.ToString); - } - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("VhdName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).VhdName, global::System.Convert.ToString); - } - if (content.Contains("MaxSizeMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).MaxSizeMb = (string) content.GetValueForProperty("MaxSizeMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).MaxSizeMb, global::System.Convert.ToString); - } - if (content.Contains("TargetDiskLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).TargetDiskLocation = (string) content.GetValueForProperty("TargetDiskLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).TargetDiskLocation, global::System.Convert.ToString); - } - if (content.Contains("TargetDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).TargetDiskName, global::System.Convert.ToString); - } - if (content.Contains("LunId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).LunId = (string) content.GetValueForProperty("LunId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).LunId, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("CustomTargetDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).CustomTargetDiskName = (string) content.GetValueForProperty("CustomTargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).CustomTargetDiskName, 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 AzureVMDiskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VhdType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).VhdType = (string) content.GetValueForProperty("VhdType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).VhdType, global::System.Convert.ToString); - } - if (content.Contains("VhdId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).VhdId = (string) content.GetValueForProperty("VhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).VhdId, global::System.Convert.ToString); - } - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("VhdName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).VhdName, global::System.Convert.ToString); - } - if (content.Contains("MaxSizeMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).MaxSizeMb = (string) content.GetValueForProperty("MaxSizeMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).MaxSizeMb, global::System.Convert.ToString); - } - if (content.Contains("TargetDiskLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).TargetDiskLocation = (string) content.GetValueForProperty("TargetDiskLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).TargetDiskLocation, global::System.Convert.ToString); - } - if (content.Contains("TargetDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).TargetDiskName, global::System.Convert.ToString); - } - if (content.Contains("LunId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).LunId = (string) content.GetValueForProperty("LunId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).LunId, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("CustomTargetDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).CustomTargetDiskName = (string) content.GetValueForProperty("CustomTargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal)this).CustomTargetDiskName, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AzureVMDiskDetails(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.Migrate.Models.Api20220501.IAzureVMDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AzureVMDiskDetails(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.Migrate.Models.Api20220501.IAzureVMDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Disk details for E2A provider. - [System.ComponentModel.TypeConverter(typeof(AzureVMDiskDetailsTypeConverter))] - public partial interface IAzureVMDiskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequest.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequest.PowerShell.cs deleted file mode 100644 index b90c710ca7bc..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequest.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Request to configure alerts for the system. - [System.ComponentModel.TypeConverter(typeof(ConfigureAlertRequestTypeConverter))] - public partial class ConfigureAlertRequest - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ConfigureAlertRequest(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.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigureAlertRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SendToOwner")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).SendToOwner, global::System.Convert.ToString); - } - if (content.Contains("CustomEmailAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("Locale")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).Locale, 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 ConfigureAlertRequest(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.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigureAlertRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SendToOwner")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).SendToOwner, global::System.Convert.ToString); - } - if (content.Contains("CustomEmailAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("Locale")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal)this).Locale, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ConfigureAlertRequest(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.Migrate.Models.Api20220501.IConfigureAlertRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ConfigureAlertRequest(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.Migrate.Models.Api20220501.IConfigureAlertRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Request to configure alerts for the system. - [System.ComponentModel.TypeConverter(typeof(ConfigureAlertRequestTypeConverter))] - public partial interface IConfigureAlertRequest - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequest.cs b/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequest.cs deleted file mode 100644 index d967a051d3a0..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequest.cs +++ /dev/null @@ -1,88 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Request to configure alerts for the system. - public partial class ConfigureAlertRequest : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequest, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal - { - - /// The custom email address for sending emails. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] CustomEmailAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)Property).CustomEmailAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)Property).CustomEmailAddress = value ?? null /* arrayOf */; } - - /// The locale for the email notification. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Locale { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)Property).Locale; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)Property).Locale = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigureAlertRequestProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestProperties _property; - - /// The properties of a configure alert request. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigureAlertRequestProperties()); set => this._property = value; } - - /// A value indicating whether to send email to subscription administrator. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SendToOwner { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)Property).SendToOwner; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)Property).SendToOwner = value ?? null; } - - /// Creates an new instance. - public ConfigureAlertRequest() - { - - } - } - /// Request to configure alerts for the system. - public partial interface IConfigureAlertRequest : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The custom email address for sending emails. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The custom email address for sending emails.", - SerializedName = @"customEmailAddresses", - PossibleTypes = new [] { typeof(string) })] - string[] CustomEmailAddress { get; set; } - /// The locale for the email notification. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The locale for the email notification.", - SerializedName = @"locale", - PossibleTypes = new [] { typeof(string) })] - string Locale { get; set; } - /// A value indicating whether to send email to subscription administrator. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating whether to send email to subscription administrator.", - SerializedName = @"sendToOwners", - PossibleTypes = new [] { typeof(string) })] - string SendToOwner { get; set; } - - } - /// Request to configure alerts for the system. - internal partial interface IConfigureAlertRequestInternal - - { - /// The custom email address for sending emails. - string[] CustomEmailAddress { get; set; } - /// The locale for the email notification. - string Locale { get; set; } - /// The properties of a configure alert request. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestProperties Property { get; set; } - /// A value indicating whether to send email to subscription administrator. - string SendToOwner { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequestProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequestProperties.PowerShell.cs deleted file mode 100644 index 9f75f3a65f4e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequestProperties.PowerShell.cs +++ /dev/null @@ -1,162 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Properties of a configure alert request. - [System.ComponentModel.TypeConverter(typeof(ConfigureAlertRequestPropertiesTypeConverter))] - public partial class ConfigureAlertRequestProperties - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ConfigureAlertRequestProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SendToOwner")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)this).SendToOwner, global::System.Convert.ToString); - } - if (content.Contains("CustomEmailAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("Locale")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)this).Locale, 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 ConfigureAlertRequestProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SendToOwner")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)this).SendToOwner, global::System.Convert.ToString); - } - if (content.Contains("CustomEmailAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("Locale")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal)this).Locale, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ConfigureAlertRequestProperties(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.Migrate.Models.Api20220501.IConfigureAlertRequestProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ConfigureAlertRequestProperties(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.Migrate.Models.Api20220501.IConfigureAlertRequestProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of a configure alert request. - [System.ComponentModel.TypeConverter(typeof(ConfigureAlertRequestPropertiesTypeConverter))] - public partial interface IConfigureAlertRequestProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ConsistencyCheckTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ConsistencyCheckTaskDetails.PowerShell.cs deleted file mode 100644 index 31255c4dc87e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ConsistencyCheckTaskDetails.PowerShell.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// This class contains monitoring details of all the inconsistent Protected Entities in Vmm. - /// - [System.ComponentModel.TypeConverter(typeof(ConsistencyCheckTaskDetailsTypeConverter))] - public partial class ConsistencyCheckTaskDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ConsistencyCheckTaskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VMDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConsistencyCheckTaskDetailsInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConsistencyCheckTaskDetailsInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InconsistentVMDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, 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 ConsistencyCheckTaskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VMDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConsistencyCheckTaskDetailsInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConsistencyCheckTaskDetailsInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InconsistentVMDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConsistencyCheckTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ConsistencyCheckTaskDetails(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.Migrate.Models.Api20220501.IConsistencyCheckTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ConsistencyCheckTaskDetails(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.Migrate.Models.Api20220501.IConsistencyCheckTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class contains monitoring details of all the inconsistent Protected Entities in Vmm. - [System.ComponentModel.TypeConverter(typeof(ConsistencyCheckTaskDetailsTypeConverter))] - public partial interface IConsistencyCheckTaskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInput.PowerShell.cs deleted file mode 100644 index ec43ec0bade3..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInput.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Create network mappings input. - [System.ComponentModel.TypeConverter(typeof(CreateNetworkMappingInputTypeConverter))] - public partial class CreateNetworkMappingInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CreateNetworkMappingInput(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.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateNetworkMappingInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FabricSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).RecoveryFabricName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).RecoveryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType, 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 CreateNetworkMappingInput(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.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateNetworkMappingInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FabricSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).RecoveryFabricName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).RecoveryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CreateNetworkMappingInput(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.Migrate.Models.Api20220501.ICreateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CreateNetworkMappingInput(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.Migrate.Models.Api20220501.ICreateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Create network mappings input. - [System.ComponentModel.TypeConverter(typeof(CreateNetworkMappingInputTypeConverter))] - public partial interface ICreateNetworkMappingInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInput.cs b/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInput.cs deleted file mode 100644 index 9c522f01ad4d..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInput.cs +++ /dev/null @@ -1,93 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Create network mappings input. - public partial class CreateNetworkMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal - { - - /// The instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetailInstanceType = value ?? null; } - - /// Internal Acessors for FabricSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal.FabricSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetail = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateNetworkMappingInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties _property; - - /// Input properties for creating network mapping. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateNetworkMappingInputProperties()); set => this._property = value; } - - /// Recovery fabric Name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryFabricName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)Property).RecoveryFabricName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)Property).RecoveryFabricName = value ?? null; } - - /// Recovery network Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)Property).RecoveryNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)Property).RecoveryNetworkId = value ; } - - /// Creates an new instance. - public CreateNetworkMappingInput() - { - - } - } - /// Create network mappings input. - public partial interface ICreateNetworkMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The instance type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string FabricSpecificDetailInstanceType { get; set; } - /// Recovery fabric Name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Recovery fabric Name.", - SerializedName = @"recoveryFabricName", - PossibleTypes = new [] { typeof(string) })] - string RecoveryFabricName { get; set; } - /// Recovery network Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Recovery network Id.", - SerializedName = @"recoveryNetworkId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryNetworkId { get; set; } - - } - /// Create network mappings input. - internal partial interface ICreateNetworkMappingInputInternal - - { - /// Fabric specific input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput FabricSpecificDetail { get; set; } - /// The instance type. - string FabricSpecificDetailInstanceType { get; set; } - /// Input properties for creating network mapping. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties Property { get; set; } - /// Recovery fabric Name. - string RecoveryFabricName { get; set; } - /// Recovery network Id. - string RecoveryNetworkId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInputProperties.PowerShell.cs deleted file mode 100644 index ae360373d2f7..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInputProperties.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Common input details for network mapping operation. - [System.ComponentModel.TypeConverter(typeof(CreateNetworkMappingInputPropertiesTypeConverter))] - public partial class CreateNetworkMappingInputProperties - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CreateNetworkMappingInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FabricSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType, 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 CreateNetworkMappingInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FabricSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CreateNetworkMappingInputProperties(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.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CreateNetworkMappingInputProperties(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.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Common input details for network mapping operation. - [System.ComponentModel.TypeConverter(typeof(CreateNetworkMappingInputPropertiesTypeConverter))] - public partial interface ICreateNetworkMappingInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInput.PowerShell.cs deleted file mode 100644 index 5fb22be109c8..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInput.PowerShell.cs +++ /dev/null @@ -1,152 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Protection Policy input. - [System.ComponentModel.TypeConverter(typeof(CreatePolicyInputTypeConverter))] - public partial class CreatePolicyInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CreatePolicyInput(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.Migrate.Models.Api20220501.ICreatePolicyInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreatePolicyInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInputTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CreatePolicyInput(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.Migrate.Models.Api20220501.ICreatePolicyInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreatePolicyInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInputTypeConverter.ConvertFrom); - } - 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.Migrate.Models.Api20220501.ICreatePolicyInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CreatePolicyInput(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.Migrate.Models.Api20220501.ICreatePolicyInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CreatePolicyInput(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.Migrate.Models.Api20220501.ICreatePolicyInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Protection Policy input. - [System.ComponentModel.TypeConverter(typeof(CreatePolicyInputTypeConverter))] - public partial interface ICreatePolicyInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInput.cs b/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInput.cs deleted file mode 100644 index 07e0c818832c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Protection Policy input. - public partial class CreatePolicyInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreatePolicyInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputProperties _property; - - /// Policy creation properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreatePolicyInputProperties()); set => this._property = value; } - - /// The ReplicationProviderSettings. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput ProviderSpecificInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputPropertiesInternal)Property).ProviderSpecificInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputPropertiesInternal)Property).ProviderSpecificInput = value ?? null /* model class */; } - - /// Creates an new instance. - public CreatePolicyInput() - { - - } - } - /// Protection Policy input. - public partial interface ICreatePolicyInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The ReplicationProviderSettings. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ReplicationProviderSettings.", - SerializedName = @"providerSpecificInput", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput ProviderSpecificInput { get; set; } - - } - /// Protection Policy input. - internal partial interface ICreatePolicyInputInternal - - { - /// Policy creation properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputProperties Property { get; set; } - /// The ReplicationProviderSettings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput ProviderSpecificInput { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInput.PowerShell.cs deleted file mode 100644 index a8859a1a618c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInput.PowerShell.cs +++ /dev/null @@ -1,154 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Create protection container input. - [System.ComponentModel.TypeConverter(typeof(CreateProtectionContainerInputTypeConverter))] - public partial class CreateProtectionContainerInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CreateProtectionContainerInput(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.Migrate.Models.Api20220501.ICreateProtectionContainerInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionContainerInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerCreationInputTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CreateProtectionContainerInput(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.Migrate.Models.Api20220501.ICreateProtectionContainerInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionContainerInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerCreationInputTypeConverter.ConvertFrom)); - } - 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.Migrate.Models.Api20220501.ICreateProtectionContainerInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CreateProtectionContainerInput(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.Migrate.Models.Api20220501.ICreateProtectionContainerInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CreateProtectionContainerInput(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.Migrate.Models.Api20220501.ICreateProtectionContainerInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Create protection container input. - [System.ComponentModel.TypeConverter(typeof(CreateProtectionContainerInputTypeConverter))] - public partial interface ICreateProtectionContainerInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInput.cs b/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInput.cs deleted file mode 100644 index 12aca0676772..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Create protection container input. - public partial class CreateProtectionContainerInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionContainerInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties _property; - - /// Create protection container input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionContainerInputProperties()); set => this._property = value; } - - /// Provider specific inputs for container creation. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput[] ProviderSpecificInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputPropertiesInternal)Property).ProviderSpecificInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputPropertiesInternal)Property).ProviderSpecificInput = value ?? null /* arrayOf */; } - - /// Creates an new instance. - public CreateProtectionContainerInput() - { - - } - } - /// Create protection container input. - public partial interface ICreateProtectionContainerInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Provider specific inputs for container creation. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Provider specific inputs for container creation.", - SerializedName = @"providerSpecificInput", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput[] ProviderSpecificInput { get; set; } - - } - /// Create protection container input. - internal partial interface ICreateProtectionContainerInputInternal - - { - /// Create protection container input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties Property { get; set; } - /// Provider specific inputs for container creation. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput[] ProviderSpecificInput { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInput.PowerShell.cs deleted file mode 100644 index b576c229153a..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInput.PowerShell.cs +++ /dev/null @@ -1,173 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Configure pairing input. - [System.ComponentModel.TypeConverter(typeof(CreateProtectionContainerMappingInputTypeConverter))] - public partial class CreateProtectionContainerMappingInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CreateProtectionContainerMappingInput(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.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionContainerMappingInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("TargetProtectionContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerMappingInputTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CreateProtectionContainerMappingInput(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.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionContainerMappingInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("TargetProtectionContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerMappingInputTypeConverter.ConvertFrom); - } - 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.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CreateProtectionContainerMappingInput(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.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CreateProtectionContainerMappingInput(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.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Configure pairing input. - [System.ComponentModel.TypeConverter(typeof(CreateProtectionContainerMappingInputTypeConverter))] - public partial interface ICreateProtectionContainerMappingInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInput.cs b/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInput.cs deleted file mode 100644 index 9b4e5d12e439..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInput.cs +++ /dev/null @@ -1,88 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Configure pairing input. - public partial class CreateProtectionContainerMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionContainerMappingInputProperties()); set { {_property = value;} } } - - /// Applicable policy. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)Property).PolicyId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties _property; - - /// Configure protection input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionContainerMappingInputProperties()); set => this._property = value; } - - /// Provider specific input for pairing. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput ProviderSpecificInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInput = value ?? null /* model class */; } - - /// The target unique protection container name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TargetProtectionContainerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)Property).TargetProtectionContainerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)Property).TargetProtectionContainerId = value ?? null; } - - /// Creates an new instance. - public CreateProtectionContainerMappingInput() - { - - } - } - /// Configure pairing input. - public partial interface ICreateProtectionContainerMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Applicable policy. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Applicable policy.", - SerializedName = @"policyId", - PossibleTypes = new [] { typeof(string) })] - string PolicyId { get; set; } - /// Provider specific input for pairing. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Provider specific input for pairing.", - SerializedName = @"providerSpecificInput", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput ProviderSpecificInput { get; set; } - /// The target unique protection container name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target unique protection container name.", - SerializedName = @"targetProtectionContainerId", - PossibleTypes = new [] { typeof(string) })] - string TargetProtectionContainerId { get; set; } - - } - /// Configure pairing input. - internal partial interface ICreateProtectionContainerMappingInputInternal - - { - /// Applicable policy. - string PolicyId { get; set; } - /// Configure protection input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties Property { get; set; } - /// Provider specific input for pairing. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput ProviderSpecificInput { get; set; } - /// The target unique protection container name. - string TargetProtectionContainerId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInputProperties.PowerShell.cs deleted file mode 100644 index a0ec0d091d60..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInputProperties.PowerShell.cs +++ /dev/null @@ -1,165 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Configure pairing input properties. - [System.ComponentModel.TypeConverter(typeof(CreateProtectionContainerMappingInputPropertiesTypeConverter))] - public partial class CreateProtectionContainerMappingInputProperties - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CreateProtectionContainerMappingInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TargetProtectionContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerMappingInputTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CreateProtectionContainerMappingInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TargetProtectionContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerMappingInputTypeConverter.ConvertFrom); - } - 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.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CreateProtectionContainerMappingInputProperties(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.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CreateProtectionContainerMappingInputProperties(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.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Configure pairing input properties. - [System.ComponentModel.TypeConverter(typeof(CreateProtectionContainerMappingInputPropertiesTypeConverter))] - public partial interface ICreateProtectionContainerMappingInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentInput.PowerShell.cs deleted file mode 100644 index ce92ead13e24..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentInput.PowerShell.cs +++ /dev/null @@ -1,162 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Create protection intent input. - [System.ComponentModel.TypeConverter(typeof(CreateProtectionIntentInputTypeConverter))] - public partial class CreateProtectionIntentInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CreateProtectionIntentInput(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.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetailInstanceType, 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 CreateProtectionIntentInput(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.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CreateProtectionIntentInput(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.Migrate.Models.Api20220501.ICreateProtectionIntentInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CreateProtectionIntentInput(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.Migrate.Models.Api20220501.ICreateProtectionIntentInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Create protection intent input. - [System.ComponentModel.TypeConverter(typeof(CreateProtectionIntentInputTypeConverter))] - public partial interface ICreateProtectionIntentInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentInput.cs b/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentInput.cs deleted file mode 100644 index 19b36958bf07..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentInput.cs +++ /dev/null @@ -1,67 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Create protection intent input. - public partial class CreateProtectionIntentInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProperties _property; - - /// Create protection intent input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentProperties()); set => this._property = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// Creates an new instance. - public CreateProtectionIntentInput() - { - - } - } - /// Create protection intent input. - public partial interface ICreateProtectionIntentInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Create protection intent input. - internal partial interface ICreateProtectionIntentInputInternal - - { - /// Create protection intent input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProperties Property { get; set; } - /// - /// The ReplicationProviderInput. For A2A provider, it will be A2ACreateProtectionIntentInput object. - /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProperties.PowerShell.cs deleted file mode 100644 index 0b9c3dcc4c14..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProperties.PowerShell.cs +++ /dev/null @@ -1,154 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Create protection intent input properties. - [System.ComponentModel.TypeConverter(typeof(CreateProtectionIntentPropertiesTypeConverter))] - public partial class CreateProtectionIntentProperties - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CreateProtectionIntentProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 CreateProtectionIntentProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CreateProtectionIntentProperties(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.Migrate.Models.Api20220501.ICreateProtectionIntentProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CreateProtectionIntentProperties(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.Migrate.Models.Api20220501.ICreateProtectionIntentProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Create protection intent input properties. - [System.ComponentModel.TypeConverter(typeof(CreateProtectionIntentPropertiesTypeConverter))] - public partial interface ICreateProtectionIntentProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProperties.cs b/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProperties.cs deleted file mode 100644 index 9ba0a30ff994..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProperties.cs +++ /dev/null @@ -1,64 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Create protection intent input properties. - public partial class CreateProtectionIntentProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentPropertiesInternal - { - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentProviderSpecificDetails()); set { {_providerSpecificDetail = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails _providerSpecificDetail; - - /// - /// The ReplicationProviderInput. For A2A provider, it will be A2ACreateProtectionIntentInput object. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentProviderSpecificDetails()); set => this._providerSpecificDetail = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetailsInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetailsInternal)ProviderSpecificDetail).InstanceType = value ?? null; } - - /// Creates an new instance. - public CreateProtectionIntentProperties() - { - - } - } - /// Create protection intent input properties. - public partial interface ICreateProtectionIntentProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Create protection intent input properties. - internal partial interface ICreateProtectionIntentPropertiesInternal - - { - /// - /// The ReplicationProviderInput. For A2A provider, it will be A2ACreateProtectionIntentInput object. - /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInput.PowerShell.cs deleted file mode 100644 index 1e7e0d37226e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInput.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Create recovery plan input class. - [System.ComponentModel.TypeConverter(typeof(CreateRecoveryPlanInputTypeConverter))] - public partial class CreateRecoveryPlanInput - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CreateRecoveryPlanInput(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.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateRecoveryPlanInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("PrimaryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).PrimaryFabricId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).RecoveryFabricId, global::System.Convert.ToString); - } - if (content.Contains("FailoverDeploymentModel")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).FailoverDeploymentModel = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel?) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).FailoverDeploymentModel, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel.CreateFrom); - } - if (content.Contains("Group")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTypeConverter.ConvertFrom)); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificInputTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CreateRecoveryPlanInput(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.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateRecoveryPlanInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("PrimaryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).PrimaryFabricId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).RecoveryFabricId, global::System.Convert.ToString); - } - if (content.Contains("FailoverDeploymentModel")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).FailoverDeploymentModel = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel?) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).FailoverDeploymentModel, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel.CreateFrom); - } - if (content.Contains("Group")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTypeConverter.ConvertFrom)); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificInputTypeConverter.ConvertFrom)); - } - 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.Migrate.Models.Api20220501.ICreateRecoveryPlanInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CreateRecoveryPlanInput(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.Migrate.Models.Api20220501.ICreateRecoveryPlanInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CreateRecoveryPlanInput(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.Migrate.Models.Api20220501.ICreateRecoveryPlanInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Create recovery plan input class. - [System.ComponentModel.TypeConverter(typeof(CreateRecoveryPlanInputTypeConverter))] - public partial interface ICreateRecoveryPlanInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInput.cs b/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInput.cs deleted file mode 100644 index 4cd46affc247..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInput.cs +++ /dev/null @@ -1,116 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Create recovery plan input class. - public partial class CreateRecoveryPlanInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal - { - - /// The failover deployment model. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel? FailoverDeploymentModel { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)Property).FailoverDeploymentModel; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)Property).FailoverDeploymentModel = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel)""); } - - /// The recovery plan groups. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)Property).Group; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)Property).Group = value ; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateRecoveryPlanInputProperties()); set { {_property = value;} } } - - /// The primary fabric Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)Property).PrimaryFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)Property).PrimaryFabricId = value ; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties _property; - - /// Recovery plan creation properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateRecoveryPlanInputProperties()); set => this._property = value; } - - /// The provider specific input. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput[] ProviderSpecificInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)Property).ProviderSpecificInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)Property).ProviderSpecificInput = value ?? null /* arrayOf */; } - - /// The recovery fabric Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)Property).RecoveryFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)Property).RecoveryFabricId = value ; } - - /// Creates an new instance. - public CreateRecoveryPlanInput() - { - - } - } - /// Create recovery plan input class. - public partial interface ICreateRecoveryPlanInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The failover deployment model. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The failover deployment model.", - SerializedName = @"failoverDeploymentModel", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel? FailoverDeploymentModel { get; set; } - /// The recovery plan groups. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The recovery plan groups.", - SerializedName = @"groups", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get; set; } - /// The primary fabric Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The primary fabric Id.", - SerializedName = @"primaryFabricId", - PossibleTypes = new [] { typeof(string) })] - string PrimaryFabricId { get; set; } - /// The provider specific input. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The provider specific input.", - SerializedName = @"providerSpecificInput", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput[] ProviderSpecificInput { get; set; } - /// The recovery fabric Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The recovery fabric Id.", - SerializedName = @"recoveryFabricId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryFabricId { get; set; } - - } - /// Create recovery plan input class. - internal partial interface ICreateRecoveryPlanInputInternal - - { - /// The failover deployment model. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel? FailoverDeploymentModel { get; set; } - /// The recovery plan groups. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get; set; } - /// The primary fabric Id. - string PrimaryFabricId { get; set; } - /// Recovery plan creation properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties Property { get; set; } - /// The provider specific input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput[] ProviderSpecificInput { get; set; } - /// The recovery fabric Id. - string RecoveryFabricId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInputProperties.PowerShell.cs deleted file mode 100644 index 4eae90c43f63..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInputProperties.PowerShell.cs +++ /dev/null @@ -1,180 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan creation properties. - [System.ComponentModel.TypeConverter(typeof(CreateRecoveryPlanInputPropertiesTypeConverter))] - public partial class CreateRecoveryPlanInputProperties - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CreateRecoveryPlanInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).PrimaryFabricId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).RecoveryFabricId, global::System.Convert.ToString); - } - if (content.Contains("FailoverDeploymentModel")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).FailoverDeploymentModel = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel?) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).FailoverDeploymentModel, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel.CreateFrom); - } - if (content.Contains("Group")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTypeConverter.ConvertFrom)); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificInputTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CreateRecoveryPlanInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).PrimaryFabricId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).RecoveryFabricId, global::System.Convert.ToString); - } - if (content.Contains("FailoverDeploymentModel")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).FailoverDeploymentModel = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel?) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).FailoverDeploymentModel, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel.CreateFrom); - } - if (content.Contains("Group")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTypeConverter.ConvertFrom)); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificInputTypeConverter.ConvertFrom)); - } - 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.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CreateRecoveryPlanInputProperties(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.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CreateRecoveryPlanInputProperties(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.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan creation properties. - [System.ComponentModel.TypeConverter(typeof(CreateRecoveryPlanInputPropertiesTypeConverter))] - public partial interface ICreateRecoveryPlanInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CriticalJobHistoryDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/CriticalJobHistoryDetails.PowerShell.cs deleted file mode 100644 index 0a3b691aac05..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CriticalJobHistoryDetails.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Critical past job details of the migration item. - [System.ComponentModel.TypeConverter(typeof(CriticalJobHistoryDetailsTypeConverter))] - public partial class CriticalJobHistoryDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CriticalJobHistoryDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("JobName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).JobName, global::System.Convert.ToString); - } - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("JobStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).JobStatus = (string) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).JobStatus, 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 CriticalJobHistoryDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("JobName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).JobName, global::System.Convert.ToString); - } - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("JobStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).JobStatus = (string) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal)this).JobStatus, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CriticalJobHistoryDetails(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.Migrate.Models.Api20220501.ICriticalJobHistoryDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CriticalJobHistoryDetails(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.Migrate.Models.Api20220501.ICriticalJobHistoryDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Critical past job details of the migration item. - [System.ComponentModel.TypeConverter(typeof(CriticalJobHistoryDetailsTypeConverter))] - public partial interface ICriticalJobHistoryDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CurrentJobDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/CurrentJobDetails.PowerShell.cs deleted file mode 100644 index 268410580118..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CurrentJobDetails.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Current job details of the migration item. - [System.ComponentModel.TypeConverter(typeof(CurrentJobDetailsTypeConverter))] - public partial class CurrentJobDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CurrentJobDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("JobName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)this).JobName, global::System.Convert.ToString); - } - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CurrentJobDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("JobName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)this).JobName, global::System.Convert.ToString); - } - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - 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.Migrate.Models.Api20220501.ICurrentJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CurrentJobDetails(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.Migrate.Models.Api20220501.ICurrentJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CurrentJobDetails(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.Migrate.Models.Api20220501.ICurrentJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Current job details of the migration item. - [System.ComponentModel.TypeConverter(typeof(CurrentJobDetailsTypeConverter))] - public partial interface ICurrentJobDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CurrentScenarioDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/CurrentScenarioDetails.PowerShell.cs deleted file mode 100644 index a19e4108a9d2..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/CurrentScenarioDetails.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Current scenario details of the protected entity. - [System.ComponentModel.TypeConverter(typeof(CurrentScenarioDetailsTypeConverter))] - public partial class CurrentScenarioDetails - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CurrentScenarioDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)this).ScenarioName = (string) content.GetValueForProperty("ScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)this).ScenarioName, global::System.Convert.ToString); - } - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CurrentScenarioDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)this).ScenarioName = (string) content.GetValueForProperty("ScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)this).ScenarioName, global::System.Convert.ToString); - } - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - 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.Migrate.Models.Api20220501.ICurrentScenarioDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CurrentScenarioDetails(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.Migrate.Models.Api20220501.ICurrentScenarioDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CurrentScenarioDetails(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.Migrate.Models.Api20220501.ICurrentScenarioDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Current scenario details of the protected entity. - [System.ComponentModel.TypeConverter(typeof(CurrentScenarioDetailsTypeConverter))] - public partial interface ICurrentScenarioDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DataStore.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/DataStore.PowerShell.cs deleted file mode 100644 index 2e5905a5f336..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/DataStore.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// The datastore details of the MT. - [System.ComponentModel.TypeConverter(typeof(DataStoreTypeConverter))] - public partial class DataStore - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DataStore(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SymbolicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).SymbolicName = (string) content.GetValueForProperty("SymbolicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).SymbolicName, global::System.Convert.ToString); - } - if (content.Contains("Uuid")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).Uuid = (string) content.GetValueForProperty("Uuid",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).Uuid, global::System.Convert.ToString); - } - if (content.Contains("Capacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).Capacity = (string) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).Capacity, global::System.Convert.ToString); - } - if (content.Contains("FreeSpace")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).FreeSpace = (string) content.GetValueForProperty("FreeSpace",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).FreeSpace, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).Type, 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 DataStore(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SymbolicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).SymbolicName = (string) content.GetValueForProperty("SymbolicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).SymbolicName, global::System.Convert.ToString); - } - if (content.Contains("Uuid")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).Uuid = (string) content.GetValueForProperty("Uuid",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).Uuid, global::System.Convert.ToString); - } - if (content.Contains("Capacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).Capacity = (string) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).Capacity, global::System.Convert.ToString); - } - if (content.Contains("FreeSpace")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).FreeSpace = (string) content.GetValueForProperty("FreeSpace",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).FreeSpace, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal)this).Type, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStore DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DataStore(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.Migrate.Models.Api20220501.IDataStore DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DataStore(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.Migrate.Models.Api20220501.IDataStore FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The datastore details of the MT. - [System.ComponentModel.TypeConverter(typeof(DataStoreTypeConverter))] - public partial interface IDataStore - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInput.PowerShell.cs deleted file mode 100644 index 1ad54251a8c0..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInput.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Disable protection input. - [System.ComponentModel.TypeConverter(typeof(DisableProtectionInputTypeConverter))] - public partial class DisableProtectionInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IDisableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DisableProtectionInput(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.Migrate.Models.Api20220501.IDisableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DisableProtectionInput(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DisableProtectionInput(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.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ReplicationProviderInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).ReplicationProviderInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput) content.GetValueForProperty("ReplicationProviderInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).ReplicationProviderInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("DisableProtectionReason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).DisableProtectionReason = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason?) content.GetValueForProperty("DisableProtectionReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).DisableProtectionReason, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason.CreateFrom); - } - if (content.Contains("ReplicationProviderInputInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).ReplicationProviderInputInstanceType = (string) content.GetValueForProperty("ReplicationProviderInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).ReplicationProviderInputInstanceType, 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 DisableProtectionInput(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.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ReplicationProviderInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).ReplicationProviderInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput) content.GetValueForProperty("ReplicationProviderInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).ReplicationProviderInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("DisableProtectionReason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).DisableProtectionReason = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason?) content.GetValueForProperty("DisableProtectionReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).DisableProtectionReason, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason.CreateFrom); - } - if (content.Contains("ReplicationProviderInputInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).ReplicationProviderInputInstanceType = (string) content.GetValueForProperty("ReplicationProviderInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal)this).ReplicationProviderInputInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Disable protection input. - [System.ComponentModel.TypeConverter(typeof(DisableProtectionInputTypeConverter))] - public partial interface IDisableProtectionInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInput.cs b/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInput.cs deleted file mode 100644 index 881f05e2cc04..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInput.cs +++ /dev/null @@ -1,79 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Disable protection input. - public partial class DisableProtectionInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal - { - - /// Disable protection reason. It can have values NotSpecified/MigrationComplete. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason? DisableProtectionReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)Property).DisableProtectionReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)Property).DisableProtectionReason = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason)""); } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ReplicationProviderInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputInternal.ReplicationProviderInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)Property).ReplicationProviderInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)Property).ReplicationProviderInput = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputProperties _property; - - /// Disable protection input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionInputProperties()); set => this._property = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReplicationProviderInputInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)Property).ReplicationProviderInputInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)Property).ReplicationProviderInputInstanceType = value ?? null; } - - /// Creates an new instance. - public DisableProtectionInput() - { - - } - } - /// Disable protection input. - public partial interface IDisableProtectionInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Disable protection reason. It can have values NotSpecified/MigrationComplete. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Disable protection reason. It can have values NotSpecified/MigrationComplete.", - SerializedName = @"disableProtectionReason", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason? DisableProtectionReason { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ReplicationProviderInputInstanceType { get; set; } - - } - /// Disable protection input. - internal partial interface IDisableProtectionInputInternal - - { - /// Disable protection reason. It can have values NotSpecified/MigrationComplete. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason? DisableProtectionReason { get; set; } - /// Disable protection input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputProperties Property { get; set; } - /// Replication provider specific input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput ReplicationProviderInput { get; set; } - /// The class type. - string ReplicationProviderInputInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInputProperties.PowerShell.cs deleted file mode 100644 index 1b344d79b7bc..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInputProperties.PowerShell.cs +++ /dev/null @@ -1,162 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Disable protection input properties. - [System.ComponentModel.TypeConverter(typeof(DisableProtectionInputPropertiesTypeConverter))] - public partial class DisableProtectionInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IDisableProtectionInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DisableProtectionInputProperties(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.Migrate.Models.Api20220501.IDisableProtectionInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DisableProtectionInputProperties(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DisableProtectionInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ReplicationProviderInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput) content.GetValueForProperty("ReplicationProviderInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("DisableProtectionReason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)this).DisableProtectionReason = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason?) content.GetValueForProperty("DisableProtectionReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)this).DisableProtectionReason, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason.CreateFrom); - } - if (content.Contains("ReplicationProviderInputInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInputInstanceType = (string) content.GetValueForProperty("ReplicationProviderInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInputInstanceType, 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 DisableProtectionInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ReplicationProviderInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput) content.GetValueForProperty("ReplicationProviderInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("DisableProtectionReason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)this).DisableProtectionReason = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason?) content.GetValueForProperty("DisableProtectionReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)this).DisableProtectionReason, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason.CreateFrom); - } - if (content.Contains("ReplicationProviderInputInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInputInstanceType = (string) content.GetValueForProperty("ReplicationProviderInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInputInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Disable protection input properties. - [System.ComponentModel.TypeConverter(typeof(DisableProtectionInputPropertiesTypeConverter))] - public partial interface IDisableProtectionInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequest.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequest.PowerShell.cs deleted file mode 100644 index 6ebd05dea6e1..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequest.PowerShell.cs +++ /dev/null @@ -1,170 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Request to add a physical machine as a protectable item in a container. - [System.ComponentModel.TypeConverter(typeof(DiscoverProtectableItemRequestTypeConverter))] - public partial class DiscoverProtectableItemRequest - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IDiscoverProtectableItemRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DiscoverProtectableItemRequest(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.Migrate.Models.Api20220501.IDiscoverProtectableItemRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DiscoverProtectableItemRequest(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DiscoverProtectableItemRequest(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.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiscoverProtectableItemRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).OSType, 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 DiscoverProtectableItemRequest(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.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiscoverProtectableItemRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal)this).OSType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Request to add a physical machine as a protectable item in a container. - [System.ComponentModel.TypeConverter(typeof(DiscoverProtectableItemRequestTypeConverter))] - public partial interface IDiscoverProtectableItemRequest - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequest.cs b/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequest.cs deleted file mode 100644 index c5506fb2d9a2..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequest.cs +++ /dev/null @@ -1,88 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Request to add a physical machine as a protectable item in a container. - public partial class DiscoverProtectableItemRequest : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequest, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal - { - - /// The friendly name of the physical machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)Property).FriendlyName = value ?? null; } - - /// The IP address of the physical machine to be discovered. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)Property).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)Property).IPAddress = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiscoverProtectableItemRequestProperties()); set { {_property = value;} } } - - /// The OS type on the physical machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)Property).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)Property).OSType = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties _property; - - /// The properties of a discover protectable item request. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiscoverProtectableItemRequestProperties()); set => this._property = value; } - - /// Creates an new instance. - public DiscoverProtectableItemRequest() - { - - } - } - /// Request to add a physical machine as a protectable item in a container. - public partial interface IDiscoverProtectableItemRequest : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The friendly name of the physical machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The friendly name of the physical machine.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// The IP address of the physical machine to be discovered. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The IP address of the physical machine to be discovered.", - SerializedName = @"ipAddress", - PossibleTypes = new [] { typeof(string) })] - string IPAddress { get; set; } - /// The OS type on the physical machine. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The OS type on the physical machine.", - SerializedName = @"osType", - PossibleTypes = new [] { typeof(string) })] - string OSType { get; set; } - - } - /// Request to add a physical machine as a protectable item in a container. - internal partial interface IDiscoverProtectableItemRequestInternal - - { - /// The friendly name of the physical machine. - string FriendlyName { get; set; } - /// The IP address of the physical machine to be discovered. - string IPAddress { get; set; } - /// The OS type on the physical machine. - string OSType { get; set; } - /// The properties of a discover protectable item request. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties Property { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequestProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequestProperties.PowerShell.cs deleted file mode 100644 index ad53a5d7205e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequestProperties.PowerShell.cs +++ /dev/null @@ -1,165 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Discover protectable item properties. - [System.ComponentModel.TypeConverter(typeof(DiscoverProtectableItemRequestPropertiesTypeConverter))] - public partial class DiscoverProtectableItemRequestProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DiscoverProtectableItemRequestProperties(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.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DiscoverProtectableItemRequestProperties(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DiscoverProtectableItemRequestProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)this).OSType, 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 DiscoverProtectableItemRequestProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal)this).OSType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json - /// string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Discover protectable item properties. - [System.ComponentModel.TypeConverter(typeof(DiscoverProtectableItemRequestPropertiesTypeConverter))] - public partial interface IDiscoverProtectableItemRequestProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/DiskDetails.PowerShell.cs deleted file mode 100644 index 94ab352c9f4e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/DiskDetails.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Onprem disk details data. - [System.ComponentModel.TypeConverter(typeof(DiskDetailsTypeConverter))] - public partial class DiskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DiskDetails(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.Migrate.Models.Api20220501.IDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DiskDetails(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DiskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MaxSizeMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).MaxSizeMb = (long?) content.GetValueForProperty("MaxSizeMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).MaxSizeMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("VhdType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).VhdType = (string) content.GetValueForProperty("VhdType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).VhdType, global::System.Convert.ToString); - } - if (content.Contains("VhdId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).VhdId = (string) content.GetValueForProperty("VhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).VhdId, global::System.Convert.ToString); - } - if (content.Contains("VhdName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).VhdName, 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 DiskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MaxSizeMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).MaxSizeMb = (long?) content.GetValueForProperty("MaxSizeMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).MaxSizeMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("VhdType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).VhdType = (string) content.GetValueForProperty("VhdType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).VhdType, global::System.Convert.ToString); - } - if (content.Contains("VhdId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).VhdId = (string) content.GetValueForProperty("VhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).VhdId, global::System.Convert.ToString); - } - if (content.Contains("VhdName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal)this).VhdName, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Onprem disk details data. - [System.ComponentModel.TypeConverter(typeof(DiskDetailsTypeConverter))] - public partial interface IDiskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionInfo.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionInfo.PowerShell.cs deleted file mode 100644 index 839f76af93a0..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionInfo.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery disk encryption info (BEK and KEK). - [System.ComponentModel.TypeConverter(typeof(DiskEncryptionInfoTypeConverter))] - public partial class DiskEncryptionInfo - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IDiskEncryptionInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DiskEncryptionInfo(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.Migrate.Models.Api20220501.IDiskEncryptionInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DiskEncryptionInfo(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DiskEncryptionInfo(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("KeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("KeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 DiskEncryptionInfo(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("KeyEncryptionKeyInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo) content.GetValueForProperty("KeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); - } - if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery disk encryption info (BEK and KEK). - [System.ComponentModel.TypeConverter(typeof(DiskEncryptionInfoTypeConverter))] - public partial interface IDiskEncryptionInfo - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionInfo.cs b/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionInfo.cs deleted file mode 100644 index 5db51e289efa..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionInfo.cs +++ /dev/null @@ -1,114 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Recovery disk encryption info (BEK and KEK). - public partial class DiskEncryptionInfo : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo _diskEncryptionKeyInfo; - - /// The recovery KeyVault reference for secret. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo DiskEncryptionKeyInfo { get => (this._diskEncryptionKeyInfo = this._diskEncryptionKeyInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfo()); set => this._diskEncryptionKeyInfo = value; } - - /// The KeyVault resource ARM id for secret. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfoInternal)DiskEncryptionKeyInfo).KeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfoInternal)DiskEncryptionKeyInfo).KeyVaultResourceArmId = value ?? null; } - - /// The secret url / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfoInternal)DiskEncryptionKeyInfo).SecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfoInternal)DiskEncryptionKeyInfo).SecretIdentifier = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo _keyEncryptionKeyInfo; - - /// The recovery KeyVault reference for key. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo KeyEncryptionKeyInfo { get => (this._keyEncryptionKeyInfo = this._keyEncryptionKeyInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfo()); set => this._keyEncryptionKeyInfo = value; } - - /// The key URL / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfoInternal)KeyEncryptionKeyInfo).KeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfoInternal)KeyEncryptionKeyInfo).KeyIdentifier = value ?? null; } - - /// The KeyVault resource ARM Id for key. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfoInternal)KeyEncryptionKeyInfo).KeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfoInternal)KeyEncryptionKeyInfo).KeyVaultResourceArmId = value ?? null; } - - /// Internal Acessors for DiskEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal.DiskEncryptionKeyInfo { get => (this._diskEncryptionKeyInfo = this._diskEncryptionKeyInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfo()); set { {_diskEncryptionKeyInfo = value;} } } - - /// Internal Acessors for KeyEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal.KeyEncryptionKeyInfo { get => (this._keyEncryptionKeyInfo = this._keyEncryptionKeyInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfo()); set { {_keyEncryptionKeyInfo = value;} } } - - /// Creates an new instance. - public DiskEncryptionInfo() - { - - } - } - /// Recovery disk encryption info (BEK and KEK). - public partial interface IDiskEncryptionInfo : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The KeyVault resource ARM id for secret. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The KeyVault resource ARM id for secret.", - SerializedName = @"keyVaultResourceArmId", - PossibleTypes = new [] { typeof(string) })] - string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - /// The secret url / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The secret url / identifier.", - SerializedName = @"secretIdentifier", - PossibleTypes = new [] { typeof(string) })] - string DiskEncryptionKeyInfoSecretIdentifier { get; set; } - /// The key URL / identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The key URL / identifier.", - SerializedName = @"keyIdentifier", - PossibleTypes = new [] { typeof(string) })] - string KeyEncryptionKeyInfoKeyIdentifier { get; set; } - /// The KeyVault resource ARM Id for key. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The KeyVault resource ARM Id for key.", - SerializedName = @"keyVaultResourceArmId", - PossibleTypes = new [] { typeof(string) })] - string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - - } - /// Recovery disk encryption info (BEK and KEK). - internal partial interface IDiskEncryptionInfoInternal - - { - /// The recovery KeyVault reference for secret. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo DiskEncryptionKeyInfo { get; set; } - /// The KeyVault resource ARM id for secret. - string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - /// The secret url / identifier. - string DiskEncryptionKeyInfoSecretIdentifier { get; set; } - /// The recovery KeyVault reference for key. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo KeyEncryptionKeyInfo { get; set; } - /// The key URL / identifier. - string KeyEncryptionKeyInfoKeyIdentifier { get; set; } - /// The KeyVault resource ARM Id for key. - string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DraDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/DraDetails.PowerShell.cs deleted file mode 100644 index e21fc70e4736..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/DraDetails.PowerShell.cs +++ /dev/null @@ -1,208 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// DRA details. - [System.ComponentModel.TypeConverter(typeof(DraDetailsTypeConverter))] - public partial class DraDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IDraDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DraDetails(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.Migrate.Models.Api20220501.IDraDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DraDetails(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DraDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ForwardProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).ForwardProtectedItemCount = (int?) content.GetValueForProperty("ForwardProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).ForwardProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReverseProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).ReverseProtectedItemCount = (int?) content.GetValueForProperty("ReverseProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).ReverseProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DraDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ForwardProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).ForwardProtectedItemCount = (int?) content.GetValueForProperty("ForwardProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).ForwardProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReverseProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).ReverseProtectedItemCount = (int?) content.GetValueForProperty("ReverseProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)this).ReverseProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// DRA details. - [System.ComponentModel.TypeConverter(typeof(DraDetailsTypeConverter))] - public partial interface IDraDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInput.PowerShell.cs deleted file mode 100644 index 26e81286c424..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInput.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Enable migration input. - [System.ComponentModel.TypeConverter(typeof(EnableMigrationInputTypeConverter))] - public partial class EnableMigrationInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IEnableMigrationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EnableMigrationInput(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.Migrate.Models.Api20220501.IEnableMigrationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EnableMigrationInput(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EnableMigrationInput(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.Migrate.Models.Api20220501.IEnableMigrationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationProviderSpecificInputTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal EnableMigrationInput(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.Migrate.Models.Api20220501.IEnableMigrationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationProviderSpecificInputTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Enable migration input. - [System.ComponentModel.TypeConverter(typeof(EnableMigrationInputTypeConverter))] - public partial interface IEnableMigrationInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInput.cs b/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInput.cs deleted file mode 100644 index d908cbcd1b80..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInput.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Enable migration input. - public partial class EnableMigrationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationInputProperties()); set { {_property = value;} } } - - /// The policy Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputPropertiesInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputPropertiesInternal)Property).PolicyId = value ; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputProperties _property; - - /// Enable migration input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationInputProperties()); set => this._property = value; } - - /// The provider specific details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputPropertiesInternal)Property).ProviderSpecificDetail = value ; } - - /// Creates an new instance. - public EnableMigrationInput() - { - - } - } - /// Enable migration input. - public partial interface IEnableMigrationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The policy Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The policy Id.", - SerializedName = @"policyId", - PossibleTypes = new [] { typeof(string) })] - string PolicyId { get; set; } - /// The provider specific details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The provider specific details.", - SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput ProviderSpecificDetail { get; set; } - - } - /// Enable migration input. - internal partial interface IEnableMigrationInputInternal - - { - /// The policy Id. - string PolicyId { get; set; } - /// Enable migration input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputProperties Property { get; set; } - /// The provider specific details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput ProviderSpecificDetail { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInput.PowerShell.cs deleted file mode 100644 index 4ea6eb5bedb2..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInput.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Enable protection input. - [System.ComponentModel.TypeConverter(typeof(EnableProtectionInputTypeConverter))] - public partial class EnableProtectionInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IEnableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EnableProtectionInput(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.Migrate.Models.Api20220501.IEnableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EnableProtectionInput(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EnableProtectionInput(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.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("ProtectableItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).ProtectableItemId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).ProviderSpecificDetailInstanceType, 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 EnableProtectionInput(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.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("ProtectableItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).ProtectableItemId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Enable protection input. - [System.ComponentModel.TypeConverter(typeof(EnableProtectionInputTypeConverter))] - public partial interface IEnableProtectionInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInput.cs b/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInput.cs deleted file mode 100644 index 2f80a39a8797..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInput.cs +++ /dev/null @@ -1,96 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Enable protection input. - public partial class EnableProtectionInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// The Policy Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)Property).PolicyId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputProperties _property; - - /// Enable protection input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionInputProperties()); set => this._property = value; } - - /// The protectable item Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProtectableItemId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)Property).ProtectableItemId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)Property).ProtectableItemId = value ?? null; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// Creates an new instance. - public EnableProtectionInput() - { - - } - } - /// Enable protection input. - public partial interface IEnableProtectionInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The Policy Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Policy Id.", - SerializedName = @"policyId", - PossibleTypes = new [] { typeof(string) })] - string PolicyId { get; set; } - /// The protectable item Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The protectable item Id.", - SerializedName = @"protectableItemId", - PossibleTypes = new [] { typeof(string) })] - string ProtectableItemId { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Enable protection input. - internal partial interface IEnableProtectionInputInternal - - { - /// The Policy Id. - string PolicyId { get; set; } - /// Enable protection input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputProperties Property { get; set; } - /// The protectable item Id. - string ProtectableItemId { get; set; } - /// - /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, - /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. - /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInputProperties.PowerShell.cs deleted file mode 100644 index 8022ef825de1..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInputProperties.PowerShell.cs +++ /dev/null @@ -1,170 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Enable protection input properties. - [System.ComponentModel.TypeConverter(typeof(EnableProtectionInputPropertiesTypeConverter))] - public partial class EnableProtectionInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IEnableProtectionInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EnableProtectionInputProperties(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.Migrate.Models.Api20220501.IEnableProtectionInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EnableProtectionInputProperties(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EnableProtectionInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("ProtectableItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).ProtectableItemId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 EnableProtectionInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("ProtectableItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).ProtectableItemId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Enable protection input properties. - [System.ComponentModel.TypeConverter(typeof(EnableProtectionInputPropertiesTypeConverter))] - public partial interface IEnableProtectionInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EncryptionDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/EncryptionDetails.PowerShell.cs deleted file mode 100644 index 6e68497b577e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/EncryptionDetails.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Encryption details for the fabric. - [System.ComponentModel.TypeConverter(typeof(EncryptionDetailsTypeConverter))] - public partial class EncryptionDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IEncryptionDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EncryptionDetails(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.Migrate.Models.Api20220501.IEncryptionDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EncryptionDetails(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EncryptionDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("KekState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetailsInternal)this).KekState = (string) content.GetValueForProperty("KekState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetailsInternal)this).KekState, global::System.Convert.ToString); - } - if (content.Contains("KekCertThumbprint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetailsInternal)this).KekCertThumbprint = (string) content.GetValueForProperty("KekCertThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetailsInternal)this).KekCertThumbprint, global::System.Convert.ToString); - } - if (content.Contains("KekCertExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetailsInternal)this).KekCertExpiryDate = (global::System.DateTime?) content.GetValueForProperty("KekCertExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetailsInternal)this).KekCertExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal EncryptionDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("KekState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetailsInternal)this).KekState = (string) content.GetValueForProperty("KekState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetailsInternal)this).KekState, global::System.Convert.ToString); - } - if (content.Contains("KekCertThumbprint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetailsInternal)this).KekCertThumbprint = (string) content.GetValueForProperty("KekCertThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetailsInternal)this).KekCertThumbprint, global::System.Convert.ToString); - } - if (content.Contains("KekCertExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetailsInternal)this).KekCertExpiryDate = (global::System.DateTime?) content.GetValueForProperty("KekCertExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetailsInternal)this).KekCertExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Encryption details for the fabric. - [System.ComponentModel.TypeConverter(typeof(EncryptionDetailsTypeConverter))] - public partial interface IEncryptionDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Event.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/Event.PowerShell.cs deleted file mode 100644 index 8d1bdee4a547..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/Event.PowerShell.cs +++ /dev/null @@ -1,280 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Implements the Event class. - [System.ComponentModel.TypeConverter(typeof(EventTypeConverter))] - public partial class Event - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IEvent DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Event(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.Migrate.Models.Api20220501.IEvent DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Event(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Event(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.Migrate.Models.Api20220501.IEventInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("SpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).SpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails) content.GetValueForProperty("SpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).SpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("EventType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).EventType, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).AffectedObjectFriendlyName = (string) content.GetValueForProperty("AffectedObjectFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).AffectedObjectFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).AffectedObjectCorrelationId = (string) content.GetValueForProperty("AffectedObjectCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).AffectedObjectCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("Severity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).Severity, global::System.Convert.ToString); - } - if (content.Contains("TimeOfOccurrence")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).TimeOfOccurrence = (global::System.DateTime?) content.GetValueForProperty("TimeOfOccurrence",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).TimeOfOccurrence, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).FabricId = (string) content.GetValueForProperty("FabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).FabricId, global::System.Convert.ToString); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("SpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).SpecificDetailInstanceType = (string) content.GetValueForProperty("SpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).SpecificDetailInstanceType, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).ProviderSpecificDetailInstanceType, 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 Event(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.Migrate.Models.Api20220501.IEventInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("SpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).SpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails) content.GetValueForProperty("SpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).SpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("EventType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).EventType, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).AffectedObjectFriendlyName = (string) content.GetValueForProperty("AffectedObjectFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).AffectedObjectFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).AffectedObjectCorrelationId = (string) content.GetValueForProperty("AffectedObjectCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).AffectedObjectCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("Severity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).Severity, global::System.Convert.ToString); - } - if (content.Contains("TimeOfOccurrence")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).TimeOfOccurrence = (global::System.DateTime?) content.GetValueForProperty("TimeOfOccurrence",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).TimeOfOccurrence, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).FabricId = (string) content.GetValueForProperty("FabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).FabricId, global::System.Convert.ToString); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("SpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).SpecificDetailInstanceType = (string) content.GetValueForProperty("SpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).SpecificDetailInstanceType, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEvent FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Implements the Event class. - [System.ComponentModel.TypeConverter(typeof(EventTypeConverter))] - public partial interface IEvent - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Event.cs b/src/Migrate/generated/api/Models/Api20220501/Event.cs deleted file mode 100644 index f767d07b4eb1..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/Event.cs +++ /dev/null @@ -1,260 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Implements the Event class. - public partial class Event : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEvent, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// The affected object correlationId for the event. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AffectedObjectCorrelationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).AffectedObjectCorrelationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).AffectedObjectCorrelationId = value ?? null; } - - /// - /// The friendly name of the source of the event on which it is raised (for example, VM, VMM etc). - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AffectedObjectFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).AffectedObjectFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).AffectedObjectFriendlyName = value ?? null; } - - /// The Id of the monitoring event. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).EventCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).EventCode = value ?? null; } - - /// The event name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).Description = value ?? null; } - - /// The type of the event. for example: VM Health, Server Health, Job Failure etc. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string EventType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).EventType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).EventType = value ?? null; } - - /// The ARM ID of the fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).FabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).FabricId = value ?? null; } - - /// The list of errors / warnings capturing details associated with the issue(s). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).HealthError = value ?? null /* arrayOf */; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Internal Acessors for SpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventInternal.SpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).EventSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).EventSpecificDetail = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProperties _property; - - /// Event related data. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProperties()); set => this._property = value; } - - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// The severity of the event. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Severity { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).Severity; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).Severity = value ?? null; } - - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).EventSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).EventSpecificDetailInstanceType = value ?? null; } - - /// The time of occurrence of the event. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? TimeOfOccurrence { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).TimeOfOccurrence; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)Property).TimeOfOccurrence = value ?? default(global::System.DateTime); } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public Event() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Implements the Event class. - public partial interface IEvent : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// The affected object correlationId for the event. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The affected object correlationId for the event.", - SerializedName = @"affectedObjectCorrelationId", - PossibleTypes = new [] { typeof(string) })] - string AffectedObjectCorrelationId { get; set; } - /// - /// The friendly name of the source of the event on which it is raised (for example, VM, VMM etc). - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The friendly name of the source of the event on which it is raised (for example, VM, VMM etc).", - SerializedName = @"affectedObjectFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string AffectedObjectFriendlyName { get; set; } - /// The Id of the monitoring event. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Id of the monitoring event.", - SerializedName = @"eventCode", - PossibleTypes = new [] { typeof(string) })] - string Code { get; set; } - /// The event name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The event name.", - SerializedName = @"description", - PossibleTypes = new [] { typeof(string) })] - string Description { get; set; } - /// The type of the event. for example: VM Health, Server Health, Job Failure etc. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of the event. for example: VM Health, Server Health, Job Failure etc.", - SerializedName = @"eventType", - PossibleTypes = new [] { typeof(string) })] - string EventType { get; set; } - /// The ARM ID of the fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ARM ID of the fabric.", - SerializedName = @"fabricId", - PossibleTypes = new [] { typeof(string) })] - string FabricId { get; set; } - /// The list of errors / warnings capturing details associated with the issue(s). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of errors / warnings capturing details associated with the issue(s).", - SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the class type. Overridden in derived classes.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - /// The severity of the event. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The severity of the event.", - SerializedName = @"severity", - PossibleTypes = new [] { typeof(string) })] - string Severity { get; set; } - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the class type. Overridden in derived classes.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string SpecificDetailInstanceType { get; set; } - /// The time of occurrence of the event. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The time of occurrence of the event.", - SerializedName = @"timeOfOccurrence", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? TimeOfOccurrence { get; set; } - - } - /// Implements the Event class. - internal partial interface IEventInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The affected object correlationId for the event. - string AffectedObjectCorrelationId { get; set; } - /// - /// The friendly name of the source of the event on which it is raised (for example, VM, VMM etc). - /// - string AffectedObjectFriendlyName { get; set; } - /// The Id of the monitoring event. - string Code { get; set; } - /// The event name. - string Description { get; set; } - /// The type of the event. for example: VM Health, Server Health, Job Failure etc. - string EventType { get; set; } - /// The ARM ID of the fabric. - string FabricId { get; set; } - /// The list of errors / warnings capturing details associated with the issue(s). - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } - /// Event related data. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProperties Property { get; set; } - /// The provider specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails ProviderSpecificDetail { get; set; } - /// Gets the class type. Overridden in derived classes. - string ProviderSpecificDetailInstanceType { get; set; } - /// The severity of the event. - string Severity { get; set; } - /// The event specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails SpecificDetail { get; set; } - /// Gets the class type. Overridden in derived classes. - string SpecificDetailInstanceType { get; set; } - /// The time of occurrence of the event. - global::System.DateTime? TimeOfOccurrence { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EventCollectionAutoGenerated.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/EventCollectionAutoGenerated.PowerShell.cs deleted file mode 100644 index 11e0da3a9410..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/EventCollectionAutoGenerated.PowerShell.cs +++ /dev/null @@ -1,154 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Collection of fabric details. - [System.ComponentModel.TypeConverter(typeof(EventCollectionAutoGeneratedTypeConverter))] - public partial class EventCollectionAutoGenerated - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IEventCollectionAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EventCollectionAutoGenerated(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.Migrate.Models.Api20220501.IEventCollectionAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EventCollectionAutoGenerated(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EventCollectionAutoGenerated(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEvent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal EventCollectionAutoGenerated(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEvent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Collection of fabric details. - [System.ComponentModel.TypeConverter(typeof(EventCollectionAutoGeneratedTypeConverter))] - public partial interface IEventCollectionAutoGenerated - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EventProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/EventProperties.PowerShell.cs deleted file mode 100644 index 4bbd4a484b23..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/EventProperties.PowerShell.cs +++ /dev/null @@ -1,240 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// The properties of a monitoring event. - [System.ComponentModel.TypeConverter(typeof(EventPropertiesTypeConverter))] - public partial class EventProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IEventProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EventProperties(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.Migrate.Models.Api20220501.IEventProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EventProperties(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EventProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("EventSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails) content.GetValueForProperty("EventSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("EventCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventCode = (string) content.GetValueForProperty("EventCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventCode, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("EventType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventType, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).AffectedObjectFriendlyName = (string) content.GetValueForProperty("AffectedObjectFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).AffectedObjectFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).AffectedObjectCorrelationId = (string) content.GetValueForProperty("AffectedObjectCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).AffectedObjectCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("Severity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).Severity, global::System.Convert.ToString); - } - if (content.Contains("TimeOfOccurrence")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).TimeOfOccurrence = (global::System.DateTime?) content.GetValueForProperty("TimeOfOccurrence",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).TimeOfOccurrence, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).FabricId = (string) content.GetValueForProperty("FabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).FabricId, global::System.Convert.ToString); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("EventSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventSpecificDetailInstanceType = (string) content.GetValueForProperty("EventSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventSpecificDetailInstanceType, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 EventProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("EventSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails) content.GetValueForProperty("EventSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("EventCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventCode = (string) content.GetValueForProperty("EventCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventCode, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("EventType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventType, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).AffectedObjectFriendlyName = (string) content.GetValueForProperty("AffectedObjectFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).AffectedObjectFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).AffectedObjectCorrelationId = (string) content.GetValueForProperty("AffectedObjectCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).AffectedObjectCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("Severity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).Severity, global::System.Convert.ToString); - } - if (content.Contains("TimeOfOccurrence")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).TimeOfOccurrence = (global::System.DateTime?) content.GetValueForProperty("TimeOfOccurrence",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).TimeOfOccurrence, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).FabricId = (string) content.GetValueForProperty("FabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).FabricId, global::System.Convert.ToString); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("EventSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventSpecificDetailInstanceType = (string) content.GetValueForProperty("EventSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).EventSpecificDetailInstanceType, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The properties of a monitoring event. - [System.ComponentModel.TypeConverter(typeof(EventPropertiesTypeConverter))] - public partial interface IEventProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EventQueryParameter.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/EventQueryParameter.PowerShell.cs deleted file mode 100644 index 1ad7dc170b83..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/EventQueryParameter.PowerShell.cs +++ /dev/null @@ -1,200 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Implements the event query parameter. - [System.ComponentModel.TypeConverter(typeof(EventQueryParameterTypeConverter))] - public partial class EventQueryParameter - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IEventQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EventQueryParameter(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.Migrate.Models.Api20220501.IEventQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EventQueryParameter(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EventQueryParameter(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("EventCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).EventCode = (string) content.GetValueForProperty("EventCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).EventCode, global::System.Convert.ToString); - } - if (content.Contains("Severity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).Severity, global::System.Convert.ToString); - } - if (content.Contains("EventType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).EventType, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).AffectedObjectFriendlyName = (string) content.GetValueForProperty("AffectedObjectFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).AffectedObjectFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).AffectedObjectCorrelationId = (string) content.GetValueForProperty("AffectedObjectCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).AffectedObjectCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal EventQueryParameter(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("EventCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).EventCode = (string) content.GetValueForProperty("EventCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).EventCode, global::System.Convert.ToString); - } - if (content.Contains("Severity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).Severity, global::System.Convert.ToString); - } - if (content.Contains("EventType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).EventType, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).AffectedObjectFriendlyName = (string) content.GetValueForProperty("AffectedObjectFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).AffectedObjectFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).AffectedObjectCorrelationId = (string) content.GetValueForProperty("AffectedObjectCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).AffectedObjectCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Implements the event query parameter. - [System.ComponentModel.TypeConverter(typeof(EventQueryParameterTypeConverter))] - public partial interface IEventQueryParameter - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryVirtualNetwork.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryVirtualNetwork.PowerShell.cs deleted file mode 100644 index c729d120e335..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryVirtualNetwork.PowerShell.cs +++ /dev/null @@ -1,162 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Existing recovery virtual network input. - [System.ComponentModel.TypeConverter(typeof(ExistingRecoveryVirtualNetworkTypeConverter))] - public partial class ExistingRecoveryVirtualNetwork - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetwork DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ExistingRecoveryVirtualNetwork(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.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetwork DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ExistingRecoveryVirtualNetwork(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ExistingRecoveryVirtualNetwork(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryVirtualNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkId = (string) content.GetValueForProperty("RecoveryVirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkId, global::System.Convert.ToString); - } - if (content.Contains("RecoverySubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetworkInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetworkInternal)this).RecoverySubnetName, global::System.Convert.ToString); - } - if (content.Contains("ResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType, 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 ExistingRecoveryVirtualNetwork(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryVirtualNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkId = (string) content.GetValueForProperty("RecoveryVirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkId, global::System.Convert.ToString); - } - if (content.Contains("RecoverySubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetworkInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetworkInternal)this).RecoverySubnetName, global::System.Convert.ToString); - } - if (content.Contains("ResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetwork FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Existing recovery virtual network input. - [System.ComponentModel.TypeConverter(typeof(ExistingRecoveryVirtualNetworkTypeConverter))] - public partial interface IExistingRecoveryVirtualNetwork - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ExportJobDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ExportJobDetails.PowerShell.cs deleted file mode 100644 index 87742626ac33..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ExportJobDetails.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class represents details for export jobs workflow. - [System.ComponentModel.TypeConverter(typeof(ExportJobDetailsTypeConverter))] - public partial class ExportJobDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IExportJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ExportJobDetails(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.Migrate.Models.Api20220501.IExportJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ExportJobDetails(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ExportJobDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("BlobUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetailsInternal)this).BlobUri = (string) content.GetValueForProperty("BlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetailsInternal)this).BlobUri, global::System.Convert.ToString); - } - if (content.Contains("SasToken")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetailsInternal)this).SasToken = (string) content.GetValueForProperty("SasToken",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetailsInternal)this).SasToken, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ExportJobDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("BlobUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetailsInternal)this).BlobUri = (string) content.GetValueForProperty("BlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetailsInternal)this).BlobUri, global::System.Convert.ToString); - } - if (content.Contains("SasToken")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetailsInternal)this).SasToken = (string) content.GetValueForProperty("SasToken",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetailsInternal)this).SasToken, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class represents details for export jobs workflow. - [System.ComponentModel.TypeConverter(typeof(ExportJobDetailsTypeConverter))] - public partial interface IExportJobDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Fabric.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/Fabric.PowerShell.cs deleted file mode 100644 index cdc2a04f6a74..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/Fabric.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Fabric definition. - [System.ComponentModel.TypeConverter(typeof(FabricTypeConverter))] - public partial class Fabric - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IFabric DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Fabric(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.Migrate.Models.Api20220501.IFabric DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Fabric(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Fabric(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.Migrate.Models.Api20220501.IFabricInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, 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 Fabric(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.Migrate.Models.Api20220501.IFabricInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Fabric definition. - [System.ComponentModel.TypeConverter(typeof(FabricTypeConverter))] - public partial interface IFabric - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Fabric.cs b/src/Migrate/generated/api/Models/Api20220501/Fabric.cs deleted file mode 100644 index be155642b319..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/Fabric.cs +++ /dev/null @@ -1,96 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Fabric definition. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.DoNotFormat] - public partial class Fabric : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricProperties _property; - - /// Fabric related data. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricProperties()); set => this._property = value; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public Fabric() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Fabric definition. - public partial interface IFabric : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// Fabric related data. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fabric related data.", - SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricProperties Property { get; set; } - - } - /// Fabric definition. - internal partial interface IFabricInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// Fabric related data. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricProperties Property { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/FabricCreationInput.PowerShell.cs deleted file mode 100644 index 191b00df9d70..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInput.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Site details provided during the time of site creation. - [System.ComponentModel.TypeConverter(typeof(FabricCreationInputTypeConverter))] - public partial class FabricCreationInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IFabricCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FabricCreationInput(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.Migrate.Models.Api20220501.IFabricCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FabricCreationInput(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FabricCreationInput(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.Migrate.Models.Api20220501.IFabricCreationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricCreationInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInputTypeConverter.ConvertFrom); - } - if (content.Contains("CustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputInternal)this).CustomDetailInstanceType, 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 FabricCreationInput(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.Migrate.Models.Api20220501.IFabricCreationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricCreationInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInputTypeConverter.ConvertFrom); - } - if (content.Contains("CustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Site details provided during the time of site creation. - [System.ComponentModel.TypeConverter(typeof(FabricCreationInputTypeConverter))] - public partial interface IFabricCreationInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInput.cs b/src/Migrate/generated/api/Models/Api20220501/FabricCreationInput.cs deleted file mode 100644 index 0cd98325876c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInput.cs +++ /dev/null @@ -1,65 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Site details provided during the time of site creation. - public partial class FabricCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputInternal - { - - /// Gets the class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputPropertiesInternal)Property).CustomDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputPropertiesInternal)Property).CustomDetailInstanceType = value ?? null; } - - /// Internal Acessors for CustomDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputInternal.CustomDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputPropertiesInternal)Property).CustomDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputPropertiesInternal)Property).CustomDetail = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricCreationInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputProperties _property; - - /// Fabric creation input. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricCreationInputProperties()); set => this._property = value; } - - /// Creates an new instance. - public FabricCreationInput() - { - - } - } - /// Site details provided during the time of site creation. - public partial interface IFabricCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Gets the class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string CustomDetailInstanceType { get; set; } - - } - /// Site details provided during the time of site creation. - internal partial interface IFabricCreationInputInternal - - { - /// Fabric provider specific creation input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput CustomDetail { get; set; } - /// Gets the class type. - string CustomDetailInstanceType { get; set; } - /// Fabric creation input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputProperties Property { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInputProperties.cs b/src/Migrate/generated/api/Models/Api20220501/FabricCreationInputProperties.cs deleted file mode 100644 index ba53314d4703..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInputProperties.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Properties of site details provided during the time of site creation. - public partial class FabricCreationInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputPropertiesInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput _customDetail; - - /// Fabric provider specific creation input. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInput()); set => this._customDetail = value; } - - /// Gets the class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)CustomDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)CustomDetail).InstanceType = value ?? null; } - - /// Internal Acessors for CustomDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputPropertiesInternal.CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInput()); set { {_customDetail = value;} } } - - /// Creates an new instance. - public FabricCreationInputProperties() - { - - } - } - /// Properties of site details provided during the time of site creation. - public partial interface IFabricCreationInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Gets the class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string CustomDetailInstanceType { get; set; } - - } - /// Properties of site details provided during the time of site creation. - internal partial interface IFabricCreationInputPropertiesInternal - - { - /// Fabric provider specific creation input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput CustomDetail { get; set; } - /// Gets the class type. - string CustomDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/FabricProperties.PowerShell.cs deleted file mode 100644 index 9da3d76af3df..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/FabricProperties.PowerShell.cs +++ /dev/null @@ -1,200 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Fabric properties. - [System.ComponentModel.TypeConverter(typeof(FabricPropertiesTypeConverter))] - public partial class FabricProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IFabricProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FabricProperties(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.Migrate.Models.Api20220501.IFabricProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FabricProperties(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FabricProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("EncryptionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).EncryptionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails) content.GetValueForProperty("EncryptionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).EncryptionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EncryptionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RolloverEncryptionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).RolloverEncryptionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails) content.GetValueForProperty("RolloverEncryptionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).RolloverEncryptionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EncryptionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("InternalIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).InternalIdentifier = (string) content.GetValueForProperty("InternalIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).InternalIdentifier, global::System.Convert.ToString); - } - if (content.Contains("BcdrState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).BcdrState = (string) content.GetValueForProperty("BcdrState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).BcdrState, global::System.Convert.ToString); - } - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("HealthErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).Health = (string) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).Health, 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 FabricProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("EncryptionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).EncryptionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails) content.GetValueForProperty("EncryptionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).EncryptionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EncryptionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RolloverEncryptionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).RolloverEncryptionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails) content.GetValueForProperty("RolloverEncryptionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).RolloverEncryptionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EncryptionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("InternalIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).InternalIdentifier = (string) content.GetValueForProperty("InternalIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).InternalIdentifier, global::System.Convert.ToString); - } - if (content.Contains("BcdrState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).BcdrState = (string) content.GetValueForProperty("BcdrState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).BcdrState, global::System.Convert.ToString); - } - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("HealthErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).Health = (string) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal)this).Health, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Fabric properties. - [System.ComponentModel.TypeConverter(typeof(FabricPropertiesTypeConverter))] - public partial interface IFabricProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricQueryParameter.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/FabricQueryParameter.PowerShell.cs deleted file mode 100644 index b4c4a18fe418..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/FabricQueryParameter.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Query parameter to get fabric. - [System.ComponentModel.TypeConverter(typeof(FabricQueryParameterTypeConverter))] - public partial class FabricQueryParameter - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IFabricQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FabricQueryParameter(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.Migrate.Models.Api20220501.IFabricQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FabricQueryParameter(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FabricQueryParameter(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ZoneToZoneMapping")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).ZoneToZoneMapping = (string) content.GetValueForProperty("ZoneToZoneMapping",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).ZoneToZoneMapping, global::System.Convert.ToString); - } - if (content.Contains("FetchAgentDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).FetchAgentDetail = (string) content.GetValueForProperty("FetchAgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).FetchAgentDetail, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("DiscoveryType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).DiscoveryType, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).OSType, 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 FabricQueryParameter(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ZoneToZoneMapping")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).ZoneToZoneMapping = (string) content.GetValueForProperty("ZoneToZoneMapping",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).ZoneToZoneMapping, global::System.Convert.ToString); - } - if (content.Contains("FetchAgentDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).FetchAgentDetail = (string) content.GetValueForProperty("FetchAgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).FetchAgentDetail, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("DiscoveryType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).DiscoveryType, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal)this).OSType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Query parameter to get fabric. - [System.ComponentModel.TypeConverter(typeof(FabricQueryParameterTypeConverter))] - public partial interface IFabricQueryParameter - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricReplicationGroupTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/FabricReplicationGroupTaskDetails.PowerShell.cs deleted file mode 100644 index bd7957972c1e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/FabricReplicationGroupTaskDetails.PowerShell.cs +++ /dev/null @@ -1,220 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class represents the fabric replication group task details. - [System.ComponentModel.TypeConverter(typeof(FabricReplicationGroupTaskDetailsTypeConverter))] - public partial class FabricReplicationGroupTaskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FabricReplicationGroupTaskDetails(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.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FabricReplicationGroupTaskDetails(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FabricReplicationGroupTaskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SkippedReason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReason = (string) content.GetValueForProperty("SkippedReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReason, global::System.Convert.ToString); - } - if (content.Contains("SkippedReasonString")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReasonString = (string) content.GetValueForProperty("SkippedReasonString",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReasonString, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobId = (string) content.GetValueForProperty("JobTaskJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobId, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName = (string) content.GetValueForProperty("JobTaskJobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectId = (string) content.GetValueForProperty("JobTaskTargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectId, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetObjectName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectName = (string) content.GetValueForProperty("JobTaskTargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectName, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType = (string) content.GetValueForProperty("JobTaskTargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobScenarioName = (string) content.GetValueForProperty("JobTaskJobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobScenarioName, global::System.Convert.ToString); - } - if (content.Contains("JobTask")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity) content.GetValueForProperty("JobTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTask, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobEntityTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FabricReplicationGroupTaskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SkippedReason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReason = (string) content.GetValueForProperty("SkippedReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReason, global::System.Convert.ToString); - } - if (content.Contains("SkippedReasonString")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReasonString = (string) content.GetValueForProperty("SkippedReasonString",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReasonString, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobId = (string) content.GetValueForProperty("JobTaskJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobId, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName = (string) content.GetValueForProperty("JobTaskJobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectId = (string) content.GetValueForProperty("JobTaskTargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectId, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetObjectName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectName = (string) content.GetValueForProperty("JobTaskTargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectName, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType = (string) content.GetValueForProperty("JobTaskTargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobScenarioName = (string) content.GetValueForProperty("JobTaskJobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobScenarioName, global::System.Convert.ToString); - } - if (content.Contains("JobTask")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity) content.GetValueForProperty("JobTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTask, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobEntityTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class represents the fabric replication group task details. - [System.ComponentModel.TypeConverter(typeof(FabricReplicationGroupTaskDetailsTypeConverter))] - public partial interface IFabricReplicationGroupTaskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricReplicationGroupTaskDetails.cs b/src/Migrate/generated/api/Models/Api20220501/FabricReplicationGroupTaskDetails.cs deleted file mode 100644 index 746780b286d9..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/FabricReplicationGroupTaskDetails.cs +++ /dev/null @@ -1,119 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// This class represents the fabric replication group task details. - public partial class FabricReplicationGroupTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetailsInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetails __jobTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobTaskDetails(); - - /// The type of task details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__jobTaskDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__jobTaskDetails).InstanceType = value ; } - - /// The job entity. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity JobTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTask = value ?? null /* model class */; } - - /// The job display name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string JobTaskJobFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobFriendlyName = value ?? null; } - - /// The job id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string JobTaskJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobId = value ?? null; } - - /// The job name. Enum type ScenarioName. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string JobTaskJobScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobScenarioName = value ?? null; } - - /// The workflow affected object type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string JobTaskTargetInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetInstanceType = value ?? null; } - - /// The object id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string JobTaskTargetObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectId = value ?? null; } - - /// The object name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string JobTaskTargetObjectName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectName = value ?? null; } - - /// Backing field for property. - private string _skippedReason; - - /// The skipped reason. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string SkippedReason { get => this._skippedReason; set => this._skippedReason = value; } - - /// Backing field for property. - private string _skippedReasonString; - - /// The skipped reason string. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string SkippedReasonString { get => this._skippedReasonString; set => this._skippedReasonString = value; } - - /// Creates an new instance. - public FabricReplicationGroupTaskDetails() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__jobTaskDetails), __jobTaskDetails); - await eventListener.AssertObjectIsValid(nameof(__jobTaskDetails), __jobTaskDetails); - } - } - /// This class represents the fabric replication group task details. - public partial interface IFabricReplicationGroupTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetails - { - /// The skipped reason. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The skipped reason.", - SerializedName = @"skippedReason", - PossibleTypes = new [] { typeof(string) })] - string SkippedReason { get; set; } - /// The skipped reason string. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The skipped reason string.", - SerializedName = @"skippedReasonString", - PossibleTypes = new [] { typeof(string) })] - string SkippedReasonString { get; set; } - - } - /// This class represents the fabric replication group task details. - internal partial interface IFabricReplicationGroupTaskDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal - { - /// The skipped reason. - string SkippedReason { get; set; } - /// The skipped reason string. - string SkippedReasonString { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverJobDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/FailoverJobDetails.PowerShell.cs deleted file mode 100644 index d89fda95bb83..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverJobDetails.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class represents the details for a failover job. - [System.ComponentModel.TypeConverter(typeof(FailoverJobDetailsTypeConverter))] - public partial class FailoverJobDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IFailoverJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FailoverJobDetails(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.Migrate.Models.Api20220501.IFailoverJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FailoverJobDetails(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FailoverJobDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProtectedItemDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverJobDetailsInternal)this).ProtectedItemDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails[]) content.GetValueForProperty("ProtectedItemDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverJobDetailsInternal)this).ProtectedItemDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverReplicationProtectedItemDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FailoverJobDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProtectedItemDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverJobDetailsInternal)this).ProtectedItemDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails[]) content.GetValueForProperty("ProtectedItemDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverJobDetailsInternal)this).ProtectedItemDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverReplicationProtectedItemDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class represents the details for a failover job. - [System.ComponentModel.TypeConverter(typeof(FailoverJobDetailsTypeConverter))] - public partial interface IFailoverJobDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverJobDetails.cs b/src/Migrate/generated/api/Models/Api20220501/FailoverJobDetails.cs deleted file mode 100644 index 6da60d3e0e0d..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverJobDetails.cs +++ /dev/null @@ -1,81 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// This class represents the details for a failover job. - public partial class FailoverJobDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverJobDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverJobDetailsInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails(); - - /// - /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow - /// object details. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).AffectedObjectDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).AffectedObjectDetail = value ?? null /* model class */; } - - /// Gets the type of job details (see JobDetailsTypes enum for possible values). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).InstanceType = value ; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails[] _protectedItemDetail; - - /// The test VM details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails[] ProtectedItemDetail { get => this._protectedItemDetail; set => this._protectedItemDetail = value; } - - /// Creates an new instance. - public FailoverJobDetails() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__jobDetails), __jobDetails); - await eventListener.AssertObjectIsValid(nameof(__jobDetails), __jobDetails); - } - } - /// This class represents the details for a failover job. - public partial interface IFailoverJobDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails - { - /// The test VM details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The test VM details.", - SerializedName = @"protectedItemDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails[] ProtectedItemDetail { get; set; } - - } - /// This class represents the details for a failover job. - internal partial interface IFailoverJobDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal - { - /// The test VM details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails[] ProtectedItemDetail { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequest.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequest.PowerShell.cs deleted file mode 100644 index 256e04b40fd0..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequest.PowerShell.cs +++ /dev/null @@ -1,186 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Request to failover a process server. - [System.ComponentModel.TypeConverter(typeof(FailoverProcessServerRequestTypeConverter))] - public partial class FailoverProcessServerRequest - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IFailoverProcessServerRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FailoverProcessServerRequest(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.Migrate.Models.Api20220501.IFailoverProcessServerRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FailoverProcessServerRequest(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FailoverProcessServerRequest(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.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverProcessServerRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).ContainerName, global::System.Convert.ToString); - } - if (content.Contains("SourceProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).SourceProcessServerId = (string) content.GetValueForProperty("SourceProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).SourceProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("TargetProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).TargetProcessServerId = (string) content.GetValueForProperty("TargetProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).TargetProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("VmsToMigrate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).VmsToMigrate = (string[]) content.GetValueForProperty("VmsToMigrate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).VmsToMigrate, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("UpdateType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).UpdateType = (string) content.GetValueForProperty("UpdateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).UpdateType, 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 FailoverProcessServerRequest(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.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverProcessServerRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).ContainerName, global::System.Convert.ToString); - } - if (content.Contains("SourceProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).SourceProcessServerId = (string) content.GetValueForProperty("SourceProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).SourceProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("TargetProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).TargetProcessServerId = (string) content.GetValueForProperty("TargetProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).TargetProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("VmsToMigrate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).VmsToMigrate = (string[]) content.GetValueForProperty("VmsToMigrate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).VmsToMigrate, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("UpdateType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).UpdateType = (string) content.GetValueForProperty("UpdateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal)this).UpdateType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Request to failover a process server. - [System.ComponentModel.TypeConverter(typeof(FailoverProcessServerRequestTypeConverter))] - public partial interface IFailoverProcessServerRequest - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequest.cs b/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequest.cs deleted file mode 100644 index 71852c485331..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequest.cs +++ /dev/null @@ -1,116 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Request to failover a process server. - public partial class FailoverProcessServerRequest : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequest, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal - { - - /// The container identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)Property).ContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)Property).ContainerName = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverProcessServerRequestProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties _property; - - /// The properties of the PS Failover request. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverProcessServerRequestProperties()); set => this._property = value; } - - /// The source process server. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SourceProcessServerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)Property).SourceProcessServerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)Property).SourceProcessServerId = value ?? null; } - - /// The new process server. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TargetProcessServerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)Property).TargetProcessServerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)Property).TargetProcessServerId = value ?? null; } - - /// A value for failover type. It can be systemlevel/serverlevel. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string UpdateType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)Property).UpdateType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)Property).UpdateType = value ?? null; } - - /// The VMS to migrate. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] VmsToMigrate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)Property).VmsToMigrate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)Property).VmsToMigrate = value ?? null /* arrayOf */; } - - /// Creates an new instance. - public FailoverProcessServerRequest() - { - - } - } - /// Request to failover a process server. - public partial interface IFailoverProcessServerRequest : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The container identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The container identifier.", - SerializedName = @"containerName", - PossibleTypes = new [] { typeof(string) })] - string ContainerName { get; set; } - /// The source process server. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The source process server.", - SerializedName = @"sourceProcessServerId", - PossibleTypes = new [] { typeof(string) })] - string SourceProcessServerId { get; set; } - /// The new process server. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The new process server.", - SerializedName = @"targetProcessServerId", - PossibleTypes = new [] { typeof(string) })] - string TargetProcessServerId { get; set; } - /// A value for failover type. It can be systemlevel/serverlevel. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value for failover type. It can be systemlevel/serverlevel.", - SerializedName = @"updateType", - PossibleTypes = new [] { typeof(string) })] - string UpdateType { get; set; } - /// The VMS to migrate. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The VMS to migrate.", - SerializedName = @"vmsToMigrate", - PossibleTypes = new [] { typeof(string) })] - string[] VmsToMigrate { get; set; } - - } - /// Request to failover a process server. - internal partial interface IFailoverProcessServerRequestInternal - - { - /// The container identifier. - string ContainerName { get; set; } - /// The properties of the PS Failover request. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties Property { get; set; } - /// The source process server. - string SourceProcessServerId { get; set; } - /// The new process server. - string TargetProcessServerId { get; set; } - /// A value for failover type. It can be systemlevel/serverlevel. - string UpdateType { get; set; } - /// The VMS to migrate. - string[] VmsToMigrate { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequestProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequestProperties.PowerShell.cs deleted file mode 100644 index b42658800776..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequestProperties.PowerShell.cs +++ /dev/null @@ -1,181 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// The properties of the Failover Process Server request. - [System.ComponentModel.TypeConverter(typeof(FailoverProcessServerRequestPropertiesTypeConverter))] - public partial class FailoverProcessServerRequestProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FailoverProcessServerRequestProperties(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.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FailoverProcessServerRequestProperties(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FailoverProcessServerRequestProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).ContainerName, global::System.Convert.ToString); - } - if (content.Contains("SourceProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).SourceProcessServerId = (string) content.GetValueForProperty("SourceProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).SourceProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("TargetProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).TargetProcessServerId = (string) content.GetValueForProperty("TargetProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).TargetProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("VmsToMigrate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).VmsToMigrate = (string[]) content.GetValueForProperty("VmsToMigrate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).VmsToMigrate, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("UpdateType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).UpdateType = (string) content.GetValueForProperty("UpdateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).UpdateType, 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 FailoverProcessServerRequestProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).ContainerName, global::System.Convert.ToString); - } - if (content.Contains("SourceProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).SourceProcessServerId = (string) content.GetValueForProperty("SourceProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).SourceProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("TargetProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).TargetProcessServerId = (string) content.GetValueForProperty("TargetProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).TargetProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("VmsToMigrate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).VmsToMigrate = (string[]) content.GetValueForProperty("VmsToMigrate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).VmsToMigrate, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("UpdateType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).UpdateType = (string) content.GetValueForProperty("UpdateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal)this).UpdateType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json - /// string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The properties of the Failover Process Server request. - [System.ComponentModel.TypeConverter(typeof(FailoverProcessServerRequestPropertiesTypeConverter))] - public partial interface IFailoverProcessServerRequestProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverReplicationProtectedItemDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/FailoverReplicationProtectedItemDetails.PowerShell.cs deleted file mode 100644 index bcf529c72d55..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverReplicationProtectedItemDetails.PowerShell.cs +++ /dev/null @@ -1,213 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Failover details for a replication protected item. - [System.ComponentModel.TypeConverter(typeof(FailoverReplicationProtectedItemDetailsTypeConverter))] - public partial class FailoverReplicationProtectedItemDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new FailoverReplicationProtectedItemDetails(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.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new FailoverReplicationProtectedItemDetails(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal FailoverReplicationProtectedItemDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("TestVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMName = (string) content.GetValueForProperty("TestVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMName, global::System.Convert.ToString); - } - if (content.Contains("TestVMFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMFriendlyName = (string) content.GetValueForProperty("TestVMFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("NetworkConnectionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkConnectionStatus = (string) content.GetValueForProperty("NetworkConnectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkConnectionStatus, global::System.Convert.ToString); - } - if (content.Contains("NetworkFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkFriendlyName = (string) content.GetValueForProperty("NetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("Subnet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).Subnet, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal FailoverReplicationProtectedItemDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("TestVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMName = (string) content.GetValueForProperty("TestVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMName, global::System.Convert.ToString); - } - if (content.Contains("TestVMFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMFriendlyName = (string) content.GetValueForProperty("TestVMFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("NetworkConnectionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkConnectionStatus = (string) content.GetValueForProperty("NetworkConnectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkConnectionStatus, global::System.Convert.ToString); - } - if (content.Contains("NetworkFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkFriendlyName = (string) content.GetValueForProperty("NetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("Subnet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).Subnet, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json - /// string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Failover details for a replication protected item. - [System.ComponentModel.TypeConverter(typeof(FailoverReplicationProtectedItemDetailsTypeConverter))] - public partial interface IFailoverReplicationProtectedItemDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HealthError.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HealthError.PowerShell.cs deleted file mode 100644 index f9e459a6d0ab..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HealthError.PowerShell.cs +++ /dev/null @@ -1,256 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Health Error. - [System.ComponentModel.TypeConverter(typeof(HealthErrorTypeConverter))] - public partial class HealthError - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHealthError DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HealthError(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.Migrate.Models.Api20220501.IHealthError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HealthError(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.Migrate.Models.Api20220501.IHealthError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HealthError(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InnerHealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).InnerHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthError[]) content.GetValueForProperty("InnerHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).InnerHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InnerHealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ErrorSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorSource = (string) content.GetValueForProperty("ErrorSource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorSource, global::System.Convert.ToString); - } - if (content.Contains("ErrorType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorType = (string) content.GetValueForProperty("ErrorType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorType, global::System.Convert.ToString); - } - if (content.Contains("ErrorLevel")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorLevel = (string) content.GetValueForProperty("ErrorLevel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorLevel, global::System.Convert.ToString); - } - if (content.Contains("ErrorCategory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorCategory = (string) content.GetValueForProperty("ErrorCategory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorCategory, global::System.Convert.ToString); - } - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("SummaryMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).SummaryMessage = (string) content.GetValueForProperty("SummaryMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).SummaryMessage, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("CreationTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).CreationTimeUtc = (global::System.DateTime?) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).CreationTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RecoveryProviderErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).RecoveryProviderErrorMessage = (string) content.GetValueForProperty("RecoveryProviderErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).RecoveryProviderErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("EntityId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).EntityId = (string) content.GetValueForProperty("EntityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).EntityId, global::System.Convert.ToString); - } - if (content.Contains("ErrorId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorId = (string) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorId, global::System.Convert.ToString); - } - if (content.Contains("CustomerResolvability")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).CustomerResolvability = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability?) content.GetValueForProperty("CustomerResolvability",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).CustomerResolvability, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal HealthError(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InnerHealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).InnerHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthError[]) content.GetValueForProperty("InnerHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).InnerHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InnerHealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ErrorSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorSource = (string) content.GetValueForProperty("ErrorSource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorSource, global::System.Convert.ToString); - } - if (content.Contains("ErrorType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorType = (string) content.GetValueForProperty("ErrorType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorType, global::System.Convert.ToString); - } - if (content.Contains("ErrorLevel")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorLevel = (string) content.GetValueForProperty("ErrorLevel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorLevel, global::System.Convert.ToString); - } - if (content.Contains("ErrorCategory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorCategory = (string) content.GetValueForProperty("ErrorCategory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorCategory, global::System.Convert.ToString); - } - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("SummaryMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).SummaryMessage = (string) content.GetValueForProperty("SummaryMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).SummaryMessage, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("CreationTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).CreationTimeUtc = (global::System.DateTime?) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).CreationTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RecoveryProviderErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).RecoveryProviderErrorMessage = (string) content.GetValueForProperty("RecoveryProviderErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).RecoveryProviderErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("EntityId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).EntityId = (string) content.GetValueForProperty("EntityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).EntityId, global::System.Convert.ToString); - } - if (content.Contains("ErrorId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorId = (string) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).ErrorId, global::System.Convert.ToString); - } - if (content.Contains("CustomerResolvability")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).CustomerResolvability = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability?) content.GetValueForProperty("CustomerResolvability",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal)this).CustomerResolvability, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Health Error. - [System.ComponentModel.TypeConverter(typeof(HealthErrorTypeConverter))] - public partial interface IHealthError - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HealthErrorSummary.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HealthErrorSummary.PowerShell.cs deleted file mode 100644 index 8221ac4e747c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HealthErrorSummary.PowerShell.cs +++ /dev/null @@ -1,192 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// class to define the summary of the health error details. - [System.ComponentModel.TypeConverter(typeof(HealthErrorSummaryTypeConverter))] - public partial class HealthErrorSummary - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHealthErrorSummary DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HealthErrorSummary(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.Migrate.Models.Api20220501.IHealthErrorSummary DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HealthErrorSummary(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.Migrate.Models.Api20220501.IHealthErrorSummary FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HealthErrorSummary(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SummaryCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).SummaryCode = (string) content.GetValueForProperty("SummaryCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).SummaryCode, global::System.Convert.ToString); - } - if (content.Contains("Category")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).Category = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCategory?) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).Category, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCategory.CreateFrom); - } - if (content.Contains("Severity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).Severity = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.Severity?) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).Severity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.Severity.CreateFrom); - } - if (content.Contains("SummaryMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).SummaryMessage = (string) content.GetValueForProperty("SummaryMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).SummaryMessage, global::System.Convert.ToString); - } - if (content.Contains("AffectedResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).AffectedResourceType = (string) content.GetValueForProperty("AffectedResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).AffectedResourceType, global::System.Convert.ToString); - } - if (content.Contains("AffectedResourceSubtype")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).AffectedResourceSubtype = (string) content.GetValueForProperty("AffectedResourceSubtype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).AffectedResourceSubtype, global::System.Convert.ToString); - } - if (content.Contains("AffectedResourceCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).AffectedResourceCorrelationId = (string[]) content.GetValueForProperty("AffectedResourceCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).AffectedResourceCorrelationId, __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 HealthErrorSummary(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SummaryCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).SummaryCode = (string) content.GetValueForProperty("SummaryCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).SummaryCode, global::System.Convert.ToString); - } - if (content.Contains("Category")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).Category = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCategory?) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).Category, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCategory.CreateFrom); - } - if (content.Contains("Severity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).Severity = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.Severity?) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).Severity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.Severity.CreateFrom); - } - if (content.Contains("SummaryMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).SummaryMessage = (string) content.GetValueForProperty("SummaryMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).SummaryMessage, global::System.Convert.ToString); - } - if (content.Contains("AffectedResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).AffectedResourceType = (string) content.GetValueForProperty("AffectedResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).AffectedResourceType, global::System.Convert.ToString); - } - if (content.Contains("AffectedResourceSubtype")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).AffectedResourceSubtype = (string) content.GetValueForProperty("AffectedResourceSubtype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).AffectedResourceSubtype, global::System.Convert.ToString); - } - if (content.Contains("AffectedResourceCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).AffectedResourceCorrelationId = (string[]) content.GetValueForProperty("AffectedResourceCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal)this).AffectedResourceCorrelationId, __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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// class to define the summary of the health error details. - [System.ComponentModel.TypeConverter(typeof(HealthErrorSummaryTypeConverter))] - public partial interface IHealthErrorSummary - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012EventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012EventDetails.PowerShell.cs deleted file mode 100644 index 85d3a36ff03d..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012EventDetails.PowerShell.cs +++ /dev/null @@ -1,178 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Model class for event details of a HyperVReplica E2E event. - [System.ComponentModel.TypeConverter(typeof(HyperVReplica2012EventDetailsTypeConverter))] - public partial class HyperVReplica2012EventDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplica2012EventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplica2012EventDetails(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.Migrate.Models.Api20220501.IHyperVReplica2012EventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplica2012EventDetails(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.Migrate.Models.Api20220501.IHyperVReplica2012EventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplica2012EventDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).ContainerName, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("RemoteContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); - } - if (content.Contains("RemoteFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplica2012EventDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).ContainerName, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("RemoteContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); - } - if (content.Contains("RemoteFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Model class for event details of a HyperVReplica E2E event. - [System.ComponentModel.TypeConverter(typeof(HyperVReplica2012EventDetailsTypeConverter))] - public partial interface IHyperVReplica2012EventDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012R2EventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012R2EventDetails.PowerShell.cs deleted file mode 100644 index 655e42d5b37d..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012R2EventDetails.PowerShell.cs +++ /dev/null @@ -1,178 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Model class for event details of a HyperVReplica blue E2E event. - [System.ComponentModel.TypeConverter(typeof(HyperVReplica2012R2EventDetailsTypeConverter))] - public partial class HyperVReplica2012R2EventDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplica2012R2EventDetails(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.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplica2012R2EventDetails(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.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplica2012R2EventDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).ContainerName, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("RemoteContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); - } - if (content.Contains("RemoteFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplica2012R2EventDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).ContainerName, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("RemoteContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); - } - if (content.Contains("RemoteFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Model class for event details of a HyperVReplica blue E2E event. - [System.ComponentModel.TypeConverter(typeof(HyperVReplica2012R2EventDetailsTypeConverter))] - public partial interface IHyperVReplica2012R2EventDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureApplyRecoveryPointInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureApplyRecoveryPointInput.PowerShell.cs deleted file mode 100644 index ca4faafe7e85..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureApplyRecoveryPointInput.PowerShell.cs +++ /dev/null @@ -1,165 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// ApplyRecoveryPoint input specific to HyperVReplicaAzure provider. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureApplyRecoveryPointInputTypeConverter))] - public partial class HyperVReplicaAzureApplyRecoveryPointInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaAzureApplyRecoveryPointInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaAzureApplyRecoveryPointInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaAzureApplyRecoveryPointInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("SecondaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, 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 HyperVReplicaAzureApplyRecoveryPointInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("SecondaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// ApplyRecoveryPoint input specific to HyperVReplicaAzure provider. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureApplyRecoveryPointInputTypeConverter))] - public partial interface IHyperVReplicaAzureApplyRecoveryPointInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureDiskInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureDiskInputDetails.PowerShell.cs deleted file mode 100644 index e759e040d5f4..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureDiskInputDetails.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Disk input details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureDiskInputDetailsTypeConverter))] - public partial class HyperVReplicaAzureDiskInputDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaAzureDiskInputDetails(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.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaAzureDiskInputDetails(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.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaAzureDiskInputDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskEncryptionSetId, 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 HyperVReplicaAzureDiskInputDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskEncryptionSetId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Disk input details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureDiskInputDetailsTypeConverter))] - public partial interface IHyperVReplicaAzureDiskInputDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInput.PowerShell.cs deleted file mode 100644 index 3a7c92816c6f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInput.PowerShell.cs +++ /dev/null @@ -1,373 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// HyperVReplicaAzure specific enable protection input. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureEnableProtectionInputTypeConverter))] - public partial class HyperVReplicaAzureEnableProtectionInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaAzureEnableProtectionInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaAzureEnableProtectionInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaAzureEnableProtectionInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("HvHostVMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).HvHostVMId = (string) content.GetValueForProperty("HvHostVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).HvHostVMId, global::System.Convert.ToString); - } - if (content.Contains("VMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).VMName, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("VhdId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).VhdId = (string) content.GetValueForProperty("VhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).VhdId, global::System.Convert.ToString); - } - if (content.Contains("TargetStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetStorageAccountId = (string) content.GetValueForProperty("TargetStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureNetworkId = (string) content.GetValueForProperty("TargetAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureSubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureSubnetId = (string) content.GetValueForProperty("TargetAzureSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureSubnetId, global::System.Convert.ToString); - } - if (content.Contains("EnableRdpOnTargetOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureVMName = (string) content.GetValueForProperty("TargetAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DisksToInclude")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("TargetAzureV1ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureV2ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("UseManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisk, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("UseManagedDisksForReplication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisksForReplication = (string) content.GetValueForProperty("UseManagedDisksForReplication",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisksForReplication, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DisksToIncludeForManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToIncludeForManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails[]) content.GetValueForProperty("DisksToIncludeForManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToIncludeForManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetVmtagsTypeConverter.ConvertFrom); - } - if (content.Contains("SeedManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, 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 HyperVReplicaAzureEnableProtectionInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("HvHostVMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).HvHostVMId = (string) content.GetValueForProperty("HvHostVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).HvHostVMId, global::System.Convert.ToString); - } - if (content.Contains("VMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).VMName, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("VhdId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).VhdId = (string) content.GetValueForProperty("VhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).VhdId, global::System.Convert.ToString); - } - if (content.Contains("TargetStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetStorageAccountId = (string) content.GetValueForProperty("TargetStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureNetworkId = (string) content.GetValueForProperty("TargetAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureSubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureSubnetId = (string) content.GetValueForProperty("TargetAzureSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureSubnetId, global::System.Convert.ToString); - } - if (content.Contains("EnableRdpOnTargetOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureVMName = (string) content.GetValueForProperty("TargetAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DisksToInclude")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("TargetAzureV1ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureV2ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("UseManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisk, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("UseManagedDisksForReplication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisksForReplication = (string) content.GetValueForProperty("UseManagedDisksForReplication",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisksForReplication, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DisksToIncludeForManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToIncludeForManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails[]) content.GetValueForProperty("DisksToIncludeForManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToIncludeForManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureDiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetVmtagsTypeConverter.ConvertFrom); - } - if (content.Contains("SeedManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// HyperVReplicaAzure specific enable protection input. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureEnableProtectionInputTypeConverter))] - public partial interface IHyperVReplicaAzureEnableProtectionInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEventDetails.PowerShell.cs deleted file mode 100644 index 8bbd1e33ffb9..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEventDetails.PowerShell.cs +++ /dev/null @@ -1,170 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Model class for event details of a HyperVReplica E2A event. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureEventDetailsTypeConverter))] - public partial class HyperVReplicaAzureEventDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaAzureEventDetails(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.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaAzureEventDetails(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.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaAzureEventDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetailsInternal)this).ContainerName, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetailsInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("RemoteContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplicaAzureEventDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetailsInternal)this).ContainerName, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetailsInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("RemoteContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Model class for event details of a HyperVReplica E2A event. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureEventDetailsTypeConverter))] - public partial interface IHyperVReplicaAzureEventDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureFailbackProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureFailbackProviderInput.PowerShell.cs deleted file mode 100644 index 656540c6b9dc..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureFailbackProviderInput.PowerShell.cs +++ /dev/null @@ -1,173 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// HyperVReplicaAzureFailback specific planned failover input. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureFailbackProviderInputTypeConverter))] - public partial class HyperVReplicaAzureFailbackProviderInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaAzureFailbackProviderInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaAzureFailbackProviderInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaAzureFailbackProviderInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DataSyncOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInputInternal)this).DataSyncOption = (string) content.GetValueForProperty("DataSyncOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInputInternal)this).DataSyncOption, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVMCreationOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInputInternal)this).RecoveryVMCreationOption = (string) content.GetValueForProperty("RecoveryVMCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInputInternal)this).RecoveryVMCreationOption, global::System.Convert.ToString); - } - if (content.Contains("ProviderIdForAlternateRecovery")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInputInternal)this).ProviderIdForAlternateRecovery = (string) content.GetValueForProperty("ProviderIdForAlternateRecovery",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInputInternal)this).ProviderIdForAlternateRecovery, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, 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 HyperVReplicaAzureFailbackProviderInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DataSyncOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInputInternal)this).DataSyncOption = (string) content.GetValueForProperty("DataSyncOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInputInternal)this).DataSyncOption, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVMCreationOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInputInternal)this).RecoveryVMCreationOption = (string) content.GetValueForProperty("RecoveryVMCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInputInternal)this).RecoveryVMCreationOption, global::System.Convert.ToString); - } - if (content.Contains("ProviderIdForAlternateRecovery")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInputInternal)this).ProviderIdForAlternateRecovery = (string) content.GetValueForProperty("ProviderIdForAlternateRecovery",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInputInternal)this).ProviderIdForAlternateRecovery, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// HyperVReplicaAzureFailback specific planned failover input. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureFailbackProviderInputTypeConverter))] - public partial interface IHyperVReplicaAzureFailbackProviderInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureManagedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureManagedDiskDetails.PowerShell.cs deleted file mode 100644 index 78209c29529f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureManagedDiskDetails.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Hyper-V Managed disk details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureManagedDiskDetailsTypeConverter))] - public partial class HyperVReplicaAzureManagedDiskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaAzureManagedDiskDetails(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.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaAzureManagedDiskDetails(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.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaAzureManagedDiskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("SeedManagedDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); - } - if (content.Contains("ReplicaDiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).ReplicaDiskType = (string) content.GetValueForProperty("ReplicaDiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).ReplicaDiskType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskEncryptionSetId, 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 HyperVReplicaAzureManagedDiskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("SeedManagedDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); - } - if (content.Contains("ReplicaDiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).ReplicaDiskType = (string) content.GetValueForProperty("ReplicaDiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).ReplicaDiskType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskEncryptionSetId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Hyper-V Managed disk details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureManagedDiskDetailsTypeConverter))] - public partial interface IHyperVReplicaAzureManagedDiskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePlannedFailoverProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePlannedFailoverProviderInput.PowerShell.cs deleted file mode 100644 index a2d974459f3d..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePlannedFailoverProviderInput.PowerShell.cs +++ /dev/null @@ -1,173 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// HyperVReplicaAzure specific planned failover input. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzurePlannedFailoverProviderInputTypeConverter))] - public partial class HyperVReplicaAzurePlannedFailoverProviderInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaAzurePlannedFailoverProviderInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaAzurePlannedFailoverProviderInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaAzurePlannedFailoverProviderInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("SecondaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, 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 HyperVReplicaAzurePlannedFailoverProviderInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("SecondaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// HyperVReplicaAzure specific planned failover input. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzurePlannedFailoverProviderInputTypeConverter))] - public partial interface IHyperVReplicaAzurePlannedFailoverProviderInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyDetails.PowerShell.cs deleted file mode 100644 index 2fa39cb69e48..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyDetails.PowerShell.cs +++ /dev/null @@ -1,194 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Hyper-V Replica Azure specific protection profile details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzurePolicyDetailsTypeConverter))] - public partial class HyperVReplicaAzurePolicyDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaAzurePolicyDetails(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.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaAzurePolicyDetails(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.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaAzurePolicyDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointHistoryDurationInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).RecoveryPointHistoryDurationInHour = (int?) content.GetValueForProperty("RecoveryPointHistoryDurationInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).RecoveryPointHistoryDurationInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReplicationInterval")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).ReplicationInterval = (int?) content.GetValueForProperty("ReplicationInterval",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).ReplicationInterval, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("OnlineReplicationStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); - } - if (content.Contains("Encryption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).Encryption = (string) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).Encryption, global::System.Convert.ToString); - } - if (content.Contains("ActiveStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).ActiveStorageAccountId = (string) content.GetValueForProperty("ActiveStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).ActiveStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplicaAzurePolicyDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointHistoryDurationInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).RecoveryPointHistoryDurationInHour = (int?) content.GetValueForProperty("RecoveryPointHistoryDurationInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).RecoveryPointHistoryDurationInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReplicationInterval")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).ReplicationInterval = (int?) content.GetValueForProperty("ReplicationInterval",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).ReplicationInterval, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("OnlineReplicationStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); - } - if (content.Contains("Encryption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).Encryption = (string) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).Encryption, global::System.Convert.ToString); - } - if (content.Contains("ActiveStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).ActiveStorageAccountId = (string) content.GetValueForProperty("ActiveStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal)this).ActiveStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Hyper-V Replica Azure specific protection profile details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzurePolicyDetailsTypeConverter))] - public partial interface IHyperVReplicaAzurePolicyDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyInput.PowerShell.cs deleted file mode 100644 index 625a15d2f25f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyInput.PowerShell.cs +++ /dev/null @@ -1,186 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Hyper-V Replica Azure specific input for creating a protection profile. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzurePolicyInputTypeConverter))] - public partial class HyperVReplicaAzurePolicyInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaAzurePolicyInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaAzurePolicyInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaAzurePolicyInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointHistoryDuration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).RecoveryPointHistoryDuration = (int?) content.GetValueForProperty("RecoveryPointHistoryDuration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).RecoveryPointHistoryDuration, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReplicationInterval")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).ReplicationInterval = (int?) content.GetValueForProperty("ReplicationInterval",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).ReplicationInterval, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("OnlineReplicationStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); - } - if (content.Contains("StorageAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).StorageAccount = (string[]) content.GetValueForProperty("StorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).StorageAccount, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 HyperVReplicaAzurePolicyInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointHistoryDuration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).RecoveryPointHistoryDuration = (int?) content.GetValueForProperty("RecoveryPointHistoryDuration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).RecoveryPointHistoryDuration, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReplicationInterval")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).ReplicationInterval = (int?) content.GetValueForProperty("ReplicationInterval",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).ReplicationInterval, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("OnlineReplicationStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); - } - if (content.Contains("StorageAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).StorageAccount = (string[]) content.GetValueForProperty("StorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal)this).StorageAccount, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Hyper-V Replica Azure specific input for creating a protection profile. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzurePolicyInputTypeConverter))] - public partial interface IHyperVReplicaAzurePolicyInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetails.PowerShell.cs deleted file mode 100644 index 9f2d0e14f2f8..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetails.PowerShell.cs +++ /dev/null @@ -1,476 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Hyper V Replica Azure provider specific settings. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureReplicationDetailsTypeConverter))] - public partial class HyperVReplicaAzureReplicationDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaAzureReplicationDetails(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.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaAzureReplicationDetails(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.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaAzureReplicationDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InitialReplicationDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("OSDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("AzureVMDiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).AzureVMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails[]) content.GetValueForProperty("AzureVMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).AzureVMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureVMDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureStorageAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureStorageAccount = (string) content.GetValueForProperty("RecoveryAzureStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureStorageAccount, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureLogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureLogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("LastReplicatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RpoInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LastRpoCalculatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("SelectedRecoveryAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedSourceNicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedSourceNicId, global::System.Convert.ToString); - } - if (content.Contains("Encryption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).Encryption = (string) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).Encryption, global::System.Convert.ToString); - } - if (content.Contains("SourceVMRamSizeInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMRamSizeInMb = (int?) content.GetValueForProperty("SourceVMRamSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMRamSizeInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("SourceVMCpuCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMCpuCount = (int?) content.GetValueForProperty("SourceVMCpuCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMCpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("EnableRdpOnTargetOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("UseManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).UseManagedDisk, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LicenseType, global::System.Convert.ToString); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SqlServerLicenseType = (string) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SqlServerLicenseType, global::System.Convert.ToString); - } - if (content.Contains("LastRecoveryPointReceived")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetVmtagsTypeConverter.ConvertFrom); - } - if (content.Contains("SeedManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsSeedManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("ProtectedManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).ProtectedManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails[]) content.GetValueForProperty("ProtectedManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).ProtectedManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureManagedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOstype")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); - } - if (content.Contains("OSDetailProductType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailProductType = (string) content.GetValueForProperty("OSDetailProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailProductType, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsedition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsedition = (string) content.GetValueForProperty("OSDetailOsedition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsedition, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsversion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsversion = (string) content.GetValueForProperty("OSDetailOsversion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsversion, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsmajorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsmajorVersion = (string) content.GetValueForProperty("OSDetailOsmajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsmajorVersion, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsminorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsminorVersion = (string) content.GetValueForProperty("OSDetailOsminorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsminorVersion, 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 HyperVReplicaAzureReplicationDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InitialReplicationDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("OSDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("AzureVMDiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).AzureVMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails[]) content.GetValueForProperty("AzureVMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).AzureVMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureVMDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureStorageAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureStorageAccount = (string) content.GetValueForProperty("RecoveryAzureStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureStorageAccount, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureLogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureLogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("LastReplicatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RpoInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LastRpoCalculatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("SelectedRecoveryAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedSourceNicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedSourceNicId, global::System.Convert.ToString); - } - if (content.Contains("Encryption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).Encryption = (string) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).Encryption, global::System.Convert.ToString); - } - if (content.Contains("SourceVMRamSizeInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMRamSizeInMb = (int?) content.GetValueForProperty("SourceVMRamSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMRamSizeInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("SourceVMCpuCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMCpuCount = (int?) content.GetValueForProperty("SourceVMCpuCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMCpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("EnableRdpOnTargetOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("UseManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).UseManagedDisk, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LicenseType, global::System.Convert.ToString); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SqlServerLicenseType = (string) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SqlServerLicenseType, global::System.Convert.ToString); - } - if (content.Contains("LastRecoveryPointReceived")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetVmtagsTypeConverter.ConvertFrom); - } - if (content.Contains("SeedManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsSeedManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("ProtectedManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).ProtectedManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails[]) content.GetValueForProperty("ProtectedManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).ProtectedManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureManagedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOstype")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); - } - if (content.Contains("OSDetailProductType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailProductType = (string) content.GetValueForProperty("OSDetailProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailProductType, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsedition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsedition = (string) content.GetValueForProperty("OSDetailOsedition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsedition, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsversion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsversion = (string) content.GetValueForProperty("OSDetailOsversion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsversion, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsmajorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsmajorVersion = (string) content.GetValueForProperty("OSDetailOsmajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsmajorVersion, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsminorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsminorVersion = (string) content.GetValueForProperty("OSDetailOsminorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsminorVersion, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Hyper V Replica Azure provider specific settings. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureReplicationDetailsTypeConverter))] - public partial interface IHyperVReplicaAzureReplicationDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReprotectInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReprotectInput.PowerShell.cs deleted file mode 100644 index 6c530f39578e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReprotectInput.PowerShell.cs +++ /dev/null @@ -1,194 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Azure specific reprotect input. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureReprotectInputTypeConverter))] - public partial class HyperVReplicaAzureReprotectInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaAzureReprotectInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaAzureReprotectInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaAzureReprotectInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("HvHostVMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).HvHostVMId = (string) content.GetValueForProperty("HvHostVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).HvHostVMId, global::System.Convert.ToString); - } - if (content.Contains("VMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).VMName, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("VHdId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).VHdId = (string) content.GetValueForProperty("VHdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).VHdId, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).StorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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 HyperVReplicaAzureReprotectInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("HvHostVMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).HvHostVMId = (string) content.GetValueForProperty("HvHostVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).HvHostVMId, global::System.Convert.ToString); - } - if (content.Contains("VMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).VMName, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("VHdId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).VHdId = (string) content.GetValueForProperty("VHdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).VHdId, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).StorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Azure specific reprotect input. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureReprotectInputTypeConverter))] - public partial interface IHyperVReplicaAzureReprotectInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureTestFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureTestFailoverInput.PowerShell.cs deleted file mode 100644 index a41cc9486751..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureTestFailoverInput.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// HvrA provider specific input for test failover. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureTestFailoverInputTypeConverter))] - public partial class HyperVReplicaAzureTestFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaAzureTestFailoverInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaAzureTestFailoverInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaAzureTestFailoverInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("SecondaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType, 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 HyperVReplicaAzureTestFailoverInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("SecondaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// HvrA provider specific input for test failover. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureTestFailoverInputTypeConverter))] - public partial interface IHyperVReplicaAzureTestFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUnplannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUnplannedFailoverInput.PowerShell.cs deleted file mode 100644 index c7c5466a80c6..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUnplannedFailoverInput.PowerShell.cs +++ /dev/null @@ -1,173 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// HvrA provider specific input for unplanned failover. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureUnplannedFailoverInputTypeConverter))] - public partial class HyperVReplicaAzureUnplannedFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaAzureUnplannedFailoverInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaAzureUnplannedFailoverInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaAzureUnplannedFailoverInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("SecondaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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 HyperVReplicaAzureUnplannedFailoverInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("SecondaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// HvrA provider specific input for unplanned failover. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureUnplannedFailoverInputTypeConverter))] - public partial interface IHyperVReplicaAzureUnplannedFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInput.PowerShell.cs deleted file mode 100644 index b7831097662c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInput.PowerShell.cs +++ /dev/null @@ -1,237 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// HyperV replica Azure input to update replication protected item. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureUpdateReplicationProtectedItemInputTypeConverter))] - public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaAzureUpdateReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaAzureUpdateReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaAzureUpdateReplicationProtectedItemInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryAzureV1ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureV2ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("UseManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).UseManagedDisk, global::System.Convert.ToString); - } - if (content.Contains("DiskIdToDiskEncryptionMap")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).DiskIdToDiskEncryptionMap = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap) content.GetValueForProperty("DiskIdToDiskEncryptionMap",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).DiskIdToDiskEncryptionMap, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMapTypeConverter.ConvertFrom); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateDiskInputTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, 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 HyperVReplicaAzureUpdateReplicationProtectedItemInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryAzureV1ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureV2ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("UseManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).UseManagedDisk, global::System.Convert.ToString); - } - if (content.Contains("DiskIdToDiskEncryptionMap")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).DiskIdToDiskEncryptionMap = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap) content.GetValueForProperty("DiskIdToDiskEncryptionMap",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).DiskIdToDiskEncryptionMap, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMapTypeConverter.ConvertFrom); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateDiskInputTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// HyperV replica Azure input to update replication protected item. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureUpdateReplicationProtectedItemInputTypeConverter))] - public partial interface IHyperVReplicaAzureUpdateReplicationProtectedItemInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseEventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseEventDetails.PowerShell.cs deleted file mode 100644 index 1e2436ce0e42..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseEventDetails.PowerShell.cs +++ /dev/null @@ -1,178 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Abstract model class for event details of a HyperVReplica E2E event. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBaseEventDetailsTypeConverter))] - public partial class HyperVReplicaBaseEventDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaBaseEventDetails(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.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaBaseEventDetails(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.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaBaseEventDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).ContainerName, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("RemoteContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); - } - if (content.Contains("RemoteFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplicaBaseEventDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).ContainerName, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("RemoteContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); - } - if (content.Contains("RemoteFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Abstract model class for event details of a HyperVReplica E2E event. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBaseEventDetailsTypeConverter))] - public partial interface IHyperVReplicaBaseEventDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBasePolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBasePolicyDetails.PowerShell.cs deleted file mode 100644 index cda24c720274..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBasePolicyDetails.PowerShell.cs +++ /dev/null @@ -1,226 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Base class for HyperVReplica policy details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBasePolicyDetailsTypeConverter))] - public partial class HyperVReplicaBasePolicyDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaBasePolicyDetails(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.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaBasePolicyDetails(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.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaBasePolicyDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Compression")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).Compression, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).InitialReplicationMethod, global::System.Convert.ToString); - } - if (content.Contains("OnlineReplicationStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationImportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationExportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); - } - if (content.Contains("ReplicationPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllowedAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReplicaDeletionOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicaDeletionOption = (string) content.GetValueForProperty("ReplicaDeletionOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicaDeletionOption, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplicaBasePolicyDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Compression")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).Compression, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).InitialReplicationMethod, global::System.Convert.ToString); - } - if (content.Contains("OnlineReplicationStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationImportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationExportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); - } - if (content.Contains("ReplicationPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllowedAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReplicaDeletionOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicaDeletionOption = (string) content.GetValueForProperty("ReplicaDeletionOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicaDeletionOption, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Base class for HyperVReplica policy details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBasePolicyDetailsTypeConverter))] - public partial interface IHyperVReplicaBasePolicyDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseReplicationDetails.PowerShell.cs deleted file mode 100644 index cd897e6bf298..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseReplicationDetails.PowerShell.cs +++ /dev/null @@ -1,220 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Hyper V replica provider specific settings base class. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBaseReplicationDetailsTypeConverter))] - public partial class HyperVReplicaBaseReplicationDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaBaseReplicationDetails(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.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaBaseReplicationDetails(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.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaBaseReplicationDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InitialReplicationDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("LastReplicatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("VMDiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[]) content.GetValueForProperty("VMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, 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 HyperVReplicaBaseReplicationDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InitialReplicationDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("LastReplicatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("VMDiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[]) content.GetValueForProperty("VMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).VMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Hyper V replica provider specific settings base class. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBaseReplicationDetailsTypeConverter))] - public partial interface IHyperVReplicaBaseReplicationDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyDetails.PowerShell.cs deleted file mode 100644 index 2485f9dc6728..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyDetails.PowerShell.cs +++ /dev/null @@ -1,234 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Hyper-V Replica Blue specific protection profile details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBluePolicyDetailsTypeConverter))] - public partial class HyperVReplicaBluePolicyDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaBluePolicyDetails(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.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaBluePolicyDetails(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.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaBluePolicyDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ReplicationFrequencyInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationFrequencyInSecond = (int?) content.GetValueForProperty("ReplicationFrequencyInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationFrequencyInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Compression")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).Compression, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).InitialReplicationMethod, global::System.Convert.ToString); - } - if (content.Contains("OnlineReplicationStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationImportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationExportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); - } - if (content.Contains("ReplicationPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllowedAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReplicaDeletionOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicaDeletionOption = (string) content.GetValueForProperty("ReplicaDeletionOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicaDeletionOption, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplicaBluePolicyDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ReplicationFrequencyInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationFrequencyInSecond = (int?) content.GetValueForProperty("ReplicationFrequencyInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationFrequencyInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Compression")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).Compression, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).InitialReplicationMethod, global::System.Convert.ToString); - } - if (content.Contains("OnlineReplicationStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationImportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationExportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); - } - if (content.Contains("ReplicationPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllowedAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReplicaDeletionOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicaDeletionOption = (string) content.GetValueForProperty("ReplicaDeletionOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicaDeletionOption, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Hyper-V Replica Blue specific protection profile details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBluePolicyDetailsTypeConverter))] - public partial interface IHyperVReplicaBluePolicyDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyInput.PowerShell.cs deleted file mode 100644 index 5e84eefac1ff..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyInput.PowerShell.cs +++ /dev/null @@ -1,234 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// HyperV Replica Blue policy input. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBluePolicyInputTypeConverter))] - public partial class HyperVReplicaBluePolicyInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaBluePolicyInput(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.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaBluePolicyInput(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.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaBluePolicyInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ReplicationFrequencyInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyInputInternal)this).ReplicationFrequencyInSecond = (int?) content.GetValueForProperty("ReplicationFrequencyInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyInputInternal)this).ReplicationFrequencyInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Compression")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).Compression, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod, global::System.Convert.ToString); - } - if (content.Contains("OnlineReplicationStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationImportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationExportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); - } - if (content.Contains("ReplicationPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllowedAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReplicaDeletion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion = (string) content.GetValueForProperty("ReplicaDeletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion, 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 HyperVReplicaBluePolicyInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ReplicationFrequencyInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyInputInternal)this).ReplicationFrequencyInSecond = (int?) content.GetValueForProperty("ReplicationFrequencyInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyInputInternal)this).ReplicationFrequencyInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Compression")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).Compression, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod, global::System.Convert.ToString); - } - if (content.Contains("OnlineReplicationStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationImportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationExportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); - } - if (content.Contains("ReplicationPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllowedAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReplicaDeletion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion = (string) content.GetValueForProperty("ReplicaDeletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// HyperV Replica Blue policy input. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBluePolicyInputTypeConverter))] - public partial interface IHyperVReplicaBluePolicyInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyInput.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyInput.cs deleted file mode 100644 index 373cb626f2f8..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyInput.cs +++ /dev/null @@ -1,114 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// HyperV Replica Blue policy input. - public partial class HyperVReplicaBluePolicyInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyInputInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInput __hyperVReplicaPolicyInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaPolicyInput(); - - /// A value indicating the authentication type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public int? AllowedAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).AllowedAuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).AllowedAuthenticationType = value ?? default(int); } - - /// A value indicating the application consistent frequency. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public int? ApplicationConsistentSnapshotFrequencyInHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).ApplicationConsistentSnapshotFrequencyInHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).ApplicationConsistentSnapshotFrequencyInHour = value ?? default(int); } - - /// A value indicating whether compression has to be enabled. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Compression { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).Compression; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).Compression = value ?? null; } - - /// A value indicating whether IR is online. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InitialReplicationMethod { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).InitialReplicationMethod; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).InitialReplicationMethod = value ?? null; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__hyperVReplicaPolicyInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__hyperVReplicaPolicyInput).InstanceType = value ; } - - /// A value indicating the offline IR export path. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string OfflineReplicationExportPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).OfflineReplicationExportPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).OfflineReplicationExportPath = value ?? null; } - - /// A value indicating the offline IR import path. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string OfflineReplicationImportPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).OfflineReplicationImportPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).OfflineReplicationImportPath = value ?? null; } - - /// A value indicating the online IR start time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string OnlineReplicationStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).OnlineReplicationStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).OnlineReplicationStartTime = value ?? null; } - - /// A value indicating the number of recovery points. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public int? RecoveryPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).RecoveryPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).RecoveryPoint = value ?? default(int); } - - /// A value indicating whether the VM has to be auto deleted. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string ReplicaDeletion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).ReplicaDeletion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).ReplicaDeletion = value ?? null; } - - /// Backing field for property. - private int? _replicationFrequencyInSecond; - - /// A value indicating the replication interval. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public int? ReplicationFrequencyInSecond { get => this._replicationFrequencyInSecond; set => this._replicationFrequencyInSecond = value; } - - /// A value indicating the recovery HTTPS port. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public int? ReplicationPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).ReplicationPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).ReplicationPort = value ?? default(int); } - - /// Creates an new instance. - public HyperVReplicaBluePolicyInput() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__hyperVReplicaPolicyInput), __hyperVReplicaPolicyInput); - await eventListener.AssertObjectIsValid(nameof(__hyperVReplicaPolicyInput), __hyperVReplicaPolicyInput); - } - } - /// HyperV Replica Blue policy input. - public partial interface IHyperVReplicaBluePolicyInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInput - { - /// A value indicating the replication interval. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating the replication interval.", - SerializedName = @"replicationFrequencyInSeconds", - PossibleTypes = new [] { typeof(int) })] - int? ReplicationFrequencyInSecond { get; set; } - - } - /// HyperV Replica Blue policy input. - internal partial interface IHyperVReplicaBluePolicyInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal - { - /// A value indicating the replication interval. - int? ReplicationFrequencyInSecond { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBlueReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBlueReplicationDetails.PowerShell.cs deleted file mode 100644 index 9ba99e1589a9..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBlueReplicationDetails.PowerShell.cs +++ /dev/null @@ -1,220 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// HyperV replica 2012 R2 (Blue) replication details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBlueReplicationDetailsTypeConverter))] - public partial class HyperVReplicaBlueReplicationDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaBlueReplicationDetails(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.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaBlueReplicationDetails(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.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaBlueReplicationDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InitialReplicationDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("LastReplicatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("VMDiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[]) content.GetValueForProperty("VMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, 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 HyperVReplicaBlueReplicationDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InitialReplicationDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("LastReplicatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("VMDiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[]) content.GetValueForProperty("VMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).VMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// HyperV replica 2012 R2 (Blue) replication details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBlueReplicationDetailsTypeConverter))] - public partial interface IHyperVReplicaBlueReplicationDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyDetails.PowerShell.cs deleted file mode 100644 index f46b6c9c5077..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyDetails.PowerShell.cs +++ /dev/null @@ -1,224 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Hyper-V Replica Blue specific protection profile details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaPolicyDetailsTypeConverter))] - public partial class HyperVReplicaPolicyDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaPolicyDetails(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.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaPolicyDetails(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.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaPolicyDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Compression")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).Compression, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).InitialReplicationMethod, global::System.Convert.ToString); - } - if (content.Contains("OnlineReplicationStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationImportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationExportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); - } - if (content.Contains("ReplicationPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllowedAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReplicaDeletionOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).ReplicaDeletionOption = (string) content.GetValueForProperty("ReplicaDeletionOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).ReplicaDeletionOption, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplicaPolicyDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Compression")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).Compression, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).InitialReplicationMethod, global::System.Convert.ToString); - } - if (content.Contains("OnlineReplicationStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationImportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationExportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); - } - if (content.Contains("ReplicationPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllowedAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReplicaDeletionOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).ReplicaDeletionOption = (string) content.GetValueForProperty("ReplicaDeletionOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal)this).ReplicaDeletionOption, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Hyper-V Replica Blue specific protection profile details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaPolicyDetailsTypeConverter))] - public partial interface IHyperVReplicaPolicyDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyInput.PowerShell.cs deleted file mode 100644 index c4b01ca29073..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyInput.PowerShell.cs +++ /dev/null @@ -1,224 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Hyper-V Replica specific policy Input. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaPolicyInputTypeConverter))] - public partial class HyperVReplicaPolicyInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaPolicyInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaPolicyInput(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.Migrate.Models.Api20220501.IHyperVReplicaPolicyInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaPolicyInput(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.Migrate.Models.Api20220501.IHyperVReplicaPolicyInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaPolicyInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Compression")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).Compression, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod, global::System.Convert.ToString); - } - if (content.Contains("OnlineReplicationStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationImportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationExportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); - } - if (content.Contains("ReplicationPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllowedAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReplicaDeletion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion = (string) content.GetValueForProperty("ReplicaDeletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 HyperVReplicaPolicyInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Compression")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).Compression, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationMethod")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod, global::System.Convert.ToString); - } - if (content.Contains("OnlineReplicationStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationImportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); - } - if (content.Contains("OfflineReplicationExportPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); - } - if (content.Contains("ReplicationPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllowedAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReplicaDeletion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion = (string) content.GetValueForProperty("ReplicaDeletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Hyper-V Replica specific policy Input. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaPolicyInputTypeConverter))] - public partial interface IHyperVReplicaPolicyInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaReplicationDetails.PowerShell.cs deleted file mode 100644 index 3ec026c44c30..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaReplicationDetails.PowerShell.cs +++ /dev/null @@ -1,218 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// HyperV replica 2012 replication details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaReplicationDetailsTypeConverter))] - public partial class HyperVReplicaReplicationDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVReplicaReplicationDetails(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.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVReplicaReplicationDetails(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.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVReplicaReplicationDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InitialReplicationDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("LastReplicatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("VMDiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[]) content.GetValueForProperty("VMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, 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 HyperVReplicaReplicationDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InitialReplicationDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("LastReplicatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("VMDiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[]) content.GetValueForProperty("VMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).VMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// HyperV replica 2012 replication details. - [System.ComponentModel.TypeConverter(typeof(HyperVReplicaReplicationDetailsTypeConverter))] - public partial interface IHyperVReplicaReplicationDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVVirtualMachineDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/HyperVVirtualMachineDetails.PowerShell.cs deleted file mode 100644 index 70f1e4086030..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVVirtualMachineDetails.PowerShell.cs +++ /dev/null @@ -1,258 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Single Host fabric provider specific VM settings. - [System.ComponentModel.TypeConverter(typeof(HyperVVirtualMachineDetailsTypeConverter))] - public partial class HyperVVirtualMachineDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IHyperVVirtualMachineDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HyperVVirtualMachineDetails(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.Migrate.Models.Api20220501.IHyperVVirtualMachineDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HyperVVirtualMachineDetails(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.Migrate.Models.Api20220501.IHyperVVirtualMachineDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HyperVVirtualMachineDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("OSDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("SourceItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).SourceItemId = (string) content.GetValueForProperty("SourceItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).SourceItemId, global::System.Convert.ToString); - } - if (content.Contains("Generation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).Generation = (string) content.GetValueForProperty("Generation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).Generation, global::System.Convert.ToString); - } - if (content.Contains("DiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).DiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[]) content.GetValueForProperty("DiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).DiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("HasPhysicalDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasPhysicalDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); - } - if (content.Contains("HasFibreChannelAdapter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasFibreChannelAdapter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); - } - if (content.Contains("HasSharedVhd")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasSharedVhd",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); - } - if (content.Contains("HyperVHostId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId = (string) content.GetValueForProperty("HyperVHostId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOstype")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); - } - if (content.Contains("OSDetailProductType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType = (string) content.GetValueForProperty("OSDetailProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsedition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition = (string) content.GetValueForProperty("OSDetailOsedition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsversion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion = (string) content.GetValueForProperty("OSDetailOsversion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsmajorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion = (string) content.GetValueForProperty("OSDetailOsmajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsminorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion = (string) content.GetValueForProperty("OSDetailOsminorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion, 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 HyperVVirtualMachineDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("OSDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("SourceItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).SourceItemId = (string) content.GetValueForProperty("SourceItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).SourceItemId, global::System.Convert.ToString); - } - if (content.Contains("Generation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).Generation = (string) content.GetValueForProperty("Generation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).Generation, global::System.Convert.ToString); - } - if (content.Contains("DiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).DiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[]) content.GetValueForProperty("DiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).DiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("HasPhysicalDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasPhysicalDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); - } - if (content.Contains("HasFibreChannelAdapter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasFibreChannelAdapter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); - } - if (content.Contains("HasSharedVhd")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasSharedVhd",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); - } - if (content.Contains("HyperVHostId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId = (string) content.GetValueForProperty("HyperVHostId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOstype")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); - } - if (content.Contains("OSDetailProductType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType = (string) content.GetValueForProperty("OSDetailProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsedition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition = (string) content.GetValueForProperty("OSDetailOsedition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsversion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion = (string) content.GetValueForProperty("OSDetailOsversion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsmajorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion = (string) content.GetValueForProperty("OSDetailOsmajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsminorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion = (string) content.GetValueForProperty("OSDetailOsminorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Single Host fabric provider specific VM settings. - [System.ComponentModel.TypeConverter(typeof(HyperVVirtualMachineDetailsTypeConverter))] - public partial interface IHyperVVirtualMachineDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/IPConfigDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/IPConfigDetails.PowerShell.cs deleted file mode 100644 index 6898c9522708..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/IPConfigDetails.PowerShell.cs +++ /dev/null @@ -1,254 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(IPConfigDetailsTypeConverter))] - public partial class IPConfigDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IIPConfigDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new IPConfigDetails(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.Migrate.Models.Api20220501.IIPConfigDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new IPConfigDetails(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.Migrate.Models.Api20220501.IIPConfigDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal IPConfigDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("IsPrimary")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).IsPrimary = (bool?) content.GetValueForProperty("IsPrimary",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).IsPrimary, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).SubnetName = (string) content.GetValueForProperty("SubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).SubnetName, global::System.Convert.ToString); - } - if (content.Contains("StaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).StaticIPAddress = (string) content.GetValueForProperty("StaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).StaticIPAddress, global::System.Convert.ToString); - } - if (content.Contains("IPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).IPAddressType = (string) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).IPAddressType, global::System.Convert.ToString); - } - if (content.Contains("IsSeletedForFailover")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).IsSeletedForFailover = (bool?) content.GetValueForProperty("IsSeletedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).IsSeletedForFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RecoverySubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoverySubnetName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryStaticIPAddress = (string) content.GetValueForProperty("RecoveryStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryStaticIPAddress, global::System.Convert.ToString); - } - if (content.Contains("RecoveryIPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryIPAddressType = (string) content.GetValueForProperty("RecoveryIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryIPAddressType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPublicIPAddressId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryPublicIPAddressId = (string) content.GetValueForProperty("RecoveryPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryPublicIPAddressId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryLbBackendAddressPoolId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryLbBackendAddressPoolId = (string[]) content.GetValueForProperty("RecoveryLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryLbBackendAddressPoolId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("TfoSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoSubnetName = (string) content.GetValueForProperty("TfoSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TfoStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoStaticIPAddress = (string) content.GetValueForProperty("TfoStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoStaticIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TfoPublicIPAddressId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoPublicIPAddressId = (string) content.GetValueForProperty("TfoPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoPublicIPAddressId, global::System.Convert.ToString); - } - if (content.Contains("TfoLbBackendAddressPoolId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoLbBackendAddressPoolId = (string[]) content.GetValueForProperty("TfoLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoLbBackendAddressPoolId, __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 IPConfigDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("IsPrimary")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).IsPrimary = (bool?) content.GetValueForProperty("IsPrimary",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).IsPrimary, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).SubnetName = (string) content.GetValueForProperty("SubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).SubnetName, global::System.Convert.ToString); - } - if (content.Contains("StaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).StaticIPAddress = (string) content.GetValueForProperty("StaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).StaticIPAddress, global::System.Convert.ToString); - } - if (content.Contains("IPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).IPAddressType = (string) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).IPAddressType, global::System.Convert.ToString); - } - if (content.Contains("IsSeletedForFailover")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).IsSeletedForFailover = (bool?) content.GetValueForProperty("IsSeletedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).IsSeletedForFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RecoverySubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoverySubnetName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryStaticIPAddress = (string) content.GetValueForProperty("RecoveryStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryStaticIPAddress, global::System.Convert.ToString); - } - if (content.Contains("RecoveryIPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryIPAddressType = (string) content.GetValueForProperty("RecoveryIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryIPAddressType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPublicIPAddressId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryPublicIPAddressId = (string) content.GetValueForProperty("RecoveryPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryPublicIPAddressId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryLbBackendAddressPoolId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryLbBackendAddressPoolId = (string[]) content.GetValueForProperty("RecoveryLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).RecoveryLbBackendAddressPoolId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("TfoSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoSubnetName = (string) content.GetValueForProperty("TfoSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TfoStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoStaticIPAddress = (string) content.GetValueForProperty("TfoStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoStaticIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TfoPublicIPAddressId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoPublicIPAddressId = (string) content.GetValueForProperty("TfoPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoPublicIPAddressId, global::System.Convert.ToString); - } - if (content.Contains("TfoLbBackendAddressPoolId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoLbBackendAddressPoolId = (string[]) content.GetValueForProperty("TfoLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal)this).TfoLbBackendAddressPoolId, __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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(IPConfigDetailsTypeConverter))] - public partial interface IIPConfigDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/IPConfigInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/IPConfigInputDetails.PowerShell.cs deleted file mode 100644 index bf162e88132c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/IPConfigInputDetails.PowerShell.cs +++ /dev/null @@ -1,222 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(IPConfigInputDetailsTypeConverter))] - public partial class IPConfigInputDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IIPConfigInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new IPConfigInputDetails(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.Migrate.Models.Api20220501.IIPConfigInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new IPConfigInputDetails(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.Migrate.Models.Api20220501.IIPConfigInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal IPConfigInputDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("IPConfigName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).IPConfigName = (string) content.GetValueForProperty("IPConfigName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).IPConfigName, global::System.Convert.ToString); - } - if (content.Contains("IsPrimary")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).IsPrimary = (bool?) content.GetValueForProperty("IsPrimary",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).IsPrimary, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("IsSeletedForFailover")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).IsSeletedForFailover = (bool?) content.GetValueForProperty("IsSeletedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).IsSeletedForFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RecoverySubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoverySubnetName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoveryStaticIPAddress = (string) content.GetValueForProperty("RecoveryStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoveryStaticIPAddress, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPublicIPAddressId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoveryPublicIPAddressId = (string) content.GetValueForProperty("RecoveryPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoveryPublicIPAddressId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryLbBackendAddressPoolId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoveryLbBackendAddressPoolId = (string[]) content.GetValueForProperty("RecoveryLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoveryLbBackendAddressPoolId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("TfoSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoSubnetName = (string) content.GetValueForProperty("TfoSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TfoStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoStaticIPAddress = (string) content.GetValueForProperty("TfoStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoStaticIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TfoPublicIPAddressId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoPublicIPAddressId = (string) content.GetValueForProperty("TfoPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoPublicIPAddressId, global::System.Convert.ToString); - } - if (content.Contains("TfoLbBackendAddressPoolId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoLbBackendAddressPoolId = (string[]) content.GetValueForProperty("TfoLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoLbBackendAddressPoolId, __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 IPConfigInputDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("IPConfigName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).IPConfigName = (string) content.GetValueForProperty("IPConfigName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).IPConfigName, global::System.Convert.ToString); - } - if (content.Contains("IsPrimary")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).IsPrimary = (bool?) content.GetValueForProperty("IsPrimary",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).IsPrimary, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("IsSeletedForFailover")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).IsSeletedForFailover = (bool?) content.GetValueForProperty("IsSeletedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).IsSeletedForFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RecoverySubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoverySubnetName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoveryStaticIPAddress = (string) content.GetValueForProperty("RecoveryStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoveryStaticIPAddress, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPublicIPAddressId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoveryPublicIPAddressId = (string) content.GetValueForProperty("RecoveryPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoveryPublicIPAddressId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryLbBackendAddressPoolId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoveryLbBackendAddressPoolId = (string[]) content.GetValueForProperty("RecoveryLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).RecoveryLbBackendAddressPoolId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("TfoSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoSubnetName = (string) content.GetValueForProperty("TfoSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TfoStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoStaticIPAddress = (string) content.GetValueForProperty("TfoStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoStaticIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TfoPublicIPAddressId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoPublicIPAddressId = (string) content.GetValueForProperty("TfoPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoPublicIPAddressId, global::System.Convert.ToString); - } - if (content.Contains("TfoLbBackendAddressPoolId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoLbBackendAddressPoolId = (string[]) content.GetValueForProperty("TfoLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal)this).TfoLbBackendAddressPoolId, __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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(IPConfigInputDetailsTypeConverter))] - public partial interface IIPConfigInputDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/IdentityProviderDetails.PowerShell.cs deleted file mode 100644 index ca8f368661d7..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderDetails.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Identity provider details. - [System.ComponentModel.TypeConverter(typeof(IdentityProviderDetailsTypeConverter))] - public partial class IdentityProviderDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IIdentityProviderDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new IdentityProviderDetails(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.Migrate.Models.Api20220501.IIdentityProviderDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new IdentityProviderDetails(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.Migrate.Models.Api20220501.IIdentityProviderDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal IdentityProviderDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).TenantId, global::System.Convert.ToString); - } - if (content.Contains("ApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).ApplicationId = (string) content.GetValueForProperty("ApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).ApplicationId, global::System.Convert.ToString); - } - if (content.Contains("ObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).ObjectId = (string) content.GetValueForProperty("ObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).ObjectId, global::System.Convert.ToString); - } - if (content.Contains("Audience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).Audience = (string) content.GetValueForProperty("Audience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).Audience, global::System.Convert.ToString); - } - if (content.Contains("AadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).AadAuthority = (string) content.GetValueForProperty("AadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).AadAuthority, 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 IdentityProviderDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).TenantId, global::System.Convert.ToString); - } - if (content.Contains("ApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).ApplicationId = (string) content.GetValueForProperty("ApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).ApplicationId, global::System.Convert.ToString); - } - if (content.Contains("ObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).ObjectId = (string) content.GetValueForProperty("ObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).ObjectId, global::System.Convert.ToString); - } - if (content.Contains("Audience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).Audience = (string) content.GetValueForProperty("Audience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).Audience, global::System.Convert.ToString); - } - if (content.Contains("AadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).AadAuthority = (string) content.GetValueForProperty("AadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)this).AadAuthority, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Identity provider details. - [System.ComponentModel.TypeConverter(typeof(IdentityProviderDetailsTypeConverter))] - public partial interface IIdentityProviderDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/IdentityProviderInput.PowerShell.cs deleted file mode 100644 index 34825f1d5892..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderInput.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Identity provider input. - [System.ComponentModel.TypeConverter(typeof(IdentityProviderInputTypeConverter))] - public partial class IdentityProviderInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IIdentityProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new IdentityProviderInput(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.Migrate.Models.Api20220501.IIdentityProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new IdentityProviderInput(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.Migrate.Models.Api20220501.IIdentityProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal IdentityProviderInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).TenantId, global::System.Convert.ToString); - } - if (content.Contains("ApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).ApplicationId = (string) content.GetValueForProperty("ApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).ApplicationId, global::System.Convert.ToString); - } - if (content.Contains("ObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).ObjectId = (string) content.GetValueForProperty("ObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).ObjectId, global::System.Convert.ToString); - } - if (content.Contains("Audience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).Audience = (string) content.GetValueForProperty("Audience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).Audience, global::System.Convert.ToString); - } - if (content.Contains("AadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).AadAuthority = (string) content.GetValueForProperty("AadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).AadAuthority, 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 IdentityProviderInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).TenantId, global::System.Convert.ToString); - } - if (content.Contains("ApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).ApplicationId = (string) content.GetValueForProperty("ApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).ApplicationId, global::System.Convert.ToString); - } - if (content.Contains("ObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).ObjectId = (string) content.GetValueForProperty("ObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).ObjectId, global::System.Convert.ToString); - } - if (content.Contains("Audience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).Audience = (string) content.GetValueForProperty("Audience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).Audience, global::System.Convert.ToString); - } - if (content.Contains("AadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).AadAuthority = (string) content.GetValueForProperty("AadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)this).AadAuthority, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Identity provider input. - [System.ComponentModel.TypeConverter(typeof(IdentityProviderInputTypeConverter))] - public partial interface IIdentityProviderInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAgentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAgentDetails.PowerShell.cs deleted file mode 100644 index 52b903b9dfb7..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAgentDetails.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// The details of the InMage agent. - [System.ComponentModel.TypeConverter(typeof(InMageAgentDetailsTypeConverter))] - public partial class InMageAgentDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageAgentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageAgentDetails(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.Migrate.Models.Api20220501.IInMageAgentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageAgentDetails(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.Migrate.Models.Api20220501.IInMageAgentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageAgentDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).AgentVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).AgentUpdateStatus = (string) content.GetValueForProperty("AgentUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).AgentUpdateStatus, global::System.Convert.ToString); - } - if (content.Contains("PostUpdateRebootStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).PostUpdateRebootStatus = (string) content.GetValueForProperty("PostUpdateRebootStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).PostUpdateRebootStatus, global::System.Convert.ToString); - } - if (content.Contains("AgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageAgentDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).AgentVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).AgentUpdateStatus = (string) content.GetValueForProperty("AgentUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).AgentUpdateStatus, global::System.Convert.ToString); - } - if (content.Contains("PostUpdateRebootStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).PostUpdateRebootStatus = (string) content.GetValueForProperty("PostUpdateRebootStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).PostUpdateRebootStatus, global::System.Convert.ToString); - } - if (content.Contains("AgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The details of the InMage agent. - [System.ComponentModel.TypeConverter(typeof(InMageAgentDetailsTypeConverter))] - public partial interface IInMageAgentDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2DiskInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2DiskInputDetails.PowerShell.cs deleted file mode 100644 index 10ca4db95acc..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2DiskInputDetails.PowerShell.cs +++ /dev/null @@ -1,170 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Disk input details. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2DiskInputDetailsTypeConverter))] - public partial class InMageAzureV2DiskInputDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageAzureV2DiskInputDetails(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.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageAzureV2DiskInputDetails(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.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageAzureV2DiskInputDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).DiskEncryptionSetId, 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 InMageAzureV2DiskInputDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal)this).DiskEncryptionSetId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Disk input details. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2DiskInputDetailsTypeConverter))] - public partial interface IInMageAzureV2DiskInputDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInput.PowerShell.cs deleted file mode 100644 index 083bdc6d6899..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInput.PowerShell.cs +++ /dev/null @@ -1,356 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMware Azure specific enable protection input. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2EnableProtectionInputTypeConverter))] - public partial class InMageAzureV2EnableProtectionInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageAzureV2EnableProtectionInput(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.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageAzureV2EnableProtectionInput(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.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageAzureV2EnableProtectionInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MasterTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).MasterTargetId, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).StorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("DisksToInclude")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).DisksToInclude = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2DiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("TargetAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureNetworkId = (string) content.GetValueForProperty("TargetAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureSubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureSubnetId = (string) content.GetValueForProperty("TargetAzureSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureSubnetId, global::System.Convert.ToString); - } - if (content.Contains("EnableRdpOnTargetOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureVMName = (string) content.GetValueForProperty("TargetAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureV1ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureV2ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetVMTagsTypeConverter.ConvertFrom); - } - if (content.Contains("SeedManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputSeedManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, 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 InMageAzureV2EnableProtectionInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MasterTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).MasterTargetId, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).StorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("DisksToInclude")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).DisksToInclude = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2DiskInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("TargetAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureNetworkId = (string) content.GetValueForProperty("TargetAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureSubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureSubnetId = (string) content.GetValueForProperty("TargetAzureSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureSubnetId, global::System.Convert.ToString); - } - if (content.Contains("EnableRdpOnTargetOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureVMName = (string) content.GetValueForProperty("TargetAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureV1ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetAzureV2ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetVMTagsTypeConverter.ConvertFrom); - } - if (content.Contains("SeedManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputSeedManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// VMware Azure specific enable protection input. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2EnableProtectionInputTypeConverter))] - public partial interface IInMageAzureV2EnableProtectionInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EventDetails.PowerShell.cs deleted file mode 100644 index 11727cca66e8..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EventDetails.PowerShell.cs +++ /dev/null @@ -1,200 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Model class for event details of a VMwareAzureV2 event. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2EventDetailsTypeConverter))] - public partial class InMageAzureV2EventDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageAzureV2EventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageAzureV2EventDetails(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.Migrate.Models.Api20220501.IInMageAzureV2EventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageAzureV2EventDetails(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.Migrate.Models.Api20220501.IInMageAzureV2EventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageAzureV2EventDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("EventType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).EventType, global::System.Convert.ToString); - } - if (content.Contains("Category")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Category = (string) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Category, global::System.Convert.ToString); - } - if (content.Contains("Component")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Component = (string) content.GetValueForProperty("Component",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Component, global::System.Convert.ToString); - } - if (content.Contains("CorrectiveAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).CorrectiveAction = (string) content.GetValueForProperty("CorrectiveAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).CorrectiveAction, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Detail = (string) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Detail, global::System.Convert.ToString); - } - if (content.Contains("Summary")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Summary = (string) content.GetValueForProperty("Summary",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Summary, global::System.Convert.ToString); - } - if (content.Contains("SiteName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).SiteName = (string) content.GetValueForProperty("SiteName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).SiteName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 InMageAzureV2EventDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("EventType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).EventType, global::System.Convert.ToString); - } - if (content.Contains("Category")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Category = (string) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Category, global::System.Convert.ToString); - } - if (content.Contains("Component")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Component = (string) content.GetValueForProperty("Component",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Component, global::System.Convert.ToString); - } - if (content.Contains("CorrectiveAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).CorrectiveAction = (string) content.GetValueForProperty("CorrectiveAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).CorrectiveAction, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Detail = (string) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Detail, global::System.Convert.ToString); - } - if (content.Contains("Summary")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Summary = (string) content.GetValueForProperty("Summary",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).Summary, global::System.Convert.ToString); - } - if (content.Contains("SiteName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).SiteName = (string) content.GetValueForProperty("SiteName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal)this).SiteName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Model class for event details of a VMwareAzureV2 event. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2EventDetailsTypeConverter))] - public partial interface IInMageAzureV2EventDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ManagedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ManagedDiskDetails.PowerShell.cs deleted file mode 100644 index 4eed0dc46501..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ManagedDiskDetails.PowerShell.cs +++ /dev/null @@ -1,178 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageAzureV2 Managed disk details. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ManagedDiskDetailsTypeConverter))] - public partial class InMageAzureV2ManagedDiskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageAzureV2ManagedDiskDetails(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.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageAzureV2ManagedDiskDetails(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.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageAzureV2ManagedDiskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("SeedManagedDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); - } - if (content.Contains("ReplicaDiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).ReplicaDiskType = (string) content.GetValueForProperty("ReplicaDiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).ReplicaDiskType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("TargetDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).TargetDiskName, 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 InMageAzureV2ManagedDiskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("SeedManagedDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); - } - if (content.Contains("ReplicaDiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).ReplicaDiskType = (string) content.GetValueForProperty("ReplicaDiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).ReplicaDiskType, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("TargetDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal)this).TargetDiskName, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageAzureV2 Managed disk details. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ManagedDiskDetailsTypeConverter))] - public partial interface IInMageAzureV2ManagedDiskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyDetails.PowerShell.cs deleted file mode 100644 index a8f6c127a8db..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyDetails.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMage Azure v2 specific protection profile details. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2PolicyDetailsTypeConverter))] - public partial class InMageAzureV2PolicyDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageAzureV2PolicyDetails(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.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageAzureV2PolicyDetails(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.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageAzureV2PolicyDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPointThresholdInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 InMageAzureV2PolicyDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPointThresholdInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMage Azure v2 specific protection profile details. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2PolicyDetailsTypeConverter))] - public partial interface IInMageAzureV2PolicyDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyInput.PowerShell.cs deleted file mode 100644 index e5a1268209f9..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyInput.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMWare Azure specific policy Input. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2PolicyInputTypeConverter))] - public partial class InMageAzureV2PolicyInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageAzureV2PolicyInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageAzureV2PolicyInput(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.Migrate.Models.Api20220501.IInMageAzureV2PolicyInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageAzureV2PolicyInput(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.Migrate.Models.Api20220501.IInMageAzureV2PolicyInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageAzureV2PolicyInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointThresholdInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 InMageAzureV2PolicyInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointThresholdInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// VMWare Azure specific policy Input. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2PolicyInputTypeConverter))] - public partial interface IInMageAzureV2PolicyInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ProtectedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ProtectedDiskDetails.PowerShell.cs deleted file mode 100644 index 5814ff29afba..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ProtectedDiskDetails.PowerShell.cs +++ /dev/null @@ -1,324 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageAzureV2 protected disk details. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ProtectedDiskDetailsTypeConverter))] - public partial class InMageAzureV2ProtectedDiskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageAzureV2ProtectedDiskDetails(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.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageAzureV2ProtectedDiskDetails(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.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageAzureV2ProtectedDiskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("ProtectionStage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); - } - if (content.Contains("HealthErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).HealthErrorCode = (string) content.GetValueForProperty("HealthErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).HealthErrorCode, global::System.Convert.ToString); - } - if (content.Contains("RpoInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); - } - if (content.Contains("ResyncProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResyncDurationInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncDurationInSecond = (long?) content.GetValueForProperty("ResyncDurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncDurationInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("DiskCapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("FileSystemCapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).FileSystemCapacityInByte = (long?) content.GetValueForProperty("FileSystemCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).FileSystemCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("SourceDataInMegaByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).SourceDataInMegaByte = (double?) content.GetValueForProperty("SourceDataInMegaByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).SourceDataInMegaByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("PsDataInMegaByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).PsDataInMegaByte = (double?) content.GetValueForProperty("PsDataInMegaByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).PsDataInMegaByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("TargetDataInMegaByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).TargetDataInMegaByte = (double?) content.GetValueForProperty("TargetDataInMegaByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).TargetDataInMegaByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DiskResized")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskResized, global::System.Convert.ToString); - } - if (content.Contains("LastRpoCalculatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ResyncProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncTotalTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte = (long?) content.GetValueForProperty("ResyncTotalTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncLast15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncLastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ResyncLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ResyncStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncStartTime = (global::System.DateTime?) content.GetValueForProperty("ResyncStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressHealth = (string) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressHealth, global::System.Convert.ToString); - } - if (content.Contains("ProgressStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressStatus = (string) content.GetValueForProperty("ProgressStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressStatus, global::System.Convert.ToString); - } - if (content.Contains("SecondsToTakeSwitchProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).SecondsToTakeSwitchProvider = (long?) content.GetValueForProperty("SecondsToTakeSwitchProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).SecondsToTakeSwitchProvider, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageAzureV2ProtectedDiskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("ProtectionStage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); - } - if (content.Contains("HealthErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).HealthErrorCode = (string) content.GetValueForProperty("HealthErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).HealthErrorCode, global::System.Convert.ToString); - } - if (content.Contains("RpoInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); - } - if (content.Contains("ResyncProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResyncDurationInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncDurationInSecond = (long?) content.GetValueForProperty("ResyncDurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncDurationInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("DiskCapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("FileSystemCapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).FileSystemCapacityInByte = (long?) content.GetValueForProperty("FileSystemCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).FileSystemCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("SourceDataInMegaByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).SourceDataInMegaByte = (double?) content.GetValueForProperty("SourceDataInMegaByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).SourceDataInMegaByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("PsDataInMegaByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).PsDataInMegaByte = (double?) content.GetValueForProperty("PsDataInMegaByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).PsDataInMegaByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("TargetDataInMegaByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).TargetDataInMegaByte = (double?) content.GetValueForProperty("TargetDataInMegaByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).TargetDataInMegaByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DiskResized")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskResized, global::System.Convert.ToString); - } - if (content.Contains("LastRpoCalculatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ResyncProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncTotalTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte = (long?) content.GetValueForProperty("ResyncTotalTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncLast15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncLastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ResyncLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ResyncStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncStartTime = (global::System.DateTime?) content.GetValueForProperty("ResyncStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressHealth = (string) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressHealth, global::System.Convert.ToString); - } - if (content.Contains("ProgressStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressStatus = (string) content.GetValueForProperty("ProgressStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressStatus, global::System.Convert.ToString); - } - if (content.Contains("SecondsToTakeSwitchProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).SecondsToTakeSwitchProvider = (long?) content.GetValueForProperty("SecondsToTakeSwitchProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal)this).SecondsToTakeSwitchProvider, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageAzureV2 protected disk details. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ProtectedDiskDetailsTypeConverter))] - public partial interface IInMageAzureV2ProtectedDiskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetails.PowerShell.cs deleted file mode 100644 index 7758a5c921e8..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetails.PowerShell.cs +++ /dev/null @@ -1,714 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageAzureV2 provider specific settings. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ReplicationDetailsTypeConverter))] - public partial class InMageAzureV2ReplicationDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageAzureV2ReplicationDetails(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.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageAzureV2ReplicationDetails(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.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageAzureV2ReplicationDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SwitchProviderDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails) content.GetValueForProperty("SwitchProviderDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("InfrastructureVMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).InfrastructureVMId = (string) content.GetValueForProperty("InfrastructureVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).InfrastructureVMId, global::System.Convert.ToString); - } - if (content.Contains("VCenterInfrastructureId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VCenterInfrastructureId = (string) content.GetValueForProperty("VCenterInfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VCenterInfrastructureId, global::System.Convert.ToString); - } - if (content.Contains("ProtectionStage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); - } - if (content.Contains("VMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("ResyncProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RpoInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("CompressedDataRateInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).CompressedDataRateInMb = (double?) content.GetValueForProperty("CompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).CompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("UncompressedDataRateInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).UncompressedDataRateInMb = (double?) content.GetValueForProperty("UncompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).UncompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("AgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AgentVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("IsAgentUpdateRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IsAgentUpdateRequired = (string) content.GetValueForProperty("IsAgentUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IsAgentUpdateRequired, global::System.Convert.ToString); - } - if (content.Contains("IsRebootAfterUpdateRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IsRebootAfterUpdateRequired = (string) content.GetValueForProperty("IsRebootAfterUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IsRebootAfterUpdateRequired, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerName = (string) content.GetValueForProperty("ProcessServerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerName, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); - } - if (content.Contains("ProtectedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ProtectedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("DiskResized")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).DiskResized, global::System.Convert.ToString); - } - if (content.Contains("MasterTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MasterTargetId, global::System.Convert.ToString); - } - if (content.Contains("SourceVMCpuCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMCpuCount = (int?) content.GetValueForProperty("SourceVMCpuCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMCpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("SourceVMRamSizeInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMRamSizeInMb = (int?) content.GetValueForProperty("SourceVMRamSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMRamSizeInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("VhdName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VhdName, global::System.Convert.ToString); - } - if (content.Contains("OSDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).OSDiskId = (string) content.GetValueForProperty("OSDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).OSDiskId, global::System.Convert.ToString); - } - if (content.Contains("AzureVMDiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails[]) content.GetValueForProperty("AzureVMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureVMDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureStorageAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureStorageAccount = (string) content.GetValueForProperty("RecoveryAzureStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureStorageAccount, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureLogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureLogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("SelectedRecoveryAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedTfoAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedSourceNicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SelectedSourceNicId, global::System.Convert.ToString); - } - if (content.Contains("DiscoveryType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); - } - if (content.Contains("EnableRdpOnTargetOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); - } - if (content.Contains("Datastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("TargetVMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMId = (string) content.GetValueForProperty("TargetVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("UseManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).UseManagedDisk, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LicenseType, global::System.Convert.ToString); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SqlServerLicenseType = (string) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SqlServerLicenseType, global::System.Convert.ToString); - } - if (content.Contains("ValidationError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("LastRpoCalculatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastUpdateReceivedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastUpdateReceivedTime = (global::System.DateTime?) content.GetValueForProperty("LastUpdateReceivedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastUpdateReceivedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ReplicaId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ReplicaId = (string) content.GetValueForProperty("ReplicaId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ReplicaId, global::System.Convert.ToString); - } - if (content.Contains("OSVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).OSVersion, global::System.Convert.ToString); - } - if (content.Contains("ProtectedManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails[]) content.GetValueForProperty("ProtectedManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ManagedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("LastRecoveryPointReceived")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FirmwareType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).FirmwareType = (string) content.GetValueForProperty("FirmwareType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).FirmwareType, global::System.Convert.ToString); - } - if (content.Contains("AzureVMGeneration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMGeneration = (string) content.GetValueForProperty("AzureVMGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMGeneration, global::System.Convert.ToString); - } - if (content.Contains("IsAdditionalStatsAvailable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IsAdditionalStatsAvailable = (bool?) content.GetValueForProperty("IsAdditionalStatsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IsAdditionalStatsAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TotalDataTransferred")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TotalDataTransferred = (long?) content.GetValueForProperty("TotalDataTransferred",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TotalDataTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("TotalProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TotalProgressHealth = (string) content.GetValueForProperty("TotalProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TotalProgressHealth, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetVMTagsTypeConverter.ConvertFrom); - } - if (content.Contains("SeedManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsSeedManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("SwitchProviderBlockingErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails[]) content.GetValueForProperty("SwitchProviderBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderDetailTargetVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetVaultId = (string) content.GetValueForProperty("SwitchProviderDetailTargetVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetVaultId, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderDetailTargetResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetResourceId = (string) content.GetValueForProperty("SwitchProviderDetailTargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetResourceId, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderDetailTargetFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetFabricId = (string) content.GetValueForProperty("SwitchProviderDetailTargetFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetFabricId, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderDetailTargetApplianceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetApplianceId = (string) content.GetValueForProperty("SwitchProviderDetailTargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetApplianceId, 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 InMageAzureV2ReplicationDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SwitchProviderDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails) content.GetValueForProperty("SwitchProviderDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("InfrastructureVMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).InfrastructureVMId = (string) content.GetValueForProperty("InfrastructureVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).InfrastructureVMId, global::System.Convert.ToString); - } - if (content.Contains("VCenterInfrastructureId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VCenterInfrastructureId = (string) content.GetValueForProperty("VCenterInfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VCenterInfrastructureId, global::System.Convert.ToString); - } - if (content.Contains("ProtectionStage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); - } - if (content.Contains("VMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("ResyncProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RpoInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("CompressedDataRateInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).CompressedDataRateInMb = (double?) content.GetValueForProperty("CompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).CompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("UncompressedDataRateInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).UncompressedDataRateInMb = (double?) content.GetValueForProperty("UncompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).UncompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("AgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AgentVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("IsAgentUpdateRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IsAgentUpdateRequired = (string) content.GetValueForProperty("IsAgentUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IsAgentUpdateRequired, global::System.Convert.ToString); - } - if (content.Contains("IsRebootAfterUpdateRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IsRebootAfterUpdateRequired = (string) content.GetValueForProperty("IsRebootAfterUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IsRebootAfterUpdateRequired, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerName = (string) content.GetValueForProperty("ProcessServerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerName, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); - } - if (content.Contains("ProtectedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ProtectedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("DiskResized")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).DiskResized, global::System.Convert.ToString); - } - if (content.Contains("MasterTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).MasterTargetId, global::System.Convert.ToString); - } - if (content.Contains("SourceVMCpuCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMCpuCount = (int?) content.GetValueForProperty("SourceVMCpuCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMCpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("SourceVMRamSizeInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMRamSizeInMb = (int?) content.GetValueForProperty("SourceVMRamSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMRamSizeInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("VhdName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VhdName, global::System.Convert.ToString); - } - if (content.Contains("OSDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).OSDiskId = (string) content.GetValueForProperty("OSDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).OSDiskId, global::System.Convert.ToString); - } - if (content.Contains("AzureVMDiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails[]) content.GetValueForProperty("AzureVMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureVMDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureStorageAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureStorageAccount = (string) content.GetValueForProperty("RecoveryAzureStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureStorageAccount, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureLogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureLogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("SelectedRecoveryAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedTfoAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedSourceNicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SelectedSourceNicId, global::System.Convert.ToString); - } - if (content.Contains("DiscoveryType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); - } - if (content.Contains("EnableRdpOnTargetOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); - } - if (content.Contains("Datastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("TargetVMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMId = (string) content.GetValueForProperty("TargetVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("UseManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).UseManagedDisk, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LicenseType, global::System.Convert.ToString); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SqlServerLicenseType = (string) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SqlServerLicenseType, global::System.Convert.ToString); - } - if (content.Contains("ValidationError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("LastRpoCalculatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastUpdateReceivedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastUpdateReceivedTime = (global::System.DateTime?) content.GetValueForProperty("LastUpdateReceivedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastUpdateReceivedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ReplicaId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ReplicaId = (string) content.GetValueForProperty("ReplicaId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ReplicaId, global::System.Convert.ToString); - } - if (content.Contains("OSVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).OSVersion, global::System.Convert.ToString); - } - if (content.Contains("ProtectedManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails[]) content.GetValueForProperty("ProtectedManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ManagedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("LastRecoveryPointReceived")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FirmwareType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).FirmwareType = (string) content.GetValueForProperty("FirmwareType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).FirmwareType, global::System.Convert.ToString); - } - if (content.Contains("AzureVMGeneration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMGeneration = (string) content.GetValueForProperty("AzureVMGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMGeneration, global::System.Convert.ToString); - } - if (content.Contains("IsAdditionalStatsAvailable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IsAdditionalStatsAvailable = (bool?) content.GetValueForProperty("IsAdditionalStatsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).IsAdditionalStatsAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TotalDataTransferred")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TotalDataTransferred = (long?) content.GetValueForProperty("TotalDataTransferred",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TotalDataTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("TotalProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TotalProgressHealth = (string) content.GetValueForProperty("TotalProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TotalProgressHealth, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetVMTagsTypeConverter.ConvertFrom); - } - if (content.Contains("SeedManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsSeedManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("SwitchProviderBlockingErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails[]) content.GetValueForProperty("SwitchProviderBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderDetailTargetVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetVaultId = (string) content.GetValueForProperty("SwitchProviderDetailTargetVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetVaultId, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderDetailTargetResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetResourceId = (string) content.GetValueForProperty("SwitchProviderDetailTargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetResourceId, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderDetailTargetFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetFabricId = (string) content.GetValueForProperty("SwitchProviderDetailTargetFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetFabricId, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderDetailTargetApplianceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetApplianceId = (string) content.GetValueForProperty("SwitchProviderDetailTargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetApplianceId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageAzureV2 provider specific settings. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ReplicationDetailsTypeConverter))] - public partial interface IInMageAzureV2ReplicationDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReprotectInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReprotectInput.PowerShell.cs deleted file mode 100644 index 421a79724f4e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReprotectInput.PowerShell.cs +++ /dev/null @@ -1,202 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageAzureV2 specific provider input. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ReprotectInputTypeConverter))] - public partial class InMageAzureV2ReprotectInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageAzureV2ReprotectInput(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.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageAzureV2ReprotectInput(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.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageAzureV2ReprotectInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MasterTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).MasterTargetId, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).StorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DisksToInclude")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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 InMageAzureV2ReprotectInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MasterTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).MasterTargetId, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).StorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DisksToInclude")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageAzureV2 specific provider input. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ReprotectInputTypeConverter))] - public partial interface IInMageAzureV2ReprotectInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetails.PowerShell.cs deleted file mode 100644 index 14e4dec53f4e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetails.PowerShell.cs +++ /dev/null @@ -1,189 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageAzureV2 switch provider blocking error details. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2SwitchProviderBlockingErrorDetailsTypeConverter))] - public partial class InMageAzureV2SwitchProviderBlockingErrorDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageAzureV2SwitchProviderBlockingErrorDetails(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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageAzureV2SwitchProviderBlockingErrorDetails(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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageAzureV2SwitchProviderBlockingErrorDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessageParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); - } - if (content.Contains("ErrorTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTagsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageAzureV2SwitchProviderBlockingErrorDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessageParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); - } - if (content.Contains("ErrorTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTagsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageAzureV2 switch provider blocking error details. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2SwitchProviderBlockingErrorDetailsTypeConverter))] - public partial interface IInMageAzureV2SwitchProviderBlockingErrorDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetails.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetails.cs deleted file mode 100644 index ecb67a443257..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetails.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// InMageAzureV2 switch provider blocking error details. - public partial class InMageAzureV2SwitchProviderBlockingErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal - { - - /// Backing field for property. - private string _errorCode; - - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ErrorCode { get => this._errorCode; } - - /// Backing field for property. - private string _errorMessage; - - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ErrorMessage { get => this._errorMessage; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters _errorMessageParameter; - - /// The error message parameters. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters()); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags _errorTag; - - /// The error tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags()); } - - /// Internal Acessors for ErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal.ErrorCode { get => this._errorCode; set { {_errorCode = value;} } } - - /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal.ErrorMessage { get => this._errorMessage; set { {_errorMessage = value;} } } - - /// Internal Acessors for ErrorMessageParameter - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal.ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters()); set { {_errorMessageParameter = value;} } } - - /// Internal Acessors for ErrorTag - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal.ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags()); set { {_errorTag = value;} } } - - /// Internal Acessors for PossibleCaus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal.PossibleCaus { get => this._possibleCaus; set { {_possibleCaus = value;} } } - - /// Internal Acessors for RecommendedAction - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal.RecommendedAction { get => this._recommendedAction; set { {_recommendedAction = value;} } } - - /// Backing field for property. - private string _possibleCaus; - - /// The possible causes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PossibleCaus { get => this._possibleCaus; } - - /// Backing field for property. - private string _recommendedAction; - - /// The recommended action. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecommendedAction { get => this._recommendedAction; } - - /// - /// Creates an new instance. - /// - public InMageAzureV2SwitchProviderBlockingErrorDetails() - { - - } - } - /// InMageAzureV2 switch provider blocking error details. - public partial interface IInMageAzureV2SwitchProviderBlockingErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error code.", - SerializedName = @"errorCode", - PossibleTypes = new [] { typeof(string) })] - string ErrorCode { get; } - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error message.", - SerializedName = @"errorMessage", - PossibleTypes = new [] { typeof(string) })] - string ErrorMessage { get; } - /// The error message parameters. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error message parameters.", - SerializedName = @"errorMessageParameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; } - /// The error tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error tags.", - SerializedName = @"errorTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get; } - /// The possible causes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The possible causes.", - SerializedName = @"possibleCauses", - PossibleTypes = new [] { typeof(string) })] - string PossibleCaus { get; } - /// The recommended action. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The recommended action.", - SerializedName = @"recommendedAction", - PossibleTypes = new [] { typeof(string) })] - string RecommendedAction { get; } - - } - /// InMageAzureV2 switch provider blocking error details. - internal partial interface IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal - - { - /// The error code. - string ErrorCode { get; set; } - /// The error message. - string ErrorMessage { get; set; } - /// The error message parameters. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; set; } - /// The error tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get; set; } - /// The possible causes. - string PossibleCaus { get; set; } - /// The recommended action. - string RecommendedAction { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderDetails.PowerShell.cs deleted file mode 100644 index 93556e9aa7f2..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderDetails.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageAzureV2 switch provider details. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2SwitchProviderDetailsTypeConverter))] - public partial class InMageAzureV2SwitchProviderDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageAzureV2SwitchProviderDetails(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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageAzureV2SwitchProviderDetails(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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageAzureV2SwitchProviderDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TargetVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetVaultId = (string) content.GetValueForProperty("TargetVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetVaultId, global::System.Convert.ToString); - } - if (content.Contains("TargetResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetResourceId, global::System.Convert.ToString); - } - if (content.Contains("TargetFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetFabricId = (string) content.GetValueForProperty("TargetFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetFabricId, global::System.Convert.ToString); - } - if (content.Contains("TargetApplianceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetApplianceId, 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 InMageAzureV2SwitchProviderDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TargetVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetVaultId = (string) content.GetValueForProperty("TargetVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetVaultId, global::System.Convert.ToString); - } - if (content.Contains("TargetResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetResourceId, global::System.Convert.ToString); - } - if (content.Contains("TargetFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetFabricId = (string) content.GetValueForProperty("TargetFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetFabricId, global::System.Convert.ToString); - } - if (content.Contains("TargetApplianceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetApplianceId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageAzureV2 switch provider details. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2SwitchProviderDetailsTypeConverter))] - public partial interface IInMageAzureV2SwitchProviderDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderInput.PowerShell.cs deleted file mode 100644 index 7d50ce19d671..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderInput.PowerShell.cs +++ /dev/null @@ -1,170 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Provider specific input for InMageAzureV2 switch provider. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2SwitchProviderInputTypeConverter))] - public partial class InMageAzureV2SwitchProviderInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageAzureV2SwitchProviderInput(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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageAzureV2SwitchProviderInput(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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageAzureV2SwitchProviderInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TargetVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInputInternal)this).TargetVaultId = (string) content.GetValueForProperty("TargetVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInputInternal)this).TargetVaultId, global::System.Convert.ToString); - } - if (content.Contains("TargetFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInputInternal)this).TargetFabricId = (string) content.GetValueForProperty("TargetFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInputInternal)this).TargetFabricId, global::System.Convert.ToString); - } - if (content.Contains("TargetApplianceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInputInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInputInternal)this).TargetApplianceId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInputInternal)this).InstanceType, 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 InMageAzureV2SwitchProviderInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TargetVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInputInternal)this).TargetVaultId = (string) content.GetValueForProperty("TargetVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInputInternal)this).TargetVaultId, global::System.Convert.ToString); - } - if (content.Contains("TargetFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInputInternal)this).TargetFabricId = (string) content.GetValueForProperty("TargetFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInputInternal)this).TargetFabricId, global::System.Convert.ToString); - } - if (content.Contains("TargetApplianceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInputInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInputInternal)this).TargetApplianceId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Provider specific input for InMageAzureV2 switch provider. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2SwitchProviderInputTypeConverter))] - public partial interface IInMageAzureV2SwitchProviderInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInput.PowerShell.cs deleted file mode 100644 index e668334b53fd..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInput.PowerShell.cs +++ /dev/null @@ -1,229 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMage Azure V2 input to update replication protected item. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2UpdateReplicationProtectedItemInputTypeConverter))] - public partial class InMageAzureV2UpdateReplicationProtectedItemInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageAzureV2UpdateReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageAzureV2UpdateReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageAzureV2UpdateReplicationProtectedItemInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryAzureV1ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureV2ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("UseManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).UseManagedDisk, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateDiskInputTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, 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 InMageAzureV2UpdateReplicationProtectedItemInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryAzureV1ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureV2ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("UseManagedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).UseManagedDisk, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetManagedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateDiskInputTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMage Azure V2 input to update replication protected item. - [System.ComponentModel.TypeConverter(typeof(InMageAzureV2UpdateReplicationProtectedItemInputTypeConverter))] - public partial interface IInMageAzureV2UpdateReplicationProtectedItemInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageBasePolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageBasePolicyDetails.PowerShell.cs deleted file mode 100644 index f73d0bafee04..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageBasePolicyDetails.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Base class for the policies of providers using InMage replication. - [System.ComponentModel.TypeConverter(typeof(InMageBasePolicyDetailsTypeConverter))] - public partial class InMageBasePolicyDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageBasePolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageBasePolicyDetails(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.Migrate.Models.Api20220501.IInMageBasePolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageBasePolicyDetails(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.Migrate.Models.Api20220501.IInMageBasePolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageBasePolicyDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointThresholdInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 InMageBasePolicyDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointThresholdInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Base class for the policies of providers using InMage replication. - [System.ComponentModel.TypeConverter(typeof(InMageBasePolicyDetailsTypeConverter))] - public partial interface IInMageBasePolicyDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageDiskDetails.PowerShell.cs deleted file mode 100644 index 6cfea7d58467..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDiskDetails.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMware/Physical specific Disk Details. - [System.ComponentModel.TypeConverter(typeof(InMageDiskDetailsTypeConverter))] - public partial class InMageDiskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageDiskDetails(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.Migrate.Models.Api20220501.IInMageDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageDiskDetails(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.Migrate.Models.Api20220501.IInMageDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageDiskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("DiskSizeInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskSizeInMb = (string) content.GetValueForProperty("DiskSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskSizeInMb, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskType = (string) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskType, global::System.Convert.ToString); - } - if (content.Contains("DiskConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskConfiguration = (string) content.GetValueForProperty("DiskConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskConfiguration, global::System.Convert.ToString); - } - if (content.Contains("VolumeList")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).VolumeList = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetails[]) content.GetValueForProperty("VolumeList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).VolumeList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskVolumeDetailsTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageDiskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("DiskSizeInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskSizeInMb = (string) content.GetValueForProperty("DiskSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskSizeInMb, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskType = (string) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskType, global::System.Convert.ToString); - } - if (content.Contains("DiskConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskConfiguration = (string) content.GetValueForProperty("DiskConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).DiskConfiguration, global::System.Convert.ToString); - } - if (content.Contains("VolumeList")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).VolumeList = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetails[]) content.GetValueForProperty("VolumeList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal)this).VolumeList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskVolumeDetailsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// VMware/Physical specific Disk Details. - [System.ComponentModel.TypeConverter(typeof(InMageDiskDetailsTypeConverter))] - public partial interface IInMageDiskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDiskExclusionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageDiskExclusionInput.PowerShell.cs deleted file mode 100644 index 011061098c02..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDiskExclusionInput.PowerShell.cs +++ /dev/null @@ -1,154 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// DiskExclusionInput when doing enable protection of virtual machine in InMage provider. - /// - [System.ComponentModel.TypeConverter(typeof(InMageDiskExclusionInputTypeConverter))] - public partial class InMageDiskExclusionInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageDiskExclusionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageDiskExclusionInput(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.Migrate.Models.Api20220501.IInMageDiskExclusionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageDiskExclusionInput(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.Migrate.Models.Api20220501.IInMageDiskExclusionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageDiskExclusionInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VolumeOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)this).VolumeOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[]) content.GetValueForProperty("VolumeOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)this).VolumeOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageVolumeExclusionOptionsTypeConverter.ConvertFrom)); - } - if (content.Contains("DiskSignatureOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)this).DiskSignatureOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[]) content.GetValueForProperty("DiskSignatureOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)this).DiskSignatureOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskSignatureExclusionOptionsTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageDiskExclusionInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VolumeOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)this).VolumeOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[]) content.GetValueForProperty("VolumeOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)this).VolumeOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageVolumeExclusionOptionsTypeConverter.ConvertFrom)); - } - if (content.Contains("DiskSignatureOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)this).DiskSignatureOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[]) content.GetValueForProperty("DiskSignatureOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)this).DiskSignatureOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskSignatureExclusionOptionsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// DiskExclusionInput when doing enable protection of virtual machine in InMage provider. - [System.ComponentModel.TypeConverter(typeof(InMageDiskExclusionInputTypeConverter))] - public partial interface IInMageDiskExclusionInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageEnableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageEnableProtectionInput.PowerShell.cs deleted file mode 100644 index 5784f78428af..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageEnableProtectionInput.PowerShell.cs +++ /dev/null @@ -1,242 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMware Azure specific enable protection input. - [System.ComponentModel.TypeConverter(typeof(InMageEnableProtectionInputTypeConverter))] - public partial class InMageEnableProtectionInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageEnableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageEnableProtectionInput(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.Migrate.Models.Api20220501.IInMageEnableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageEnableProtectionInput(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.Migrate.Models.Api20220501.IInMageEnableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageEnableProtectionInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskExclusionInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DiskExclusionInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput) content.GetValueForProperty("DiskExclusionInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DiskExclusionInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskExclusionInputTypeConverter.ConvertFrom); - } - if (content.Contains("VMFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).VMFriendlyName = (string) content.GetValueForProperty("VMFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).VMFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("MasterTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).MasterTargetId, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("RetentionDrive")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).RetentionDrive = (string) content.GetValueForProperty("RetentionDrive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).RetentionDrive, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("DatastoreName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DatastoreName = (string) content.GetValueForProperty("DatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DatastoreName, global::System.Convert.ToString); - } - if (content.Contains("DisksToInclude")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("DiskExclusionInputVolumeOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DiskExclusionInputVolumeOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputVolumeOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DiskExclusionInputVolumeOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageVolumeExclusionOptionsTypeConverter.ConvertFrom)); - } - if (content.Contains("DiskExclusionInputDiskSignatureOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DiskExclusionInputDiskSignatureOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputDiskSignatureOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DiskExclusionInputDiskSignatureOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskSignatureExclusionOptionsTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageEnableProtectionInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskExclusionInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DiskExclusionInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput) content.GetValueForProperty("DiskExclusionInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DiskExclusionInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskExclusionInputTypeConverter.ConvertFrom); - } - if (content.Contains("VMFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).VMFriendlyName = (string) content.GetValueForProperty("VMFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).VMFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("MasterTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).MasterTargetId, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("RetentionDrive")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).RetentionDrive = (string) content.GetValueForProperty("RetentionDrive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).RetentionDrive, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("DatastoreName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DatastoreName = (string) content.GetValueForProperty("DatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DatastoreName, global::System.Convert.ToString); - } - if (content.Contains("DisksToInclude")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("DiskExclusionInputVolumeOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DiskExclusionInputVolumeOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputVolumeOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DiskExclusionInputVolumeOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageVolumeExclusionOptionsTypeConverter.ConvertFrom)); - } - if (content.Contains("DiskExclusionInputDiskSignatureOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DiskExclusionInputDiskSignatureOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputDiskSignatureOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal)this).DiskExclusionInputDiskSignatureOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskSignatureExclusionOptionsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// VMware Azure specific enable protection input. - [System.ComponentModel.TypeConverter(typeof(InMageEnableProtectionInputTypeConverter))] - public partial interface IInMageEnableProtectionInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetails.PowerShell.cs deleted file mode 100644 index 49db50206c99..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetails.PowerShell.cs +++ /dev/null @@ -1,189 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageFabric switch provider blocking error details. - [System.ComponentModel.TypeConverter(typeof(InMageFabricSwitchProviderBlockingErrorDetailsTypeConverter))] - public partial class InMageFabricSwitchProviderBlockingErrorDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageFabricSwitchProviderBlockingErrorDetails(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.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageFabricSwitchProviderBlockingErrorDetails(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.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageFabricSwitchProviderBlockingErrorDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessageParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); - } - if (content.Contains("ErrorTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorTagsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageFabricSwitchProviderBlockingErrorDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessageParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); - } - if (content.Contains("ErrorTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorTagsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageFabric switch provider blocking error details. - [System.ComponentModel.TypeConverter(typeof(InMageFabricSwitchProviderBlockingErrorDetailsTypeConverter))] - public partial interface IInMageFabricSwitchProviderBlockingErrorDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetails.cs b/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetails.cs deleted file mode 100644 index 9f63f910b4a8..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetails.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// InMageFabric switch provider blocking error details. - public partial class InMageFabricSwitchProviderBlockingErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal - { - - /// Backing field for property. - private string _errorCode; - - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ErrorCode { get => this._errorCode; } - - /// Backing field for property. - private string _errorMessage; - - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ErrorMessage { get => this._errorMessage; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters _errorMessageParameter; - - /// The error message parameters. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters()); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags _errorTag; - - /// The error tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorTags()); } - - /// Internal Acessors for ErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal.ErrorCode { get => this._errorCode; set { {_errorCode = value;} } } - - /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal.ErrorMessage { get => this._errorMessage; set { {_errorMessage = value;} } } - - /// Internal Acessors for ErrorMessageParameter - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal.ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters()); set { {_errorMessageParameter = value;} } } - - /// Internal Acessors for ErrorTag - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal.ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorTags()); set { {_errorTag = value;} } } - - /// Internal Acessors for PossibleCaus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal.PossibleCaus { get => this._possibleCaus; set { {_possibleCaus = value;} } } - - /// Internal Acessors for RecommendedAction - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsInternal.RecommendedAction { get => this._recommendedAction; set { {_recommendedAction = value;} } } - - /// Backing field for property. - private string _possibleCaus; - - /// The possible causes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PossibleCaus { get => this._possibleCaus; } - - /// Backing field for property. - private string _recommendedAction; - - /// The recommended action. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecommendedAction { get => this._recommendedAction; } - - /// - /// Creates an new instance. - /// - public InMageFabricSwitchProviderBlockingErrorDetails() - { - - } - } - /// InMageFabric switch provider blocking error details. - public partial interface IInMageFabricSwitchProviderBlockingErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error code.", - SerializedName = @"errorCode", - PossibleTypes = new [] { typeof(string) })] - string ErrorCode { get; } - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error message.", - SerializedName = @"errorMessage", - PossibleTypes = new [] { typeof(string) })] - string ErrorMessage { get; } - /// The error message parameters. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error message parameters.", - SerializedName = @"errorMessageParameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; } - /// The error tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error tags.", - SerializedName = @"errorTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get; } - /// The possible causes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The possible causes.", - SerializedName = @"possibleCauses", - PossibleTypes = new [] { typeof(string) })] - string PossibleCaus { get; } - /// The recommended action. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The recommended action.", - SerializedName = @"recommendedAction", - PossibleTypes = new [] { typeof(string) })] - string RecommendedAction { get; } - - } - /// InMageFabric switch provider blocking error details. - internal partial interface IInMageFabricSwitchProviderBlockingErrorDetailsInternal - - { - /// The error code. - string ErrorCode { get; set; } - /// The error message. - string ErrorMessage { get; set; } - /// The error message parameters. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; set; } - /// The error tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get; set; } - /// The possible causes. - string PossibleCaus { get; set; } - /// The recommended action. - string RecommendedAction { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMagePolicyDetails.PowerShell.cs deleted file mode 100644 index 3174a05f3377..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyDetails.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMage specific protection profile details. - [System.ComponentModel.TypeConverter(typeof(InMagePolicyDetailsTypeConverter))] - public partial class InMagePolicyDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMagePolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMagePolicyDetails(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.Migrate.Models.Api20220501.IInMagePolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMagePolicyDetails(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.Migrate.Models.Api20220501.IInMagePolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMagePolicyDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointThresholdInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 InMagePolicyDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointThresholdInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMage specific protection profile details. - [System.ComponentModel.TypeConverter(typeof(InMagePolicyDetailsTypeConverter))] - public partial interface IInMagePolicyDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMagePolicyInput.PowerShell.cs deleted file mode 100644 index a513c267d905..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyInput.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMWare Azure specific protection profile Input. - [System.ComponentModel.TypeConverter(typeof(InMagePolicyInputTypeConverter))] - public partial class InMagePolicyInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMagePolicyInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMagePolicyInput(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.Migrate.Models.Api20220501.IInMagePolicyInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMagePolicyInput(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.Migrate.Models.Api20220501.IInMagePolicyInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMagePolicyInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointThresholdInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 InMagePolicyInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointThresholdInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// VMWare Azure specific protection profile Input. - [System.ComponentModel.TypeConverter(typeof(InMagePolicyInputTypeConverter))] - public partial interface IInMagePolicyInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageProtectedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageProtectedDiskDetails.PowerShell.cs deleted file mode 100644 index ff95fcf93e07..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageProtectedDiskDetails.PowerShell.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMage protected disk details. - [System.ComponentModel.TypeConverter(typeof(InMageProtectedDiskDetailsTypeConverter))] - public partial class InMageProtectedDiskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageProtectedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageProtectedDiskDetails(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.Migrate.Models.Api20220501.IInMageProtectedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageProtectedDiskDetails(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.Migrate.Models.Api20220501.IInMageProtectedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageProtectedDiskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("ProtectionStage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); - } - if (content.Contains("HealthErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).HealthErrorCode = (string) content.GetValueForProperty("HealthErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).HealthErrorCode, global::System.Convert.ToString); - } - if (content.Contains("RpoInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); - } - if (content.Contains("ResyncProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResyncDurationInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncDurationInSecond = (long?) content.GetValueForProperty("ResyncDurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncDurationInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("DiskCapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("FileSystemCapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).FileSystemCapacityInByte = (long?) content.GetValueForProperty("FileSystemCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).FileSystemCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("SourceDataInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).SourceDataInMb = (double?) content.GetValueForProperty("SourceDataInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).SourceDataInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("PsDataInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).PsDataInMb = (double?) content.GetValueForProperty("PsDataInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).PsDataInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("TargetDataInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).TargetDataInMb = (double?) content.GetValueForProperty("TargetDataInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).TargetDataInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DiskResized")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskResized, global::System.Convert.ToString); - } - if (content.Contains("LastRpoCalculatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ResyncProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncTotalTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte = (long?) content.GetValueForProperty("ResyncTotalTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncLast15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncLastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ResyncLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ResyncStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncStartTime = (global::System.DateTime?) content.GetValueForProperty("ResyncStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ProgressHealth = (string) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ProgressHealth, global::System.Convert.ToString); - } - if (content.Contains("ProgressStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ProgressStatus = (string) content.GetValueForProperty("ProgressStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ProgressStatus, 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 InMageProtectedDiskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("ProtectionStage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); - } - if (content.Contains("HealthErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).HealthErrorCode = (string) content.GetValueForProperty("HealthErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).HealthErrorCode, global::System.Convert.ToString); - } - if (content.Contains("RpoInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); - } - if (content.Contains("ResyncProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResyncDurationInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncDurationInSecond = (long?) content.GetValueForProperty("ResyncDurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncDurationInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("DiskCapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("FileSystemCapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).FileSystemCapacityInByte = (long?) content.GetValueForProperty("FileSystemCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).FileSystemCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("SourceDataInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).SourceDataInMb = (double?) content.GetValueForProperty("SourceDataInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).SourceDataInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("PsDataInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).PsDataInMb = (double?) content.GetValueForProperty("PsDataInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).PsDataInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("TargetDataInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).TargetDataInMb = (double?) content.GetValueForProperty("TargetDataInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).TargetDataInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DiskResized")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).DiskResized, global::System.Convert.ToString); - } - if (content.Contains("LastRpoCalculatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ResyncProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncTotalTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte = (long?) content.GetValueForProperty("ResyncTotalTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncLast15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncLastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ResyncLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ResyncStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncStartTime = (global::System.DateTime?) content.GetValueForProperty("ResyncStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ResyncStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ProgressHealth = (string) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ProgressHealth, global::System.Convert.ToString); - } - if (content.Contains("ProgressStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ProgressStatus = (string) content.GetValueForProperty("ProgressStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal)this).ProgressStatus, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMage protected disk details. - [System.ComponentModel.TypeConverter(typeof(InMageProtectedDiskDetailsTypeConverter))] - public partial interface IInMageProtectedDiskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetails.PowerShell.cs deleted file mode 100644 index 2af292987819..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetails.PowerShell.cs +++ /dev/null @@ -1,189 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm source agent upgrade blocking error details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmAgentUpgradeBlockingErrorDetailsTypeConverter))] - public partial class InMageRcmAgentUpgradeBlockingErrorDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmAgentUpgradeBlockingErrorDetails(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.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmAgentUpgradeBlockingErrorDetails(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.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmAgentUpgradeBlockingErrorDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessageParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); - } - if (content.Contains("ErrorTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTagsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmAgentUpgradeBlockingErrorDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessageParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); - } - if (content.Contains("ErrorTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTagsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm source agent upgrade blocking error details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmAgentUpgradeBlockingErrorDetailsTypeConverter))] - public partial interface IInMageRcmAgentUpgradeBlockingErrorDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetails.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetails.cs deleted file mode 100644 index 6ed83af7bfc1..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetails.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// InMageRcm source agent upgrade blocking error details. - public partial class InMageRcmAgentUpgradeBlockingErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal - { - - /// Backing field for property. - private string _errorCode; - - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ErrorCode { get => this._errorCode; } - - /// Backing field for property. - private string _errorMessage; - - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ErrorMessage { get => this._errorMessage; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters _errorMessageParameter; - - /// The error message parameters. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters()); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags _errorTag; - - /// The error tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags()); } - - /// Internal Acessors for ErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal.ErrorCode { get => this._errorCode; set { {_errorCode = value;} } } - - /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal.ErrorMessage { get => this._errorMessage; set { {_errorMessage = value;} } } - - /// Internal Acessors for ErrorMessageParameter - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal.ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters()); set { {_errorMessageParameter = value;} } } - - /// Internal Acessors for ErrorTag - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal.ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags()); set { {_errorTag = value;} } } - - /// Internal Acessors for PossibleCaus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal.PossibleCaus { get => this._possibleCaus; set { {_possibleCaus = value;} } } - - /// Internal Acessors for RecommendedAction - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal.RecommendedAction { get => this._recommendedAction; set { {_recommendedAction = value;} } } - - /// Backing field for property. - private string _possibleCaus; - - /// The possible causes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PossibleCaus { get => this._possibleCaus; } - - /// Backing field for property. - private string _recommendedAction; - - /// The recommended action. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecommendedAction { get => this._recommendedAction; } - - /// - /// Creates an new instance. - /// - public InMageRcmAgentUpgradeBlockingErrorDetails() - { - - } - } - /// InMageRcm source agent upgrade blocking error details. - public partial interface IInMageRcmAgentUpgradeBlockingErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error code.", - SerializedName = @"errorCode", - PossibleTypes = new [] { typeof(string) })] - string ErrorCode { get; } - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error message.", - SerializedName = @"errorMessage", - PossibleTypes = new [] { typeof(string) })] - string ErrorMessage { get; } - /// The error message parameters. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error message parameters.", - SerializedName = @"errorMessageParameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; } - /// The error tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error tags.", - SerializedName = @"errorTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags ErrorTag { get; } - /// The possible causes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The possible causes.", - SerializedName = @"possibleCauses", - PossibleTypes = new [] { typeof(string) })] - string PossibleCaus { get; } - /// The recommended action. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The recommended action.", - SerializedName = @"recommendedAction", - PossibleTypes = new [] { typeof(string) })] - string RecommendedAction { get; } - - } - /// InMageRcm source agent upgrade blocking error details. - internal partial interface IInMageRcmAgentUpgradeBlockingErrorDetailsInternal - - { - /// The error code. - string ErrorCode { get; set; } - /// The error message. - string ErrorMessage { get; set; } - /// The error message parameters. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; set; } - /// The error tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags ErrorTag { get; set; } - /// The possible causes. - string PossibleCaus { get; set; } - /// The recommended action. - string RecommendedAction { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceDetails.PowerShell.cs deleted file mode 100644 index 541f6d822d77..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceDetails.PowerShell.cs +++ /dev/null @@ -1,696 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm appliance details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmApplianceDetailsTypeConverter))] - public partial class InMageRcmApplianceDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmApplianceDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmApplianceDetails(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.Migrate.Models.Api20220501.IInMageRcmApplianceDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmApplianceDetails(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.Migrate.Models.Api20220501.IInMageRcmApplianceDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmApplianceDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RcmProxy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxy = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails) content.GetValueForProperty("RcmProxy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxy, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RcmProxyDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("PushInstaller")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstaller = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails) content.GetValueForProperty("PushInstaller",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstaller, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PushInstallerDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ReplicationAgent")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails) content.GetValueForProperty("ReplicationAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationAgentDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ReprotectAgent")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails) content.GetValueForProperty("ReprotectAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReprotectAgentDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("MarsAgent")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarsAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails) content.GetValueForProperty("MarsAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarsAgent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MarsAgentDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Dra")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).Dra = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails) content.GetValueForProperty("Dra",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).Dra, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DraDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("FabricArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).FabricArmId = (string) content.GetValueForProperty("FabricArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).FabricArmId, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderBlockingErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).SwitchProviderBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails[]) content.GetValueForProperty("SwitchProviderBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).SwitchProviderBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("ProcessServer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ProcessServer, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RcmProxyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyId = (string) content.GetValueForProperty("RcmProxyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyId, global::System.Convert.ToString); - } - if (content.Contains("RcmProxyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyName = (string) content.GetValueForProperty("RcmProxyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyName, global::System.Convert.ToString); - } - if (content.Contains("RcmProxyBiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyBiosId = (string) content.GetValueForProperty("RcmProxyBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyBiosId, global::System.Convert.ToString); - } - if (content.Contains("RcmProxyFabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyFabricObjectId = (string) content.GetValueForProperty("RcmProxyFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyFabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("RcmProxyFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyFqdn = (string) content.GetValueForProperty("RcmProxyFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyFqdn, global::System.Convert.ToString); - } - if (content.Contains("RcmProxyClientAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyClientAuthenticationType = (string) content.GetValueForProperty("RcmProxyClientAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyClientAuthenticationType, global::System.Convert.ToString); - } - if (content.Contains("RcmProxyVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyVersion = (string) content.GetValueForProperty("RcmProxyVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyVersion, global::System.Convert.ToString); - } - if (content.Contains("RcmProxyLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("RcmProxyLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RcmProxyHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("RcmProxyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("RcmProxyHealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("RcmProxyHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("PushInstallerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerId = (string) content.GetValueForProperty("PushInstallerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerId, global::System.Convert.ToString); - } - if (content.Contains("PushInstallerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerName = (string) content.GetValueForProperty("PushInstallerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerName, global::System.Convert.ToString); - } - if (content.Contains("PushInstallerBiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerBiosId = (string) content.GetValueForProperty("PushInstallerBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerBiosId, global::System.Convert.ToString); - } - if (content.Contains("PushInstallerFabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerFabricObjectId = (string) content.GetValueForProperty("PushInstallerFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerFabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("PushInstallerFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerFqdn = (string) content.GetValueForProperty("PushInstallerFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerFqdn, global::System.Convert.ToString); - } - if (content.Contains("PushInstallerVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerVersion = (string) content.GetValueForProperty("PushInstallerVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerVersion, global::System.Convert.ToString); - } - if (content.Contains("PushInstallerLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("PushInstallerLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("PushInstallerHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("PushInstallerHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("PushInstallerHealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("PushInstallerHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ReplicationAgentId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentId = (string) content.GetValueForProperty("ReplicationAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentId, global::System.Convert.ToString); - } - if (content.Contains("ReplicationAgentName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentName = (string) content.GetValueForProperty("ReplicationAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentName, global::System.Convert.ToString); - } - if (content.Contains("ReplicationAgentBiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentBiosId = (string) content.GetValueForProperty("ReplicationAgentBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentBiosId, global::System.Convert.ToString); - } - if (content.Contains("ReplicationAgentFabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFabricObjectId = (string) content.GetValueForProperty("ReplicationAgentFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("ReplicationAgentFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFqdn = (string) content.GetValueForProperty("ReplicationAgentFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFqdn, global::System.Convert.ToString); - } - if (content.Contains("ReplicationAgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentVersion = (string) content.GetValueForProperty("ReplicationAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentVersion, global::System.Convert.ToString); - } - if (content.Contains("ReplicationAgentLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("ReplicationAgentLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ReplicationAgentHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("ReplicationAgentHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("ReplicationAgentHealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("ReplicationAgentHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ReprotectAgentId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentId = (string) content.GetValueForProperty("ReprotectAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentId, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentName = (string) content.GetValueForProperty("ReprotectAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentName, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentBiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentBiosId = (string) content.GetValueForProperty("ReprotectAgentBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentBiosId, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentFabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFabricObjectId = (string) content.GetValueForProperty("ReprotectAgentFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFqdn = (string) content.GetValueForProperty("ReprotectAgentFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFqdn, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVersion = (string) content.GetValueForProperty("ReprotectAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVersion, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("ReprotectAgentLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ReprotectAgentHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("ReprotectAgentHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("ReprotectAgentHealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("ReprotectAgentHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ReprotectAgentProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentProtectedItemCount = (int?) content.GetValueForProperty("ReprotectAgentProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReprotectAgentAccessibleDatastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentAccessibleDatastore = (string[]) content.GetValueForProperty("ReprotectAgentAccessibleDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentAccessibleDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("ReprotectAgentVcenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVcenterId = (string) content.GetValueForProperty("ReprotectAgentVcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVcenterId, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentLastDiscoveryInUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastDiscoveryInUtc = (global::System.DateTime?) content.GetValueForProperty("ReprotectAgentLastDiscoveryInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastDiscoveryInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MarAgentId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentId = (string) content.GetValueForProperty("MarAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentId, global::System.Convert.ToString); - } - if (content.Contains("MarAgentName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentName = (string) content.GetValueForProperty("MarAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentName, global::System.Convert.ToString); - } - if (content.Contains("MarAgentBiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentBiosId = (string) content.GetValueForProperty("MarAgentBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentBiosId, global::System.Convert.ToString); - } - if (content.Contains("MarAgentFabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentFabricObjectId = (string) content.GetValueForProperty("MarAgentFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentFabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("MarAgentFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentFqdn = (string) content.GetValueForProperty("MarAgentFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentFqdn, global::System.Convert.ToString); - } - if (content.Contains("MarAgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentVersion = (string) content.GetValueForProperty("MarAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentVersion, global::System.Convert.ToString); - } - if (content.Contains("MarAgentLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("MarAgentLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MarAgentHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("MarAgentHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("MarAgentHealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("MarAgentHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("DraId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraId = (string) content.GetValueForProperty("DraId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraId, global::System.Convert.ToString); - } - if (content.Contains("DraName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraName = (string) content.GetValueForProperty("DraName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraName, global::System.Convert.ToString); - } - if (content.Contains("DraBiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraBiosId = (string) content.GetValueForProperty("DraBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraBiosId, global::System.Convert.ToString); - } - if (content.Contains("DraVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraVersion = (string) content.GetValueForProperty("DraVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraVersion, global::System.Convert.ToString); - } - if (content.Contains("DraLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("DraLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DraHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("DraHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("DraHealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("DraHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("DraForwardProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraForwardProtectedItemCount = (int?) content.GetValueForProperty("DraForwardProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraForwardProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("DraReverseProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraReverseProtectedItemCount = (int?) content.GetValueForProperty("DraReverseProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraReverseProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmApplianceDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RcmProxy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxy = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails) content.GetValueForProperty("RcmProxy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxy, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RcmProxyDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("PushInstaller")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstaller = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails) content.GetValueForProperty("PushInstaller",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstaller, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PushInstallerDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ReplicationAgent")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails) content.GetValueForProperty("ReplicationAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationAgentDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ReprotectAgent")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails) content.GetValueForProperty("ReprotectAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReprotectAgentDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("MarsAgent")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarsAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails) content.GetValueForProperty("MarsAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarsAgent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MarsAgentDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Dra")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).Dra = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails) content.GetValueForProperty("Dra",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).Dra, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DraDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("FabricArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).FabricArmId = (string) content.GetValueForProperty("FabricArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).FabricArmId, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderBlockingErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).SwitchProviderBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails[]) content.GetValueForProperty("SwitchProviderBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).SwitchProviderBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("ProcessServer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ProcessServer, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RcmProxyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyId = (string) content.GetValueForProperty("RcmProxyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyId, global::System.Convert.ToString); - } - if (content.Contains("RcmProxyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyName = (string) content.GetValueForProperty("RcmProxyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyName, global::System.Convert.ToString); - } - if (content.Contains("RcmProxyBiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyBiosId = (string) content.GetValueForProperty("RcmProxyBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyBiosId, global::System.Convert.ToString); - } - if (content.Contains("RcmProxyFabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyFabricObjectId = (string) content.GetValueForProperty("RcmProxyFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyFabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("RcmProxyFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyFqdn = (string) content.GetValueForProperty("RcmProxyFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyFqdn, global::System.Convert.ToString); - } - if (content.Contains("RcmProxyClientAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyClientAuthenticationType = (string) content.GetValueForProperty("RcmProxyClientAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyClientAuthenticationType, global::System.Convert.ToString); - } - if (content.Contains("RcmProxyVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyVersion = (string) content.GetValueForProperty("RcmProxyVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyVersion, global::System.Convert.ToString); - } - if (content.Contains("RcmProxyLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("RcmProxyLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RcmProxyHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("RcmProxyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("RcmProxyHealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("RcmProxyHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("PushInstallerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerId = (string) content.GetValueForProperty("PushInstallerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerId, global::System.Convert.ToString); - } - if (content.Contains("PushInstallerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerName = (string) content.GetValueForProperty("PushInstallerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerName, global::System.Convert.ToString); - } - if (content.Contains("PushInstallerBiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerBiosId = (string) content.GetValueForProperty("PushInstallerBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerBiosId, global::System.Convert.ToString); - } - if (content.Contains("PushInstallerFabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerFabricObjectId = (string) content.GetValueForProperty("PushInstallerFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerFabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("PushInstallerFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerFqdn = (string) content.GetValueForProperty("PushInstallerFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerFqdn, global::System.Convert.ToString); - } - if (content.Contains("PushInstallerVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerVersion = (string) content.GetValueForProperty("PushInstallerVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerVersion, global::System.Convert.ToString); - } - if (content.Contains("PushInstallerLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("PushInstallerLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("PushInstallerHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("PushInstallerHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("PushInstallerHealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("PushInstallerHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ReplicationAgentId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentId = (string) content.GetValueForProperty("ReplicationAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentId, global::System.Convert.ToString); - } - if (content.Contains("ReplicationAgentName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentName = (string) content.GetValueForProperty("ReplicationAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentName, global::System.Convert.ToString); - } - if (content.Contains("ReplicationAgentBiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentBiosId = (string) content.GetValueForProperty("ReplicationAgentBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentBiosId, global::System.Convert.ToString); - } - if (content.Contains("ReplicationAgentFabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFabricObjectId = (string) content.GetValueForProperty("ReplicationAgentFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("ReplicationAgentFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFqdn = (string) content.GetValueForProperty("ReplicationAgentFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFqdn, global::System.Convert.ToString); - } - if (content.Contains("ReplicationAgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentVersion = (string) content.GetValueForProperty("ReplicationAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentVersion, global::System.Convert.ToString); - } - if (content.Contains("ReplicationAgentLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("ReplicationAgentLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ReplicationAgentHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("ReplicationAgentHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("ReplicationAgentHealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("ReplicationAgentHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ReprotectAgentId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentId = (string) content.GetValueForProperty("ReprotectAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentId, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentName = (string) content.GetValueForProperty("ReprotectAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentName, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentBiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentBiosId = (string) content.GetValueForProperty("ReprotectAgentBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentBiosId, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentFabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFabricObjectId = (string) content.GetValueForProperty("ReprotectAgentFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFqdn = (string) content.GetValueForProperty("ReprotectAgentFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFqdn, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVersion = (string) content.GetValueForProperty("ReprotectAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVersion, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("ReprotectAgentLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ReprotectAgentHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("ReprotectAgentHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("ReprotectAgentHealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("ReprotectAgentHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ReprotectAgentProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentProtectedItemCount = (int?) content.GetValueForProperty("ReprotectAgentProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ReprotectAgentAccessibleDatastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentAccessibleDatastore = (string[]) content.GetValueForProperty("ReprotectAgentAccessibleDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentAccessibleDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("ReprotectAgentVcenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVcenterId = (string) content.GetValueForProperty("ReprotectAgentVcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVcenterId, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentLastDiscoveryInUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastDiscoveryInUtc = (global::System.DateTime?) content.GetValueForProperty("ReprotectAgentLastDiscoveryInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastDiscoveryInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MarAgentId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentId = (string) content.GetValueForProperty("MarAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentId, global::System.Convert.ToString); - } - if (content.Contains("MarAgentName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentName = (string) content.GetValueForProperty("MarAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentName, global::System.Convert.ToString); - } - if (content.Contains("MarAgentBiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentBiosId = (string) content.GetValueForProperty("MarAgentBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentBiosId, global::System.Convert.ToString); - } - if (content.Contains("MarAgentFabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentFabricObjectId = (string) content.GetValueForProperty("MarAgentFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentFabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("MarAgentFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentFqdn = (string) content.GetValueForProperty("MarAgentFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentFqdn, global::System.Convert.ToString); - } - if (content.Contains("MarAgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentVersion = (string) content.GetValueForProperty("MarAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentVersion, global::System.Convert.ToString); - } - if (content.Contains("MarAgentLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("MarAgentLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MarAgentHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("MarAgentHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("MarAgentHealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("MarAgentHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).MarAgentHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("DraId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraId = (string) content.GetValueForProperty("DraId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraId, global::System.Convert.ToString); - } - if (content.Contains("DraName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraName = (string) content.GetValueForProperty("DraName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraName, global::System.Convert.ToString); - } - if (content.Contains("DraBiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraBiosId = (string) content.GetValueForProperty("DraBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraBiosId, global::System.Convert.ToString); - } - if (content.Contains("DraVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraVersion = (string) content.GetValueForProperty("DraVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraVersion, global::System.Convert.ToString); - } - if (content.Contains("DraLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("DraLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DraHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("DraHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("DraHealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("DraHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("DraForwardProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraForwardProtectedItemCount = (int?) content.GetValueForProperty("DraForwardProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraForwardProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("DraReverseProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraReverseProtectedItemCount = (int?) content.GetValueForProperty("DraReverseProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal)this).DraReverseProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm appliance details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmApplianceDetailsTypeConverter))] - public partial interface IInMageRcmApplianceDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceDetails.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceDetails.cs deleted file mode 100644 index fa3d06adede9..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceDetails.cs +++ /dev/null @@ -1,1209 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// InMageRcm appliance details. - public partial class InMageRcmApplianceDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails _dra; - - /// The DRA. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails Dra { get => (this._dra = this._dra ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DraDetails()); } - - /// The DRA Bios Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DraBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).BiosId; } - - /// The count of protected items which are protected in forward direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? DraForwardProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).ForwardProtectedItemCount; } - - /// The health. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? DraHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).Health; } - - /// The health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] DraHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).HealthError; } - - /// The DRA Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DraId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).Id; } - - /// The last heartbeat received from the DRA. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? DraLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).LastHeartbeatUtc; } - - /// The DRA name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DraName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).Name; } - - /// The count of protected items which are protected in reverse direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? DraReverseProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).ReverseProtectedItemCount; } - - /// The version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DraVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).Version; } - - /// Backing field for property. - private string _fabricArmId; - - /// The fabric ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string FabricArmId { get => this._fabricArmId; } - - /// Backing field for property. - private string _id; - - /// The appliance Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Id { get => this._id; } - - /// The Mars agent Bios Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MarAgentBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).BiosId; } - - /// The fabric object Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MarAgentFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).FabricObjectId; } - - /// The Mars agent Fqdn. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MarAgentFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Fqdn; } - - /// The health of the Mars agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? MarAgentHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Health; } - - /// The health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] MarAgentHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).HealthError; } - - /// The Mars agent Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MarAgentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Id; } - - /// The last heartbeat received from the Mars agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? MarAgentLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).LastHeartbeatUtc; } - - /// The Mars agent name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MarAgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Name; } - - /// The version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MarAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Version; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails _marsAgent; - - /// The Mars agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails MarsAgent { get => (this._marsAgent = this._marsAgent ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MarsAgentDetails()); } - - /// Internal Acessors for Dra - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.Dra { get => (this._dra = this._dra ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DraDetails()); set { {_dra = value;} } } - - /// Internal Acessors for DraBiosId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.DraBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).BiosId = value; } - - /// Internal Acessors for DraForwardProtectedItemCount - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.DraForwardProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).ForwardProtectedItemCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).ForwardProtectedItemCount = value; } - - /// Internal Acessors for DraHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.DraHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).Health = value; } - - /// Internal Acessors for DraHealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.DraHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).HealthError = value; } - - /// Internal Acessors for DraId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.DraId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).Id = value; } - - /// Internal Acessors for DraLastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.DraLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).LastHeartbeatUtc = value; } - - /// Internal Acessors for DraName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.DraName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).Name = value; } - - /// Internal Acessors for DraReverseProtectedItemCount - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.DraReverseProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).ReverseProtectedItemCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).ReverseProtectedItemCount = value; } - - /// Internal Acessors for DraVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.DraVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal)Dra).Version = value; } - - /// Internal Acessors for FabricArmId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.FabricArmId { get => this._fabricArmId; set { {_fabricArmId = value;} } } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.Id { get => this._id; set { {_id = value;} } } - - /// Internal Acessors for MarAgentBiosId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.MarAgentBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).BiosId = value; } - - /// Internal Acessors for MarAgentFabricObjectId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.MarAgentFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).FabricObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).FabricObjectId = value; } - - /// Internal Acessors for MarAgentFqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.MarAgentFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Fqdn = value; } - - /// Internal Acessors for MarAgentHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.MarAgentHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Health = value; } - - /// Internal Acessors for MarAgentHealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.MarAgentHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).HealthError = value; } - - /// Internal Acessors for MarAgentId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.MarAgentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Id = value; } - - /// Internal Acessors for MarAgentLastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.MarAgentLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).LastHeartbeatUtc = value; } - - /// Internal Acessors for MarAgentName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.MarAgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Name = value; } - - /// Internal Acessors for MarAgentVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.MarAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)MarsAgent).Version = value; } - - /// Internal Acessors for MarsAgent - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.MarsAgent { get => (this._marsAgent = this._marsAgent ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MarsAgentDetails()); set { {_marsAgent = value;} } } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for ProcessServer - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ProcessServer { get => (this._processServer = this._processServer ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerDetails()); set { {_processServer = value;} } } - - /// Internal Acessors for PushInstaller - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.PushInstaller { get => (this._pushInstaller = this._pushInstaller ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PushInstallerDetails()); set { {_pushInstaller = value;} } } - - /// Internal Acessors for PushInstallerBiosId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.PushInstallerBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).BiosId = value; } - - /// Internal Acessors for PushInstallerFabricObjectId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.PushInstallerFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).FabricObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).FabricObjectId = value; } - - /// Internal Acessors for PushInstallerFqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.PushInstallerFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Fqdn = value; } - - /// Internal Acessors for PushInstallerHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.PushInstallerHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Health = value; } - - /// Internal Acessors for PushInstallerHealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.PushInstallerHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).HealthError = value; } - - /// Internal Acessors for PushInstallerId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.PushInstallerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Id = value; } - - /// Internal Acessors for PushInstallerLastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.PushInstallerLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).LastHeartbeatUtc = value; } - - /// Internal Acessors for PushInstallerName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.PushInstallerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Name = value; } - - /// Internal Acessors for PushInstallerVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.PushInstallerVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Version = value; } - - /// Internal Acessors for RcmProxy - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.RcmProxy { get => (this._rcmProxy = this._rcmProxy ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RcmProxyDetails()); set { {_rcmProxy = value;} } } - - /// Internal Acessors for RcmProxyBiosId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.RcmProxyBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).BiosId = value; } - - /// Internal Acessors for RcmProxyClientAuthenticationType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.RcmProxyClientAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).ClientAuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).ClientAuthenticationType = value; } - - /// Internal Acessors for RcmProxyFabricObjectId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.RcmProxyFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).FabricObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).FabricObjectId = value; } - - /// Internal Acessors for RcmProxyFqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.RcmProxyFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Fqdn = value; } - - /// Internal Acessors for RcmProxyHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.RcmProxyHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Health = value; } - - /// Internal Acessors for RcmProxyHealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.RcmProxyHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).HealthError = value; } - - /// Internal Acessors for RcmProxyId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.RcmProxyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Id = value; } - - /// Internal Acessors for RcmProxyLastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.RcmProxyLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).LastHeartbeatUtc = value; } - - /// Internal Acessors for RcmProxyName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.RcmProxyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Name = value; } - - /// Internal Acessors for RcmProxyVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.RcmProxyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Version = value; } - - /// Internal Acessors for ReplicationAgent - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReplicationAgent { get => (this._replicationAgent = this._replicationAgent ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationAgentDetails()); set { {_replicationAgent = value;} } } - - /// Internal Acessors for ReplicationAgentBiosId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReplicationAgentBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).BiosId = value; } - - /// Internal Acessors for ReplicationAgentFabricObjectId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReplicationAgentFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).FabricObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).FabricObjectId = value; } - - /// Internal Acessors for ReplicationAgentFqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReplicationAgentFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Fqdn = value; } - - /// Internal Acessors for ReplicationAgentHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReplicationAgentHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Health = value; } - - /// Internal Acessors for ReplicationAgentHealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReplicationAgentHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).HealthError = value; } - - /// Internal Acessors for ReplicationAgentId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReplicationAgentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Id = value; } - - /// Internal Acessors for ReplicationAgentLastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReplicationAgentLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).LastHeartbeatUtc = value; } - - /// Internal Acessors for ReplicationAgentName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReplicationAgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Name = value; } - - /// Internal Acessors for ReplicationAgentVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReplicationAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Version = value; } - - /// Internal Acessors for ReprotectAgent - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReprotectAgent { get => (this._reprotectAgent = this._reprotectAgent ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReprotectAgentDetails()); set { {_reprotectAgent = value;} } } - - /// Internal Acessors for ReprotectAgentAccessibleDatastore - string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReprotectAgentAccessibleDatastore { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).AccessibleDatastore; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).AccessibleDatastore = value; } - - /// Internal Acessors for ReprotectAgentBiosId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReprotectAgentBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).BiosId = value; } - - /// Internal Acessors for ReprotectAgentFabricObjectId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReprotectAgentFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).FabricObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).FabricObjectId = value; } - - /// Internal Acessors for ReprotectAgentFqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReprotectAgentFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Fqdn = value; } - - /// Internal Acessors for ReprotectAgentHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReprotectAgentHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Health = value; } - - /// Internal Acessors for ReprotectAgentHealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReprotectAgentHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).HealthError = value; } - - /// Internal Acessors for ReprotectAgentId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReprotectAgentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Id = value; } - - /// Internal Acessors for ReprotectAgentLastDiscoveryInUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReprotectAgentLastDiscoveryInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).LastDiscoveryInUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).LastDiscoveryInUtc = value; } - - /// Internal Acessors for ReprotectAgentLastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReprotectAgentLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).LastHeartbeatUtc = value; } - - /// Internal Acessors for ReprotectAgentName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReprotectAgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Name = value; } - - /// Internal Acessors for ReprotectAgentProtectedItemCount - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReprotectAgentProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).ProtectedItemCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).ProtectedItemCount = value; } - - /// Internal Acessors for ReprotectAgentVcenterId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReprotectAgentVcenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).VcenterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).VcenterId = value; } - - /// Internal Acessors for ReprotectAgentVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.ReprotectAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Version = value; } - - /// Internal Acessors for SwitchProviderBlockingErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetailsInternal.SwitchProviderBlockingErrorDetail { get => this._switchProviderBlockingErrorDetail; set { {_switchProviderBlockingErrorDetail = value;} } } - - /// Backing field for property. - private string _name; - - /// The appliance name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails _processServer; - - /// The process server. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails ProcessServer { get => (this._processServer = this._processServer ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerDetails()); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails _pushInstaller; - - /// The push installer. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails PushInstaller { get => (this._pushInstaller = this._pushInstaller ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PushInstallerDetails()); } - - /// The push installer Bios Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PushInstallerBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).BiosId; } - - /// The fabric object Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PushInstallerFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).FabricObjectId; } - - /// The push installer Fqdn. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PushInstallerFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Fqdn; } - - /// The health of the push installer. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? PushInstallerHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Health; } - - /// The health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] PushInstallerHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).HealthError; } - - /// The push installer Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PushInstallerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Id; } - - /// The last heartbeat received from the push installer. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? PushInstallerLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).LastHeartbeatUtc; } - - /// The push installer name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PushInstallerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Name; } - - /// The version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PushInstallerVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)PushInstaller).Version; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails _rcmProxy; - - /// The of RCM proxy. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails RcmProxy { get => (this._rcmProxy = this._rcmProxy ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RcmProxyDetails()); } - - /// The RCM proxy Bios Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RcmProxyBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).BiosId; } - - /// The client authentication type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RcmProxyClientAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).ClientAuthenticationType; } - - /// The fabric object Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RcmProxyFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).FabricObjectId; } - - /// The RCM proxy Fqdn. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RcmProxyFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Fqdn; } - - /// The health of the RCM proxy. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? RcmProxyHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Health; } - - /// The health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] RcmProxyHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).HealthError; } - - /// The RCM proxy Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RcmProxyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Id; } - - /// The last heartbeat received from the RCM proxy. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? RcmProxyLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).LastHeartbeatUtc; } - - /// The RCM proxy name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RcmProxyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Name; } - - /// The version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RcmProxyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)RcmProxy).Version; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails _replicationAgent; - - /// The replication agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails ReplicationAgent { get => (this._replicationAgent = this._replicationAgent ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationAgentDetails()); } - - /// The replication agent Bios Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReplicationAgentBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).BiosId; } - - /// The fabric object Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReplicationAgentFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).FabricObjectId; } - - /// The replication agent Fqdn. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReplicationAgentFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Fqdn; } - - /// The health of the replication agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? ReplicationAgentHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Health; } - - /// The health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ReplicationAgentHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).HealthError; } - - /// The replication agent Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReplicationAgentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Id; } - - /// The last heartbeat received from the replication agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? ReplicationAgentLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).LastHeartbeatUtc; } - - /// The replication agent name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReplicationAgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Name; } - - /// The version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReplicationAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)ReplicationAgent).Version; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails _reprotectAgent; - - /// The reprotect agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails ReprotectAgent { get => (this._reprotectAgent = this._reprotectAgent ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReprotectAgentDetails()); } - - /// The list of accessible datastores fetched from discovery. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] ReprotectAgentAccessibleDatastore { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).AccessibleDatastore; } - - /// The reprotect agent Bios Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReprotectAgentBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).BiosId; } - - /// The fabric object Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReprotectAgentFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).FabricObjectId; } - - /// The reprotect agent Fqdn. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReprotectAgentFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Fqdn; } - - /// The health of the reprotect agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? ReprotectAgentHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Health; } - - /// The health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ReprotectAgentHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).HealthError; } - - /// The reprotect agent Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReprotectAgentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Id; } - - /// The last time when SDS information discovered in SRS. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? ReprotectAgentLastDiscoveryInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).LastDiscoveryInUtc; } - - /// The last heartbeat received from the reprotect agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? ReprotectAgentLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).LastHeartbeatUtc; } - - /// The reprotect agent name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReprotectAgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Name; } - - /// The protected item count. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? ReprotectAgentProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).ProtectedItemCount; } - - /// The Vcenter Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReprotectAgentVcenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).VcenterId; } - - /// The version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReprotectAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)ReprotectAgent).Version; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails[] _switchProviderBlockingErrorDetail; - - /// The switch provider blocking error information. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get => this._switchProviderBlockingErrorDetail; } - - /// Creates an new instance. - public InMageRcmApplianceDetails() - { - - } - } - /// InMageRcm appliance details. - public partial interface IInMageRcmApplianceDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The DRA Bios Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The DRA Bios Id.", - SerializedName = @"biosId", - PossibleTypes = new [] { typeof(string) })] - string DraBiosId { get; } - /// The count of protected items which are protected in forward direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The count of protected items which are protected in forward direction.", - SerializedName = @"forwardProtectedItemCount", - PossibleTypes = new [] { typeof(int) })] - int? DraForwardProtectedItemCount { get; } - /// The health. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The health.", - SerializedName = @"health", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? DraHealth { get; } - /// The health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The health errors.", - SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] DraHealthError { get; } - /// The DRA Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The DRA Id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string DraId { get; } - /// The last heartbeat received from the DRA. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The last heartbeat received from the DRA.", - SerializedName = @"lastHeartbeatUtc", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? DraLastHeartbeatUtc { get; } - /// The DRA name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The DRA name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string DraName { get; } - /// The count of protected items which are protected in reverse direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The count of protected items which are protected in reverse direction.", - SerializedName = @"reverseProtectedItemCount", - PossibleTypes = new [] { typeof(int) })] - int? DraReverseProtectedItemCount { get; } - /// The version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The version.", - SerializedName = @"version", - PossibleTypes = new [] { typeof(string) })] - string DraVersion { get; } - /// The fabric ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The fabric ARM Id.", - SerializedName = @"fabricArmId", - PossibleTypes = new [] { typeof(string) })] - string FabricArmId { get; } - /// The appliance Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The appliance Id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; } - /// The Mars agent Bios Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The Mars agent Bios Id.", - SerializedName = @"biosId", - PossibleTypes = new [] { typeof(string) })] - string MarAgentBiosId { get; } - /// The fabric object Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The fabric object Id.", - SerializedName = @"fabricObjectId", - PossibleTypes = new [] { typeof(string) })] - string MarAgentFabricObjectId { get; } - /// The Mars agent Fqdn. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The Mars agent Fqdn.", - SerializedName = @"fqdn", - PossibleTypes = new [] { typeof(string) })] - string MarAgentFqdn { get; } - /// The health of the Mars agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The health of the Mars agent.", - SerializedName = @"health", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? MarAgentHealth { get; } - /// The health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The health errors.", - SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] MarAgentHealthError { get; } - /// The Mars agent Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The Mars agent Id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string MarAgentId { get; } - /// The last heartbeat received from the Mars agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The last heartbeat received from the Mars agent.", - SerializedName = @"lastHeartbeatUtc", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? MarAgentLastHeartbeatUtc { get; } - /// The Mars agent name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The Mars agent name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string MarAgentName { get; } - /// The version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The version.", - SerializedName = @"version", - PossibleTypes = new [] { typeof(string) })] - string MarAgentVersion { get; } - /// The appliance name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The appliance name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// The process server. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The process server.", - SerializedName = @"processServer", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails ProcessServer { get; } - /// The push installer Bios Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The push installer Bios Id.", - SerializedName = @"biosId", - PossibleTypes = new [] { typeof(string) })] - string PushInstallerBiosId { get; } - /// The fabric object Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The fabric object Id.", - SerializedName = @"fabricObjectId", - PossibleTypes = new [] { typeof(string) })] - string PushInstallerFabricObjectId { get; } - /// The push installer Fqdn. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The push installer Fqdn.", - SerializedName = @"fqdn", - PossibleTypes = new [] { typeof(string) })] - string PushInstallerFqdn { get; } - /// The health of the push installer. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The health of the push installer.", - SerializedName = @"health", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? PushInstallerHealth { get; } - /// The health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The health errors.", - SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] PushInstallerHealthError { get; } - /// The push installer Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The push installer Id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string PushInstallerId { get; } - /// The last heartbeat received from the push installer. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The last heartbeat received from the push installer.", - SerializedName = @"lastHeartbeatUtc", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? PushInstallerLastHeartbeatUtc { get; } - /// The push installer name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The push installer name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string PushInstallerName { get; } - /// The version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The version.", - SerializedName = @"version", - PossibleTypes = new [] { typeof(string) })] - string PushInstallerVersion { get; } - /// The RCM proxy Bios Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The RCM proxy Bios Id.", - SerializedName = @"biosId", - PossibleTypes = new [] { typeof(string) })] - string RcmProxyBiosId { get; } - /// The client authentication type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The client authentication type.", - SerializedName = @"clientAuthenticationType", - PossibleTypes = new [] { typeof(string) })] - string RcmProxyClientAuthenticationType { get; } - /// The fabric object Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The fabric object Id.", - SerializedName = @"fabricObjectId", - PossibleTypes = new [] { typeof(string) })] - string RcmProxyFabricObjectId { get; } - /// The RCM proxy Fqdn. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The RCM proxy Fqdn.", - SerializedName = @"fqdn", - PossibleTypes = new [] { typeof(string) })] - string RcmProxyFqdn { get; } - /// The health of the RCM proxy. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The health of the RCM proxy.", - SerializedName = @"health", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? RcmProxyHealth { get; } - /// The health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The health errors.", - SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] RcmProxyHealthError { get; } - /// The RCM proxy Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The RCM proxy Id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string RcmProxyId { get; } - /// The last heartbeat received from the RCM proxy. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The last heartbeat received from the RCM proxy.", - SerializedName = @"lastHeartbeatUtc", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? RcmProxyLastHeartbeatUtc { get; } - /// The RCM proxy name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The RCM proxy name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string RcmProxyName { get; } - /// The version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The version.", - SerializedName = @"version", - PossibleTypes = new [] { typeof(string) })] - string RcmProxyVersion { get; } - /// The replication agent Bios Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The replication agent Bios Id.", - SerializedName = @"biosId", - PossibleTypes = new [] { typeof(string) })] - string ReplicationAgentBiosId { get; } - /// The fabric object Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The fabric object Id.", - SerializedName = @"fabricObjectId", - PossibleTypes = new [] { typeof(string) })] - string ReplicationAgentFabricObjectId { get; } - /// The replication agent Fqdn. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The replication agent Fqdn.", - SerializedName = @"fqdn", - PossibleTypes = new [] { typeof(string) })] - string ReplicationAgentFqdn { get; } - /// The health of the replication agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The health of the replication agent.", - SerializedName = @"health", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? ReplicationAgentHealth { get; } - /// The health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The health errors.", - SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ReplicationAgentHealthError { get; } - /// The replication agent Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The replication agent Id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string ReplicationAgentId { get; } - /// The last heartbeat received from the replication agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The last heartbeat received from the replication agent.", - SerializedName = @"lastHeartbeatUtc", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? ReplicationAgentLastHeartbeatUtc { get; } - /// The replication agent name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The replication agent name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string ReplicationAgentName { get; } - /// The version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The version.", - SerializedName = @"version", - PossibleTypes = new [] { typeof(string) })] - string ReplicationAgentVersion { get; } - /// The list of accessible datastores fetched from discovery. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The list of accessible datastores fetched from discovery.", - SerializedName = @"accessibleDatastores", - PossibleTypes = new [] { typeof(string) })] - string[] ReprotectAgentAccessibleDatastore { get; } - /// The reprotect agent Bios Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The reprotect agent Bios Id.", - SerializedName = @"biosId", - PossibleTypes = new [] { typeof(string) })] - string ReprotectAgentBiosId { get; } - /// The fabric object Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The fabric object Id.", - SerializedName = @"fabricObjectId", - PossibleTypes = new [] { typeof(string) })] - string ReprotectAgentFabricObjectId { get; } - /// The reprotect agent Fqdn. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The reprotect agent Fqdn.", - SerializedName = @"fqdn", - PossibleTypes = new [] { typeof(string) })] - string ReprotectAgentFqdn { get; } - /// The health of the reprotect agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The health of the reprotect agent.", - SerializedName = @"health", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? ReprotectAgentHealth { get; } - /// The health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The health errors.", - SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ReprotectAgentHealthError { get; } - /// The reprotect agent Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The reprotect agent Id.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string ReprotectAgentId { get; } - /// The last time when SDS information discovered in SRS. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The last time when SDS information discovered in SRS.", - SerializedName = @"lastDiscoveryInUtc", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? ReprotectAgentLastDiscoveryInUtc { get; } - /// The last heartbeat received from the reprotect agent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The last heartbeat received from the reprotect agent.", - SerializedName = @"lastHeartbeatUtc", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? ReprotectAgentLastHeartbeatUtc { get; } - /// The reprotect agent name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The reprotect agent name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string ReprotectAgentName { get; } - /// The protected item count. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The protected item count.", - SerializedName = @"protectedItemCount", - PossibleTypes = new [] { typeof(int) })] - int? ReprotectAgentProtectedItemCount { get; } - /// The Vcenter Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The Vcenter Id.", - SerializedName = @"vcenterId", - PossibleTypes = new [] { typeof(string) })] - string ReprotectAgentVcenterId { get; } - /// The version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The version.", - SerializedName = @"version", - PossibleTypes = new [] { typeof(string) })] - string ReprotectAgentVersion { get; } - /// The switch provider blocking error information. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The switch provider blocking error information.", - SerializedName = @"switchProviderBlockingErrorDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get; } - - } - /// InMageRcm appliance details. - internal partial interface IInMageRcmApplianceDetailsInternal - - { - /// The DRA. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails Dra { get; set; } - /// The DRA Bios Id. - string DraBiosId { get; set; } - /// The count of protected items which are protected in forward direction. - int? DraForwardProtectedItemCount { get; set; } - /// The health. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? DraHealth { get; set; } - /// The health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] DraHealthError { get; set; } - /// The DRA Id. - string DraId { get; set; } - /// The last heartbeat received from the DRA. - global::System.DateTime? DraLastHeartbeatUtc { get; set; } - /// The DRA name. - string DraName { get; set; } - /// The count of protected items which are protected in reverse direction. - int? DraReverseProtectedItemCount { get; set; } - /// The version. - string DraVersion { get; set; } - /// The fabric ARM Id. - string FabricArmId { get; set; } - /// The appliance Id. - string Id { get; set; } - /// The Mars agent Bios Id. - string MarAgentBiosId { get; set; } - /// The fabric object Id. - string MarAgentFabricObjectId { get; set; } - /// The Mars agent Fqdn. - string MarAgentFqdn { get; set; } - /// The health of the Mars agent. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? MarAgentHealth { get; set; } - /// The health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] MarAgentHealthError { get; set; } - /// The Mars agent Id. - string MarAgentId { get; set; } - /// The last heartbeat received from the Mars agent. - global::System.DateTime? MarAgentLastHeartbeatUtc { get; set; } - /// The Mars agent name. - string MarAgentName { get; set; } - /// The version. - string MarAgentVersion { get; set; } - /// The Mars agent. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails MarsAgent { get; set; } - /// The appliance name. - string Name { get; set; } - /// The process server. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails ProcessServer { get; set; } - /// The push installer. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails PushInstaller { get; set; } - /// The push installer Bios Id. - string PushInstallerBiosId { get; set; } - /// The fabric object Id. - string PushInstallerFabricObjectId { get; set; } - /// The push installer Fqdn. - string PushInstallerFqdn { get; set; } - /// The health of the push installer. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? PushInstallerHealth { get; set; } - /// The health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] PushInstallerHealthError { get; set; } - /// The push installer Id. - string PushInstallerId { get; set; } - /// The last heartbeat received from the push installer. - global::System.DateTime? PushInstallerLastHeartbeatUtc { get; set; } - /// The push installer name. - string PushInstallerName { get; set; } - /// The version. - string PushInstallerVersion { get; set; } - /// The of RCM proxy. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails RcmProxy { get; set; } - /// The RCM proxy Bios Id. - string RcmProxyBiosId { get; set; } - /// The client authentication type. - string RcmProxyClientAuthenticationType { get; set; } - /// The fabric object Id. - string RcmProxyFabricObjectId { get; set; } - /// The RCM proxy Fqdn. - string RcmProxyFqdn { get; set; } - /// The health of the RCM proxy. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? RcmProxyHealth { get; set; } - /// The health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] RcmProxyHealthError { get; set; } - /// The RCM proxy Id. - string RcmProxyId { get; set; } - /// The last heartbeat received from the RCM proxy. - global::System.DateTime? RcmProxyLastHeartbeatUtc { get; set; } - /// The RCM proxy name. - string RcmProxyName { get; set; } - /// The version. - string RcmProxyVersion { get; set; } - /// The replication agent. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails ReplicationAgent { get; set; } - /// The replication agent Bios Id. - string ReplicationAgentBiosId { get; set; } - /// The fabric object Id. - string ReplicationAgentFabricObjectId { get; set; } - /// The replication agent Fqdn. - string ReplicationAgentFqdn { get; set; } - /// The health of the replication agent. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? ReplicationAgentHealth { get; set; } - /// The health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ReplicationAgentHealthError { get; set; } - /// The replication agent Id. - string ReplicationAgentId { get; set; } - /// The last heartbeat received from the replication agent. - global::System.DateTime? ReplicationAgentLastHeartbeatUtc { get; set; } - /// The replication agent name. - string ReplicationAgentName { get; set; } - /// The version. - string ReplicationAgentVersion { get; set; } - /// The reprotect agent. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails ReprotectAgent { get; set; } - /// The list of accessible datastores fetched from discovery. - string[] ReprotectAgentAccessibleDatastore { get; set; } - /// The reprotect agent Bios Id. - string ReprotectAgentBiosId { get; set; } - /// The fabric object Id. - string ReprotectAgentFabricObjectId { get; set; } - /// The reprotect agent Fqdn. - string ReprotectAgentFqdn { get; set; } - /// The health of the reprotect agent. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? ReprotectAgentHealth { get; set; } - /// The health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ReprotectAgentHealthError { get; set; } - /// The reprotect agent Id. - string ReprotectAgentId { get; set; } - /// The last time when SDS information discovered in SRS. - global::System.DateTime? ReprotectAgentLastDiscoveryInUtc { get; set; } - /// The last heartbeat received from the reprotect agent. - global::System.DateTime? ReprotectAgentLastHeartbeatUtc { get; set; } - /// The reprotect agent name. - string ReprotectAgentName { get; set; } - /// The protected item count. - int? ReprotectAgentProtectedItemCount { get; set; } - /// The Vcenter Id. - string ReprotectAgentVcenterId { get; set; } - /// The version. - string ReprotectAgentVersion { get; set; } - /// The switch provider blocking error information. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceSpecificDetails.PowerShell.cs deleted file mode 100644 index 9fe99daad8c7..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceSpecificDetails.PowerShell.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm appliance specific details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmApplianceSpecificDetailsTypeConverter))] - public partial class InMageRcmApplianceSpecificDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmApplianceSpecificDetails(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.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmApplianceSpecificDetails(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.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmApplianceSpecificDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Appliance")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetailsInternal)this).Appliance = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetails[]) content.GetValueForProperty("Appliance",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetailsInternal)this).Appliance, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmApplianceDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetailsInternal)this).InstanceType, 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 InMageRcmApplianceSpecificDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Appliance")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetailsInternal)this).Appliance = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetails[]) content.GetValueForProperty("Appliance",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetailsInternal)this).Appliance, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmApplianceDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm appliance specific details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmApplianceSpecificDetailsTypeConverter))] - public partial interface IInMageRcmApplianceSpecificDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiscoveredProtectedVMDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiscoveredProtectedVMDetails.PowerShell.cs deleted file mode 100644 index 33526db16e08..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiscoveredProtectedVMDetails.PowerShell.cs +++ /dev/null @@ -1,237 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm discovered protected VM details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmDiscoveredProtectedVMDetailsTypeConverter))] - public partial class InMageRcmDiscoveredProtectedVMDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmDiscoveredProtectedVMDetails(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.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmDiscoveredProtectedVMDetails(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.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmDiscoveredProtectedVMDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VCenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterId = (string) content.GetValueForProperty("VCenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterId, global::System.Convert.ToString); - } - if (content.Contains("VCenterFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn = (string) content.GetValueForProperty("VCenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn, global::System.Convert.ToString); - } - if (content.Contains("Datastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IPAddress = (string[]) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("VmwareToolsStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus = (string) content.GetValueForProperty("VmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus, global::System.Convert.ToString); - } - if (content.Contains("PowerStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).PowerStatus = (string) content.GetValueForProperty("PowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).PowerStatus, global::System.Convert.ToString); - } - if (content.Contains("VMFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VMFqdn = (string) content.GetValueForProperty("VMFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VMFqdn, global::System.Convert.ToString); - } - if (content.Contains("OSName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).OSName = (string) content.GetValueForProperty("OSName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).OSName, global::System.Convert.ToString); - } - if (content.Contains("CreatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("CreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("UpdatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("UpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("IsDeleted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IsDeleted = (bool?) content.GetValueForProperty("IsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("LastDiscoveryTimeInUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("LastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmDiscoveredProtectedVMDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VCenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterId = (string) content.GetValueForProperty("VCenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterId, global::System.Convert.ToString); - } - if (content.Contains("VCenterFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn = (string) content.GetValueForProperty("VCenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn, global::System.Convert.ToString); - } - if (content.Contains("Datastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IPAddress = (string[]) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("VmwareToolsStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus = (string) content.GetValueForProperty("VmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus, global::System.Convert.ToString); - } - if (content.Contains("PowerStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).PowerStatus = (string) content.GetValueForProperty("PowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).PowerStatus, global::System.Convert.ToString); - } - if (content.Contains("VMFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VMFqdn = (string) content.GetValueForProperty("VMFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VMFqdn, global::System.Convert.ToString); - } - if (content.Contains("OSName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).OSName = (string) content.GetValueForProperty("OSName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).OSName, global::System.Convert.ToString); - } - if (content.Contains("CreatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("CreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("UpdatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("UpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("IsDeleted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IsDeleted = (bool?) content.GetValueForProperty("IsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("LastDiscoveryTimeInUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("LastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm discovered protected VM details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmDiscoveredProtectedVMDetailsTypeConverter))] - public partial interface IInMageRcmDiscoveredProtectedVMDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiskInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiskInput.PowerShell.cs deleted file mode 100644 index dd8c93d57731..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiskInput.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm disk input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmDiskInputTypeConverter))] - public partial class InMageRcmDiskInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmDiskInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmDiskInput(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.Migrate.Models.Api20220501.IInMageRcmDiskInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmDiskInput(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.Migrate.Models.Api20220501.IInMageRcmDiskInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmDiskInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).DiskEncryptionSetId, 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 InMageRcmDiskInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal)this).DiskEncryptionSetId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm disk input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmDiskInputTypeConverter))] - public partial interface IInMageRcmDiskInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDisksDefaultInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmDisksDefaultInput.PowerShell.cs deleted file mode 100644 index 8570a0f96044..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDisksDefaultInput.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm disk input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmDisksDefaultInputTypeConverter))] - public partial class InMageRcmDisksDefaultInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmDisksDefaultInput(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.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmDisksDefaultInput(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.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmDisksDefaultInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)this).DiskEncryptionSetId, 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 InMageRcmDisksDefaultInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)this).DiskEncryptionSetId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm disk input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmDisksDefaultInputTypeConverter))] - public partial interface IInMageRcmDisksDefaultInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEnableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmEnableProtectionInput.PowerShell.cs deleted file mode 100644 index b3cb07ff1f59..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEnableProtectionInput.PowerShell.cs +++ /dev/null @@ -1,314 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm specific enable protection input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmEnableProtectionInputTypeConverter))] - public partial class InMageRcmEnableProtectionInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmEnableProtectionInput(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.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmEnableProtectionInput(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.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmEnableProtectionInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DisksDefault")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DisksDefault = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput) content.GetValueForProperty("DisksDefault",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DisksDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDisksDefaultInputTypeConverter.ConvertFrom); - } - if (content.Contains("FabricDiscoveryMachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).FabricDiscoveryMachineId = (string) content.GetValueForProperty("FabricDiscoveryMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).FabricDiscoveryMachineId, global::System.Convert.ToString); - } - if (content.Contains("DisksToInclude")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DisksToInclude = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInput[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDiskInputTypeConverter.ConvertFrom)); - } - if (content.Contains("TargetResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TestNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TestNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TargetSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TestSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetVMName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetBootDiagnosticsStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("DiskDefaultLogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultLogStorageAccountId = (string) content.GetValueForProperty("DiskDefaultLogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultLogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskDefaultDiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType) content.GetValueForProperty("DiskDefaultDiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DiskDefaultDiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskEncryptionSetId = (string) content.GetValueForProperty("DiskDefaultDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskEncryptionSetId, 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 InMageRcmEnableProtectionInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DisksDefault")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DisksDefault = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput) content.GetValueForProperty("DisksDefault",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DisksDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDisksDefaultInputTypeConverter.ConvertFrom); - } - if (content.Contains("FabricDiscoveryMachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).FabricDiscoveryMachineId = (string) content.GetValueForProperty("FabricDiscoveryMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).FabricDiscoveryMachineId, global::System.Convert.ToString); - } - if (content.Contains("DisksToInclude")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DisksToInclude = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInput[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDiskInputTypeConverter.ConvertFrom)); - } - if (content.Contains("TargetResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TestNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TestNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TargetSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TestSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetVMName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetBootDiagnosticsStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("DiskDefaultLogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultLogStorageAccountId = (string) content.GetValueForProperty("DiskDefaultLogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultLogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskDefaultDiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType) content.GetValueForProperty("DiskDefaultDiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DiskDefaultDiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskEncryptionSetId = (string) content.GetValueForProperty("DiskDefaultDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskEncryptionSetId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm specific enable protection input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmEnableProtectionInputTypeConverter))] - public partial interface IInMageRcmEnableProtectionInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmEventDetails.PowerShell.cs deleted file mode 100644 index 0741d41ee551..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEventDetails.PowerShell.cs +++ /dev/null @@ -1,208 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Event details for InMageRcm provider. - [System.ComponentModel.TypeConverter(typeof(InMageRcmEventDetailsTypeConverter))] - public partial class InMageRcmEventDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmEventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmEventDetails(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.Migrate.Models.Api20220501.IInMageRcmEventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmEventDetails(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.Migrate.Models.Api20220501.IInMageRcmEventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmEventDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProtectedItemName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ProtectedItemName = (string) content.GetValueForProperty("ProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ProtectedItemName, global::System.Convert.ToString); - } - if (content.Contains("VMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).VMName, global::System.Convert.ToString); - } - if (content.Contains("LatestAgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).LatestAgentVersion = (string) content.GetValueForProperty("LatestAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).LatestAgentVersion, global::System.Convert.ToString); - } - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("ApplianceName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ApplianceName = (string) content.GetValueForProperty("ApplianceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ApplianceName, global::System.Convert.ToString); - } - if (content.Contains("ServerType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ServerType = (string) content.GetValueForProperty("ServerType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ServerType, global::System.Convert.ToString); - } - if (content.Contains("ComponentDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ComponentDisplayName = (string) content.GetValueForProperty("ComponentDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ComponentDisplayName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 InMageRcmEventDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProtectedItemName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ProtectedItemName = (string) content.GetValueForProperty("ProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ProtectedItemName, global::System.Convert.ToString); - } - if (content.Contains("VMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).VMName, global::System.Convert.ToString); - } - if (content.Contains("LatestAgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).LatestAgentVersion = (string) content.GetValueForProperty("LatestAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).LatestAgentVersion, global::System.Convert.ToString); - } - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("FabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).FabricName, global::System.Convert.ToString); - } - if (content.Contains("ApplianceName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ApplianceName = (string) content.GetValueForProperty("ApplianceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ApplianceName, global::System.Convert.ToString); - } - if (content.Contains("ServerType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ServerType = (string) content.GetValueForProperty("ServerType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ServerType, global::System.Convert.ToString); - } - if (content.Contains("ComponentDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ComponentDisplayName = (string) content.GetValueForProperty("ComponentDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal)this).ComponentDisplayName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Event details for InMageRcm provider. - [System.ComponentModel.TypeConverter(typeof(InMageRcmEventDetailsTypeConverter))] - public partial interface IInMageRcmEventDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricCreationInput.PowerShell.cs deleted file mode 100644 index 3c534df92471..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricCreationInput.PowerShell.cs +++ /dev/null @@ -1,210 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm fabric provider specific settings. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFabricCreationInputTypeConverter))] - public partial class InMageRcmFabricCreationInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmFabricCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmFabricCreationInput(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.Migrate.Models.Api20220501.IInMageRcmFabricCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmFabricCreationInput(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.Migrate.Models.Api20220501.IInMageRcmFabricCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmFabricCreationInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceAgentIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput) content.GetValueForProperty("SourceAgentIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("VmwareSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).VmwareSiteId, global::System.Convert.ToString); - } - if (content.Contains("PhysicalSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).PhysicalSiteId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityTenantId = (string) content.GetValueForProperty("SourceAgentIdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityApplicationId = (string) content.GetValueForProperty("SourceAgentIdentityApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityApplicationId, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityObjectId = (string) content.GetValueForProperty("SourceAgentIdentityObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityObjectId, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAudience = (string) content.GetValueForProperty("SourceAgentIdentityAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAudience, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAadAuthority = (string) content.GetValueForProperty("SourceAgentIdentityAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAadAuthority, 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 InMageRcmFabricCreationInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceAgentIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput) content.GetValueForProperty("SourceAgentIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("VmwareSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).VmwareSiteId, global::System.Convert.ToString); - } - if (content.Contains("PhysicalSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).PhysicalSiteId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityTenantId = (string) content.GetValueForProperty("SourceAgentIdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityApplicationId = (string) content.GetValueForProperty("SourceAgentIdentityApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityApplicationId, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityObjectId = (string) content.GetValueForProperty("SourceAgentIdentityObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityObjectId, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAudience = (string) content.GetValueForProperty("SourceAgentIdentityAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAudience, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAadAuthority = (string) content.GetValueForProperty("SourceAgentIdentityAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAadAuthority, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm fabric provider specific settings. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFabricCreationInputTypeConverter))] - public partial interface IInMageRcmFabricCreationInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSpecificDetails.PowerShell.cs deleted file mode 100644 index df9c86418fab..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSpecificDetails.PowerShell.cs +++ /dev/null @@ -1,314 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm fabric specific details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFabricSpecificDetailsTypeConverter))] - public partial class InMageRcmFabricSpecificDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmFabricSpecificDetails(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.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmFabricSpecificDetails(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.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmFabricSpecificDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceAgentIdentityDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails) content.GetValueForProperty("SourceAgentIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("VmwareSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).VmwareSiteId, global::System.Convert.ToString); - } - if (content.Contains("PhysicalSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).PhysicalSiteId, global::System.Convert.ToString); - } - if (content.Contains("ServiceEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ServiceEndpoint = (string) content.GetValueForProperty("ServiceEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ServiceEndpoint, global::System.Convert.ToString); - } - if (content.Contains("ServiceResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ServiceResourceId = (string) content.GetValueForProperty("ServiceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ServiceResourceId, global::System.Convert.ToString); - } - if (content.Contains("ServiceContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ServiceContainerId = (string) content.GetValueForProperty("ServiceContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ServiceContainerId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).DataPlaneUri = (string) content.GetValueForProperty("DataPlaneUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).DataPlaneUri, global::System.Convert.ToString); - } - if (content.Contains("ControlPlaneUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ControlPlaneUri = (string) content.GetValueForProperty("ControlPlaneUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ControlPlaneUri, global::System.Convert.ToString); - } - if (content.Contains("ProcessServer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails[]) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ProcessServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RcmProxy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).RcmProxy = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails[]) content.GetValueForProperty("RcmProxy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).RcmProxy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RcmProxyDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("PushInstaller")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).PushInstaller = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails[]) content.GetValueForProperty("PushInstaller",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).PushInstaller, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PushInstallerDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("ReplicationAgent")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ReplicationAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails[]) content.GetValueForProperty("ReplicationAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ReplicationAgent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationAgentDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("ReprotectAgent")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ReprotectAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails[]) content.GetValueForProperty("ReprotectAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ReprotectAgent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReprotectAgentDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("MarsAgent")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).MarsAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails[]) content.GetValueForProperty("MarsAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).MarsAgent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MarsAgentDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("Dra")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).Dra = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails[]) content.GetValueForProperty("Dra",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).Dra, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DraDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("AgentDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).AgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetails[]) content.GetValueForProperty("AgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).AgentDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AgentDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityDetailTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailTenantId = (string) content.GetValueForProperty("SourceAgentIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailTenantId, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityDetailApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailApplicationId = (string) content.GetValueForProperty("SourceAgentIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailApplicationId, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityDetailObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailObjectId = (string) content.GetValueForProperty("SourceAgentIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailObjectId, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityDetailAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAudience = (string) content.GetValueForProperty("SourceAgentIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAudience, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityDetailAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAadAuthority = (string) content.GetValueForProperty("SourceAgentIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAadAuthority, 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 InMageRcmFabricSpecificDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceAgentIdentityDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails) content.GetValueForProperty("SourceAgentIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("VmwareSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).VmwareSiteId, global::System.Convert.ToString); - } - if (content.Contains("PhysicalSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).PhysicalSiteId, global::System.Convert.ToString); - } - if (content.Contains("ServiceEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ServiceEndpoint = (string) content.GetValueForProperty("ServiceEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ServiceEndpoint, global::System.Convert.ToString); - } - if (content.Contains("ServiceResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ServiceResourceId = (string) content.GetValueForProperty("ServiceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ServiceResourceId, global::System.Convert.ToString); - } - if (content.Contains("ServiceContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ServiceContainerId = (string) content.GetValueForProperty("ServiceContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ServiceContainerId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).DataPlaneUri = (string) content.GetValueForProperty("DataPlaneUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).DataPlaneUri, global::System.Convert.ToString); - } - if (content.Contains("ControlPlaneUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ControlPlaneUri = (string) content.GetValueForProperty("ControlPlaneUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ControlPlaneUri, global::System.Convert.ToString); - } - if (content.Contains("ProcessServer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails[]) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ProcessServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RcmProxy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).RcmProxy = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails[]) content.GetValueForProperty("RcmProxy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).RcmProxy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RcmProxyDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("PushInstaller")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).PushInstaller = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails[]) content.GetValueForProperty("PushInstaller",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).PushInstaller, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PushInstallerDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("ReplicationAgent")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ReplicationAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails[]) content.GetValueForProperty("ReplicationAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ReplicationAgent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationAgentDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("ReprotectAgent")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ReprotectAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails[]) content.GetValueForProperty("ReprotectAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).ReprotectAgent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReprotectAgentDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("MarsAgent")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).MarsAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails[]) content.GetValueForProperty("MarsAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).MarsAgent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MarsAgentDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("Dra")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).Dra = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails[]) content.GetValueForProperty("Dra",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).Dra, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DraDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("AgentDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).AgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetails[]) content.GetValueForProperty("AgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).AgentDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AgentDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityDetailTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailTenantId = (string) content.GetValueForProperty("SourceAgentIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailTenantId, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityDetailApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailApplicationId = (string) content.GetValueForProperty("SourceAgentIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailApplicationId, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityDetailObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailObjectId = (string) content.GetValueForProperty("SourceAgentIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailObjectId, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityDetailAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAudience = (string) content.GetValueForProperty("SourceAgentIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAudience, global::System.Convert.ToString); - } - if (content.Contains("SourceAgentIdentityDetailAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAadAuthority = (string) content.GetValueForProperty("SourceAgentIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAadAuthority, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm fabric specific details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFabricSpecificDetailsTypeConverter))] - public partial interface IInMageRcmFabricSpecificDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetails.PowerShell.cs deleted file mode 100644 index 28c46807332b..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetails.PowerShell.cs +++ /dev/null @@ -1,189 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcmFabric switch provider blocking error details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFabricSwitchProviderBlockingErrorDetailsTypeConverter))] - public partial class InMageRcmFabricSwitchProviderBlockingErrorDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmFabricSwitchProviderBlockingErrorDetails(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.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmFabricSwitchProviderBlockingErrorDetails(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.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmFabricSwitchProviderBlockingErrorDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessageParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); - } - if (content.Contains("ErrorTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTagsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmFabricSwitchProviderBlockingErrorDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessageParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); - } - if (content.Contains("ErrorTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTagsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcmFabric switch provider blocking error details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFabricSwitchProviderBlockingErrorDetailsTypeConverter))] - public partial interface IInMageRcmFabricSwitchProviderBlockingErrorDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetails.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetails.cs deleted file mode 100644 index 93a452e549b3..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetails.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// InMageRcmFabric switch provider blocking error details. - public partial class InMageRcmFabricSwitchProviderBlockingErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal - { - - /// Backing field for property. - private string _errorCode; - - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ErrorCode { get => this._errorCode; } - - /// Backing field for property. - private string _errorMessage; - - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ErrorMessage { get => this._errorMessage; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters _errorMessageParameter; - - /// The error message parameters. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters()); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags _errorTag; - - /// The error tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags()); } - - /// Internal Acessors for ErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal.ErrorCode { get => this._errorCode; set { {_errorCode = value;} } } - - /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal.ErrorMessage { get => this._errorMessage; set { {_errorMessage = value;} } } - - /// Internal Acessors for ErrorMessageParameter - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal.ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters()); set { {_errorMessageParameter = value;} } } - - /// Internal Acessors for ErrorTag - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal.ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags()); set { {_errorTag = value;} } } - - /// Internal Acessors for PossibleCaus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal.PossibleCaus { get => this._possibleCaus; set { {_possibleCaus = value;} } } - - /// Internal Acessors for RecommendedAction - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal.RecommendedAction { get => this._recommendedAction; set { {_recommendedAction = value;} } } - - /// Backing field for property. - private string _possibleCaus; - - /// The possible causes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PossibleCaus { get => this._possibleCaus; } - - /// Backing field for property. - private string _recommendedAction; - - /// The recommended action. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecommendedAction { get => this._recommendedAction; } - - /// - /// Creates an new instance. - /// - public InMageRcmFabricSwitchProviderBlockingErrorDetails() - { - - } - } - /// InMageRcmFabric switch provider blocking error details. - public partial interface IInMageRcmFabricSwitchProviderBlockingErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error code.", - SerializedName = @"errorCode", - PossibleTypes = new [] { typeof(string) })] - string ErrorCode { get; } - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error message.", - SerializedName = @"errorMessage", - PossibleTypes = new [] { typeof(string) })] - string ErrorMessage { get; } - /// The error message parameters. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error message parameters.", - SerializedName = @"errorMessageParameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; } - /// The error tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error tags.", - SerializedName = @"errorTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get; } - /// The possible causes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The possible causes.", - SerializedName = @"possibleCauses", - PossibleTypes = new [] { typeof(string) })] - string PossibleCaus { get; } - /// The recommended action. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The recommended action.", - SerializedName = @"recommendedAction", - PossibleTypes = new [] { typeof(string) })] - string RecommendedAction { get; } - - } - /// InMageRcmFabric switch provider blocking error details. - internal partial interface IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal - - { - /// The error code. - string ErrorCode { get; set; } - /// The error message. - string ErrorMessage { get; set; } - /// The error message parameters. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; set; } - /// The error tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get; set; } - /// The possible causes. - string PossibleCaus { get; set; } - /// The recommended action. - string RecommendedAction { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackDiscoveredProtectedVMDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackDiscoveredProtectedVMDetails.PowerShell.cs deleted file mode 100644 index 5c136bb346f3..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackDiscoveredProtectedVMDetails.PowerShell.cs +++ /dev/null @@ -1,237 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcmFailback discovered VM details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackDiscoveredProtectedVMDetailsTypeConverter))] - public partial class InMageRcmFailbackDiscoveredProtectedVMDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmFailbackDiscoveredProtectedVMDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmFailbackDiscoveredProtectedVMDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmFailbackDiscoveredProtectedVMDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VCenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterId = (string) content.GetValueForProperty("VCenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterId, global::System.Convert.ToString); - } - if (content.Contains("VCenterFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn = (string) content.GetValueForProperty("VCenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn, global::System.Convert.ToString); - } - if (content.Contains("Datastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IPAddress = (string[]) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("VmwareToolsStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus = (string) content.GetValueForProperty("VmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus, global::System.Convert.ToString); - } - if (content.Contains("PowerStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).PowerStatus = (string) content.GetValueForProperty("PowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).PowerStatus, global::System.Convert.ToString); - } - if (content.Contains("VMFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VMFqdn = (string) content.GetValueForProperty("VMFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VMFqdn, global::System.Convert.ToString); - } - if (content.Contains("OSName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).OSName = (string) content.GetValueForProperty("OSName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).OSName, global::System.Convert.ToString); - } - if (content.Contains("CreatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("CreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("UpdatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("UpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("IsDeleted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IsDeleted = (bool?) content.GetValueForProperty("IsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("LastDiscoveryTimeInUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("LastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmFailbackDiscoveredProtectedVMDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VCenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterId = (string) content.GetValueForProperty("VCenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterId, global::System.Convert.ToString); - } - if (content.Contains("VCenterFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn = (string) content.GetValueForProperty("VCenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn, global::System.Convert.ToString); - } - if (content.Contains("Datastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IPAddress = (string[]) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("VmwareToolsStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus = (string) content.GetValueForProperty("VmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus, global::System.Convert.ToString); - } - if (content.Contains("PowerStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).PowerStatus = (string) content.GetValueForProperty("PowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).PowerStatus, global::System.Convert.ToString); - } - if (content.Contains("VMFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VMFqdn = (string) content.GetValueForProperty("VMFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VMFqdn, global::System.Convert.ToString); - } - if (content.Contains("OSName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).OSName = (string) content.GetValueForProperty("OSName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).OSName, global::System.Convert.ToString); - } - if (content.Contains("CreatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("CreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("UpdatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("UpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("IsDeleted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IsDeleted = (bool?) content.GetValueForProperty("IsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("LastDiscoveryTimeInUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("LastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcmFailback discovered VM details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackDiscoveredProtectedVMDetailsTypeConverter))] - public partial interface IInMageRcmFailbackDiscoveredProtectedVMDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackEventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackEventDetails.PowerShell.cs deleted file mode 100644 index eb6599377488..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackEventDetails.PowerShell.cs +++ /dev/null @@ -1,186 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Event details for InMageRcmFailback provider. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackEventDetailsTypeConverter))] - public partial class InMageRcmFailbackEventDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmFailbackEventDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmFailbackEventDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmFailbackEventDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProtectedItemName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ProtectedItemName = (string) content.GetValueForProperty("ProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ProtectedItemName, global::System.Convert.ToString); - } - if (content.Contains("VMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).VMName, global::System.Convert.ToString); - } - if (content.Contains("ApplianceName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ApplianceName = (string) content.GetValueForProperty("ApplianceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ApplianceName, global::System.Convert.ToString); - } - if (content.Contains("ServerType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ServerType = (string) content.GetValueForProperty("ServerType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ServerType, global::System.Convert.ToString); - } - if (content.Contains("ComponentDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ComponentDisplayName = (string) content.GetValueForProperty("ComponentDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ComponentDisplayName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 InMageRcmFailbackEventDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProtectedItemName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ProtectedItemName = (string) content.GetValueForProperty("ProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ProtectedItemName, global::System.Convert.ToString); - } - if (content.Contains("VMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).VMName, global::System.Convert.ToString); - } - if (content.Contains("ApplianceName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ApplianceName = (string) content.GetValueForProperty("ApplianceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ApplianceName, global::System.Convert.ToString); - } - if (content.Contains("ServerType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ServerType = (string) content.GetValueForProperty("ServerType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ServerType, global::System.Convert.ToString); - } - if (content.Contains("ComponentDisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ComponentDisplayName = (string) content.GetValueForProperty("ComponentDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal)this).ComponentDisplayName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Event details for InMageRcmFailback provider. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackEventDetailsTypeConverter))] - public partial interface IInMageRcmFailbackEventDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackMobilityAgentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackMobilityAgentDetails.PowerShell.cs deleted file mode 100644 index 8fc680e94735..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackMobilityAgentDetails.PowerShell.cs +++ /dev/null @@ -1,213 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcmFailback mobility agent details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackMobilityAgentDetailsTypeConverter))] - public partial class InMageRcmFailbackMobilityAgentDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmFailbackMobilityAgentDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmFailbackMobilityAgentDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmFailbackMobilityAgentDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LatestVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestVersion = (string) content.GetValueForProperty("LatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestVersion, global::System.Convert.ToString); - } - if (content.Contains("DriverVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersion = (string) content.GetValueForProperty("DriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersion, global::System.Convert.ToString); - } - if (content.Contains("LatestUpgradableVersionWithoutReboot")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("LatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); - } - if (content.Contains("AgentVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).AgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).AgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DriverVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("DriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ReasonsBlockingUpgrade")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("ReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); - } - if (content.Contains("IsUpgradeable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).IsUpgradeable = (string) content.GetValueForProperty("IsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).IsUpgradeable, 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 InMageRcmFailbackMobilityAgentDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LatestVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestVersion = (string) content.GetValueForProperty("LatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestVersion, global::System.Convert.ToString); - } - if (content.Contains("DriverVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersion = (string) content.GetValueForProperty("DriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersion, global::System.Convert.ToString); - } - if (content.Contains("LatestUpgradableVersionWithoutReboot")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("LatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); - } - if (content.Contains("AgentVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).AgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).AgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DriverVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("DriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ReasonsBlockingUpgrade")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("ReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); - } - if (content.Contains("IsUpgradeable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).IsUpgradeable = (string) content.GetValueForProperty("IsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)this).IsUpgradeable, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcmFailback mobility agent details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackMobilityAgentDetailsTypeConverter))] - public partial interface IInMageRcmFailbackMobilityAgentDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackNicDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackNicDetails.PowerShell.cs deleted file mode 100644 index 69899c3f6227..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackNicDetails.PowerShell.cs +++ /dev/null @@ -1,170 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcmFailback NIC details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackNicDetailsTypeConverter))] - public partial class InMageRcmFailbackNicDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmFailbackNicDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmFailbackNicDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmFailbackNicDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MacAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).MacAddress = (string) content.GetValueForProperty("MacAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).MacAddress, global::System.Convert.ToString); - } - if (content.Contains("NetworkName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).NetworkName = (string) content.GetValueForProperty("NetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).NetworkName, global::System.Convert.ToString); - } - if (content.Contains("AdapterType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).AdapterType = (string) content.GetValueForProperty("AdapterType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).AdapterType, global::System.Convert.ToString); - } - if (content.Contains("SourceIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).SourceIPAddress = (string) content.GetValueForProperty("SourceIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).SourceIPAddress, 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 InMageRcmFailbackNicDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MacAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).MacAddress = (string) content.GetValueForProperty("MacAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).MacAddress, global::System.Convert.ToString); - } - if (content.Contains("NetworkName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).NetworkName = (string) content.GetValueForProperty("NetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).NetworkName, global::System.Convert.ToString); - } - if (content.Contains("AdapterType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).AdapterType = (string) content.GetValueForProperty("AdapterType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).AdapterType, global::System.Convert.ToString); - } - if (content.Contains("SourceIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).SourceIPAddress = (string) content.GetValueForProperty("SourceIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal)this).SourceIPAddress, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcmFailback NIC details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackNicDetailsTypeConverter))] - public partial interface IInMageRcmFailbackNicDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPlannedFailoverProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPlannedFailoverProviderInput.PowerShell.cs deleted file mode 100644 index c1466cc0fb5b..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPlannedFailoverProviderInput.PowerShell.cs +++ /dev/null @@ -1,157 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Provider specific input for InMageRcmFailback failover. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackPlannedFailoverProviderInputTypeConverter))] - public partial class InMageRcmFailbackPlannedFailoverProviderInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmFailbackPlannedFailoverProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmFailbackPlannedFailoverProviderInput(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.Migrate.Models.Api20220501.IInMageRcmFailbackPlannedFailoverProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmFailbackPlannedFailoverProviderInput(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.Migrate.Models.Api20220501.IInMageRcmFailbackPlannedFailoverProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmFailbackPlannedFailoverProviderInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPlannedFailoverProviderInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPlannedFailoverProviderInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, 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 InMageRcmFailbackPlannedFailoverProviderInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPlannedFailoverProviderInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPlannedFailoverProviderInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Provider specific input for InMageRcmFailback failover. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackPlannedFailoverProviderInputTypeConverter))] - public partial interface IInMageRcmFailbackPlannedFailoverProviderInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyCreationInput.PowerShell.cs deleted file mode 100644 index 191ebcc08492..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyCreationInput.PowerShell.cs +++ /dev/null @@ -1,164 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcmFailback policy creation input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackPolicyCreationInputTypeConverter))] - public partial class InMageRcmFailbackPolicyCreationInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmFailbackPolicyCreationInput(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.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmFailbackPolicyCreationInput(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.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmFailbackPolicyCreationInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 InMageRcmFailbackPolicyCreationInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcmFailback policy creation input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackPolicyCreationInputTypeConverter))] - public partial interface IInMageRcmFailbackPolicyCreationInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyDetails.PowerShell.cs deleted file mode 100644 index dce0fcfd7020..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyDetails.PowerShell.cs +++ /dev/null @@ -1,162 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm failback specific policy details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackPolicyDetailsTypeConverter))] - public partial class InMageRcmFailbackPolicyDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmFailbackPolicyDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmFailbackPolicyDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmFailbackPolicyDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 InMageRcmFailbackPolicyDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm failback specific policy details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackPolicyDetailsTypeConverter))] - public partial interface IInMageRcmFailbackPolicyDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackProtectedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackProtectedDiskDetails.PowerShell.cs deleted file mode 100644 index c0bcc5acdafe..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackProtectedDiskDetails.PowerShell.cs +++ /dev/null @@ -1,357 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcmFailback protected disk details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackProtectedDiskDetailsTypeConverter))] - public partial class InMageRcmFailbackProtectedDiskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmFailbackProtectedDiskDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmFailbackProtectedDiskDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmFailbackProtectedDiskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("IrDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails) content.GetValueForProperty("IrDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackSyncDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ResyncDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails) content.GetValueForProperty("ResyncDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackSyncDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("IsOSDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); - } - if (content.Contains("CapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("DiskUuid")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskUuid = (string) content.GetValueForProperty("DiskUuid",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskUuid, global::System.Convert.ToString); - } - if (content.Contains("DataPendingInLogDataStoreInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb = (double?) content.GetValueForProperty("DataPendingInLogDataStoreInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DataPendingAtSourceAgentInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("IsInitialReplicationComplete")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsInitialReplicationComplete = (string) content.GetValueForProperty("IsInitialReplicationComplete",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsInitialReplicationComplete, global::System.Convert.ToString); - } - if (content.Contains("LastSyncTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).LastSyncTime = (global::System.DateTime?) content.GetValueForProperty("LastSyncTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).LastSyncTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("IrDetailProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("IrDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); - } - if (content.Contains("IrDetailTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailTransferredByte = (long?) content.GetValueForProperty("IrDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("IrDetailLast15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("IrDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("IrDetailLastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("IrDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("IrDetailProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProcessedByte = (long?) content.GetValueForProperty("IrDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("IrDetailStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailStartTime = (string) content.GetValueForProperty("IrDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailStartTime, global::System.Convert.ToString); - } - if (content.Contains("IrDetailLastRefreshTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime = (string) content.GetValueForProperty("IrDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime, global::System.Convert.ToString); - } - if (content.Contains("IrDetailProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressPercentage = (int?) content.GetValueForProperty("IrDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResyncDetailProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ResyncDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); - } - if (content.Contains("ResyncDetailTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte = (long?) content.GetValueForProperty("ResyncDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncDetailLast15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncDetailLastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("ResyncDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte = (long?) content.GetValueForProperty("ResyncDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncDetailStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailStartTime = (string) content.GetValueForProperty("ResyncDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailStartTime, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailLastRefreshTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime = (string) content.GetValueForProperty("ResyncDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage = (int?) content.GetValueForProperty("ResyncDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmFailbackProtectedDiskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("IrDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails) content.GetValueForProperty("IrDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackSyncDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ResyncDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails) content.GetValueForProperty("ResyncDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackSyncDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("IsOSDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); - } - if (content.Contains("CapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("DiskUuid")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskUuid = (string) content.GetValueForProperty("DiskUuid",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskUuid, global::System.Convert.ToString); - } - if (content.Contains("DataPendingInLogDataStoreInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb = (double?) content.GetValueForProperty("DataPendingInLogDataStoreInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DataPendingAtSourceAgentInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("IsInitialReplicationComplete")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsInitialReplicationComplete = (string) content.GetValueForProperty("IsInitialReplicationComplete",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsInitialReplicationComplete, global::System.Convert.ToString); - } - if (content.Contains("LastSyncTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).LastSyncTime = (global::System.DateTime?) content.GetValueForProperty("LastSyncTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).LastSyncTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("IrDetailProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("IrDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); - } - if (content.Contains("IrDetailTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailTransferredByte = (long?) content.GetValueForProperty("IrDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("IrDetailLast15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("IrDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("IrDetailLastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("IrDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("IrDetailProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProcessedByte = (long?) content.GetValueForProperty("IrDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("IrDetailStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailStartTime = (string) content.GetValueForProperty("IrDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailStartTime, global::System.Convert.ToString); - } - if (content.Contains("IrDetailLastRefreshTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime = (string) content.GetValueForProperty("IrDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime, global::System.Convert.ToString); - } - if (content.Contains("IrDetailProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressPercentage = (int?) content.GetValueForProperty("IrDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResyncDetailProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ResyncDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); - } - if (content.Contains("ResyncDetailTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte = (long?) content.GetValueForProperty("ResyncDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncDetailLast15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncDetailLastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("ResyncDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte = (long?) content.GetValueForProperty("ResyncDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncDetailStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailStartTime = (string) content.GetValueForProperty("ResyncDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailStartTime, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailLastRefreshTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime = (string) content.GetValueForProperty("ResyncDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage = (int?) content.GetValueForProperty("ResyncDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcmFailback protected disk details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackProtectedDiskDetailsTypeConverter))] - public partial interface IInMageRcmFailbackProtectedDiskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackProtectedDiskDetails.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackProtectedDiskDetails.cs deleted file mode 100644 index e0e1bac2c8ec..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackProtectedDiskDetails.cs +++ /dev/null @@ -1,534 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// InMageRcmFailback protected disk details. - public partial class InMageRcmFailbackProtectedDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal - { - - /// Backing field for property. - private long? _capacityInByte; - - /// The disk capacity in bytes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public long? CapacityInByte { get => this._capacityInByte; } - - /// Backing field for property. - private double? _dataPendingAtSourceAgentInMb; - - /// The data pending at source agent in MB. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public double? DataPendingAtSourceAgentInMb { get => this._dataPendingAtSourceAgentInMb; } - - /// Backing field for property. - private double? _dataPendingInLogDataStoreInMb; - - /// The data pending in log data store in MB. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public double? DataPendingInLogDataStoreInMb { get => this._dataPendingInLogDataStoreInMb; } - - /// Backing field for property. - private string _diskId; - - /// The disk Id (reported by source agent). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string DiskId { get => this._diskId; } - - /// Backing field for property. - private string _diskName; - - /// The disk name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string DiskName { get => this._diskName; } - - /// Backing field for property. - private string _diskUuid; - - /// The disk Uuid (reported by vCenter). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string DiskUuid { get => this._diskUuid; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails _irDetail; - - /// The initial replication details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails IrDetail { get => (this._irDetail = this._irDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackSyncDetails()); set => this._irDetail = value; } - - /// The bytes transferred in last 15 minutes from source VM to target. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public long? IrDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).Last15MinutesTransferredByte; } - - /// The time of the last data transfer from source VM to target. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string IrDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).LastDataTransferTimeUtc; } - - /// The last refresh time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string IrDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).LastRefreshTime; } - - /// - /// The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public long? IrDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProcessedByte; } - - /// The progress health. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? IrDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProgressHealth; } - - /// - /// Progress in percentage. Progress percentage is calculated based on processed bytes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? IrDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProgressPercentage; } - - /// The start time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string IrDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).StartTime; } - - /// The transferred bytes from source VM to azure for the disk. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public long? IrDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).TransferredByte; } - - /// Backing field for property. - private string _isInitialReplicationComplete; - - /// A value indicating whether initial replication is complete or not. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string IsInitialReplicationComplete { get => this._isInitialReplicationComplete; } - - /// Backing field for property. - private string _isOSDisk; - - /// A value indicating whether the disk is the OS disk. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string IsOSDisk { get => this._isOSDisk; } - - /// Backing field for property. - private global::System.DateTime? _lastSyncTime; - - /// The last sync time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public global::System.DateTime? LastSyncTime { get => this._lastSyncTime; } - - /// Internal Acessors for CapacityInByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.CapacityInByte { get => this._capacityInByte; set { {_capacityInByte = value;} } } - - /// Internal Acessors for DataPendingAtSourceAgentInMb - double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.DataPendingAtSourceAgentInMb { get => this._dataPendingAtSourceAgentInMb; set { {_dataPendingAtSourceAgentInMb = value;} } } - - /// Internal Acessors for DataPendingInLogDataStoreInMb - double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.DataPendingInLogDataStoreInMb { get => this._dataPendingInLogDataStoreInMb; set { {_dataPendingInLogDataStoreInMb = value;} } } - - /// Internal Acessors for DiskId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.DiskId { get => this._diskId; set { {_diskId = value;} } } - - /// Internal Acessors for DiskName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.DiskName { get => this._diskName; set { {_diskName = value;} } } - - /// Internal Acessors for DiskUuid - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.DiskUuid { get => this._diskUuid; set { {_diskUuid = value;} } } - - /// Internal Acessors for IrDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetail { get => (this._irDetail = this._irDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackSyncDetails()); set { {_irDetail = value;} } } - - /// Internal Acessors for IrDetailLast15MinutesTransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).Last15MinutesTransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).Last15MinutesTransferredByte = value; } - - /// Internal Acessors for IrDetailLastDataTransferTimeUtc - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).LastDataTransferTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).LastDataTransferTimeUtc = value; } - - /// Internal Acessors for IrDetailLastRefreshTime - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).LastRefreshTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).LastRefreshTime = value; } - - /// Internal Acessors for IrDetailProcessedByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProcessedByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProcessedByte = value; } - - /// Internal Acessors for IrDetailProgressHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProgressHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProgressHealth = value; } - - /// Internal Acessors for IrDetailProgressPercentage - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProgressPercentage = value; } - - /// Internal Acessors for IrDetailStartTime - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).StartTime = value; } - - /// Internal Acessors for IrDetailTransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).TransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)IrDetail).TransferredByte = value; } - - /// Internal Acessors for IsInitialReplicationComplete - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.IsInitialReplicationComplete { get => this._isInitialReplicationComplete; set { {_isInitialReplicationComplete = value;} } } - - /// Internal Acessors for IsOSDisk - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.IsOSDisk { get => this._isOSDisk; set { {_isOSDisk = value;} } } - - /// Internal Acessors for LastSyncTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.LastSyncTime { get => this._lastSyncTime; set { {_lastSyncTime = value;} } } - - /// Internal Acessors for ResyncDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetail { get => (this._resyncDetail = this._resyncDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackSyncDetails()); set { {_resyncDetail = value;} } } - - /// Internal Acessors for ResyncDetailLast15MinutesTransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).Last15MinutesTransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).Last15MinutesTransferredByte = value; } - - /// Internal Acessors for ResyncDetailLastDataTransferTimeUtc - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).LastDataTransferTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).LastDataTransferTimeUtc = value; } - - /// Internal Acessors for ResyncDetailLastRefreshTime - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).LastRefreshTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).LastRefreshTime = value; } - - /// Internal Acessors for ResyncDetailProcessedByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProcessedByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProcessedByte = value; } - - /// Internal Acessors for ResyncDetailProgressHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProgressHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProgressHealth = value; } - - /// Internal Acessors for ResyncDetailProgressPercentage - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProgressPercentage = value; } - - /// Internal Acessors for ResyncDetailStartTime - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).StartTime = value; } - - /// Internal Acessors for ResyncDetailTransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).TransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).TransferredByte = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails _resyncDetail; - - /// The resync details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails ResyncDetail { get => (this._resyncDetail = this._resyncDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackSyncDetails()); set => this._resyncDetail = value; } - - /// The bytes transferred in last 15 minutes from source VM to target. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public long? ResyncDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).Last15MinutesTransferredByte; } - - /// The time of the last data transfer from source VM to target. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResyncDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).LastDataTransferTimeUtc; } - - /// The last refresh time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResyncDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).LastRefreshTime; } - - /// - /// The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public long? ResyncDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProcessedByte; } - - /// The progress health. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? ResyncDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProgressHealth; } - - /// - /// Progress in percentage. Progress percentage is calculated based on processed bytes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? ResyncDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProgressPercentage; } - - /// The start time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResyncDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).StartTime; } - - /// The transferred bytes from source VM to azure for the disk. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public long? ResyncDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).TransferredByte; } - - /// Creates an new instance. - public InMageRcmFailbackProtectedDiskDetails() - { - - } - } - /// InMageRcmFailback protected disk details. - public partial interface IInMageRcmFailbackProtectedDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The disk capacity in bytes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The disk capacity in bytes.", - SerializedName = @"capacityInBytes", - PossibleTypes = new [] { typeof(long) })] - long? CapacityInByte { get; } - /// The data pending at source agent in MB. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The data pending at source agent in MB.", - SerializedName = @"dataPendingAtSourceAgentInMB", - PossibleTypes = new [] { typeof(double) })] - double? DataPendingAtSourceAgentInMb { get; } - /// The data pending in log data store in MB. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The data pending in log data store in MB.", - SerializedName = @"dataPendingInLogDataStoreInMB", - PossibleTypes = new [] { typeof(double) })] - double? DataPendingInLogDataStoreInMb { get; } - /// The disk Id (reported by source agent). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The disk Id (reported by source agent).", - SerializedName = @"diskId", - PossibleTypes = new [] { typeof(string) })] - string DiskId { get; } - /// The disk name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The disk name.", - SerializedName = @"diskName", - PossibleTypes = new [] { typeof(string) })] - string DiskName { get; } - /// The disk Uuid (reported by vCenter). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The disk Uuid (reported by vCenter).", - SerializedName = @"diskUuid", - PossibleTypes = new [] { typeof(string) })] - string DiskUuid { get; } - /// The bytes transferred in last 15 minutes from source VM to target. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The bytes transferred in last 15 minutes from source VM to target.", - SerializedName = @"last15MinutesTransferredBytes", - PossibleTypes = new [] { typeof(long) })] - long? IrDetailLast15MinutesTransferredByte { get; } - /// The time of the last data transfer from source VM to target. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The time of the last data transfer from source VM to target.", - SerializedName = @"lastDataTransferTimeUtc", - PossibleTypes = new [] { typeof(string) })] - string IrDetailLastDataTransferTimeUtc { get; } - /// The last refresh time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The last refresh time.", - SerializedName = @"lastRefreshTime", - PossibleTypes = new [] { typeof(string) })] - string IrDetailLastRefreshTime { get; } - /// - /// The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes.", - SerializedName = @"processedBytes", - PossibleTypes = new [] { typeof(long) })] - long? IrDetailProcessedByte { get; } - /// The progress health. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The progress health.", - SerializedName = @"progressHealth", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? IrDetailProgressHealth { get; } - /// - /// Progress in percentage. Progress percentage is calculated based on processed bytes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Progress in percentage. Progress percentage is calculated based on processed bytes.", - SerializedName = @"progressPercentage", - PossibleTypes = new [] { typeof(int) })] - int? IrDetailProgressPercentage { get; } - /// The start time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The start time.", - SerializedName = @"startTime", - PossibleTypes = new [] { typeof(string) })] - string IrDetailStartTime { get; } - /// The transferred bytes from source VM to azure for the disk. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The transferred bytes from source VM to azure for the disk.", - SerializedName = @"transferredBytes", - PossibleTypes = new [] { typeof(long) })] - long? IrDetailTransferredByte { get; } - /// A value indicating whether initial replication is complete or not. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"A value indicating whether initial replication is complete or not.", - SerializedName = @"isInitialReplicationComplete", - PossibleTypes = new [] { typeof(string) })] - string IsInitialReplicationComplete { get; } - /// A value indicating whether the disk is the OS disk. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"A value indicating whether the disk is the OS disk.", - SerializedName = @"isOSDisk", - PossibleTypes = new [] { typeof(string) })] - string IsOSDisk { get; } - /// The last sync time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The last sync time.", - SerializedName = @"lastSyncTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? LastSyncTime { get; } - /// The bytes transferred in last 15 minutes from source VM to target. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The bytes transferred in last 15 minutes from source VM to target.", - SerializedName = @"last15MinutesTransferredBytes", - PossibleTypes = new [] { typeof(long) })] - long? ResyncDetailLast15MinutesTransferredByte { get; } - /// The time of the last data transfer from source VM to target. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The time of the last data transfer from source VM to target.", - SerializedName = @"lastDataTransferTimeUtc", - PossibleTypes = new [] { typeof(string) })] - string ResyncDetailLastDataTransferTimeUtc { get; } - /// The last refresh time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The last refresh time.", - SerializedName = @"lastRefreshTime", - PossibleTypes = new [] { typeof(string) })] - string ResyncDetailLastRefreshTime { get; } - /// - /// The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes.", - SerializedName = @"processedBytes", - PossibleTypes = new [] { typeof(long) })] - long? ResyncDetailProcessedByte { get; } - /// The progress health. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The progress health.", - SerializedName = @"progressHealth", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? ResyncDetailProgressHealth { get; } - /// - /// Progress in percentage. Progress percentage is calculated based on processed bytes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Progress in percentage. Progress percentage is calculated based on processed bytes.", - SerializedName = @"progressPercentage", - PossibleTypes = new [] { typeof(int) })] - int? ResyncDetailProgressPercentage { get; } - /// The start time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The start time.", - SerializedName = @"startTime", - PossibleTypes = new [] { typeof(string) })] - string ResyncDetailStartTime { get; } - /// The transferred bytes from source VM to azure for the disk. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The transferred bytes from source VM to azure for the disk.", - SerializedName = @"transferredBytes", - PossibleTypes = new [] { typeof(long) })] - long? ResyncDetailTransferredByte { get; } - - } - /// InMageRcmFailback protected disk details. - internal partial interface IInMageRcmFailbackProtectedDiskDetailsInternal - - { - /// The disk capacity in bytes. - long? CapacityInByte { get; set; } - /// The data pending at source agent in MB. - double? DataPendingAtSourceAgentInMb { get; set; } - /// The data pending in log data store in MB. - double? DataPendingInLogDataStoreInMb { get; set; } - /// The disk Id (reported by source agent). - string DiskId { get; set; } - /// The disk name. - string DiskName { get; set; } - /// The disk Uuid (reported by vCenter). - string DiskUuid { get; set; } - /// The initial replication details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails IrDetail { get; set; } - /// The bytes transferred in last 15 minutes from source VM to target. - long? IrDetailLast15MinutesTransferredByte { get; set; } - /// The time of the last data transfer from source VM to target. - string IrDetailLastDataTransferTimeUtc { get; set; } - /// The last refresh time. - string IrDetailLastRefreshTime { get; set; } - /// - /// The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes. - /// - long? IrDetailProcessedByte { get; set; } - /// The progress health. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? IrDetailProgressHealth { get; set; } - /// - /// Progress in percentage. Progress percentage is calculated based on processed bytes. - /// - int? IrDetailProgressPercentage { get; set; } - /// The start time. - string IrDetailStartTime { get; set; } - /// The transferred bytes from source VM to azure for the disk. - long? IrDetailTransferredByte { get; set; } - /// A value indicating whether initial replication is complete or not. - string IsInitialReplicationComplete { get; set; } - /// A value indicating whether the disk is the OS disk. - string IsOSDisk { get; set; } - /// The last sync time. - global::System.DateTime? LastSyncTime { get; set; } - /// The resync details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails ResyncDetail { get; set; } - /// The bytes transferred in last 15 minutes from source VM to target. - long? ResyncDetailLast15MinutesTransferredByte { get; set; } - /// The time of the last data transfer from source VM to target. - string ResyncDetailLastDataTransferTimeUtc { get; set; } - /// The last refresh time. - string ResyncDetailLastRefreshTime { get; set; } - /// - /// The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes. - /// - long? ResyncDetailProcessedByte { get; set; } - /// The progress health. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? ResyncDetailProgressHealth { get; set; } - /// - /// Progress in percentage. Progress percentage is calculated based on processed bytes. - /// - int? ResyncDetailProgressPercentage { get; set; } - /// The start time. - string ResyncDetailStartTime { get; set; } - /// The transferred bytes from source VM to azure for the disk. - long? ResyncDetailTransferredByte { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReplicationDetails.PowerShell.cs deleted file mode 100644 index 8635897f2866..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReplicationDetails.PowerShell.cs +++ /dev/null @@ -1,548 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcmFailback provider specific details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackReplicationDetailsTypeConverter))] - public partial class InMageRcmFailbackReplicationDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmFailbackReplicationDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmFailbackReplicationDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmFailbackReplicationDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MobilityAgentDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails) content.GetValueForProperty("MobilityAgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackMobilityAgentDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiscoveredVMDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails) content.GetValueForProperty("DiscoveredVMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackDiscoveredProtectedVMDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("InternalIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InternalIdentifier = (string) content.GetValueForProperty("InternalIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InternalIdentifier, global::System.Convert.ToString); - } - if (content.Contains("AzureVirtualMachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).AzureVirtualMachineId = (string) content.GetValueForProperty("AzureVirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).AzureVirtualMachineId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentId = (string) content.GetValueForProperty("ReprotectAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentId, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentName = (string) content.GetValueForProperty("ReprotectAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentName, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetvCenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).TargetvCenterId = (string) content.GetValueForProperty("TargetvCenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).TargetvCenterId, global::System.Convert.ToString); - } - if (content.Contains("TargetDataStoreName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).TargetDataStoreName = (string) content.GetValueForProperty("TargetDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).TargetDataStoreName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).TargetVMName, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressPercentage = (int?) content.GetValueForProperty("InitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InitialReplicationProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProcessedByte = (long?) content.GetValueForProperty("InitialReplicationProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("InitialReplicationTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationTransferredByte = (long?) content.GetValueForProperty("InitialReplicationTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("InitialReplicationProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("InitialReplicationProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); - } - if (content.Contains("ResyncProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResyncProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncTransferredByte = (long?) content.GetValueForProperty("ResyncTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("ResyncProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); - } - if (content.Contains("ResyncRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); - } - if (content.Contains("ResyncState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState?) content.GetValueForProperty("ResyncState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState.CreateFrom); - } - if (content.Contains("ProtectedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackProtectedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("LastPlannedFailoverStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStartTime = (global::System.DateTime?) content.GetValueForProperty("LastPlannedFailoverStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastPlannedFailoverStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PlannedFailoverStatus?) content.GetValueForProperty("LastPlannedFailoverStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PlannedFailoverStatus.CreateFrom); - } - if (content.Contains("LastUsedPolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyId = (string) content.GetValueForProperty("LastUsedPolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyId, global::System.Convert.ToString); - } - if (content.Contains("LastUsedPolicyFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyFriendlyName = (string) content.GetValueForProperty("LastUsedPolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("IsAgentRegistrationSuccessfulAfterFailover")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover = (bool?) content.GetValueForProperty("IsAgentRegistrationSuccessfulAfterFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailVersion = (string) content.GetValueForProperty("MobilityAgentDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailLatestVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion = (string) content.GetValueForProperty("MobilityAgentDetailLatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailDriverVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion = (string) content.GetValueForProperty("MobilityAgentDetailDriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailLatestUpgradableVersionWithoutReboot")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("MobilityAgentDetailLatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailAgentVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailAgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MobilityAgentDetailDriverVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailDriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MobilityAgentDetailLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MobilityAgentDetailReasonsBlockingUpgrade")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("MobilityAgentDetailReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); - } - if (content.Contains("MobilityAgentDetailIsUpgradeable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable = (string) content.GetValueForProperty("MobilityAgentDetailIsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailVcenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailVcenterFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailDatastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailDatastore = (string[]) content.GetValueForProperty("DiscoveredVMDetailDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("DiscoveredVMDetailIpaddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress = (string[]) content.GetValueForProperty("DiscoveredVMDetailIpaddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("DiscoveredVMDetailVmwareToolsStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus = (string) content.GetValueForProperty("DiscoveredVMDetailVmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailPowerStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus = (string) content.GetValueForProperty("DiscoveredVMDetailPowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailVmfqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVmfqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailOsname")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailOsname = (string) content.GetValueForProperty("DiscoveredVMDetailOsname",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailOsname, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailCreatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailCreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DiscoveredVMDetailUpdatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailUpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DiscoveredVMDetailIsDeleted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted = (bool?) content.GetValueForProperty("DiscoveredVMDetailIsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("DiscoveredVMDetailLastDiscoveryTimeInUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailLastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmFailbackReplicationDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MobilityAgentDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails) content.GetValueForProperty("MobilityAgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackMobilityAgentDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiscoveredVMDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails) content.GetValueForProperty("DiscoveredVMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackDiscoveredProtectedVMDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("InternalIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InternalIdentifier = (string) content.GetValueForProperty("InternalIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InternalIdentifier, global::System.Convert.ToString); - } - if (content.Contains("AzureVirtualMachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).AzureVirtualMachineId = (string) content.GetValueForProperty("AzureVirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).AzureVirtualMachineId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentId = (string) content.GetValueForProperty("ReprotectAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentId, global::System.Convert.ToString); - } - if (content.Contains("ReprotectAgentName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentName = (string) content.GetValueForProperty("ReprotectAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentName, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetvCenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).TargetvCenterId = (string) content.GetValueForProperty("TargetvCenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).TargetvCenterId, global::System.Convert.ToString); - } - if (content.Contains("TargetDataStoreName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).TargetDataStoreName = (string) content.GetValueForProperty("TargetDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).TargetDataStoreName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).TargetVMName, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressPercentage = (int?) content.GetValueForProperty("InitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InitialReplicationProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProcessedByte = (long?) content.GetValueForProperty("InitialReplicationProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("InitialReplicationTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationTransferredByte = (long?) content.GetValueForProperty("InitialReplicationTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("InitialReplicationProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("InitialReplicationProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); - } - if (content.Contains("ResyncProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResyncProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncTransferredByte = (long?) content.GetValueForProperty("ResyncTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("ResyncProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); - } - if (content.Contains("ResyncRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); - } - if (content.Contains("ResyncState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState?) content.GetValueForProperty("ResyncState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState.CreateFrom); - } - if (content.Contains("ProtectedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackProtectedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("LastPlannedFailoverStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStartTime = (global::System.DateTime?) content.GetValueForProperty("LastPlannedFailoverStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastPlannedFailoverStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PlannedFailoverStatus?) content.GetValueForProperty("LastPlannedFailoverStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PlannedFailoverStatus.CreateFrom); - } - if (content.Contains("LastUsedPolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyId = (string) content.GetValueForProperty("LastUsedPolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyId, global::System.Convert.ToString); - } - if (content.Contains("LastUsedPolicyFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyFriendlyName = (string) content.GetValueForProperty("LastUsedPolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("IsAgentRegistrationSuccessfulAfterFailover")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover = (bool?) content.GetValueForProperty("IsAgentRegistrationSuccessfulAfterFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailVersion = (string) content.GetValueForProperty("MobilityAgentDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailLatestVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion = (string) content.GetValueForProperty("MobilityAgentDetailLatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailDriverVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion = (string) content.GetValueForProperty("MobilityAgentDetailDriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailLatestUpgradableVersionWithoutReboot")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("MobilityAgentDetailLatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailAgentVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailAgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MobilityAgentDetailDriverVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailDriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MobilityAgentDetailLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MobilityAgentDetailReasonsBlockingUpgrade")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("MobilityAgentDetailReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); - } - if (content.Contains("MobilityAgentDetailIsUpgradeable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable = (string) content.GetValueForProperty("MobilityAgentDetailIsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailVcenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailVcenterFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailDatastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailDatastore = (string[]) content.GetValueForProperty("DiscoveredVMDetailDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("DiscoveredVMDetailIpaddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress = (string[]) content.GetValueForProperty("DiscoveredVMDetailIpaddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("DiscoveredVMDetailVmwareToolsStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus = (string) content.GetValueForProperty("DiscoveredVMDetailVmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailPowerStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus = (string) content.GetValueForProperty("DiscoveredVMDetailPowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailVmfqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVmfqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailOsname")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailOsname = (string) content.GetValueForProperty("DiscoveredVMDetailOsname",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailOsname, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailCreatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailCreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DiscoveredVMDetailUpdatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailUpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DiscoveredVMDetailIsDeleted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted = (bool?) content.GetValueForProperty("DiscoveredVMDetailIsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("DiscoveredVMDetailLastDiscoveryTimeInUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailLastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcmFailback provider specific details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackReplicationDetailsTypeConverter))] - public partial interface IInMageRcmFailbackReplicationDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReprotectInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReprotectInput.PowerShell.cs deleted file mode 100644 index 88388633b5d4..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReprotectInput.PowerShell.cs +++ /dev/null @@ -1,170 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcmFailback specific provider input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackReprotectInputTypeConverter))] - public partial class InMageRcmFailbackReprotectInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmFailbackReprotectInput(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.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmFailbackReprotectInput(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.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmFailbackReprotectInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInputInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInputInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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 InMageRcmFailbackReprotectInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInputInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInputInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcmFailback specific provider input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackReprotectInputTypeConverter))] - public partial interface IInMageRcmFailbackReprotectInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackSyncDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackSyncDetails.PowerShell.cs deleted file mode 100644 index 3f6c520e2f30..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackSyncDetails.PowerShell.cs +++ /dev/null @@ -1,202 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcmFailback disk level sync details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackSyncDetailsTypeConverter))] - public partial class InMageRcmFailbackSyncDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmFailbackSyncDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmFailbackSyncDetails(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.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmFailbackSyncDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).ProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).ProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); - } - if (content.Contains("TransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).TransferredByte = (long?) content.GetValueForProperty("TransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).TransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("Last15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).Last15MinutesTransferredByte = (long?) content.GetValueForProperty("Last15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).Last15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).LastDataTransferTimeUtc = (string) content.GetValueForProperty("LastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).LastDataTransferTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).ProcessedByte = (long?) content.GetValueForProperty("ProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).ProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).StartTime, global::System.Convert.ToString); - } - if (content.Contains("LastRefreshTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).LastRefreshTime = (string) content.GetValueForProperty("LastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).LastRefreshTime, global::System.Convert.ToString); - } - if (content.Contains("ProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).ProgressPercentage = (int?) content.GetValueForProperty("ProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).ProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmFailbackSyncDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).ProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).ProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); - } - if (content.Contains("TransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).TransferredByte = (long?) content.GetValueForProperty("TransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).TransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("Last15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).Last15MinutesTransferredByte = (long?) content.GetValueForProperty("Last15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).Last15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).LastDataTransferTimeUtc = (string) content.GetValueForProperty("LastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).LastDataTransferTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).ProcessedByte = (long?) content.GetValueForProperty("ProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).ProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).StartTime, global::System.Convert.ToString); - } - if (content.Contains("LastRefreshTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).LastRefreshTime = (string) content.GetValueForProperty("LastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).LastRefreshTime, global::System.Convert.ToString); - } - if (content.Contains("ProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).ProgressPercentage = (int?) content.GetValueForProperty("ProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal)this).ProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcmFailback disk level sync details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackSyncDetailsTypeConverter))] - public partial interface IInMageRcmFailbackSyncDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetails.PowerShell.cs deleted file mode 100644 index 3685d14acd85..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetails.PowerShell.cs +++ /dev/null @@ -1,189 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm last source agent upgrade error details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmLastAgentUpgradeErrorDetailsTypeConverter))] - public partial class InMageRcmLastAgentUpgradeErrorDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmLastAgentUpgradeErrorDetails(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.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmLastAgentUpgradeErrorDetails(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.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmLastAgentUpgradeErrorDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessageParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); - } - if (content.Contains("ErrorTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorTagsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmLastAgentUpgradeErrorDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessageParameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); - } - if (content.Contains("ErrorTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorTagsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm last source agent upgrade error details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmLastAgentUpgradeErrorDetailsTypeConverter))] - public partial interface IInMageRcmLastAgentUpgradeErrorDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetails.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetails.cs deleted file mode 100644 index 065c3665e7ed..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetails.cs +++ /dev/null @@ -1,154 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// InMageRcm last source agent upgrade error details. - public partial class InMageRcmLastAgentUpgradeErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal - { - - /// Backing field for property. - private string _errorCode; - - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ErrorCode { get => this._errorCode; } - - /// Backing field for property. - private string _errorMessage; - - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ErrorMessage { get => this._errorMessage; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters _errorMessageParameter; - - /// The error message parameters. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters()); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags _errorTag; - - /// The error tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorTags()); } - - /// Internal Acessors for ErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal.ErrorCode { get => this._errorCode; set { {_errorCode = value;} } } - - /// Internal Acessors for ErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal.ErrorMessage { get => this._errorMessage; set { {_errorMessage = value;} } } - - /// Internal Acessors for ErrorMessageParameter - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal.ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters()); set { {_errorMessageParameter = value;} } } - - /// Internal Acessors for ErrorTag - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal.ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorTags()); set { {_errorTag = value;} } } - - /// Internal Acessors for PossibleCaus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal.PossibleCaus { get => this._possibleCaus; set { {_possibleCaus = value;} } } - - /// Internal Acessors for RecommendedAction - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsInternal.RecommendedAction { get => this._recommendedAction; set { {_recommendedAction = value;} } } - - /// Backing field for property. - private string _possibleCaus; - - /// The possible causes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PossibleCaus { get => this._possibleCaus; } - - /// Backing field for property. - private string _recommendedAction; - - /// The recommended action. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecommendedAction { get => this._recommendedAction; } - - /// Creates an new instance. - public InMageRcmLastAgentUpgradeErrorDetails() - { - - } - } - /// InMageRcm last source agent upgrade error details. - public partial interface IInMageRcmLastAgentUpgradeErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error code.", - SerializedName = @"errorCode", - PossibleTypes = new [] { typeof(string) })] - string ErrorCode { get; } - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error message.", - SerializedName = @"errorMessage", - PossibleTypes = new [] { typeof(string) })] - string ErrorMessage { get; } - /// The error message parameters. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error message parameters.", - SerializedName = @"errorMessageParameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters ErrorMessageParameter { get; } - /// The error tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error tags.", - SerializedName = @"errorTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags ErrorTag { get; } - /// The possible causes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The possible causes.", - SerializedName = @"possibleCauses", - PossibleTypes = new [] { typeof(string) })] - string PossibleCaus { get; } - /// The recommended action. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The recommended action.", - SerializedName = @"recommendedAction", - PossibleTypes = new [] { typeof(string) })] - string RecommendedAction { get; } - - } - /// InMageRcm last source agent upgrade error details. - internal partial interface IInMageRcmLastAgentUpgradeErrorDetailsInternal - - { - /// The error code. - string ErrorCode { get; set; } - /// The error message. - string ErrorMessage { get; set; } - /// The error message parameters. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters ErrorMessageParameter { get; set; } - /// The error tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags ErrorTag { get; set; } - /// The possible causes. - string PossibleCaus { get; set; } - /// The recommended action. - string RecommendedAction { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmMobilityAgentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmMobilityAgentDetails.PowerShell.cs deleted file mode 100644 index 4088ffe72c1c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmMobilityAgentDetails.PowerShell.cs +++ /dev/null @@ -1,218 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm mobility agent details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmMobilityAgentDetailsTypeConverter))] - public partial class InMageRcmMobilityAgentDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmMobilityAgentDetails(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.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmMobilityAgentDetails(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.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmMobilityAgentDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LatestVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LatestVersion = (string) content.GetValueForProperty("LatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LatestVersion, global::System.Convert.ToString); - } - if (content.Contains("LatestAgentReleaseDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LatestAgentReleaseDate = (string) content.GetValueForProperty("LatestAgentReleaseDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LatestAgentReleaseDate, global::System.Convert.ToString); - } - if (content.Contains("DriverVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersion = (string) content.GetValueForProperty("DriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersion, global::System.Convert.ToString); - } - if (content.Contains("LatestUpgradableVersionWithoutReboot")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("LatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); - } - if (content.Contains("AgentVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).AgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).AgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DriverVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("DriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ReasonsBlockingUpgrade")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("ReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); - } - if (content.Contains("IsUpgradeable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).IsUpgradeable = (string) content.GetValueForProperty("IsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).IsUpgradeable, 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 InMageRcmMobilityAgentDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LatestVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LatestVersion = (string) content.GetValueForProperty("LatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LatestVersion, global::System.Convert.ToString); - } - if (content.Contains("LatestAgentReleaseDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LatestAgentReleaseDate = (string) content.GetValueForProperty("LatestAgentReleaseDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LatestAgentReleaseDate, global::System.Convert.ToString); - } - if (content.Contains("DriverVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersion = (string) content.GetValueForProperty("DriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersion, global::System.Convert.ToString); - } - if (content.Contains("LatestUpgradableVersionWithoutReboot")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("LatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); - } - if (content.Contains("AgentVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).AgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).AgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DriverVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("DriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ReasonsBlockingUpgrade")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("ReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); - } - if (content.Contains("IsUpgradeable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).IsUpgradeable = (string) content.GetValueForProperty("IsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)this).IsUpgradeable, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm mobility agent details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmMobilityAgentDetailsTypeConverter))] - public partial interface IInMageRcmMobilityAgentDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicDetails.PowerShell.cs deleted file mode 100644 index 183f5d8a9af7..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicDetails.PowerShell.cs +++ /dev/null @@ -1,240 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm NIC details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmNicDetailsTypeConverter))] - public partial class InMageRcmNicDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmNicDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmNicDetails(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.Migrate.Models.Api20220501.IInMageRcmNicDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmNicDetails(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.Migrate.Models.Api20220501.IInMageRcmNicDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmNicDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).NicId, global::System.Convert.ToString); - } - if (content.Contains("IsPrimaryNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).IsPrimaryNic, global::System.Convert.ToString); - } - if (content.Contains("IsSelectedForFailover")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).IsSelectedForFailover = (string) content.GetValueForProperty("IsSelectedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).IsSelectedForFailover, global::System.Convert.ToString); - } - if (content.Contains("SourceIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceIPAddress = (string) content.GetValueForProperty("SourceIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceIPAddress, global::System.Convert.ToString); - } - if (content.Contains("SourceIPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("SourceIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); - } - if (content.Contains("SourceNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceNetworkId = (string) content.GetValueForProperty("SourceNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SourceSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceSubnetName = (string) content.GetValueForProperty("SourceSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TargetIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TargetIPAddress = (string) content.GetValueForProperty("TargetIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TargetIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TargetIPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TargetIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TargetIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TargetIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); - } - if (content.Contains("TargetSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TargetSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TestSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TestIPAddress = (string) content.GetValueForProperty("TestIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TestIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TestIPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TestIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TestIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TestIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmNicDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).NicId, global::System.Convert.ToString); - } - if (content.Contains("IsPrimaryNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).IsPrimaryNic, global::System.Convert.ToString); - } - if (content.Contains("IsSelectedForFailover")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).IsSelectedForFailover = (string) content.GetValueForProperty("IsSelectedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).IsSelectedForFailover, global::System.Convert.ToString); - } - if (content.Contains("SourceIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceIPAddress = (string) content.GetValueForProperty("SourceIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceIPAddress, global::System.Convert.ToString); - } - if (content.Contains("SourceIPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("SourceIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); - } - if (content.Contains("SourceNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceNetworkId = (string) content.GetValueForProperty("SourceNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SourceSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceSubnetName = (string) content.GetValueForProperty("SourceSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).SourceSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TargetIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TargetIPAddress = (string) content.GetValueForProperty("TargetIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TargetIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TargetIPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TargetIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TargetIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TargetIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); - } - if (content.Contains("TargetSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TargetSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TestSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TestIPAddress = (string) content.GetValueForProperty("TestIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TestIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TestIPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TestIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TestIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal)this).TestIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm NIC details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmNicDetailsTypeConverter))] - public partial interface IInMageRcmNicDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicInput.PowerShell.cs deleted file mode 100644 index f1ef062b7197..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicInput.PowerShell.cs +++ /dev/null @@ -1,192 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm NIC input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmNicInputTypeConverter))] - public partial class InMageRcmNicInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmNicInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmNicInput(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.Migrate.Models.Api20220501.IInMageRcmNicInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmNicInput(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.Migrate.Models.Api20220501.IInMageRcmNicInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmNicInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).NicId, global::System.Convert.ToString); - } - if (content.Contains("IsPrimaryNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).IsPrimaryNic, global::System.Convert.ToString); - } - if (content.Contains("IsSelectedForFailover")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).IsSelectedForFailover = (string) content.GetValueForProperty("IsSelectedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).IsSelectedForFailover, global::System.Convert.ToString); - } - if (content.Contains("TargetSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TargetSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TargetStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TargetStaticIPAddress = (string) content.GetValueForProperty("TargetStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TargetStaticIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TestSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TestSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TestStaticIPAddress = (string) content.GetValueForProperty("TestStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TestStaticIPAddress, 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 InMageRcmNicInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).NicId, global::System.Convert.ToString); - } - if (content.Contains("IsPrimaryNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).IsPrimaryNic, global::System.Convert.ToString); - } - if (content.Contains("IsSelectedForFailover")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).IsSelectedForFailover = (string) content.GetValueForProperty("IsSelectedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).IsSelectedForFailover, global::System.Convert.ToString); - } - if (content.Contains("TargetSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TargetSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TargetStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TargetStaticIPAddress = (string) content.GetValueForProperty("TargetStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TargetStaticIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TestSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TestSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TestStaticIPAddress = (string) content.GetValueForProperty("TestStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal)this).TestStaticIPAddress, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm NIC input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmNicInputTypeConverter))] - public partial interface IInMageRcmNicInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyCreationInput.PowerShell.cs deleted file mode 100644 index ffe188d65a82..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyCreationInput.PowerShell.cs +++ /dev/null @@ -1,178 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm policy creation input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmPolicyCreationInputTypeConverter))] - public partial class InMageRcmPolicyCreationInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmPolicyCreationInput(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.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmPolicyCreationInput(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.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmPolicyCreationInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointHistoryInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("EnableMultiVMSync")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).EnableMultiVMSync = (string) content.GetValueForProperty("EnableMultiVMSync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).EnableMultiVMSync, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 InMageRcmPolicyCreationInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointHistoryInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("EnableMultiVMSync")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).EnableMultiVMSync = (string) content.GetValueForProperty("EnableMultiVMSync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal)this).EnableMultiVMSync, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm policy creation input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmPolicyCreationInputTypeConverter))] - public partial interface IInMageRcmPolicyCreationInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyDetails.PowerShell.cs deleted file mode 100644 index 3eb8672ad626..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyDetails.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm specific policy details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmPolicyDetailsTypeConverter))] - public partial class InMageRcmPolicyDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmPolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmPolicyDetails(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.Migrate.Models.Api20220501.IInMageRcmPolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmPolicyDetails(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.Migrate.Models.Api20220501.IInMageRcmPolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmPolicyDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointHistoryInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("EnableMultiVMSync")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).EnableMultiVMSync = (string) content.GetValueForProperty("EnableMultiVMSync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).EnableMultiVMSync, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 InMageRcmPolicyDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointHistoryInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("EnableMultiVMSync")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).EnableMultiVMSync = (string) content.GetValueForProperty("EnableMultiVMSync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal)this).EnableMultiVMSync, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm specific policy details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmPolicyDetailsTypeConverter))] - public partial interface IInMageRcmPolicyDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectedDiskDetails.PowerShell.cs deleted file mode 100644 index b4cc5cefed9f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectedDiskDetails.PowerShell.cs +++ /dev/null @@ -1,386 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm protected disk details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmProtectedDiskDetailsTypeConverter))] - public partial class InMageRcmProtectedDiskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmProtectedDiskDetails(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.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmProtectedDiskDetails(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.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmProtectedDiskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("IrDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails) content.GetValueForProperty("IrDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmSyncDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ResyncDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails) content.GetValueForProperty("ResyncDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmSyncDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("IsOSDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); - } - if (content.Contains("CapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("SeedManagedDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); - } - if (content.Contains("SeedBlobUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).SeedBlobUri = (string) content.GetValueForProperty("SeedBlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).SeedBlobUri, global::System.Convert.ToString); - } - if (content.Contains("TargetManagedDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).TargetManagedDiskId = (string) content.GetValueForProperty("TargetManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).TargetManagedDiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DataPendingInLogDataStoreInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb = (double?) content.GetValueForProperty("DataPendingInLogDataStoreInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DataPendingAtSourceAgentInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("IsInitialReplicationComplete")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IsInitialReplicationComplete = (string) content.GetValueForProperty("IsInitialReplicationComplete",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IsInitialReplicationComplete, global::System.Convert.ToString); - } - if (content.Contains("IrDetailProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("IrDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); - } - if (content.Contains("IrDetailTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailTransferredByte = (long?) content.GetValueForProperty("IrDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("IrDetailLast15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("IrDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("IrDetailLastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("IrDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("IrDetailProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProcessedByte = (long?) content.GetValueForProperty("IrDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("IrDetailStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailStartTime = (string) content.GetValueForProperty("IrDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailStartTime, global::System.Convert.ToString); - } - if (content.Contains("IrDetailLastRefreshTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime = (string) content.GetValueForProperty("IrDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime, global::System.Convert.ToString); - } - if (content.Contains("IrDetailProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressPercentage = (int?) content.GetValueForProperty("IrDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResyncDetailProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ResyncDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); - } - if (content.Contains("ResyncDetailTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte = (long?) content.GetValueForProperty("ResyncDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncDetailLast15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncDetailLastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("ResyncDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte = (long?) content.GetValueForProperty("ResyncDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncDetailStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailStartTime = (string) content.GetValueForProperty("ResyncDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailStartTime, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailLastRefreshTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime = (string) content.GetValueForProperty("ResyncDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage = (int?) content.GetValueForProperty("ResyncDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmProtectedDiskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("IrDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails) content.GetValueForProperty("IrDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmSyncDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ResyncDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails) content.GetValueForProperty("ResyncDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmSyncDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("IsOSDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); - } - if (content.Contains("CapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("SeedManagedDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); - } - if (content.Contains("SeedBlobUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).SeedBlobUri = (string) content.GetValueForProperty("SeedBlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).SeedBlobUri, global::System.Convert.ToString); - } - if (content.Contains("TargetManagedDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).TargetManagedDiskId = (string) content.GetValueForProperty("TargetManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).TargetManagedDiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DataPendingInLogDataStoreInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb = (double?) content.GetValueForProperty("DataPendingInLogDataStoreInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("DataPendingAtSourceAgentInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("IsInitialReplicationComplete")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IsInitialReplicationComplete = (string) content.GetValueForProperty("IsInitialReplicationComplete",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IsInitialReplicationComplete, global::System.Convert.ToString); - } - if (content.Contains("IrDetailProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("IrDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); - } - if (content.Contains("IrDetailTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailTransferredByte = (long?) content.GetValueForProperty("IrDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("IrDetailLast15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("IrDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("IrDetailLastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("IrDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("IrDetailProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProcessedByte = (long?) content.GetValueForProperty("IrDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("IrDetailStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailStartTime = (string) content.GetValueForProperty("IrDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailStartTime, global::System.Convert.ToString); - } - if (content.Contains("IrDetailLastRefreshTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime = (string) content.GetValueForProperty("IrDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime, global::System.Convert.ToString); - } - if (content.Contains("IrDetailProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressPercentage = (int?) content.GetValueForProperty("IrDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResyncDetailProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ResyncDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); - } - if (content.Contains("ResyncDetailTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte = (long?) content.GetValueForProperty("ResyncDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncDetailLast15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncDetailLastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("ResyncDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte = (long?) content.GetValueForProperty("ResyncDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncDetailStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailStartTime = (string) content.GetValueForProperty("ResyncDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailStartTime, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailLastRefreshTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime = (string) content.GetValueForProperty("ResyncDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage = (int?) content.GetValueForProperty("ResyncDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm protected disk details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmProtectedDiskDetailsTypeConverter))] - public partial interface IInMageRcmProtectedDiskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmReplicationDetails.PowerShell.cs deleted file mode 100644 index 38ff2b645a93..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReplicationDetails.PowerShell.cs +++ /dev/null @@ -1,738 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm provider specific details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmReplicationDetailsTypeConverter))] - public partial class InMageRcmReplicationDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmReplicationDetails(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.Migrate.Models.Api20220501.IInMageRcmReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmReplicationDetails(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.Migrate.Models.Api20220501.IInMageRcmReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmReplicationDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MobilityAgentDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails) content.GetValueForProperty("MobilityAgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmMobilityAgentDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiscoveredVMDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails) content.GetValueForProperty("DiscoveredVMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDiscoveredProtectedVMDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("InternalIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InternalIdentifier = (string) content.GetValueForProperty("InternalIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InternalIdentifier, global::System.Convert.ToString); - } - if (content.Contains("FabricDiscoveryMachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).FabricDiscoveryMachineId = (string) content.GetValueForProperty("FabricDiscoveryMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).FabricDiscoveryMachineId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("DiscoveryType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("ProcessorCoreCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProcessorCoreCount = (int?) content.GetValueForProperty("ProcessorCoreCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProcessorCoreCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllocatedMemoryInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AllocatedMemoryInMb = (double?) content.GetValueForProperty("AllocatedMemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AllocatedMemoryInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("ProcessServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProcessServerName = (string) content.GetValueForProperty("ProcessServerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProcessServerName, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("FirmwareType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).FirmwareType = (string) content.GetValueForProperty("FirmwareType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).FirmwareType, global::System.Convert.ToString); - } - if (content.Contains("PrimaryNicIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).PrimaryNicIPAddress = (string) content.GetValueForProperty("PrimaryNicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).PrimaryNicIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TargetGeneration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetGeneration = (string) content.GetValueForProperty("TargetGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetGeneration, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LicenseType, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetVMName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("TargetResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetLocation, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetBootDiagnosticsStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TestNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TestNetworkId, global::System.Convert.ToString); - } - if (content.Contains("FailoverRecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).FailoverRecoveryPointId = (string) content.GetValueForProperty("FailoverRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).FailoverRecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("LastRecoveryPointReceived")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastRpoInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRpoInSecond = (long?) content.GetValueForProperty("LastRpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LastRpoCalculatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastRecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointId = (string) content.GetValueForProperty("LastRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressPercentage = (int?) content.GetValueForProperty("InitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InitialReplicationProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProcessedByte = (long?) content.GetValueForProperty("InitialReplicationProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("InitialReplicationTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationTransferredByte = (long?) content.GetValueForProperty("InitialReplicationTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("InitialReplicationProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("InitialReplicationProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); - } - if (content.Contains("ResyncProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResyncProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncTransferredByte = (long?) content.GetValueForProperty("ResyncTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("ResyncProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); - } - if (content.Contains("ResyncRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); - } - if (content.Contains("ResyncState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState?) content.GetValueForProperty("ResyncState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState.CreateFrom); - } - if (content.Contains("AgentUpgradeState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MobilityAgentUpgradeState?) content.GetValueForProperty("AgentUpgradeState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MobilityAgentUpgradeState.CreateFrom); - } - if (content.Contains("LastAgentUpgradeType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeType = (string) content.GetValueForProperty("LastAgentUpgradeType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeType, global::System.Convert.ToString); - } - if (content.Contains("AgentUpgradeJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeJobId = (string) content.GetValueForProperty("AgentUpgradeJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeJobId, global::System.Convert.ToString); - } - if (content.Contains("AgentUpgradeAttemptToVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeAttemptToVersion = (string) content.GetValueForProperty("AgentUpgradeAttemptToVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeAttemptToVersion, global::System.Convert.ToString); - } - if (content.Contains("ProtectedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmProtectedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("IsLastUpgradeSuccessful")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).IsLastUpgradeSuccessful = (string) content.GetValueForProperty("IsLastUpgradeSuccessful",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).IsLastUpgradeSuccessful, global::System.Convert.ToString); - } - if (content.Contains("IsAgentRegistrationSuccessfulAfterFailover")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover = (bool?) content.GetValueForProperty("IsAgentRegistrationSuccessfulAfterFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("LastAgentUpgradeErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails[]) content.GetValueForProperty("LastAgentUpgradeErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("AgentUpgradeBlockingErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails[]) content.GetValueForProperty("AgentUpgradeBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailVersion = (string) content.GetValueForProperty("MobilityAgentDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailLatestVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion = (string) content.GetValueForProperty("MobilityAgentDetailLatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailLatestAgentReleaseDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestAgentReleaseDate = (string) content.GetValueForProperty("MobilityAgentDetailLatestAgentReleaseDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestAgentReleaseDate, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailDriverVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion = (string) content.GetValueForProperty("MobilityAgentDetailDriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailLatestUpgradableVersionWithoutReboot")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("MobilityAgentDetailLatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailAgentVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailAgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MobilityAgentDetailDriverVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailDriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MobilityAgentDetailLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MobilityAgentDetailReasonsBlockingUpgrade")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("MobilityAgentDetailReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); - } - if (content.Contains("MobilityAgentDetailIsUpgradeable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable = (string) content.GetValueForProperty("MobilityAgentDetailIsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailVcenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailVcenterFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailDatastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailDatastore = (string[]) content.GetValueForProperty("DiscoveredVMDetailDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("DiscoveredVMDetailIpaddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress = (string[]) content.GetValueForProperty("DiscoveredVMDetailIpaddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("DiscoveredVMDetailVmwareToolsStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus = (string) content.GetValueForProperty("DiscoveredVMDetailVmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailPowerStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus = (string) content.GetValueForProperty("DiscoveredVMDetailPowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailVmfqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVmfqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailOsname")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailOsname = (string) content.GetValueForProperty("DiscoveredVMDetailOsname",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailOsname, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailCreatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailCreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DiscoveredVMDetailUpdatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailUpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DiscoveredVMDetailIsDeleted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted = (bool?) content.GetValueForProperty("DiscoveredVMDetailIsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("DiscoveredVMDetailLastDiscoveryTimeInUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailLastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmReplicationDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MobilityAgentDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails) content.GetValueForProperty("MobilityAgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmMobilityAgentDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DiscoveredVMDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails) content.GetValueForProperty("DiscoveredVMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDiscoveredProtectedVMDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("InternalIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InternalIdentifier = (string) content.GetValueForProperty("InternalIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InternalIdentifier, global::System.Convert.ToString); - } - if (content.Contains("FabricDiscoveryMachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).FabricDiscoveryMachineId = (string) content.GetValueForProperty("FabricDiscoveryMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).FabricDiscoveryMachineId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("DiscoveryType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("ProcessorCoreCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProcessorCoreCount = (int?) content.GetValueForProperty("ProcessorCoreCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProcessorCoreCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllocatedMemoryInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AllocatedMemoryInMb = (double?) content.GetValueForProperty("AllocatedMemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AllocatedMemoryInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("ProcessServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProcessServerName = (string) content.GetValueForProperty("ProcessServerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProcessServerName, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("FirmwareType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).FirmwareType = (string) content.GetValueForProperty("FirmwareType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).FirmwareType, global::System.Convert.ToString); - } - if (content.Contains("PrimaryNicIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).PrimaryNicIPAddress = (string) content.GetValueForProperty("PrimaryNicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).PrimaryNicIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TargetGeneration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetGeneration = (string) content.GetValueForProperty("TargetGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetGeneration, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LicenseType, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetVMName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("TargetResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetLocation, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetBootDiagnosticsStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TargetNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TestNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).TestNetworkId, global::System.Convert.ToString); - } - if (content.Contains("FailoverRecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).FailoverRecoveryPointId = (string) content.GetValueForProperty("FailoverRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).FailoverRecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("LastRecoveryPointReceived")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastRpoInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRpoInSecond = (long?) content.GetValueForProperty("LastRpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LastRpoCalculatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastRecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointId = (string) content.GetValueForProperty("LastRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InitialReplicationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressPercentage = (int?) content.GetValueForProperty("InitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InitialReplicationProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProcessedByte = (long?) content.GetValueForProperty("InitialReplicationProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("InitialReplicationTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationTransferredByte = (long?) content.GetValueForProperty("InitialReplicationTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("InitialReplicationProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("InitialReplicationProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); - } - if (content.Contains("ResyncProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResyncProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncTransferredByte = (long?) content.GetValueForProperty("ResyncTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("ResyncProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); - } - if (content.Contains("ResyncRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); - } - if (content.Contains("ResyncState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState?) content.GetValueForProperty("ResyncState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ResyncState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState.CreateFrom); - } - if (content.Contains("AgentUpgradeState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MobilityAgentUpgradeState?) content.GetValueForProperty("AgentUpgradeState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MobilityAgentUpgradeState.CreateFrom); - } - if (content.Contains("LastAgentUpgradeType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeType = (string) content.GetValueForProperty("LastAgentUpgradeType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeType, global::System.Convert.ToString); - } - if (content.Contains("AgentUpgradeJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeJobId = (string) content.GetValueForProperty("AgentUpgradeJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeJobId, global::System.Convert.ToString); - } - if (content.Contains("AgentUpgradeAttemptToVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeAttemptToVersion = (string) content.GetValueForProperty("AgentUpgradeAttemptToVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeAttemptToVersion, global::System.Convert.ToString); - } - if (content.Contains("ProtectedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmProtectedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("IsLastUpgradeSuccessful")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).IsLastUpgradeSuccessful = (string) content.GetValueForProperty("IsLastUpgradeSuccessful",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).IsLastUpgradeSuccessful, global::System.Convert.ToString); - } - if (content.Contains("IsAgentRegistrationSuccessfulAfterFailover")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover = (bool?) content.GetValueForProperty("IsAgentRegistrationSuccessfulAfterFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("LastAgentUpgradeErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails[]) content.GetValueForProperty("LastAgentUpgradeErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("AgentUpgradeBlockingErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails[]) content.GetValueForProperty("AgentUpgradeBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailVersion = (string) content.GetValueForProperty("MobilityAgentDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailLatestVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion = (string) content.GetValueForProperty("MobilityAgentDetailLatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailLatestAgentReleaseDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestAgentReleaseDate = (string) content.GetValueForProperty("MobilityAgentDetailLatestAgentReleaseDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestAgentReleaseDate, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailDriverVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion = (string) content.GetValueForProperty("MobilityAgentDetailDriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailLatestUpgradableVersionWithoutReboot")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("MobilityAgentDetailLatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); - } - if (content.Contains("MobilityAgentDetailAgentVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailAgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MobilityAgentDetailDriverVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailDriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MobilityAgentDetailLastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MobilityAgentDetailReasonsBlockingUpgrade")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("MobilityAgentDetailReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); - } - if (content.Contains("MobilityAgentDetailIsUpgradeable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable = (string) content.GetValueForProperty("MobilityAgentDetailIsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailVcenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailVcenterFqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailDatastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailDatastore = (string[]) content.GetValueForProperty("DiscoveredVMDetailDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("DiscoveredVMDetailIpaddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress = (string[]) content.GetValueForProperty("DiscoveredVMDetailIpaddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("DiscoveredVMDetailVmwareToolsStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus = (string) content.GetValueForProperty("DiscoveredVMDetailVmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailPowerStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus = (string) content.GetValueForProperty("DiscoveredVMDetailPowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailVmfqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVmfqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailOsname")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailOsname = (string) content.GetValueForProperty("DiscoveredVMDetailOsname",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailOsname, global::System.Convert.ToString); - } - if (content.Contains("DiscoveredVMDetailCreatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailCreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DiscoveredVMDetailUpdatedTimestamp")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailUpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DiscoveredVMDetailIsDeleted")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted = (bool?) content.GetValueForProperty("DiscoveredVMDetailIsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("DiscoveredVMDetailLastDiscoveryTimeInUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailLastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm provider specific details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmReplicationDetailsTypeConverter))] - public partial interface IInMageRcmReplicationDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReprotectInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmReprotectInput.PowerShell.cs deleted file mode 100644 index b190c039a642..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReprotectInput.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm specific provider input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmReprotectInputTypeConverter))] - public partial class InMageRcmReprotectInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmReprotectInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmReprotectInput(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.Migrate.Models.Api20220501.IInMageRcmReprotectInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmReprotectInput(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.Migrate.Models.Api20220501.IInMageRcmReprotectInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmReprotectInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ReprotectAgentId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).ReprotectAgentId = (string) content.GetValueForProperty("ReprotectAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).ReprotectAgentId, global::System.Convert.ToString); - } - if (content.Contains("DatastoreName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).DatastoreName = (string) content.GetValueForProperty("DatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).DatastoreName, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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 InMageRcmReprotectInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ReprotectAgentId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).ReprotectAgentId = (string) content.GetValueForProperty("ReprotectAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).ReprotectAgentId, global::System.Convert.ToString); - } - if (content.Contains("DatastoreName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).DatastoreName = (string) content.GetValueForProperty("DatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).DatastoreName, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm specific provider input. - [System.ComponentModel.TypeConverter(typeof(InMageRcmReprotectInputTypeConverter))] - public partial interface IInMageRcmReprotectInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmSyncDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmSyncDetails.PowerShell.cs deleted file mode 100644 index c8dde15cd43f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmSyncDetails.PowerShell.cs +++ /dev/null @@ -1,200 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm disk level sync details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmSyncDetailsTypeConverter))] - public partial class InMageRcmSyncDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmSyncDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmSyncDetails(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.Migrate.Models.Api20220501.IInMageRcmSyncDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmSyncDetails(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.Migrate.Models.Api20220501.IInMageRcmSyncDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmSyncDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).ProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).ProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); - } - if (content.Contains("TransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).TransferredByte = (long?) content.GetValueForProperty("TransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).TransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("Last15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).Last15MinutesTransferredByte = (long?) content.GetValueForProperty("Last15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).Last15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).LastDataTransferTimeUtc = (string) content.GetValueForProperty("LastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).LastDataTransferTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).ProcessedByte = (long?) content.GetValueForProperty("ProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).ProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).StartTime, global::System.Convert.ToString); - } - if (content.Contains("LastRefreshTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).LastRefreshTime = (string) content.GetValueForProperty("LastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).LastRefreshTime, global::System.Convert.ToString); - } - if (content.Contains("ProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).ProgressPercentage = (int?) content.GetValueForProperty("ProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).ProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageRcmSyncDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).ProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).ProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); - } - if (content.Contains("TransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).TransferredByte = (long?) content.GetValueForProperty("TransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).TransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("Last15MinutesTransferredByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).Last15MinutesTransferredByte = (long?) content.GetValueForProperty("Last15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).Last15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LastDataTransferTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).LastDataTransferTimeUtc = (string) content.GetValueForProperty("LastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).LastDataTransferTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ProcessedByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).ProcessedByte = (long?) content.GetValueForProperty("ProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).ProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).StartTime, global::System.Convert.ToString); - } - if (content.Contains("LastRefreshTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).LastRefreshTime = (string) content.GetValueForProperty("LastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).LastRefreshTime, global::System.Convert.ToString); - } - if (content.Contains("ProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).ProgressPercentage = (int?) content.GetValueForProperty("ProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)this).ProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm disk level sync details. - [System.ComponentModel.TypeConverter(typeof(InMageRcmSyncDetailsTypeConverter))] - public partial interface IInMageRcmSyncDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUnplannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmUnplannedFailoverInput.PowerShell.cs deleted file mode 100644 index 8c12e9797f0d..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUnplannedFailoverInput.PowerShell.cs +++ /dev/null @@ -1,162 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm provider specific input for unplanned failover. - [System.ComponentModel.TypeConverter(typeof(InMageRcmUnplannedFailoverInputTypeConverter))] - public partial class InMageRcmUnplannedFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmUnplannedFailoverInput(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.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmUnplannedFailoverInput(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.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmUnplannedFailoverInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PerformShutdown")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInputInternal)this).PerformShutdown = (string) content.GetValueForProperty("PerformShutdown",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInputInternal)this).PerformShutdown, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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 InMageRcmUnplannedFailoverInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PerformShutdown")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInputInternal)this).PerformShutdown = (string) content.GetValueForProperty("PerformShutdown",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInputInternal)this).PerformShutdown, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm provider specific input for unplanned failover. - [System.ComponentModel.TypeConverter(typeof(InMageRcmUnplannedFailoverInputTypeConverter))] - public partial interface IInMageRcmUnplannedFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateReplicationProtectedItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateReplicationProtectedItemInput.PowerShell.cs deleted file mode 100644 index dce59f9ec1e4..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateReplicationProtectedItemInput.PowerShell.cs +++ /dev/null @@ -1,237 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageRcm provider specific input to update replication protected item. - [System.ComponentModel.TypeConverter(typeof(InMageRcmUpdateReplicationProtectedItemInputTypeConverter))] - public partial class InMageRcmUpdateReplicationProtectedItemInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageRcmUpdateReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageRcmUpdateReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageRcmUpdateReplicationProtectedItemInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TargetVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("TargetResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetBootDiagnosticsStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TestNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TestNetworkId, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInput[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmNicInputTypeConverter.ConvertFrom)); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, 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 InMageRcmUpdateReplicationProtectedItemInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TargetVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("TargetResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetBootDiagnosticsStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TestNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TestNetworkId, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInput[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmNicInputTypeConverter.ConvertFrom)); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageRcm provider specific input to update replication protected item. - [System.ComponentModel.TypeConverter(typeof(InMageRcmUpdateReplicationProtectedItemInputTypeConverter))] - public partial interface IInMageRcmUpdateReplicationProtectedItemInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetails.PowerShell.cs deleted file mode 100644 index 5759e5a42d49..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetails.PowerShell.cs +++ /dev/null @@ -1,536 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMage provider specific settings. - [System.ComponentModel.TypeConverter(typeof(InMageReplicationDetailsTypeConverter))] - public partial class InMageReplicationDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageReplicationDetails(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.Migrate.Models.Api20220501.IInMageReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageReplicationDetails(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.Migrate.Models.Api20220501.IInMageReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageReplicationDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("OSDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDiskDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ResyncDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ResyncDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails) content.GetValueForProperty("ResyncDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ResyncDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("AgentDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetails) content.GetValueForProperty("AgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAgentDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ActiveSiteType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ActiveSiteType = (string) content.GetValueForProperty("ActiveSiteType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ActiveSiteType, global::System.Convert.ToString); - } - if (content.Contains("SourceVMCpuCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).SourceVMCpuCount = (int?) content.GetValueForProperty("SourceVMCpuCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).SourceVMCpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("SourceVMRamSizeInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).SourceVMRamSizeInMb = (int?) content.GetValueForProperty("SourceVMRamSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).SourceVMRamSizeInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ProtectionStage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); - } - if (content.Contains("VMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("RetentionWindowStart")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RetentionWindowStart = (global::System.DateTime?) content.GetValueForProperty("RetentionWindowStart",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RetentionWindowStart, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RetentionWindowEnd")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RetentionWindowEnd = (global::System.DateTime?) content.GetValueForProperty("RetentionWindowEnd",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RetentionWindowEnd, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("CompressedDataRateInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).CompressedDataRateInMb = (double?) content.GetValueForProperty("CompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).CompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("UncompressedDataRateInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).UncompressedDataRateInMb = (double?) content.GetValueForProperty("UncompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).UncompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("RpoInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ProtectedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageProtectedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("MasterTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MasterTargetId, global::System.Convert.ToString); - } - if (content.Contains("ConsistencyPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ConsistencyPoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints) content.GetValueForProperty("ConsistencyPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ConsistencyPoint, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageReplicationDetailsConsistencyPointsTypeConverter.ConvertFrom); - } - if (content.Contains("DiskResized")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).DiskResized, global::System.Convert.ToString); - } - if (content.Contains("RebootAfterUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RebootAfterUpdateStatus = (string) content.GetValueForProperty("RebootAfterUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RebootAfterUpdateStatus, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); - } - if (content.Contains("VCenterInfrastructureId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VCenterInfrastructureId = (string) content.GetValueForProperty("VCenterInfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VCenterInfrastructureId, global::System.Convert.ToString); - } - if (content.Contains("InfrastructureVMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).InfrastructureVMId = (string) content.GetValueForProperty("InfrastructureVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).InfrastructureVMId, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("DiscoveryType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); - } - if (content.Contains("AzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AzureStorageAccountId = (string) content.GetValueForProperty("AzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AzureStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("Datastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("ValidationError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("LastRpoCalculatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastUpdateReceivedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).LastUpdateReceivedTime = (global::System.DateTime?) content.GetValueForProperty("LastUpdateReceivedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).LastUpdateReceivedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ReplicaId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ReplicaId = (string) content.GetValueForProperty("ReplicaId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ReplicaId, global::System.Convert.ToString); - } - if (content.Contains("OSVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSVersion, global::System.Convert.ToString); - } - if (content.Contains("IsAdditionalStatsAvailable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).IsAdditionalStatsAvailable = (bool?) content.GetValueForProperty("IsAdditionalStatsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).IsAdditionalStatsAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TotalDataTransferred")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).TotalDataTransferred = (long?) content.GetValueForProperty("TotalDataTransferred",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).TotalDataTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("TotalProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).TotalProgressHealth = (string) content.GetValueForProperty("TotalProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).TotalProgressHealth, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsvhdId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetailOsvhdId = (string) content.GetValueForProperty("OSDetailOsvhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetailOsvhdId, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOstype")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); - } - if (content.Contains("OSDetailVhdName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetailVhdName = (string) content.GetValueForProperty("OSDetailVhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetailVhdName, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailInitialReplicationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationType = (string) content.GetValueForProperty("ResyncDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationType, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailInitialReplicationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("ResyncDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationProgressPercentage, global::System.Convert.ToString); - } - if (content.Contains("AgentDetailAgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailAgentVersion = (string) content.GetValueForProperty("AgentDetailAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailAgentVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentDetailAgentUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailAgentUpdateStatus = (string) content.GetValueForProperty("AgentDetailAgentUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailAgentUpdateStatus, global::System.Convert.ToString); - } - if (content.Contains("AgentDetailPostUpdateRebootStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailPostUpdateRebootStatus = (string) content.GetValueForProperty("AgentDetailPostUpdateRebootStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailPostUpdateRebootStatus, global::System.Convert.ToString); - } - if (content.Contains("AgentDetailAgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailAgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentDetailAgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailAgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageReplicationDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("OSDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDiskDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ResyncDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ResyncDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails) content.GetValueForProperty("ResyncDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ResyncDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("AgentDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetails) content.GetValueForProperty("AgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAgentDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ActiveSiteType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ActiveSiteType = (string) content.GetValueForProperty("ActiveSiteType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ActiveSiteType, global::System.Convert.ToString); - } - if (content.Contains("SourceVMCpuCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).SourceVMCpuCount = (int?) content.GetValueForProperty("SourceVMCpuCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).SourceVMCpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("SourceVMRamSizeInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).SourceVMRamSizeInMb = (int?) content.GetValueForProperty("SourceVMRamSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).SourceVMRamSizeInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ProtectionStage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); - } - if (content.Contains("VMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); - } - if (content.Contains("VMProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("RetentionWindowStart")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RetentionWindowStart = (global::System.DateTime?) content.GetValueForProperty("RetentionWindowStart",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RetentionWindowStart, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RetentionWindowEnd")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RetentionWindowEnd = (global::System.DateTime?) content.GetValueForProperty("RetentionWindowEnd",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RetentionWindowEnd, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("CompressedDataRateInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).CompressedDataRateInMb = (double?) content.GetValueForProperty("CompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).CompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("UncompressedDataRateInMb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).UncompressedDataRateInMb = (double?) content.GetValueForProperty("UncompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).UncompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("RpoInSecond")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ProtectedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageProtectedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("MasterTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MasterTargetId, global::System.Convert.ToString); - } - if (content.Contains("ConsistencyPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ConsistencyPoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints) content.GetValueForProperty("ConsistencyPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ConsistencyPoint, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageReplicationDetailsConsistencyPointsTypeConverter.ConvertFrom); - } - if (content.Contains("DiskResized")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).DiskResized, global::System.Convert.ToString); - } - if (content.Contains("RebootAfterUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RebootAfterUpdateStatus = (string) content.GetValueForProperty("RebootAfterUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).RebootAfterUpdateStatus, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); - } - if (content.Contains("VCenterInfrastructureId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VCenterInfrastructureId = (string) content.GetValueForProperty("VCenterInfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VCenterInfrastructureId, global::System.Convert.ToString); - } - if (content.Contains("InfrastructureVMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).InfrastructureVMId = (string) content.GetValueForProperty("InfrastructureVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).InfrastructureVMId, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("DiscoveryType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); - } - if (content.Contains("AzureStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AzureStorageAccountId = (string) content.GetValueForProperty("AzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AzureStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("Datastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("ValidationError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("LastRpoCalculatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastUpdateReceivedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).LastUpdateReceivedTime = (global::System.DateTime?) content.GetValueForProperty("LastUpdateReceivedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).LastUpdateReceivedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ReplicaId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ReplicaId = (string) content.GetValueForProperty("ReplicaId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ReplicaId, global::System.Convert.ToString); - } - if (content.Contains("OSVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSVersion, global::System.Convert.ToString); - } - if (content.Contains("IsAdditionalStatsAvailable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).IsAdditionalStatsAvailable = (bool?) content.GetValueForProperty("IsAdditionalStatsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).IsAdditionalStatsAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TotalDataTransferred")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).TotalDataTransferred = (long?) content.GetValueForProperty("TotalDataTransferred",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).TotalDataTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("TotalProgressHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).TotalProgressHealth = (string) content.GetValueForProperty("TotalProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).TotalProgressHealth, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsvhdId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetailOsvhdId = (string) content.GetValueForProperty("OSDetailOsvhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetailOsvhdId, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOstype")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); - } - if (content.Contains("OSDetailVhdName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetailVhdName = (string) content.GetValueForProperty("OSDetailVhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).OSDetailVhdName, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailInitialReplicationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationType = (string) content.GetValueForProperty("ResyncDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationType, global::System.Convert.ToString); - } - if (content.Contains("ResyncDetailInitialReplicationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("ResyncDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationProgressPercentage, global::System.Convert.ToString); - } - if (content.Contains("AgentDetailAgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailAgentVersion = (string) content.GetValueForProperty("AgentDetailAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailAgentVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentDetailAgentUpdateStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailAgentUpdateStatus = (string) content.GetValueForProperty("AgentDetailAgentUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailAgentUpdateStatus, global::System.Convert.ToString); - } - if (content.Contains("AgentDetailPostUpdateRebootStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailPostUpdateRebootStatus = (string) content.GetValueForProperty("AgentDetailPostUpdateRebootStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailPostUpdateRebootStatus, global::System.Convert.ToString); - } - if (content.Contains("AgentDetailAgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailAgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentDetailAgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal)this).AgentDetailAgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMage provider specific settings. - [System.ComponentModel.TypeConverter(typeof(InMageReplicationDetailsTypeConverter))] - public partial interface IInMageReplicationDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageReprotectInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageReprotectInput.PowerShell.cs deleted file mode 100644 index 75059b583ed4..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageReprotectInput.PowerShell.cs +++ /dev/null @@ -1,224 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// InMageAzureV2 specific provider input. - [System.ComponentModel.TypeConverter(typeof(InMageReprotectInputTypeConverter))] - public partial class InMageReprotectInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageReprotectInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageReprotectInput(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.Migrate.Models.Api20220501.IInMageReprotectInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageReprotectInput(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.Migrate.Models.Api20220501.IInMageReprotectInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageReprotectInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskExclusionInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DiskExclusionInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput) content.GetValueForProperty("DiskExclusionInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DiskExclusionInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskExclusionInputTypeConverter.ConvertFrom); - } - if (content.Contains("MasterTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).MasterTargetId, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("RetentionDrive")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).RetentionDrive = (string) content.GetValueForProperty("RetentionDrive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).RetentionDrive, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("DatastoreName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DatastoreName = (string) content.GetValueForProperty("DatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DatastoreName, global::System.Convert.ToString); - } - if (content.Contains("ProfileId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).ProfileId = (string) content.GetValueForProperty("ProfileId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).ProfileId, global::System.Convert.ToString); - } - if (content.Contains("DisksToInclude")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("DiskExclusionInputVolumeOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DiskExclusionInputVolumeOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputVolumeOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DiskExclusionInputVolumeOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageVolumeExclusionOptionsTypeConverter.ConvertFrom)); - } - if (content.Contains("DiskExclusionInputDiskSignatureOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DiskExclusionInputDiskSignatureOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputDiskSignatureOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DiskExclusionInputDiskSignatureOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskSignatureExclusionOptionsTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InMageReprotectInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskExclusionInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DiskExclusionInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput) content.GetValueForProperty("DiskExclusionInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DiskExclusionInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskExclusionInputTypeConverter.ConvertFrom); - } - if (content.Contains("MasterTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).MasterTargetId, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("RetentionDrive")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).RetentionDrive = (string) content.GetValueForProperty("RetentionDrive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).RetentionDrive, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("DatastoreName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DatastoreName = (string) content.GetValueForProperty("DatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DatastoreName, global::System.Convert.ToString); - } - if (content.Contains("ProfileId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).ProfileId = (string) content.GetValueForProperty("ProfileId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).ProfileId, global::System.Convert.ToString); - } - if (content.Contains("DisksToInclude")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("DiskExclusionInputVolumeOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DiskExclusionInputVolumeOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputVolumeOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DiskExclusionInputVolumeOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageVolumeExclusionOptionsTypeConverter.ConvertFrom)); - } - if (content.Contains("DiskExclusionInputDiskSignatureOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DiskExclusionInputDiskSignatureOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputDiskSignatureOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal)this).DiskExclusionInputDiskSignatureOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskSignatureExclusionOptionsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// InMageAzureV2 specific provider input. - [System.ComponentModel.TypeConverter(typeof(InMageReprotectInputTypeConverter))] - public partial interface IInMageReprotectInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageTestFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageTestFailoverInput.PowerShell.cs deleted file mode 100644 index a1261fe340af..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageTestFailoverInput.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Provider specific input for InMage test failover. - [System.ComponentModel.TypeConverter(typeof(InMageTestFailoverInputTypeConverter))] - public partial class InMageTestFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageTestFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageTestFailoverInput(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.Migrate.Models.Api20220501.IInMageTestFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageTestFailoverInput(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.Migrate.Models.Api20220501.IInMageTestFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageTestFailoverInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageTestFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageTestFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType.CreateFrom); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageTestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageTestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType, 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 InMageTestFailoverInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageTestFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageTestFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType.CreateFrom); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageTestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageTestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Provider specific input for InMage test failover. - [System.ComponentModel.TypeConverter(typeof(InMageTestFailoverInputTypeConverter))] - public partial interface IInMageTestFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageUnplannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InMageUnplannedFailoverInput.PowerShell.cs deleted file mode 100644 index f1b624eda7ed..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InMageUnplannedFailoverInput.PowerShell.cs +++ /dev/null @@ -1,162 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Provider specific input for InMage unplanned failover. - [System.ComponentModel.TypeConverter(typeof(InMageUnplannedFailoverInputTypeConverter))] - public partial class InMageUnplannedFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInMageUnplannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InMageUnplannedFailoverInput(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.Migrate.Models.Api20220501.IInMageUnplannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InMageUnplannedFailoverInput(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.Migrate.Models.Api20220501.IInMageUnplannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InMageUnplannedFailoverInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageUnplannedFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageUnplannedFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType.CreateFrom); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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 InMageUnplannedFailoverInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageUnplannedFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageUnplannedFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType.CreateFrom); - } - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Provider specific input for InMage unplanned failover. - [System.ComponentModel.TypeConverter(typeof(InMageUnplannedFailoverInputTypeConverter))] - public partial interface IInMageUnplannedFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InconsistentVMDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InconsistentVMDetails.PowerShell.cs deleted file mode 100644 index 09107b3b7505..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InconsistentVMDetails.PowerShell.cs +++ /dev/null @@ -1,170 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// This class stores the monitoring details for consistency check of inconsistent Protected Entity. - /// - [System.ComponentModel.TypeConverter(typeof(InconsistentVMDetailsTypeConverter))] - public partial class InconsistentVMDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInconsistentVMDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InconsistentVMDetails(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.Migrate.Models.Api20220501.IInconsistentVMDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InconsistentVMDetails(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.Migrate.Models.Api20220501.IInconsistentVMDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InconsistentVMDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).VMName, global::System.Convert.ToString); - } - if (content.Contains("CloudName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).CloudName = (string) content.GetValueForProperty("CloudName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).CloudName, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).Detail = (string[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("ErrorId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).ErrorId = (string[]) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).ErrorId, __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 InconsistentVMDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).VMName, global::System.Convert.ToString); - } - if (content.Contains("CloudName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).CloudName = (string) content.GetValueForProperty("CloudName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).CloudName, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).Detail = (string[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("ErrorId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).ErrorId = (string[]) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal)this).ErrorId, __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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class stores the monitoring details for consistency check of inconsistent Protected Entity. - [System.ComponentModel.TypeConverter(typeof(InconsistentVMDetailsTypeConverter))] - public partial interface IInconsistentVMDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InlineWorkflowTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InlineWorkflowTaskDetails.PowerShell.cs deleted file mode 100644 index 2b1fc499f394..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InlineWorkflowTaskDetails.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class represents the inline workflow task details. - [System.ComponentModel.TypeConverter(typeof(InlineWorkflowTaskDetailsTypeConverter))] - public partial class InlineWorkflowTaskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInlineWorkflowTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InlineWorkflowTaskDetails(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.Migrate.Models.Api20220501.IInlineWorkflowTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InlineWorkflowTaskDetails(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.Migrate.Models.Api20220501.IInlineWorkflowTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InlineWorkflowTaskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("WorkflowId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInlineWorkflowTaskDetailsInternal)this).WorkflowId = (string[]) content.GetValueForProperty("WorkflowId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInlineWorkflowTaskDetailsInternal)this).WorkflowId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("ChildTask")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTaskTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InlineWorkflowTaskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("WorkflowId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInlineWorkflowTaskDetailsInternal)this).WorkflowId = (string[]) content.GetValueForProperty("WorkflowId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInlineWorkflowTaskDetailsInternal)this).WorkflowId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("ChildTask")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTaskTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class represents the inline workflow task details. - [System.ComponentModel.TypeConverter(typeof(InlineWorkflowTaskDetailsTypeConverter))] - public partial interface IInlineWorkflowTaskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InnerHealthError.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InnerHealthError.PowerShell.cs deleted file mode 100644 index dac3d6e6d5f5..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InnerHealthError.PowerShell.cs +++ /dev/null @@ -1,256 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// Implements InnerHealthError class. HealthError object has a list of InnerHealthErrors as child errors. InnerHealthError - /// is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are - /// exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as - /// Exception -> InnerException. - /// - [System.ComponentModel.TypeConverter(typeof(InnerHealthErrorTypeConverter))] - public partial class InnerHealthError - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInnerHealthError DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InnerHealthError(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.Migrate.Models.Api20220501.IInnerHealthError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InnerHealthError(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.Migrate.Models.Api20220501.IInnerHealthError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InnerHealthError(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorSource = (string) content.GetValueForProperty("ErrorSource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorSource, global::System.Convert.ToString); - } - if (content.Contains("ErrorType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorType = (string) content.GetValueForProperty("ErrorType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorType, global::System.Convert.ToString); - } - if (content.Contains("ErrorLevel")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorLevel = (string) content.GetValueForProperty("ErrorLevel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorLevel, global::System.Convert.ToString); - } - if (content.Contains("ErrorCategory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorCategory = (string) content.GetValueForProperty("ErrorCategory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorCategory, global::System.Convert.ToString); - } - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("SummaryMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).SummaryMessage = (string) content.GetValueForProperty("SummaryMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).SummaryMessage, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("CreationTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).CreationTimeUtc = (global::System.DateTime?) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).CreationTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RecoveryProviderErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).RecoveryProviderErrorMessage = (string) content.GetValueForProperty("RecoveryProviderErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).RecoveryProviderErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("EntityId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).EntityId = (string) content.GetValueForProperty("EntityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).EntityId, global::System.Convert.ToString); - } - if (content.Contains("ErrorId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorId = (string) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorId, global::System.Convert.ToString); - } - if (content.Contains("CustomerResolvability")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).CustomerResolvability = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability?) content.GetValueForProperty("CustomerResolvability",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).CustomerResolvability, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal InnerHealthError(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorSource = (string) content.GetValueForProperty("ErrorSource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorSource, global::System.Convert.ToString); - } - if (content.Contains("ErrorType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorType = (string) content.GetValueForProperty("ErrorType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorType, global::System.Convert.ToString); - } - if (content.Contains("ErrorLevel")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorLevel = (string) content.GetValueForProperty("ErrorLevel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorLevel, global::System.Convert.ToString); - } - if (content.Contains("ErrorCategory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorCategory = (string) content.GetValueForProperty("ErrorCategory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorCategory, global::System.Convert.ToString); - } - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorCode, global::System.Convert.ToString); - } - if (content.Contains("SummaryMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).SummaryMessage = (string) content.GetValueForProperty("SummaryMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).SummaryMessage, global::System.Convert.ToString); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("CreationTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).CreationTimeUtc = (global::System.DateTime?) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).CreationTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RecoveryProviderErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).RecoveryProviderErrorMessage = (string) content.GetValueForProperty("RecoveryProviderErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).RecoveryProviderErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("EntityId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).EntityId = (string) content.GetValueForProperty("EntityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).EntityId, global::System.Convert.ToString); - } - if (content.Contains("ErrorId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorId = (string) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).ErrorId, global::System.Convert.ToString); - } - if (content.Contains("CustomerResolvability")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).CustomerResolvability = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability?) content.GetValueForProperty("CustomerResolvability",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal)this).CustomerResolvability, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Implements InnerHealthError class. HealthError object has a list of InnerHealthErrors as child errors. InnerHealthError - /// is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are - /// exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as - /// Exception -> InnerException. - [System.ComponentModel.TypeConverter(typeof(InnerHealthErrorTypeConverter))] - public partial interface IInnerHealthError - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InputEndpoint.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/InputEndpoint.PowerShell.cs deleted file mode 100644 index b03e2b6a9408..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/InputEndpoint.PowerShell.cs +++ /dev/null @@ -1,166 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - [System.ComponentModel.TypeConverter(typeof(InputEndpointTypeConverter))] - public partial class InputEndpoint - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IInputEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new InputEndpoint(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.Migrate.Models.Api20220501.IInputEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new InputEndpoint(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.Migrate.Models.Api20220501.IInputEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal InputEndpoint(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("EndpointName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).EndpointName = (string) content.GetValueForProperty("EndpointName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).EndpointName, global::System.Convert.ToString); - } - if (content.Contains("PrivatePort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).PrivatePort = (int?) content.GetValueForProperty("PrivatePort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).PrivatePort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("PublicPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).PublicPort = (int?) content.GetValueForProperty("PublicPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).PublicPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Protocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).Protocol, 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 InputEndpoint(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("EndpointName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).EndpointName = (string) content.GetValueForProperty("EndpointName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).EndpointName, global::System.Convert.ToString); - } - if (content.Contains("PrivatePort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).PrivatePort = (int?) content.GetValueForProperty("PrivatePort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).PrivatePort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("PublicPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).PublicPort = (int?) content.GetValueForProperty("PublicPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).PublicPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Protocol")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal)this).Protocol, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - [System.ComponentModel.TypeConverter(typeof(InputEndpointTypeConverter))] - public partial interface IInputEndpoint - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Job.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/Job.PowerShell.cs deleted file mode 100644 index 6eafbc80a5d8..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/Job.PowerShell.cs +++ /dev/null @@ -1,304 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Job details. - [System.ComponentModel.TypeConverter(typeof(JobTypeConverter))] - public partial class Job - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IJob DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Job(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.Migrate.Models.Api20220501.IJob DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Job(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.Migrate.Models.Api20220501.IJob FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Job(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.Migrate.Models.Api20220501.IJobInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobPropertiesAutoGeneratedTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ActivityId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).ActivityId, global::System.Convert.ToString); - } - if (content.Contains("ScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).ScenarioName = (string) content.GetValueForProperty("ScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).ScenarioName, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("StateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).StateDescription = (string) content.GetValueForProperty("StateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).StateDescription, global::System.Convert.ToString); - } - if (content.Contains("Task")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).Task = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[]) content.GetValueForProperty("Task",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).Task, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTaskTypeConverter.ConvertFrom)); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AllowedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).AllowedAction = (string[]) content.GetValueForProperty("AllowedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).AllowedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("TargetObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).TargetObjectId = (string) content.GetValueForProperty("TargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).TargetObjectId, global::System.Convert.ToString); - } - if (content.Contains("TargetObjectName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).TargetObjectName = (string) content.GetValueForProperty("TargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).TargetObjectName, global::System.Convert.ToString); - } - if (content.Contains("TargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).TargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("CustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); - } - if (content.Contains("CustomDetailAffectedObjectDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).CustomDetailAffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("CustomDetailAffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).CustomDetailAffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal Job(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.Migrate.Models.Api20220501.IJobInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobPropertiesAutoGeneratedTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ActivityId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).ActivityId, global::System.Convert.ToString); - } - if (content.Contains("ScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).ScenarioName = (string) content.GetValueForProperty("ScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).ScenarioName, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("StateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).StateDescription = (string) content.GetValueForProperty("StateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).StateDescription, global::System.Convert.ToString); - } - if (content.Contains("Task")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).Task = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[]) content.GetValueForProperty("Task",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).Task, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTaskTypeConverter.ConvertFrom)); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AllowedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).AllowedAction = (string[]) content.GetValueForProperty("AllowedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).AllowedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("TargetObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).TargetObjectId = (string) content.GetValueForProperty("TargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).TargetObjectId, global::System.Convert.ToString); - } - if (content.Contains("TargetObjectName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).TargetObjectName = (string) content.GetValueForProperty("TargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).TargetObjectName, global::System.Convert.ToString); - } - if (content.Contains("TargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).TargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("CustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); - } - if (content.Contains("CustomDetailAffectedObjectDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).CustomDetailAffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("CustomDetailAffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal)this).CustomDetailAffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Job details. - [System.ComponentModel.TypeConverter(typeof(JobTypeConverter))] - public partial interface IJob - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Job.cs b/src/Migrate/generated/api/Models/Api20220501/Job.cs deleted file mode 100644 index 70dd5099938f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/Job.cs +++ /dev/null @@ -1,339 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Job details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.DoNotFormat] - public partial class Job : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// The activity id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ActivityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).ActivityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).ActivityId = value ?? null; } - - /// The Allowed action the job. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] AllowedAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).AllowedAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).AllowedAction = value ?? null /* arrayOf */; } - - /// - /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow - /// object details. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails CustomDetailAffectedObjectDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).CustomDetailAffectedObjectDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).CustomDetailAffectedObjectDetail = value ?? null /* model class */; } - - /// Gets the type of job details (see JobDetailsTypes enum for possible values). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).CustomDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).CustomDetailInstanceType = value ?? null; } - - /// The end time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).EndTime = value ?? default(global::System.DateTime); } - - /// The errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[] Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).Error = value ?? null /* arrayOf */; } - - /// The DisplayName. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).FriendlyName = value ?? null; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for CustomDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal.CustomDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).CustomDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).CustomDetail = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobPropertiesAutoGenerated()); set { {_property = value;} } } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated _property; - - /// The custom data. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobPropertiesAutoGenerated()); set => this._property = value; } - - /// The ScenarioName. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).ScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).ScenarioName = value ?? null; } - - /// The start time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).StartTime = value ?? default(global::System.DateTime); } - - /// - /// The status of the Job. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or - /// Other. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string State { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).State = value ?? null; } - - /// - /// The description of the state of the Job. For e.g. - For Succeeded state, description can be Completed, PartiallySucceeded, - /// CompletedWithInformation or Skipped. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string StateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).StateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).StateDescription = value ?? null; } - - /// - /// The type of the affected object which is of Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType class. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TargetInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).TargetInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).TargetInstanceType = value ?? null; } - - /// The affected Object Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TargetObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).TargetObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).TargetObjectId = value ?? null; } - - /// The name of the affected object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TargetObjectName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).TargetObjectName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).TargetObjectName = value ?? null; } - - /// The tasks. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] Task { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).Task; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)Property).Task = value ?? null /* arrayOf */; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public Job() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Job details. - public partial interface IJob : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// The activity id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The activity id.", - SerializedName = @"activityId", - PossibleTypes = new [] { typeof(string) })] - string ActivityId { get; set; } - /// The Allowed action the job. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Allowed action the job.", - SerializedName = @"allowedActions", - PossibleTypes = new [] { typeof(string) })] - string[] AllowedAction { get; set; } - /// - /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow - /// object details. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow object details.", - SerializedName = @"affectedObjectDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails CustomDetailAffectedObjectDetail { get; set; } - /// Gets the type of job details (see JobDetailsTypes enum for possible values). - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the type of job details (see JobDetailsTypes enum for possible values).", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string CustomDetailInstanceType { get; set; } - /// The end time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The end time.", - SerializedName = @"endTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? EndTime { get; set; } - /// The errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The errors.", - SerializedName = @"errors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[] Error { get; set; } - /// The DisplayName. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The DisplayName.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// The ScenarioName. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ScenarioName.", - SerializedName = @"scenarioName", - PossibleTypes = new [] { typeof(string) })] - string ScenarioName { get; set; } - /// The start time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The start time.", - SerializedName = @"startTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? StartTime { get; set; } - /// - /// The status of the Job. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or - /// Other. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The status of the Job. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or Other.", - SerializedName = @"state", - PossibleTypes = new [] { typeof(string) })] - string State { get; set; } - /// - /// The description of the state of the Job. For e.g. - For Succeeded state, description can be Completed, PartiallySucceeded, - /// CompletedWithInformation or Skipped. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The description of the state of the Job. For e.g. - For Succeeded state, description can be Completed, PartiallySucceeded, CompletedWithInformation or Skipped.", - SerializedName = @"stateDescription", - PossibleTypes = new [] { typeof(string) })] - string StateDescription { get; set; } - /// - /// The type of the affected object which is of Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType class. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of the affected object which is of Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType class.", - SerializedName = @"targetInstanceType", - PossibleTypes = new [] { typeof(string) })] - string TargetInstanceType { get; set; } - /// The affected Object Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The affected Object Id.", - SerializedName = @"targetObjectId", - PossibleTypes = new [] { typeof(string) })] - string TargetObjectId { get; set; } - /// The name of the affected object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name of the affected object.", - SerializedName = @"targetObjectName", - PossibleTypes = new [] { typeof(string) })] - string TargetObjectName { get; set; } - /// The tasks. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The tasks.", - SerializedName = @"tasks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] Task { get; set; } - - } - /// Job details. - internal partial interface IJobInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The activity id. - string ActivityId { get; set; } - /// The Allowed action the job. - string[] AllowedAction { get; set; } - /// The custom job details like test failover job details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails CustomDetail { get; set; } - /// - /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow - /// object details. - /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails CustomDetailAffectedObjectDetail { get; set; } - /// Gets the type of job details (see JobDetailsTypes enum for possible values). - string CustomDetailInstanceType { get; set; } - /// The end time. - global::System.DateTime? EndTime { get; set; } - /// The errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[] Error { get; set; } - /// The DisplayName. - string FriendlyName { get; set; } - /// The custom data. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated Property { get; set; } - /// The ScenarioName. - string ScenarioName { get; set; } - /// The start time. - global::System.DateTime? StartTime { get; set; } - /// - /// The status of the Job. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or - /// Other. - /// - string State { get; set; } - /// - /// The description of the state of the Job. For e.g. - For Succeeded state, description can be Completed, PartiallySucceeded, - /// CompletedWithInformation or Skipped. - /// - string StateDescription { get; set; } - /// - /// The type of the affected object which is of Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType class. - /// - string TargetInstanceType { get; set; } - /// The affected Object Id. - string TargetObjectId { get; set; } - /// The name of the affected object. - string TargetObjectName { get; set; } - /// The tasks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] Task { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobEntity.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/JobEntity.PowerShell.cs deleted file mode 100644 index 9786517059fd..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/JobEntity.PowerShell.cs +++ /dev/null @@ -1,186 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// This class contains the minimal job details required to navigate to the desired drill down. - /// - [System.ComponentModel.TypeConverter(typeof(JobEntityTypeConverter))] - public partial class JobEntity - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IJobEntity DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new JobEntity(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.Migrate.Models.Api20220501.IJobEntity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new JobEntity(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.Migrate.Models.Api20220501.IJobEntity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal JobEntity(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("JobFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).JobFriendlyName = (string) content.GetValueForProperty("JobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).JobFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("TargetObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).TargetObjectId = (string) content.GetValueForProperty("TargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).TargetObjectId, global::System.Convert.ToString); - } - if (content.Contains("TargetObjectName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).TargetObjectName = (string) content.GetValueForProperty("TargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).TargetObjectName, global::System.Convert.ToString); - } - if (content.Contains("TargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).TargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("JobScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).JobScenarioName = (string) content.GetValueForProperty("JobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).JobScenarioName, 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 JobEntity(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("JobFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).JobFriendlyName = (string) content.GetValueForProperty("JobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).JobFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("TargetObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).TargetObjectId = (string) content.GetValueForProperty("TargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).TargetObjectId, global::System.Convert.ToString); - } - if (content.Contains("TargetObjectName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).TargetObjectName = (string) content.GetValueForProperty("TargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).TargetObjectName, global::System.Convert.ToString); - } - if (content.Contains("TargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).TargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("JobScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).JobScenarioName = (string) content.GetValueForProperty("JobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)this).JobScenarioName, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class contains the minimal job details required to navigate to the desired drill down. - [System.ComponentModel.TypeConverter(typeof(JobEntityTypeConverter))] - public partial interface IJobEntity - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobErrorDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/JobErrorDetails.PowerShell.cs deleted file mode 100644 index 917fdc842198..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/JobErrorDetails.PowerShell.cs +++ /dev/null @@ -1,256 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class contains the error details per object. - [System.ComponentModel.TypeConverter(typeof(JobErrorDetailsTypeConverter))] - public partial class JobErrorDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IJobErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new JobErrorDetails(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.Migrate.Models.Api20220501.IJobErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new JobErrorDetails(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.Migrate.Models.Api20220501.IJobErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal JobErrorDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ServiceErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceError) content.GetValueForProperty("ServiceErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ServiceErrorTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderError) content.GetValueForProperty("ProviderErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderErrorTypeConverter.ConvertFrom); - } - if (content.Contains("ErrorLevel")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ErrorLevel = (string) content.GetValueForProperty("ErrorLevel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ErrorLevel, global::System.Convert.ToString); - } - if (content.Contains("CreationTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).CreationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("TaskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).TaskId = (string) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).TaskId, global::System.Convert.ToString); - } - if (content.Contains("ServiceErrorDetailCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailCode = (string) content.GetValueForProperty("ServiceErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailCode, global::System.Convert.ToString); - } - if (content.Contains("ServiceErrorDetailMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailMessage = (string) content.GetValueForProperty("ServiceErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailMessage, global::System.Convert.ToString); - } - if (content.Contains("ServiceErrorDetailPossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailPossibleCaus = (string) content.GetValueForProperty("ServiceErrorDetailPossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailPossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("ServiceErrorDetailRecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailRecommendedAction = (string) content.GetValueForProperty("ServiceErrorDetailRecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailRecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ServiceErrorDetailActivityId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailActivityId = (string) content.GetValueForProperty("ServiceErrorDetailActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailActivityId, global::System.Convert.ToString); - } - if (content.Contains("ProviderErrorDetailErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorCode = (int?) content.GetValueForProperty("ProviderErrorDetailErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ProviderErrorDetailErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorMessage = (string) content.GetValueForProperty("ProviderErrorDetailErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("ProviderErrorDetailErrorId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorId = (string) content.GetValueForProperty("ProviderErrorDetailErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorId, global::System.Convert.ToString); - } - if (content.Contains("ProviderErrorDetailPossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailPossibleCaus = (string) content.GetValueForProperty("ProviderErrorDetailPossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailPossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("ProviderErrorDetailRecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailRecommendedAction = (string) content.GetValueForProperty("ProviderErrorDetailRecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailRecommendedAction, 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 JobErrorDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ServiceErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceError) content.GetValueForProperty("ServiceErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ServiceErrorTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderError) content.GetValueForProperty("ProviderErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderErrorTypeConverter.ConvertFrom); - } - if (content.Contains("ErrorLevel")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ErrorLevel = (string) content.GetValueForProperty("ErrorLevel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ErrorLevel, global::System.Convert.ToString); - } - if (content.Contains("CreationTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).CreationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("TaskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).TaskId = (string) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).TaskId, global::System.Convert.ToString); - } - if (content.Contains("ServiceErrorDetailCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailCode = (string) content.GetValueForProperty("ServiceErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailCode, global::System.Convert.ToString); - } - if (content.Contains("ServiceErrorDetailMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailMessage = (string) content.GetValueForProperty("ServiceErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailMessage, global::System.Convert.ToString); - } - if (content.Contains("ServiceErrorDetailPossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailPossibleCaus = (string) content.GetValueForProperty("ServiceErrorDetailPossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailPossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("ServiceErrorDetailRecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailRecommendedAction = (string) content.GetValueForProperty("ServiceErrorDetailRecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailRecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ServiceErrorDetailActivityId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailActivityId = (string) content.GetValueForProperty("ServiceErrorDetailActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ServiceErrorDetailActivityId, global::System.Convert.ToString); - } - if (content.Contains("ProviderErrorDetailErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorCode = (int?) content.GetValueForProperty("ProviderErrorDetailErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ProviderErrorDetailErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorMessage = (string) content.GetValueForProperty("ProviderErrorDetailErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("ProviderErrorDetailErrorId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorId = (string) content.GetValueForProperty("ProviderErrorDetailErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorId, global::System.Convert.ToString); - } - if (content.Contains("ProviderErrorDetailPossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailPossibleCaus = (string) content.GetValueForProperty("ProviderErrorDetailPossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailPossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("ProviderErrorDetailRecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailRecommendedAction = (string) content.GetValueForProperty("ProviderErrorDetailRecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal)this).ProviderErrorDetailRecommendedAction, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class contains the error details per object. - [System.ComponentModel.TypeConverter(typeof(JobErrorDetailsTypeConverter))] - public partial interface IJobErrorDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobPropertiesAutoGenerated.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/JobPropertiesAutoGenerated.PowerShell.cs deleted file mode 100644 index 1d0aa85273ed..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/JobPropertiesAutoGenerated.PowerShell.cs +++ /dev/null @@ -1,264 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Job custom data details. - [System.ComponentModel.TypeConverter(typeof(JobPropertiesAutoGeneratedTypeConverter))] - public partial class JobPropertiesAutoGenerated - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new JobPropertiesAutoGenerated(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.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new JobPropertiesAutoGenerated(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.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal JobPropertiesAutoGenerated(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ActivityId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).ActivityId, global::System.Convert.ToString); - } - if (content.Contains("ScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).ScenarioName = (string) content.GetValueForProperty("ScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).ScenarioName, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("StateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).StateDescription = (string) content.GetValueForProperty("StateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).StateDescription, global::System.Convert.ToString); - } - if (content.Contains("Task")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).Task = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[]) content.GetValueForProperty("Task",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).Task, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTaskTypeConverter.ConvertFrom)); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AllowedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).AllowedAction = (string[]) content.GetValueForProperty("AllowedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).AllowedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("TargetObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).TargetObjectId = (string) content.GetValueForProperty("TargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).TargetObjectId, global::System.Convert.ToString); - } - if (content.Contains("TargetObjectName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).TargetObjectName = (string) content.GetValueForProperty("TargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).TargetObjectName, global::System.Convert.ToString); - } - if (content.Contains("TargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).TargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("CustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); - } - if (content.Contains("CustomDetailAffectedObjectDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).CustomDetailAffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("CustomDetailAffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).CustomDetailAffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal JobPropertiesAutoGenerated(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ActivityId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).ActivityId, global::System.Convert.ToString); - } - if (content.Contains("ScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).ScenarioName = (string) content.GetValueForProperty("ScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).ScenarioName, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("StateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).StateDescription = (string) content.GetValueForProperty("StateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).StateDescription, global::System.Convert.ToString); - } - if (content.Contains("Task")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).Task = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[]) content.GetValueForProperty("Task",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).Task, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTaskTypeConverter.ConvertFrom)); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AllowedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).AllowedAction = (string[]) content.GetValueForProperty("AllowedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).AllowedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("TargetObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).TargetObjectId = (string) content.GetValueForProperty("TargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).TargetObjectId, global::System.Convert.ToString); - } - if (content.Contains("TargetObjectName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).TargetObjectName = (string) content.GetValueForProperty("TargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).TargetObjectName, global::System.Convert.ToString); - } - if (content.Contains("TargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).TargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("CustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); - } - if (content.Contains("CustomDetailAffectedObjectDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).CustomDetailAffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("CustomDetailAffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal)this).CustomDetailAffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Job custom data details. - [System.ComponentModel.TypeConverter(typeof(JobPropertiesAutoGeneratedTypeConverter))] - public partial interface IJobPropertiesAutoGenerated - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobQueryParameter.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/JobQueryParameter.PowerShell.cs deleted file mode 100644 index f4ef091a2104..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/JobQueryParameter.PowerShell.cs +++ /dev/null @@ -1,200 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Query parameter to enumerate jobs. - [System.ComponentModel.TypeConverter(typeof(JobQueryParameterTypeConverter))] - public partial class JobQueryParameter - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IJobQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new JobQueryParameter(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.Migrate.Models.Api20220501.IJobQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new JobQueryParameter(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.Migrate.Models.Api20220501.IJobQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal JobQueryParameter(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).StartTime, global::System.Convert.ToString); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).EndTime, global::System.Convert.ToString); - } - if (content.Contains("FabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).FabricId = (string) content.GetValueForProperty("FabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).FabricId, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).AffectedObjectType = (string) content.GetValueForProperty("AffectedObjectType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).AffectedObjectType, global::System.Convert.ToString); - } - if (content.Contains("JobStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).JobStatus = (string) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).JobStatus, global::System.Convert.ToString); - } - if (content.Contains("JobOutputType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).JobOutputType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ExportJobOutputSerializationType?) content.GetValueForProperty("JobOutputType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).JobOutputType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ExportJobOutputSerializationType.CreateFrom); - } - if (content.Contains("JobName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).JobName, global::System.Convert.ToString); - } - if (content.Contains("TimezoneOffset")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).TimezoneOffset = (double?) content.GetValueForProperty("TimezoneOffset",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).TimezoneOffset, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal JobQueryParameter(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).StartTime, global::System.Convert.ToString); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).EndTime, global::System.Convert.ToString); - } - if (content.Contains("FabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).FabricId = (string) content.GetValueForProperty("FabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).FabricId, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).AffectedObjectType = (string) content.GetValueForProperty("AffectedObjectType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).AffectedObjectType, global::System.Convert.ToString); - } - if (content.Contains("JobStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).JobStatus = (string) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).JobStatus, global::System.Convert.ToString); - } - if (content.Contains("JobOutputType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).JobOutputType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ExportJobOutputSerializationType?) content.GetValueForProperty("JobOutputType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).JobOutputType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ExportJobOutputSerializationType.CreateFrom); - } - if (content.Contains("JobName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).JobName, global::System.Convert.ToString); - } - if (content.Contains("TimezoneOffset")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).TimezoneOffset = (double?) content.GetValueForProperty("TimezoneOffset",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal)this).TimezoneOffset, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Query parameter to enumerate jobs. - [System.ComponentModel.TypeConverter(typeof(JobQueryParameterTypeConverter))] - public partial interface IJobQueryParameter - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobStatusEventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/JobStatusEventDetails.PowerShell.cs deleted file mode 100644 index 58fae2267428..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/JobStatusEventDetails.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Model class for event details of a job status event. - [System.ComponentModel.TypeConverter(typeof(JobStatusEventDetailsTypeConverter))] - public partial class JobStatusEventDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IJobStatusEventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new JobStatusEventDetails(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.Migrate.Models.Api20220501.IJobStatusEventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new JobStatusEventDetails(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.Migrate.Models.Api20220501.IJobStatusEventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal JobStatusEventDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("JobFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).JobFriendlyName = (string) content.GetValueForProperty("JobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).JobFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("JobStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).JobStatus = (string) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).JobStatus, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).AffectedObjectType = (string) content.GetValueForProperty("AffectedObjectType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).AffectedObjectType, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetailsInternal)this).InstanceType, 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 JobStatusEventDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("JobFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).JobFriendlyName = (string) content.GetValueForProperty("JobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).JobFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("JobStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).JobStatus = (string) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).JobStatus, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).AffectedObjectType = (string) content.GetValueForProperty("AffectedObjectType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal)this).AffectedObjectType, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Model class for event details of a job status event. - [System.ComponentModel.TypeConverter(typeof(JobStatusEventDetailsTypeConverter))] - public partial interface IJobStatusEventDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/JobTaskDetails.PowerShell.cs deleted file mode 100644 index 92710a8b8ad7..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/JobTaskDetails.PowerShell.cs +++ /dev/null @@ -1,202 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// This class represents a task which is actually a workflow so that one can navigate to its individual drill down. - /// - [System.ComponentModel.TypeConverter(typeof(JobTaskDetailsTypeConverter))] - public partial class JobTaskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IJobTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new JobTaskDetails(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.Migrate.Models.Api20220501.IJobTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new JobTaskDetails(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.Migrate.Models.Api20220501.IJobTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal JobTaskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("JobTask")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity) content.GetValueForProperty("JobTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTask, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobEntityTypeConverter.ConvertFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobId = (string) content.GetValueForProperty("JobTaskJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobId, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName = (string) content.GetValueForProperty("JobTaskJobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectId = (string) content.GetValueForProperty("JobTaskTargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectId, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetObjectName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectName = (string) content.GetValueForProperty("JobTaskTargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectName, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType = (string) content.GetValueForProperty("JobTaskTargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobScenarioName = (string) content.GetValueForProperty("JobTaskJobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobScenarioName, 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 JobTaskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("JobTask")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity) content.GetValueForProperty("JobTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTask, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobEntityTypeConverter.ConvertFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobId = (string) content.GetValueForProperty("JobTaskJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobId, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName = (string) content.GetValueForProperty("JobTaskJobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectId = (string) content.GetValueForProperty("JobTaskTargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectId, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetObjectName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectName = (string) content.GetValueForProperty("JobTaskTargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectName, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType = (string) content.GetValueForProperty("JobTaskTargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobScenarioName = (string) content.GetValueForProperty("JobTaskJobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobScenarioName, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class represents a task which is actually a workflow so that one can navigate to its individual drill down. - [System.ComponentModel.TypeConverter(typeof(JobTaskDetailsTypeConverter))] - public partial interface IJobTaskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/LogicalNetwork.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/LogicalNetwork.PowerShell.cs deleted file mode 100644 index f5cbce6986fe..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/LogicalNetwork.PowerShell.cs +++ /dev/null @@ -1,208 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Logical network data model. - [System.ComponentModel.TypeConverter(typeof(LogicalNetworkTypeConverter))] - public partial class LogicalNetwork - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ILogicalNetwork DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new LogicalNetwork(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.Migrate.Models.Api20220501.ILogicalNetwork DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new LogicalNetwork(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.Migrate.Models.Api20220501.ILogicalNetwork FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal LogicalNetwork(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.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetworkPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("NetworkVirtualizationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).NetworkVirtualizationStatus = (string) content.GetValueForProperty("NetworkVirtualizationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).NetworkVirtualizationStatus, global::System.Convert.ToString); - } - if (content.Contains("Usage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).Usage = (string) content.GetValueForProperty("Usage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).Usage, global::System.Convert.ToString); - } - if (content.Contains("DefinitionsStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).DefinitionsStatus = (string) content.GetValueForProperty("DefinitionsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).DefinitionsStatus, 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 LogicalNetwork(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.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetworkPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("NetworkVirtualizationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).NetworkVirtualizationStatus = (string) content.GetValueForProperty("NetworkVirtualizationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).NetworkVirtualizationStatus, global::System.Convert.ToString); - } - if (content.Contains("Usage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).Usage = (string) content.GetValueForProperty("Usage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).Usage, global::System.Convert.ToString); - } - if (content.Contains("DefinitionsStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).DefinitionsStatus = (string) content.GetValueForProperty("DefinitionsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal)this).DefinitionsStatus, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Logical network data model. - [System.ComponentModel.TypeConverter(typeof(LogicalNetworkTypeConverter))] - public partial interface ILogicalNetwork - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/LogicalNetwork.cs b/src/Migrate/generated/api/Models/Api20220501/LogicalNetwork.cs deleted file mode 100644 index 19e0dc4a53d2..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/LogicalNetwork.cs +++ /dev/null @@ -1,158 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Logical network data model. - public partial class LogicalNetwork : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetwork, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// A value indicating whether logical network definitions are isolated. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DefinitionsStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)Property).LogicalNetworkDefinitionsStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)Property).LogicalNetworkDefinitionsStatus = value ?? null; } - - /// The Friendly Name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)Property).FriendlyName = value ?? null; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetworkProperties()); set { {_property = value;} } } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// - /// A value indicating whether Network Virtualization is enabled for the logical network. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string NetworkVirtualizationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)Property).NetworkVirtualizationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)Property).NetworkVirtualizationStatus = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkProperties _property; - - /// The Logical Network Properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetworkProperties()); set => this._property = value; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// - /// A value indicating whether logical network is used as private test network by test failover. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Usage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)Property).LogicalNetworkUsage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)Property).LogicalNetworkUsage = value ?? null; } - - /// Creates an new instance. - public LogicalNetwork() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Logical network data model. - public partial interface ILogicalNetwork : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// A value indicating whether logical network definitions are isolated. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating whether logical network definitions are isolated.", - SerializedName = @"logicalNetworkDefinitionsStatus", - PossibleTypes = new [] { typeof(string) })] - string DefinitionsStatus { get; set; } - /// The Friendly Name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Friendly Name.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// - /// A value indicating whether Network Virtualization is enabled for the logical network. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating whether Network Virtualization is enabled for the logical network.", - SerializedName = @"networkVirtualizationStatus", - PossibleTypes = new [] { typeof(string) })] - string NetworkVirtualizationStatus { get; set; } - /// - /// A value indicating whether logical network is used as private test network by test failover. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating whether logical network is used as private test network by test failover.", - SerializedName = @"logicalNetworkUsage", - PossibleTypes = new [] { typeof(string) })] - string Usage { get; set; } - - } - /// Logical network data model. - internal partial interface ILogicalNetworkInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// A value indicating whether logical network definitions are isolated. - string DefinitionsStatus { get; set; } - /// The Friendly Name. - string FriendlyName { get; set; } - /// - /// A value indicating whether Network Virtualization is enabled for the logical network. - /// - string NetworkVirtualizationStatus { get; set; } - /// The Logical Network Properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkProperties Property { get; set; } - /// - /// A value indicating whether logical network is used as private test network by test failover. - /// - string Usage { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkProperties.PowerShell.cs deleted file mode 100644 index 3ef83da393a5..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkProperties.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Logical Network Properties. - [System.ComponentModel.TypeConverter(typeof(LogicalNetworkPropertiesTypeConverter))] - public partial class LogicalNetworkProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ILogicalNetworkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new LogicalNetworkProperties(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.Migrate.Models.Api20220501.ILogicalNetworkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new LogicalNetworkProperties(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.Migrate.Models.Api20220501.ILogicalNetworkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal LogicalNetworkProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("NetworkVirtualizationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).NetworkVirtualizationStatus = (string) content.GetValueForProperty("NetworkVirtualizationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).NetworkVirtualizationStatus, global::System.Convert.ToString); - } - if (content.Contains("LogicalNetworkUsage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).LogicalNetworkUsage = (string) content.GetValueForProperty("LogicalNetworkUsage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).LogicalNetworkUsage, global::System.Convert.ToString); - } - if (content.Contains("LogicalNetworkDefinitionsStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).LogicalNetworkDefinitionsStatus = (string) content.GetValueForProperty("LogicalNetworkDefinitionsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).LogicalNetworkDefinitionsStatus, 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 LogicalNetworkProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("NetworkVirtualizationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).NetworkVirtualizationStatus = (string) content.GetValueForProperty("NetworkVirtualizationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).NetworkVirtualizationStatus, global::System.Convert.ToString); - } - if (content.Contains("LogicalNetworkUsage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).LogicalNetworkUsage = (string) content.GetValueForProperty("LogicalNetworkUsage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).LogicalNetworkUsage, global::System.Convert.ToString); - } - if (content.Contains("LogicalNetworkDefinitionsStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).LogicalNetworkDefinitionsStatus = (string) content.GetValueForProperty("LogicalNetworkDefinitionsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal)this).LogicalNetworkDefinitionsStatus, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Logical Network Properties. - [System.ComponentModel.TypeConverter(typeof(LogicalNetworkPropertiesTypeConverter))] - public partial interface ILogicalNetworkProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ManualActionTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ManualActionTaskDetails.PowerShell.cs deleted file mode 100644 index 767c925616bf..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ManualActionTaskDetails.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class represents the manual action task details. - [System.ComponentModel.TypeConverter(typeof(ManualActionTaskDetailsTypeConverter))] - public partial class ManualActionTaskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IManualActionTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ManualActionTaskDetails(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.Migrate.Models.Api20220501.IManualActionTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ManualActionTaskDetails(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.Migrate.Models.Api20220501.IManualActionTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ManualActionTaskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Instruction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetailsInternal)this).Instruction = (string) content.GetValueForProperty("Instruction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetailsInternal)this).Instruction, global::System.Convert.ToString); - } - if (content.Contains("Observation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetailsInternal)this).Observation = (string) content.GetValueForProperty("Observation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetailsInternal)this).Observation, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, 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 ManualActionTaskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Instruction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetailsInternal)this).Instruction = (string) content.GetValueForProperty("Instruction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetailsInternal)this).Instruction, global::System.Convert.ToString); - } - if (content.Contains("Observation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetailsInternal)this).Observation = (string) content.GetValueForProperty("Observation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetailsInternal)this).Observation, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class represents the manual action task details. - [System.ComponentModel.TypeConverter(typeof(ManualActionTaskDetailsTypeConverter))] - public partial interface IManualActionTaskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MarsAgentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/MarsAgentDetails.PowerShell.cs deleted file mode 100644 index 0838c80ca811..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/MarsAgentDetails.PowerShell.cs +++ /dev/null @@ -1,208 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Mars agent details. - [System.ComponentModel.TypeConverter(typeof(MarsAgentDetailsTypeConverter))] - public partial class MarsAgentDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IMarsAgentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new MarsAgentDetails(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.Migrate.Models.Api20220501.IMarsAgentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new MarsAgentDetails(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.Migrate.Models.Api20220501.IMarsAgentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal MarsAgentDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal MarsAgentDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Mars agent details. - [System.ComponentModel.TypeConverter(typeof(MarsAgentDetailsTypeConverter))] - public partial interface IMarsAgentDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MasterTargetServer.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/MasterTargetServer.PowerShell.cs deleted file mode 100644 index 344a82079faa..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/MasterTargetServer.PowerShell.cs +++ /dev/null @@ -1,328 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Details of a Master Target Server. - [System.ComponentModel.TypeConverter(typeof(MasterTargetServerTypeConverter))] - public partial class MasterTargetServer - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IMasterTargetServer DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new MasterTargetServer(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.Migrate.Models.Api20220501.IMasterTargetServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new MasterTargetServer(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.Migrate.Models.Api20220501.IMasterTargetServer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal MasterTargetServer(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentVersionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails) content.GetValueForProperty("AgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("MarsAgentVersionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarsAgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails) content.GetValueForProperty("MarsAgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarsAgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("AgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersion, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VersionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).VersionStatus = (string) content.GetValueForProperty("VersionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).VersionStatus, global::System.Convert.ToString); - } - if (content.Contains("RetentionVolume")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).RetentionVolume = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolume[]) content.GetValueForProperty("RetentionVolume",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).RetentionVolume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RetentionVolumeTypeConverter.ConvertFrom)); - } - if (content.Contains("DataStore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStore[]) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).DataStore, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DataStoreTypeConverter.ConvertFrom)); - } - if (content.Contains("ValidationError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("DiskCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).DiskCount = (int?) content.GetValueForProperty("DiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).DiskCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("OSVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).OSVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MarsAgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarsAgentVersion = (string) content.GetValueForProperty("MarsAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarsAgentVersion, global::System.Convert.ToString); - } - if (content.Contains("MarsAgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarsAgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MarsAgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarsAgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AgentVersionDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetailVersion = (string) content.GetValueForProperty("AgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentVersionDetailExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AgentVersionDetailStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("AgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); - } - if (content.Contains("MarAgentVersionDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarAgentVersionDetailVersion = (string) content.GetValueForProperty("MarAgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarAgentVersionDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("MarAgentVersionDetailExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarAgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MarAgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarAgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MarAgentVersionDetailStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarAgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("MarAgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarAgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal MasterTargetServer(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentVersionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails) content.GetValueForProperty("AgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("MarsAgentVersionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarsAgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails) content.GetValueForProperty("MarsAgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarsAgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("AgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersion, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VersionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).VersionStatus = (string) content.GetValueForProperty("VersionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).VersionStatus, global::System.Convert.ToString); - } - if (content.Contains("RetentionVolume")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).RetentionVolume = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolume[]) content.GetValueForProperty("RetentionVolume",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).RetentionVolume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RetentionVolumeTypeConverter.ConvertFrom)); - } - if (content.Contains("DataStore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStore[]) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).DataStore, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DataStoreTypeConverter.ConvertFrom)); - } - if (content.Contains("ValidationError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("DiskCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).DiskCount = (int?) content.GetValueForProperty("DiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).DiskCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("OSVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).OSVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MarsAgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarsAgentVersion = (string) content.GetValueForProperty("MarsAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarsAgentVersion, global::System.Convert.ToString); - } - if (content.Contains("MarsAgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarsAgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MarsAgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarsAgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AgentVersionDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetailVersion = (string) content.GetValueForProperty("AgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentVersionDetailExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AgentVersionDetailStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("AgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).AgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); - } - if (content.Contains("MarAgentVersionDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarAgentVersionDetailVersion = (string) content.GetValueForProperty("MarAgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarAgentVersionDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("MarAgentVersionDetailExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarAgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MarAgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarAgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MarAgentVersionDetailStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarAgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("MarAgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal)this).MarAgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Details of a Master Target Server. - [System.ComponentModel.TypeConverter(typeof(MasterTargetServerTypeConverter))] - public partial interface IMasterTargetServer - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrateInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/MigrateInput.PowerShell.cs deleted file mode 100644 index 9da8cc915875..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/MigrateInput.PowerShell.cs +++ /dev/null @@ -1,152 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input for migrate. - [System.ComponentModel.TypeConverter(typeof(MigrateInputTypeConverter))] - public partial class MigrateInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IMigrateInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new MigrateInput(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.Migrate.Models.Api20220501.IMigrateInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new MigrateInput(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.Migrate.Models.Api20220501.IMigrateInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal MigrateInput(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.Migrate.Models.Api20220501.IMigrateInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateProviderSpecificInputTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal MigrateInput(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.Migrate.Models.Api20220501.IMigrateInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateProviderSpecificInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Input for migrate. - [System.ComponentModel.TypeConverter(typeof(MigrateInputTypeConverter))] - public partial interface IMigrateInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrateInput.cs b/src/Migrate/generated/api/Models/Api20220501/MigrateInput.cs deleted file mode 100644 index 2b1da2c8c341..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/MigrateInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input for migrate. - public partial class MigrateInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputProperties _property; - - /// Migrate input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateInputProperties()); set => this._property = value; } - - /// The provider specific details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputPropertiesInternal)Property).ProviderSpecificDetail = value ; } - - /// Creates an new instance. - public MigrateInput() - { - - } - } - /// Input for migrate. - public partial interface IMigrateInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The provider specific details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The provider specific details.", - SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } - - } - /// Input for migrate. - internal partial interface IMigrateInputInternal - - { - /// Migrate input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputProperties Property { get; set; } - /// The provider specific details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItem.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/MigrationItem.PowerShell.cs deleted file mode 100644 index 1e8fce73029c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItem.PowerShell.cs +++ /dev/null @@ -1,360 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Migration item. - [System.ComponentModel.TypeConverter(typeof(MigrationItemTypeConverter))] - public partial class MigrationItem - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IMigrationItem DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new MigrationItem(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.Migrate.Models.Api20220501.IMigrationItem DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new MigrationItem(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.Migrate.Models.Api20220501.IMigrationItem FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal MigrationItem(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.Migrate.Models.Api20220501.IMigrationItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("MigrationState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).MigrationState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState?) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).MigrationState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState.CreateFrom); - } - if (content.Contains("CurrentJob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJob = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails) content.GetValueForProperty("CurrentJob",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJob, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentJobDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("MachineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).MachineName, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("PolicyFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).PolicyFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryServicesProviderId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); - } - if (content.Contains("ReplicationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).ReplicationStatus = (string) content.GetValueForProperty("ReplicationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).ReplicationStatus, global::System.Convert.ToString); - } - if (content.Contains("MigrationStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).MigrationStateDescription = (string) content.GetValueForProperty("MigrationStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).MigrationStateDescription, global::System.Convert.ToString); - } - if (content.Contains("LastTestMigrationTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastTestMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastTestMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastTestMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastTestMigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastTestMigrationStatus = (string) content.GetValueForProperty("LastTestMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastTestMigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("LastMigrationTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastMigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastMigrationStatus = (string) content.GetValueForProperty("LastMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastMigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("TestMigrateState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).TestMigrateState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState?) content.GetValueForProperty("TestMigrateState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).TestMigrateState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState.CreateFrom); - } - if (content.Contains("TestMigrateStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).TestMigrateStateDescription = (string) content.GetValueForProperty("TestMigrateStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).TestMigrateStateDescription, global::System.Convert.ToString); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("AllowedOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).AllowedOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation.CreateFrom)); - } - if (content.Contains("CriticalJobHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CriticalJobHistory = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails[]) content.GetValueForProperty("CriticalJobHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CriticalJobHistory, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CriticalJobHistoryDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("EventCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).EventCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationProviderSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("CurrentJobName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJobName = (string) content.GetValueForProperty("CurrentJobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJobName, global::System.Convert.ToString); - } - if (content.Contains("CurrentJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJobId = (string) content.GetValueForProperty("CurrentJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJobId, global::System.Convert.ToString); - } - if (content.Contains("CurrentJobStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJobStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentJobStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJobStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal MigrationItem(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.Migrate.Models.Api20220501.IMigrationItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("MigrationState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).MigrationState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState?) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).MigrationState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState.CreateFrom); - } - if (content.Contains("CurrentJob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJob = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails) content.GetValueForProperty("CurrentJob",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJob, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentJobDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("MachineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).MachineName, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("PolicyFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).PolicyFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryServicesProviderId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); - } - if (content.Contains("ReplicationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).ReplicationStatus = (string) content.GetValueForProperty("ReplicationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).ReplicationStatus, global::System.Convert.ToString); - } - if (content.Contains("MigrationStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).MigrationStateDescription = (string) content.GetValueForProperty("MigrationStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).MigrationStateDescription, global::System.Convert.ToString); - } - if (content.Contains("LastTestMigrationTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastTestMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastTestMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastTestMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastTestMigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastTestMigrationStatus = (string) content.GetValueForProperty("LastTestMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastTestMigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("LastMigrationTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastMigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastMigrationStatus = (string) content.GetValueForProperty("LastMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).LastMigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("TestMigrateState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).TestMigrateState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState?) content.GetValueForProperty("TestMigrateState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).TestMigrateState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState.CreateFrom); - } - if (content.Contains("TestMigrateStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).TestMigrateStateDescription = (string) content.GetValueForProperty("TestMigrateStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).TestMigrateStateDescription, global::System.Convert.ToString); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("AllowedOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).AllowedOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation.CreateFrom)); - } - if (content.Contains("CriticalJobHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CriticalJobHistory = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails[]) content.GetValueForProperty("CriticalJobHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CriticalJobHistory, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CriticalJobHistoryDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("EventCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).EventCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationProviderSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("CurrentJobName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJobName = (string) content.GetValueForProperty("CurrentJobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJobName, global::System.Convert.ToString); - } - if (content.Contains("CurrentJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJobId = (string) content.GetValueForProperty("CurrentJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJobId, global::System.Convert.ToString); - } - if (content.Contains("CurrentJobStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJobStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentJobStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal)this).CurrentJobStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Migration item. - [System.ComponentModel.TypeConverter(typeof(MigrationItemTypeConverter))] - public partial interface IMigrationItem - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItem.cs b/src/Migrate/generated/api/Models/Api20220501/MigrationItem.cs deleted file mode 100644 index 14456fa59c00..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItem.cs +++ /dev/null @@ -1,473 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Migration item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.DoNotFormat] - public partial class MigrationItem : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// - /// The allowed operations on the migration item based on the current migration state of the item. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[] AllowedOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).AllowedOperation; } - - /// The critical past job details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails[] CriticalJobHistory { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).CriticalJobHistory; } - - /// The ARM Id of the job being executed. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CurrentJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).CurrentJobId; } - - /// The job name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CurrentJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).CurrentJobName; } - - /// The start time of the job. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentJobStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).CurrentJobStartTime; } - - /// The correlation Id for events associated with this migration item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string EventCorrelationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).EventCorrelationId; } - - /// The consolidated health. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).Health; } - - /// The list of health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).HealthError; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// The status of the last migration. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string LastMigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).LastMigrationStatus; } - - /// The last migration time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? LastMigrationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).LastMigrationTime; } - - /// The status of the last test migration. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string LastTestMigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).LastTestMigrationStatus; } - - /// The last test migration time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? LastTestMigrationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).LastTestMigrationTime; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// The on-premise virtual machine name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MachineName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).MachineName; } - - /// Internal Acessors for AllowedOperation - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.AllowedOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).AllowedOperation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).AllowedOperation = value; } - - /// Internal Acessors for CriticalJobHistory - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.CriticalJobHistory { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).CriticalJobHistory; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).CriticalJobHistory = value; } - - /// Internal Acessors for CurrentJob - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.CurrentJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).CurrentJob; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).CurrentJob = value; } - - /// Internal Acessors for CurrentJobId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.CurrentJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).CurrentJobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).CurrentJobId = value; } - - /// Internal Acessors for CurrentJobName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.CurrentJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).CurrentJobName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).CurrentJobName = value; } - - /// Internal Acessors for CurrentJobStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.CurrentJobStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).CurrentJobStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).CurrentJobStartTime = value; } - - /// Internal Acessors for EventCorrelationId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.EventCorrelationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).EventCorrelationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).EventCorrelationId = value; } - - /// Internal Acessors for Health - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.Health { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).Health = value; } - - /// Internal Acessors for HealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).HealthError = value; } - - /// Internal Acessors for LastMigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.LastMigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).LastMigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).LastMigrationStatus = value; } - - /// Internal Acessors for LastMigrationTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.LastMigrationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).LastMigrationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).LastMigrationTime = value; } - - /// Internal Acessors for LastTestMigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.LastTestMigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).LastTestMigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).LastTestMigrationStatus = value; } - - /// Internal Acessors for LastTestMigrationTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.LastTestMigrationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).LastTestMigrationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).LastTestMigrationTime = value; } - - /// Internal Acessors for MachineName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.MachineName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).MachineName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).MachineName = value; } - - /// Internal Acessors for MigrationState - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.MigrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).MigrationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).MigrationState = value; } - - /// Internal Acessors for MigrationStateDescription - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.MigrationStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).MigrationStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).MigrationStateDescription = value; } - - /// Internal Acessors for PolicyFriendlyName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.PolicyFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).PolicyFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).PolicyFriendlyName = value; } - - /// Internal Acessors for PolicyId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).PolicyId = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemProperties()); set { {_property = value;} } } - - /// Internal Acessors for RecoveryServicesProviderId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.RecoveryServicesProviderId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).RecoveryServicesProviderId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).RecoveryServicesProviderId = value; } - - /// Internal Acessors for ReplicationStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.ReplicationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).ReplicationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).ReplicationStatus = value; } - - /// Internal Acessors for TestMigrateState - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.TestMigrateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).TestMigrateState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).TestMigrateState = value; } - - /// Internal Acessors for TestMigrateStateDescription - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemInternal.TestMigrateStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).TestMigrateStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).TestMigrateStateDescription = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// The migration status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState? MigrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).MigrationState; } - - /// The migration state description. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MigrationStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).MigrationStateDescription; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// The name of policy governing this item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PolicyFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).PolicyFriendlyName; } - - /// The ARM Id of policy governing this item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).PolicyId; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemProperties _property; - - /// The migration item properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemProperties()); set => this._property = value; } - - /// The migration provider custom settings. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* model class */; } - - /// The recovery services provider ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryServicesProviderId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).RecoveryServicesProviderId; } - - /// The replication status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReplicationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).ReplicationStatus; } - - /// The test migrate state. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState? TestMigrateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).TestMigrateState; } - - /// The test migrate state description. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TestMigrateStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)Property).TestMigrateStateDescription; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public MigrationItem() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Migration item. - public partial interface IMigrationItem : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// - /// The allowed operations on the migration item based on the current migration state of the item. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The allowed operations on the migration item based on the current migration state of the item.", - SerializedName = @"allowedOperations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[] AllowedOperation { get; } - /// The critical past job details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The critical past job details.", - SerializedName = @"criticalJobHistory", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails[] CriticalJobHistory { get; } - /// The ARM Id of the job being executed. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The ARM Id of the job being executed.", - SerializedName = @"jobId", - PossibleTypes = new [] { typeof(string) })] - string CurrentJobId { get; } - /// The job name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The job name.", - SerializedName = @"jobName", - PossibleTypes = new [] { typeof(string) })] - string CurrentJobName { get; } - /// The start time of the job. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The start time of the job.", - SerializedName = @"startTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? CurrentJobStartTime { get; } - /// The correlation Id for events associated with this migration item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The correlation Id for events associated with this migration item.", - SerializedName = @"eventCorrelationId", - PossibleTypes = new [] { typeof(string) })] - string EventCorrelationId { get; } - /// The consolidated health. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The consolidated health.", - SerializedName = @"health", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get; } - /// The list of health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The list of health errors.", - SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; } - /// The status of the last migration. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The status of the last migration.", - SerializedName = @"lastMigrationStatus", - PossibleTypes = new [] { typeof(string) })] - string LastMigrationStatus { get; } - /// The last migration time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The last migration time.", - SerializedName = @"lastMigrationTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? LastMigrationTime { get; } - /// The status of the last test migration. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The status of the last test migration.", - SerializedName = @"lastTestMigrationStatus", - PossibleTypes = new [] { typeof(string) })] - string LastTestMigrationStatus { get; } - /// The last test migration time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The last test migration time.", - SerializedName = @"lastTestMigrationTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? LastTestMigrationTime { get; } - /// The on-premise virtual machine name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The on-premise virtual machine name.", - SerializedName = @"machineName", - PossibleTypes = new [] { typeof(string) })] - string MachineName { get; } - /// The migration status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The migration status.", - SerializedName = @"migrationState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState? MigrationState { get; } - /// The migration state description. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The migration state description.", - SerializedName = @"migrationStateDescription", - PossibleTypes = new [] { typeof(string) })] - string MigrationStateDescription { get; } - /// The name of policy governing this item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The name of policy governing this item.", - SerializedName = @"policyFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string PolicyFriendlyName { get; } - /// The ARM Id of policy governing this item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The ARM Id of policy governing this item.", - SerializedName = @"policyId", - PossibleTypes = new [] { typeof(string) })] - string PolicyId { get; } - /// The migration provider custom settings. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The migration provider custom settings.", - SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings ProviderSpecificDetail { get; set; } - /// The recovery services provider ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The recovery services provider ARM Id.", - SerializedName = @"recoveryServicesProviderId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryServicesProviderId { get; } - /// The replication status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The replication status.", - SerializedName = @"replicationStatus", - PossibleTypes = new [] { typeof(string) })] - string ReplicationStatus { get; } - /// The test migrate state. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The test migrate state.", - SerializedName = @"testMigrateState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState? TestMigrateState { get; } - /// The test migrate state description. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The test migrate state description.", - SerializedName = @"testMigrateStateDescription", - PossibleTypes = new [] { typeof(string) })] - string TestMigrateStateDescription { get; } - - } - /// Migration item. - internal partial interface IMigrationItemInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// - /// The allowed operations on the migration item based on the current migration state of the item. - /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[] AllowedOperation { get; set; } - /// The critical past job details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails[] CriticalJobHistory { get; set; } - /// The current job details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails CurrentJob { get; set; } - /// The ARM Id of the job being executed. - string CurrentJobId { get; set; } - /// The job name. - string CurrentJobName { get; set; } - /// The start time of the job. - global::System.DateTime? CurrentJobStartTime { get; set; } - /// The correlation Id for events associated with this migration item. - string EventCorrelationId { get; set; } - /// The consolidated health. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get; set; } - /// The list of health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } - /// The status of the last migration. - string LastMigrationStatus { get; set; } - /// The last migration time. - global::System.DateTime? LastMigrationTime { get; set; } - /// The status of the last test migration. - string LastTestMigrationStatus { get; set; } - /// The last test migration time. - global::System.DateTime? LastTestMigrationTime { get; set; } - /// The on-premise virtual machine name. - string MachineName { get; set; } - /// The migration status. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState? MigrationState { get; set; } - /// The migration state description. - string MigrationStateDescription { get; set; } - /// The name of policy governing this item. - string PolicyFriendlyName { get; set; } - /// The ARM Id of policy governing this item. - string PolicyId { get; set; } - /// The migration item properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemProperties Property { get; set; } - /// The migration provider custom settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings ProviderSpecificDetail { get; set; } - /// The recovery services provider ARM Id. - string RecoveryServicesProviderId { get; set; } - /// The replication status. - string ReplicationStatus { get; set; } - /// The test migrate state. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState? TestMigrateState { get; set; } - /// The test migrate state description. - string TestMigrateStateDescription { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItemProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/MigrationItemProperties.PowerShell.cs deleted file mode 100644 index 50a63d430034..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItemProperties.PowerShell.cs +++ /dev/null @@ -1,320 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Migration item properties. - [System.ComponentModel.TypeConverter(typeof(MigrationItemPropertiesTypeConverter))] - public partial class MigrationItemProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IMigrationItemProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new MigrationItemProperties(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.Migrate.Models.Api20220501.IMigrationItemProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new MigrationItemProperties(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.Migrate.Models.Api20220501.IMigrationItemProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal MigrationItemProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CurrentJob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJob = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails) content.GetValueForProperty("CurrentJob",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJob, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentJobDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("MachineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).MachineName, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("PolicyFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).PolicyFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryServicesProviderId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); - } - if (content.Contains("ReplicationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).ReplicationStatus = (string) content.GetValueForProperty("ReplicationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).ReplicationStatus, global::System.Convert.ToString); - } - if (content.Contains("MigrationState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).MigrationState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState?) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).MigrationState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState.CreateFrom); - } - if (content.Contains("MigrationStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).MigrationStateDescription = (string) content.GetValueForProperty("MigrationStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).MigrationStateDescription, global::System.Convert.ToString); - } - if (content.Contains("LastTestMigrationTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastTestMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastTestMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastTestMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastTestMigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastTestMigrationStatus = (string) content.GetValueForProperty("LastTestMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastTestMigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("LastMigrationTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastMigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastMigrationStatus = (string) content.GetValueForProperty("LastMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastMigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("TestMigrateState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).TestMigrateState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState?) content.GetValueForProperty("TestMigrateState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).TestMigrateState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState.CreateFrom); - } - if (content.Contains("TestMigrateStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).TestMigrateStateDescription = (string) content.GetValueForProperty("TestMigrateStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).TestMigrateStateDescription, global::System.Convert.ToString); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("AllowedOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).AllowedOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation.CreateFrom)); - } - if (content.Contains("CriticalJobHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CriticalJobHistory = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails[]) content.GetValueForProperty("CriticalJobHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CriticalJobHistory, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CriticalJobHistoryDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("EventCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).EventCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationProviderSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("CurrentJobName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJobName = (string) content.GetValueForProperty("CurrentJobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJobName, global::System.Convert.ToString); - } - if (content.Contains("CurrentJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJobId = (string) content.GetValueForProperty("CurrentJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJobId, global::System.Convert.ToString); - } - if (content.Contains("CurrentJobStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJobStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentJobStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJobStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal MigrationItemProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CurrentJob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJob = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails) content.GetValueForProperty("CurrentJob",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJob, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentJobDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("MachineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).MachineName, global::System.Convert.ToString); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("PolicyFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).PolicyFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryServicesProviderId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); - } - if (content.Contains("ReplicationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).ReplicationStatus = (string) content.GetValueForProperty("ReplicationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).ReplicationStatus, global::System.Convert.ToString); - } - if (content.Contains("MigrationState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).MigrationState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState?) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).MigrationState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState.CreateFrom); - } - if (content.Contains("MigrationStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).MigrationStateDescription = (string) content.GetValueForProperty("MigrationStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).MigrationStateDescription, global::System.Convert.ToString); - } - if (content.Contains("LastTestMigrationTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastTestMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastTestMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastTestMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastTestMigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastTestMigrationStatus = (string) content.GetValueForProperty("LastTestMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastTestMigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("LastMigrationTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastMigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastMigrationStatus = (string) content.GetValueForProperty("LastMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).LastMigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("TestMigrateState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).TestMigrateState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState?) content.GetValueForProperty("TestMigrateState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).TestMigrateState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState.CreateFrom); - } - if (content.Contains("TestMigrateStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).TestMigrateStateDescription = (string) content.GetValueForProperty("TestMigrateStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).TestMigrateStateDescription, global::System.Convert.ToString); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("AllowedOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).AllowedOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation.CreateFrom)); - } - if (content.Contains("CriticalJobHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CriticalJobHistory = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails[]) content.GetValueForProperty("CriticalJobHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CriticalJobHistory, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CriticalJobHistoryDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("EventCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).EventCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationProviderSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("CurrentJobName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJobName = (string) content.GetValueForProperty("CurrentJobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJobName, global::System.Convert.ToString); - } - if (content.Contains("CurrentJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJobId = (string) content.GetValueForProperty("CurrentJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJobId, global::System.Convert.ToString); - } - if (content.Contains("CurrentJobStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJobStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentJobStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal)this).CurrentJobStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Migration item properties. - [System.ComponentModel.TypeConverter(typeof(MigrationItemPropertiesTypeConverter))] - public partial interface IMigrationItemProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItemsQueryParameter.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/MigrationItemsQueryParameter.PowerShell.cs deleted file mode 100644 index 705f246e5751..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItemsQueryParameter.PowerShell.cs +++ /dev/null @@ -1,162 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Query parameter to enumerate migration items. - [System.ComponentModel.TypeConverter(typeof(MigrationItemsQueryParameterTypeConverter))] - public partial class MigrationItemsQueryParameter - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IMigrationItemsQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new MigrationItemsQueryParameter(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.Migrate.Models.Api20220501.IMigrationItemsQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new MigrationItemsQueryParameter(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.Migrate.Models.Api20220501.IMigrationItemsQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal MigrationItemsQueryParameter(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameterInternal)this).SourceFabricName = (string) content.GetValueForProperty("SourceFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameterInternal)this).SourceFabricName, global::System.Convert.ToString); - } - if (content.Contains("SourceContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameterInternal)this).SourceContainerName = (string) content.GetValueForProperty("SourceContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameterInternal)this).SourceContainerName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameterInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameterInternal)this).InstanceType, 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 MigrationItemsQueryParameter(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameterInternal)this).SourceFabricName = (string) content.GetValueForProperty("SourceFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameterInternal)this).SourceFabricName, global::System.Convert.ToString); - } - if (content.Contains("SourceContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameterInternal)this).SourceContainerName = (string) content.GetValueForProperty("SourceContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameterInternal)this).SourceContainerName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameterInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameterInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Query parameter to enumerate migration items. - [System.ComponentModel.TypeConverter(typeof(MigrationItemsQueryParameterTypeConverter))] - public partial interface IMigrationItemsQueryParameter - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPoint.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPoint.PowerShell.cs deleted file mode 100644 index 10d42e966e21..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPoint.PowerShell.cs +++ /dev/null @@ -1,192 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery point for a migration item. - [System.ComponentModel.TypeConverter(typeof(MigrationRecoveryPointTypeConverter))] - public partial class MigrationRecoveryPoint - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IMigrationRecoveryPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new MigrationRecoveryPoint(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.Migrate.Models.Api20220501.IMigrationRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new MigrationRecoveryPoint(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.Migrate.Models.Api20220501.IMigrationRecoveryPoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal MigrationRecoveryPoint(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.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPointPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal MigrationRecoveryPoint(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.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPointPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery point for a migration item. - [System.ComponentModel.TypeConverter(typeof(MigrationRecoveryPointTypeConverter))] - public partial interface IMigrationRecoveryPoint - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPoint.cs b/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPoint.cs deleted file mode 100644 index f6f032824b9d..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPoint.cs +++ /dev/null @@ -1,124 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Recovery point for a migration item. - public partial class MigrationRecoveryPoint : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPoint, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPointProperties()); set { {_property = value;} } } - - /// Internal Acessors for RecoveryPointTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal.RecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal)Property).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal)Property).RecoveryPointTime = value; } - - /// Internal Acessors for RecoveryPointType - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointInternal.RecoveryPointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal)Property).RecoveryPointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal)Property).RecoveryPointType = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties _property; - - /// Recovery point properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPointProperties()); set => this._property = value; } - - /// The recovery point time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? RecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal)Property).RecoveryPointTime; } - - /// The recovery point type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType? RecoveryPointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal)Property).RecoveryPointType; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public MigrationRecoveryPoint() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Recovery point for a migration item. - public partial interface IMigrationRecoveryPoint : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// The recovery point time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The recovery point time.", - SerializedName = @"recoveryPointTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? RecoveryPointTime { get; } - /// The recovery point type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The recovery point type.", - SerializedName = @"recoveryPointType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType? RecoveryPointType { get; } - - } - /// Recovery point for a migration item. - internal partial interface IMigrationRecoveryPointInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// Recovery point properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties Property { get; set; } - /// The recovery point time. - global::System.DateTime? RecoveryPointTime { get; set; } - /// The recovery point type. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType? RecoveryPointType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointCollection.PowerShell.cs deleted file mode 100644 index 3cefe29e11e5..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointCollection.PowerShell.cs +++ /dev/null @@ -1,154 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Collection of migration recovery points. - [System.ComponentModel.TypeConverter(typeof(MigrationRecoveryPointCollectionTypeConverter))] - public partial class MigrationRecoveryPointCollection - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IMigrationRecoveryPointCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new MigrationRecoveryPointCollection(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.Migrate.Models.Api20220501.IMigrationRecoveryPointCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new MigrationRecoveryPointCollection(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.Migrate.Models.Api20220501.IMigrationRecoveryPointCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal MigrationRecoveryPointCollection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPointTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal MigrationRecoveryPointCollection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPointTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Collection of migration recovery points. - [System.ComponentModel.TypeConverter(typeof(MigrationRecoveryPointCollectionTypeConverter))] - public partial interface IMigrationRecoveryPointCollection - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointProperties.PowerShell.cs deleted file mode 100644 index 344fd1521407..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointProperties.PowerShell.cs +++ /dev/null @@ -1,154 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Migration item recovery point properties. - [System.ComponentModel.TypeConverter(typeof(MigrationRecoveryPointPropertiesTypeConverter))] - public partial class MigrationRecoveryPointProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new MigrationRecoveryPointProperties(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.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new MigrationRecoveryPointProperties(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.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal MigrationRecoveryPointProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal MigrationRecoveryPointProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Migration item recovery point properties. - [System.ComponentModel.TypeConverter(typeof(MigrationRecoveryPointPropertiesTypeConverter))] - public partial interface IMigrationRecoveryPointProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Network.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/Network.PowerShell.cs deleted file mode 100644 index 40fcac95af6c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/Network.PowerShell.cs +++ /dev/null @@ -1,208 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Network model. - [System.ComponentModel.TypeConverter(typeof(NetworkTypeConverter))] - public partial class Network - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.INetwork DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Network(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.Migrate.Models.Api20220501.INetwork DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Network(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.Migrate.Models.Api20220501.INetwork FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Network(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.Migrate.Models.Api20220501.INetworkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("FabricType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).FabricType, global::System.Convert.ToString); - } - if (content.Contains("Subnet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet[]) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).Subnet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SubnetTypeConverter.ConvertFrom)); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("NetworkType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).NetworkType, 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 Network(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.Migrate.Models.Api20220501.INetworkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("FabricType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).FabricType, global::System.Convert.ToString); - } - if (content.Contains("Subnet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet[]) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).Subnet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SubnetTypeConverter.ConvertFrom)); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("NetworkType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal)this).NetworkType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Network model. - [System.ComponentModel.TypeConverter(typeof(NetworkTypeConverter))] - public partial interface INetwork - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Network.cs b/src/Migrate/generated/api/Models/Api20220501/Network.cs deleted file mode 100644 index ed23377ebb92..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/Network.cs +++ /dev/null @@ -1,146 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Network model. - public partial class Network : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetwork, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// The Fabric Type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)Property).FabricType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)Property).FabricType = value ?? null; } - - /// The Friendly Name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)Property).FriendlyName = value ?? null; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkProperties()); set { {_property = value;} } } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// The Network Type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string NetworkType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)Property).NetworkType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)Property).NetworkType = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkProperties _property; - - /// The Network Properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkProperties()); set => this._property = value; } - - /// The List of subnets. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet[] Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)Property).Subnet = value ?? null /* arrayOf */; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public Network() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Network model. - public partial interface INetwork : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// The Fabric Type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Fabric Type.", - SerializedName = @"fabricType", - PossibleTypes = new [] { typeof(string) })] - string FabricType { get; set; } - /// The Friendly Name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Friendly Name.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// The Network Type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Network Type.", - SerializedName = @"networkType", - PossibleTypes = new [] { typeof(string) })] - string NetworkType { get; set; } - /// The List of subnets. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The List of subnets.", - SerializedName = @"subnets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet[] Subnet { get; set; } - - } - /// Network model. - internal partial interface INetworkInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The Fabric Type. - string FabricType { get; set; } - /// The Friendly Name. - string FriendlyName { get; set; } - /// The Network Type. - string NetworkType { get; set; } - /// The Network Properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkProperties Property { get; set; } - /// The List of subnets. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet[] Subnet { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMapping.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/NetworkMapping.PowerShell.cs deleted file mode 100644 index 045e06b0577e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMapping.PowerShell.cs +++ /dev/null @@ -1,264 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels - /// as long as there is no difference in structure or method signature. Since there were no base Models for certain fields - /// and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety - /// with references to base models to facilitate extensions in subsequent versions. - /// - [System.ComponentModel.TypeConverter(typeof(NetworkMappingTypeConverter))] - public partial class NetworkMapping - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.INetworkMapping DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new NetworkMapping(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.Migrate.Models.Api20220501.INetworkMapping DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new NetworkMapping(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.Migrate.Models.Api20220501.INetworkMapping FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal NetworkMapping(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.Migrate.Models.Api20220501.INetworkMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).FabricSpecificSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings) content.GetValueForProperty("FabricSpecificSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).FabricSpecificSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("PrimaryNetworkFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).PrimaryNetworkFriendlyName = (string) content.GetValueForProperty("PrimaryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).PrimaryNetworkFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).PrimaryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryNetworkFriendlyName = (string) content.GetValueForProperty("RecoveryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryNetworkFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryFabricArmId = (string) content.GetValueForProperty("RecoveryFabricArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryFabricArmId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificSettingInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).FabricSpecificSettingInstanceType = (string) content.GetValueForProperty("FabricSpecificSettingInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).FabricSpecificSettingInstanceType, 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 NetworkMapping(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.Migrate.Models.Api20220501.INetworkMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).FabricSpecificSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings) content.GetValueForProperty("FabricSpecificSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).FabricSpecificSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("PrimaryNetworkFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).PrimaryNetworkFriendlyName = (string) content.GetValueForProperty("PrimaryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).PrimaryNetworkFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).PrimaryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryNetworkFriendlyName = (string) content.GetValueForProperty("RecoveryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryNetworkFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryFabricArmId = (string) content.GetValueForProperty("RecoveryFabricArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryFabricArmId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificSettingInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).FabricSpecificSettingInstanceType = (string) content.GetValueForProperty("FabricSpecificSettingInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal)this).FabricSpecificSettingInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels - /// as long as there is no difference in structure or method signature. Since there were no base Models for certain fields - /// and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety - /// with references to base models to facilitate extensions in subsequent versions. - [System.ComponentModel.TypeConverter(typeof(NetworkMappingTypeConverter))] - public partial interface INetworkMapping - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMapping.cs b/src/Migrate/generated/api/Models/Api20220501/NetworkMapping.cs deleted file mode 100644 index e758b296432a..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMapping.cs +++ /dev/null @@ -1,232 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// - /// Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels - /// as long as there is no difference in structure or method signature. Since there were no base Models for certain fields - /// and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety - /// with references to base models to facilitate extensions in subsequent versions. - /// - public partial class NetworkMapping : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMapping, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// Gets the Instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricSpecificSettingInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).FabricSpecificSettingInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).FabricSpecificSettingInstanceType = value ?? null; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for FabricSpecificSetting - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal.FabricSpecificSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).FabricSpecificSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).FabricSpecificSetting = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingProperties()); set { {_property = value;} } } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// The primary fabric friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).PrimaryFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).PrimaryFabricFriendlyName = value ?? null; } - - /// The primary network friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryNetworkFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).PrimaryNetworkFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).PrimaryNetworkFriendlyName = value ?? null; } - - /// The primary network id for network mapping. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).PrimaryNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).PrimaryNetworkId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingProperties _property; - - /// The Network Mapping Properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingProperties()); set => this._property = value; } - - /// The recovery fabric ARM id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryFabricArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).RecoveryFabricArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).RecoveryFabricArmId = value ?? null; } - - /// The recovery fabric friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).RecoveryFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).RecoveryFabricFriendlyName = value ?? null; } - - /// The recovery network friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryNetworkFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).RecoveryNetworkFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).RecoveryNetworkFriendlyName = value ?? null; } - - /// The recovery network id for network mapping. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).RecoveryNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).RecoveryNetworkId = value ?? null; } - - /// The pairing state for network mapping. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string State { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)Property).State = value ?? null; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public NetworkMapping() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels - /// as long as there is no difference in structure or method signature. Since there were no base Models for certain fields - /// and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety - /// with references to base models to facilitate extensions in subsequent versions. - public partial interface INetworkMapping : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// Gets the Instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the Instance type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string FabricSpecificSettingInstanceType { get; set; } - /// The primary fabric friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The primary fabric friendly name.", - SerializedName = @"primaryFabricFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string PrimaryFabricFriendlyName { get; set; } - /// The primary network friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The primary network friendly name.", - SerializedName = @"primaryNetworkFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string PrimaryNetworkFriendlyName { get; set; } - /// The primary network id for network mapping. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The primary network id for network mapping.", - SerializedName = @"primaryNetworkId", - PossibleTypes = new [] { typeof(string) })] - string PrimaryNetworkId { get; set; } - /// The recovery fabric ARM id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery fabric ARM id.", - SerializedName = @"recoveryFabricArmId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryFabricArmId { get; set; } - /// The recovery fabric friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery fabric friendly name.", - SerializedName = @"recoveryFabricFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string RecoveryFabricFriendlyName { get; set; } - /// The recovery network friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery network friendly name.", - SerializedName = @"recoveryNetworkFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string RecoveryNetworkFriendlyName { get; set; } - /// The recovery network id for network mapping. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery network id for network mapping.", - SerializedName = @"recoveryNetworkId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryNetworkId { get; set; } - /// The pairing state for network mapping. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The pairing state for network mapping.", - SerializedName = @"state", - PossibleTypes = new [] { typeof(string) })] - string State { get; set; } - - } - /// Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels - /// as long as there is no difference in structure or method signature. Since there were no base Models for certain fields - /// and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety - /// with references to base models to facilitate extensions in subsequent versions. - internal partial interface INetworkMappingInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The fabric specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings FabricSpecificSetting { get; set; } - /// Gets the Instance type. - string FabricSpecificSettingInstanceType { get; set; } - /// The primary fabric friendly name. - string PrimaryFabricFriendlyName { get; set; } - /// The primary network friendly name. - string PrimaryNetworkFriendlyName { get; set; } - /// The primary network id for network mapping. - string PrimaryNetworkId { get; set; } - /// The Network Mapping Properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingProperties Property { get; set; } - /// The recovery fabric ARM id. - string RecoveryFabricArmId { get; set; } - /// The recovery fabric friendly name. - string RecoveryFabricFriendlyName { get; set; } - /// The recovery network friendly name. - string RecoveryNetworkFriendlyName { get; set; } - /// The recovery network id for network mapping. - string RecoveryNetworkId { get; set; } - /// The pairing state for network mapping. - string State { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/NetworkMappingProperties.PowerShell.cs deleted file mode 100644 index fbc2e57faaae..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingProperties.PowerShell.cs +++ /dev/null @@ -1,216 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Network Mapping Properties. - [System.ComponentModel.TypeConverter(typeof(NetworkMappingPropertiesTypeConverter))] - public partial class NetworkMappingProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.INetworkMappingProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new NetworkMappingProperties(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.Migrate.Models.Api20220501.INetworkMappingProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new NetworkMappingProperties(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.Migrate.Models.Api20220501.INetworkMappingProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal NetworkMappingProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FabricSpecificSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).FabricSpecificSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings) content.GetValueForProperty("FabricSpecificSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).FabricSpecificSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("PrimaryNetworkFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).PrimaryNetworkFriendlyName = (string) content.GetValueForProperty("PrimaryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).PrimaryNetworkFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).PrimaryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryNetworkFriendlyName = (string) content.GetValueForProperty("RecoveryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryNetworkFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryFabricArmId = (string) content.GetValueForProperty("RecoveryFabricArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryFabricArmId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificSettingInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).FabricSpecificSettingInstanceType = (string) content.GetValueForProperty("FabricSpecificSettingInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).FabricSpecificSettingInstanceType, 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 NetworkMappingProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FabricSpecificSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).FabricSpecificSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings) content.GetValueForProperty("FabricSpecificSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).FabricSpecificSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("PrimaryNetworkFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).PrimaryNetworkFriendlyName = (string) content.GetValueForProperty("PrimaryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).PrimaryNetworkFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).PrimaryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryNetworkFriendlyName = (string) content.GetValueForProperty("RecoveryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryNetworkFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryFabricArmId = (string) content.GetValueForProperty("RecoveryFabricArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryFabricArmId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificSettingInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).FabricSpecificSettingInstanceType = (string) content.GetValueForProperty("FabricSpecificSettingInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal)this).FabricSpecificSettingInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Network Mapping Properties. - [System.ComponentModel.TypeConverter(typeof(NetworkMappingPropertiesTypeConverter))] - public partial interface INetworkMappingProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/NetworkProperties.PowerShell.cs deleted file mode 100644 index 330e38eb02d0..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkProperties.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Network Properties. - [System.ComponentModel.TypeConverter(typeof(NetworkPropertiesTypeConverter))] - public partial class NetworkProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.INetworkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new NetworkProperties(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.Migrate.Models.Api20220501.INetworkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new NetworkProperties(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.Migrate.Models.Api20220501.INetworkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal NetworkProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FabricType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).FabricType, global::System.Convert.ToString); - } - if (content.Contains("Subnet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet[]) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).Subnet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SubnetTypeConverter.ConvertFrom)); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("NetworkType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).NetworkType, 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 NetworkProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FabricType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).FabricType, global::System.Convert.ToString); - } - if (content.Contains("Subnet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet[]) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).Subnet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SubnetTypeConverter.ConvertFrom)); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("NetworkType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal)this).NetworkType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Network Properties. - [System.ComponentModel.TypeConverter(typeof(NetworkPropertiesTypeConverter))] - public partial interface INetworkProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NewProtectionProfile.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/NewProtectionProfile.PowerShell.cs deleted file mode 100644 index 21eaf90e1c84..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/NewProtectionProfile.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// New Protection profile input. - [System.ComponentModel.TypeConverter(typeof(NewProtectionProfileTypeConverter))] - public partial class NewProtectionProfile - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.INewProtectionProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new NewProtectionProfile(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.Migrate.Models.Api20220501.INewProtectionProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new NewProtectionProfile(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.Migrate.Models.Api20220501.INewProtectionProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal NewProtectionProfile(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PolicyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).PolicyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); - } - if (content.Contains("ResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)this).ResourceType, 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 NewProtectionProfile(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PolicyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).PolicyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointHistory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MultiVMSyncStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); - } - if (content.Contains("ResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)this).ResourceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// New Protection profile input. - [System.ComponentModel.TypeConverter(typeof(NewProtectionProfileTypeConverter))] - public partial interface INewProtectionProfile - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NewRecoveryVirtualNetwork.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/NewRecoveryVirtualNetwork.PowerShell.cs deleted file mode 100644 index 9dd75fff201a..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/NewRecoveryVirtualNetwork.PowerShell.cs +++ /dev/null @@ -1,162 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// Recovery virtual network input to create new virtual network from given source network. - /// - [System.ComponentModel.TypeConverter(typeof(NewRecoveryVirtualNetworkTypeConverter))] - public partial class NewRecoveryVirtualNetwork - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.INewRecoveryVirtualNetwork DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new NewRecoveryVirtualNetwork(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.Migrate.Models.Api20220501.INewRecoveryVirtualNetwork DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new NewRecoveryVirtualNetwork(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.Migrate.Models.Api20220501.INewRecoveryVirtualNetwork FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal NewRecoveryVirtualNetwork(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryVirtualNetworkResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkResourceGroupName = (string) content.GetValueForProperty("RecoveryVirtualNetworkResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVirtualNetworkName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkName = (string) content.GetValueForProperty("RecoveryVirtualNetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkName, global::System.Convert.ToString); - } - if (content.Contains("ResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType, 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 NewRecoveryVirtualNetwork(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryVirtualNetworkResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkResourceGroupName = (string) content.GetValueForProperty("RecoveryVirtualNetworkResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVirtualNetworkName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkName = (string) content.GetValueForProperty("RecoveryVirtualNetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkName, global::System.Convert.ToString); - } - if (content.Contains("ResourceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery virtual network input to create new virtual network from given source network. - [System.ComponentModel.TypeConverter(typeof(NewRecoveryVirtualNetworkTypeConverter))] - public partial interface INewRecoveryVirtualNetwork - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/OSDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/OSDetails.PowerShell.cs deleted file mode 100644 index 6f14863c4ffb..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/OSDetails.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Disk Details. - [System.ComponentModel.TypeConverter(typeof(OSDetailsTypeConverter))] - public partial class OSDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IOSDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new OSDetails(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.Migrate.Models.Api20220501.IOSDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new OSDetails(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.Migrate.Models.Api20220501.IOSDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal OSDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("ProductType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).ProductType = (string) content.GetValueForProperty("ProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).ProductType, global::System.Convert.ToString); - } - if (content.Contains("OSEdition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSEdition = (string) content.GetValueForProperty("OSEdition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSEdition, global::System.Convert.ToString); - } - if (content.Contains("OSVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSVersion, global::System.Convert.ToString); - } - if (content.Contains("OSMajorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSMajorVersion = (string) content.GetValueForProperty("OSMajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSMajorVersion, global::System.Convert.ToString); - } - if (content.Contains("OSMinorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSMinorVersion = (string) content.GetValueForProperty("OSMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSMinorVersion, 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 OSDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("ProductType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).ProductType = (string) content.GetValueForProperty("ProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).ProductType, global::System.Convert.ToString); - } - if (content.Contains("OSEdition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSEdition = (string) content.GetValueForProperty("OSEdition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSEdition, global::System.Convert.ToString); - } - if (content.Contains("OSVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSVersion, global::System.Convert.ToString); - } - if (content.Contains("OSMajorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSMajorVersion = (string) content.GetValueForProperty("OSMajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSMajorVersion, global::System.Convert.ToString); - } - if (content.Contains("OSMinorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSMinorVersion = (string) content.GetValueForProperty("OSMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)this).OSMinorVersion, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Disk Details. - [System.ComponentModel.TypeConverter(typeof(OSDetailsTypeConverter))] - public partial interface IOSDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscovery.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/OperationsDiscovery.PowerShell.cs deleted file mode 100644 index 7cfea1b54d54..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscovery.PowerShell.cs +++ /dev/null @@ -1,200 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Operations discovery class. - [System.ComponentModel.TypeConverter(typeof(OperationsDiscoveryTypeConverter))] - public partial class OperationsDiscovery - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IOperationsDiscovery DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new OperationsDiscovery(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.Migrate.Models.Api20220501.IOperationsDiscovery DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new OperationsDiscovery(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.Migrate.Models.Api20220501.IOperationsDiscovery FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal OperationsDiscovery(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Display")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisplayTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Origin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Origin, global::System.Convert.ToString); - } - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.AnyTypeConverter.ConvertFrom); - } - if (content.Contains("DisplayProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayProvider, global::System.Convert.ToString); - } - if (content.Contains("DisplayResource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayResource, global::System.Convert.ToString); - } - if (content.Contains("DisplayOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayOperation, global::System.Convert.ToString); - } - if (content.Contains("DisplayDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayDescription, 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 OperationsDiscovery(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Display")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisplayTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Origin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Origin, global::System.Convert.ToString); - } - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.AnyTypeConverter.ConvertFrom); - } - if (content.Contains("DisplayProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayProvider, global::System.Convert.ToString); - } - if (content.Contains("DisplayResource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayResource, global::System.Convert.ToString); - } - if (content.Contains("DisplayOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayOperation, global::System.Convert.ToString); - } - if (content.Contains("DisplayDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal)this).DisplayDescription, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Operations discovery class. - [System.ComponentModel.TypeConverter(typeof(OperationsDiscoveryTypeConverter))] - public partial interface IOperationsDiscovery - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscoveryCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/OperationsDiscoveryCollection.PowerShell.cs deleted file mode 100644 index d321bd7daa30..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscoveryCollection.PowerShell.cs +++ /dev/null @@ -1,154 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Collection of ClientDiscovery details. - [System.ComponentModel.TypeConverter(typeof(OperationsDiscoveryCollectionTypeConverter))] - public partial class OperationsDiscoveryCollection - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IOperationsDiscoveryCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new OperationsDiscoveryCollection(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.Migrate.Models.Api20220501.IOperationsDiscoveryCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new OperationsDiscoveryCollection(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.Migrate.Models.Api20220501.IOperationsDiscoveryCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal OperationsDiscoveryCollection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OperationsDiscoveryTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal OperationsDiscoveryCollection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OperationsDiscoveryTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Collection of ClientDiscovery details. - [System.ComponentModel.TypeConverter(typeof(OperationsDiscoveryCollectionTypeConverter))] - public partial interface IOperationsDiscoveryCollection - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInput.cs b/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInput.cs deleted file mode 100644 index 116c31edaf20..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Pause replication input. - public partial class PauseReplicationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputInternal - { - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputPropertiesInternal)Property).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputPropertiesInternal)Property).InstanceType = value ; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PauseReplicationInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputProperties _property; - - /// Pause replication input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PauseReplicationInputProperties()); set => this._property = value; } - - /// Creates an new instance. - public PauseReplicationInput() - { - - } - } - /// Pause replication input. - public partial interface IPauseReplicationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string InstanceType { get; set; } - - } - /// Pause replication input. - internal partial interface IPauseReplicationInputInternal - - { - /// The class type. - string InstanceType { get; set; } - /// Pause replication input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputProperties Property { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInput.PowerShell.cs deleted file mode 100644 index 48b3ed32c020..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInput.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input definition for planned failover. - [System.ComponentModel.TypeConverter(typeof(PlannedFailoverInputTypeConverter))] - public partial class PlannedFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IPlannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PlannedFailoverInput(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.Migrate.Models.Api20220501.IPlannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PlannedFailoverInput(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.Migrate.Models.Api20220501.IPlannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PlannedFailoverInput(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.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType, 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 PlannedFailoverInput(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.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Input definition for planned failover. - [System.ComponentModel.TypeConverter(typeof(PlannedFailoverInputTypeConverter))] - public partial interface IPlannedFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInput.cs b/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInput.cs deleted file mode 100644 index 67d01e365ad6..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInput.cs +++ /dev/null @@ -1,79 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input definition for planned failover. - public partial class PlannedFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal - { - - /// Failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FailoverDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)Property).FailoverDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)Property).FailoverDirection = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputProperties _property; - - /// Planned failover input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverInputProperties()); set => this._property = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// Creates an new instance. - public PlannedFailoverInput() - { - - } - } - /// Input definition for planned failover. - public partial interface IPlannedFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Failover direction.", - SerializedName = @"failoverDirection", - PossibleTypes = new [] { typeof(string) })] - string FailoverDirection { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Input definition for planned failover. - internal partial interface IPlannedFailoverInputInternal - - { - /// Failover direction. - string FailoverDirection { get; set; } - /// Planned failover input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputProperties Property { get; set; } - /// Provider specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInputProperties.PowerShell.cs deleted file mode 100644 index af3c61632f77..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInputProperties.PowerShell.cs +++ /dev/null @@ -1,162 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input definition for planned failover input properties. - [System.ComponentModel.TypeConverter(typeof(PlannedFailoverInputPropertiesTypeConverter))] - public partial class PlannedFailoverInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IPlannedFailoverInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PlannedFailoverInputProperties(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.Migrate.Models.Api20220501.IPlannedFailoverInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PlannedFailoverInputProperties(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.Migrate.Models.Api20220501.IPlannedFailoverInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PlannedFailoverInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 PlannedFailoverInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Input definition for planned failover input properties. - [System.ComponentModel.TypeConverter(typeof(PlannedFailoverInputPropertiesTypeConverter))] - public partial interface IPlannedFailoverInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInputProperties.cs b/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInputProperties.cs deleted file mode 100644 index bc51dafa384d..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInputProperties.cs +++ /dev/null @@ -1,77 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input definition for planned failover input properties. - public partial class PlannedFailoverInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal - { - - /// Backing field for property. - private string _failoverDirection; - - /// Failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string FailoverDirection { get => this._failoverDirection; set => this._failoverDirection = value; } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInput()); set { {_providerSpecificDetail = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput _providerSpecificDetail; - - /// Provider specific settings. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInput()); set => this._providerSpecificDetail = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } - - /// Creates an new instance. - public PlannedFailoverInputProperties() - { - - } - } - /// Input definition for planned failover input properties. - public partial interface IPlannedFailoverInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Failover direction.", - SerializedName = @"failoverDirection", - PossibleTypes = new [] { typeof(string) })] - string FailoverDirection { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Input definition for planned failover input properties. - internal partial interface IPlannedFailoverInputPropertiesInternal - - { - /// Failover direction. - string FailoverDirection { get; set; } - /// Provider specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Policy.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/Policy.PowerShell.cs deleted file mode 100644 index 42380ede4a6f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/Policy.PowerShell.cs +++ /dev/null @@ -1,200 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Protection profile details. - [System.ComponentModel.TypeConverter(typeof(PolicyTypeConverter))] - public partial class Policy - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Policy(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.Migrate.Models.Api20220501.IPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Policy(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.Migrate.Models.Api20220501.IPolicy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Policy(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.Migrate.Models.Api20220501.IPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal)this).ProviderSpecificDetailInstanceType, 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 Policy(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.Migrate.Models.Api20220501.IPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Protection profile details. - [System.ComponentModel.TypeConverter(typeof(PolicyTypeConverter))] - public partial interface IPolicy - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Policy.cs b/src/Migrate/generated/api/Models/Api20220501/Policy.cs deleted file mode 100644 index adf3c590b012..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/Policy.cs +++ /dev/null @@ -1,123 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Protection profile details. - public partial class Policy : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// The FriendlyName. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)Property).FriendlyName = value ?? null; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProperties _property; - - /// The custom data. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProperties()); set => this._property = value; } - - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public Policy() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Protection profile details. - public partial interface IPolicy : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// The FriendlyName. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The FriendlyName.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the class type. Overridden in derived classes.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Protection profile details. - internal partial interface IPolicyInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The FriendlyName. - string FriendlyName { get; set; } - /// The custom data. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProperties Property { get; set; } - /// The ReplicationChannelSetting. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails ProviderSpecificDetail { get; set; } - /// Gets the class type. Overridden in derived classes. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/PolicyProperties.PowerShell.cs deleted file mode 100644 index fddde43ecef2..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyProperties.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Protection profile custom data details. - [System.ComponentModel.TypeConverter(typeof(PolicyPropertiesTypeConverter))] - public partial class PolicyProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IPolicyProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PolicyProperties(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.Migrate.Models.Api20220501.IPolicyProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PolicyProperties(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.Migrate.Models.Api20220501.IPolicyProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PolicyProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 PolicyProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Protection profile custom data details. - [System.ComponentModel.TypeConverter(typeof(PolicyPropertiesTypeConverter))] - public partial interface IPolicyProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProcessServer.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ProcessServer.PowerShell.cs deleted file mode 100644 index 890917cfc5b7..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProcessServer.PowerShell.cs +++ /dev/null @@ -1,448 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Details of the Process Server. - [System.ComponentModel.TypeConverter(typeof(ProcessServerTypeConverter))] - public partial class ProcessServer - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IProcessServer DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProcessServer(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.Migrate.Models.Api20220501.IProcessServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProcessServer(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.Migrate.Models.Api20220501.IProcessServer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProcessServer(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentVersionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails) content.GetValueForProperty("AgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("AgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersion, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VersionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).VersionStatus = (string) content.GetValueForProperty("VersionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).VersionStatus, global::System.Convert.ToString); - } - if (content.Contains("MobilityServiceUpdate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MobilityServiceUpdate = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdate[]) content.GetValueForProperty("MobilityServiceUpdate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MobilityServiceUpdate, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MobilityServiceUpdateTypeConverter.ConvertFrom)); - } - if (content.Contains("HostId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).HostId = (string) content.GetValueForProperty("HostId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).HostId, global::System.Convert.ToString); - } - if (content.Contains("MachineCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MachineCount = (string) content.GetValueForProperty("MachineCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MachineCount, global::System.Convert.ToString); - } - if (content.Contains("ReplicationPairCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ReplicationPairCount = (string) content.GetValueForProperty("ReplicationPairCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ReplicationPairCount, global::System.Convert.ToString); - } - if (content.Contains("SystemLoad")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SystemLoad = (string) content.GetValueForProperty("SystemLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SystemLoad, global::System.Convert.ToString); - } - if (content.Contains("SystemLoadStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SystemLoadStatus = (string) content.GetValueForProperty("SystemLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SystemLoadStatus, global::System.Convert.ToString); - } - if (content.Contains("CpuLoad")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).CpuLoad = (string) content.GetValueForProperty("CpuLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).CpuLoad, global::System.Convert.ToString); - } - if (content.Contains("CpuLoadStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).CpuLoadStatus = (string) content.GetValueForProperty("CpuLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).CpuLoadStatus, global::System.Convert.ToString); - } - if (content.Contains("TotalMemoryInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).TotalMemoryInByte = (long?) content.GetValueForProperty("TotalMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).TotalMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("AvailableMemoryInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AvailableMemoryInByte = (long?) content.GetValueForProperty("AvailableMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AvailableMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("MemoryUsageStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MemoryUsageStatus = (string) content.GetValueForProperty("MemoryUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MemoryUsageStatus, global::System.Convert.ToString); - } - if (content.Contains("TotalSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).TotalSpaceInByte = (long?) content.GetValueForProperty("TotalSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).TotalSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("AvailableSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AvailableSpaceInByte = (long?) content.GetValueForProperty("AvailableSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AvailableSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("SpaceUsageStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SpaceUsageStatus = (string) content.GetValueForProperty("SpaceUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SpaceUsageStatus, global::System.Convert.ToString); - } - if (content.Contains("PsServiceStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).PsServiceStatus = (string) content.GetValueForProperty("PsServiceStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).PsServiceStatus, global::System.Convert.ToString); - } - if (content.Contains("SslCertExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SslCertExpiryDate = (global::System.DateTime?) content.GetValueForProperty("SslCertExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SslCertExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SslCertExpiryRemainingDay")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SslCertExpiryRemainingDay = (int?) content.GetValueForProperty("SslCertExpiryRemainingDay",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SslCertExpiryRemainingDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("OSVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).OSVersion, global::System.Convert.ToString); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("AgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("PsStatsRefreshTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).PsStatsRefreshTime = (global::System.DateTime?) content.GetValueForProperty("PsStatsRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).PsStatsRefreshTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ThroughputUploadPendingDataInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputUploadPendingDataInByte = (long?) content.GetValueForProperty("ThroughputUploadPendingDataInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputUploadPendingDataInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ThroughputInMBps")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputInMBps = (long?) content.GetValueForProperty("ThroughputInMBps",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputInMBps, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ThroughputInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputInByte = (long?) content.GetValueForProperty("ThroughputInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ThroughputStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputStatus = (string) content.GetValueForProperty("ThroughputStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputStatus, global::System.Convert.ToString); - } - if (content.Contains("MarsCommunicationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MarsCommunicationStatus = (string) content.GetValueForProperty("MarsCommunicationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MarsCommunicationStatus, global::System.Convert.ToString); - } - if (content.Contains("MarsRegistrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MarsRegistrationStatus = (string) content.GetValueForProperty("MarsRegistrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MarsRegistrationStatus, global::System.Convert.ToString); - } - if (content.Contains("AgentVersionDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetailVersion = (string) content.GetValueForProperty("AgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentVersionDetailExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AgentVersionDetailStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("AgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProcessServer(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentVersionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails) content.GetValueForProperty("AgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("AgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersion, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VersionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).VersionStatus = (string) content.GetValueForProperty("VersionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).VersionStatus, global::System.Convert.ToString); - } - if (content.Contains("MobilityServiceUpdate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MobilityServiceUpdate = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdate[]) content.GetValueForProperty("MobilityServiceUpdate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MobilityServiceUpdate, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MobilityServiceUpdateTypeConverter.ConvertFrom)); - } - if (content.Contains("HostId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).HostId = (string) content.GetValueForProperty("HostId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).HostId, global::System.Convert.ToString); - } - if (content.Contains("MachineCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MachineCount = (string) content.GetValueForProperty("MachineCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MachineCount, global::System.Convert.ToString); - } - if (content.Contains("ReplicationPairCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ReplicationPairCount = (string) content.GetValueForProperty("ReplicationPairCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ReplicationPairCount, global::System.Convert.ToString); - } - if (content.Contains("SystemLoad")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SystemLoad = (string) content.GetValueForProperty("SystemLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SystemLoad, global::System.Convert.ToString); - } - if (content.Contains("SystemLoadStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SystemLoadStatus = (string) content.GetValueForProperty("SystemLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SystemLoadStatus, global::System.Convert.ToString); - } - if (content.Contains("CpuLoad")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).CpuLoad = (string) content.GetValueForProperty("CpuLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).CpuLoad, global::System.Convert.ToString); - } - if (content.Contains("CpuLoadStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).CpuLoadStatus = (string) content.GetValueForProperty("CpuLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).CpuLoadStatus, global::System.Convert.ToString); - } - if (content.Contains("TotalMemoryInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).TotalMemoryInByte = (long?) content.GetValueForProperty("TotalMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).TotalMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("AvailableMemoryInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AvailableMemoryInByte = (long?) content.GetValueForProperty("AvailableMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AvailableMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("MemoryUsageStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MemoryUsageStatus = (string) content.GetValueForProperty("MemoryUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MemoryUsageStatus, global::System.Convert.ToString); - } - if (content.Contains("TotalSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).TotalSpaceInByte = (long?) content.GetValueForProperty("TotalSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).TotalSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("AvailableSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AvailableSpaceInByte = (long?) content.GetValueForProperty("AvailableSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AvailableSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("SpaceUsageStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SpaceUsageStatus = (string) content.GetValueForProperty("SpaceUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SpaceUsageStatus, global::System.Convert.ToString); - } - if (content.Contains("PsServiceStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).PsServiceStatus = (string) content.GetValueForProperty("PsServiceStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).PsServiceStatus, global::System.Convert.ToString); - } - if (content.Contains("SslCertExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SslCertExpiryDate = (global::System.DateTime?) content.GetValueForProperty("SslCertExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SslCertExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SslCertExpiryRemainingDay")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SslCertExpiryRemainingDay = (int?) content.GetValueForProperty("SslCertExpiryRemainingDay",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).SslCertExpiryRemainingDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("OSVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).OSVersion, global::System.Convert.ToString); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("AgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("PsStatsRefreshTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).PsStatsRefreshTime = (global::System.DateTime?) content.GetValueForProperty("PsStatsRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).PsStatsRefreshTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ThroughputUploadPendingDataInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputUploadPendingDataInByte = (long?) content.GetValueForProperty("ThroughputUploadPendingDataInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputUploadPendingDataInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ThroughputInMBps")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputInMBps = (long?) content.GetValueForProperty("ThroughputInMBps",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputInMBps, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ThroughputInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputInByte = (long?) content.GetValueForProperty("ThroughputInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ThroughputStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputStatus = (string) content.GetValueForProperty("ThroughputStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).ThroughputStatus, global::System.Convert.ToString); - } - if (content.Contains("MarsCommunicationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MarsCommunicationStatus = (string) content.GetValueForProperty("MarsCommunicationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MarsCommunicationStatus, global::System.Convert.ToString); - } - if (content.Contains("MarsRegistrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MarsRegistrationStatus = (string) content.GetValueForProperty("MarsRegistrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).MarsRegistrationStatus, global::System.Convert.ToString); - } - if (content.Contains("AgentVersionDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetailVersion = (string) content.GetValueForProperty("AgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentVersionDetailExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AgentVersionDetailStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("AgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal)this).AgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Details of the Process Server. - [System.ComponentModel.TypeConverter(typeof(ProcessServerTypeConverter))] - public partial interface IProcessServer - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProcessServerDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ProcessServerDetails.PowerShell.cs deleted file mode 100644 index b6d50ee0bc92..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProcessServerDetails.PowerShell.cs +++ /dev/null @@ -1,368 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Process server details. - [System.ComponentModel.TypeConverter(typeof(ProcessServerDetailsTypeConverter))] - public partial class ProcessServerDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IProcessServerDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProcessServerDetails(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.Migrate.Models.Api20220501.IProcessServerDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProcessServerDetails(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.Migrate.Models.Api20220501.IProcessServerDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProcessServerDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).IPAddress = (string[]) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).IPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("TotalMemoryInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).TotalMemoryInByte = (long?) content.GetValueForProperty("TotalMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).TotalMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("AvailableMemoryInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).AvailableMemoryInByte = (long?) content.GetValueForProperty("AvailableMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).AvailableMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("UsedMemoryInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).UsedMemoryInByte = (long?) content.GetValueForProperty("UsedMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).UsedMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("MemoryUsagePercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).MemoryUsagePercentage = (double?) content.GetValueForProperty("MemoryUsagePercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).MemoryUsagePercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("TotalSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).TotalSpaceInByte = (long?) content.GetValueForProperty("TotalSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).TotalSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("AvailableSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).AvailableSpaceInByte = (long?) content.GetValueForProperty("AvailableSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).AvailableSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("UsedSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).UsedSpaceInByte = (long?) content.GetValueForProperty("UsedSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).UsedSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("FreeSpacePercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).FreeSpacePercentage = (double?) content.GetValueForProperty("FreeSpacePercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).FreeSpacePercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("ThroughputUploadPendingDataInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ThroughputUploadPendingDataInByte = (long?) content.GetValueForProperty("ThroughputUploadPendingDataInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ThroughputUploadPendingDataInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ThroughputInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ThroughputInByte = (long?) content.GetValueForProperty("ThroughputInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ThroughputInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ProcessorUsagePercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ProcessorUsagePercentage = (double?) content.GetValueForProperty("ProcessorUsagePercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ProcessorUsagePercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("ThroughputStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ThroughputStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("ThroughputStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ThroughputStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); - } - if (content.Contains("SystemLoad")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).SystemLoad = (long?) content.GetValueForProperty("SystemLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).SystemLoad, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("SystemLoadStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).SystemLoadStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("SystemLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).SystemLoadStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); - } - if (content.Contains("DiskUsageStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).DiskUsageStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("DiskUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).DiskUsageStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); - } - if (content.Contains("MemoryUsageStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).MemoryUsageStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("MemoryUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).MemoryUsageStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); - } - if (content.Contains("ProcessorUsageStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ProcessorUsageStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("ProcessorUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ProcessorUsageStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("HistoricHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).HistoricHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("HistoricHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).HistoricHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProcessServerDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).IPAddress = (string[]) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).IPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("TotalMemoryInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).TotalMemoryInByte = (long?) content.GetValueForProperty("TotalMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).TotalMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("AvailableMemoryInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).AvailableMemoryInByte = (long?) content.GetValueForProperty("AvailableMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).AvailableMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("UsedMemoryInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).UsedMemoryInByte = (long?) content.GetValueForProperty("UsedMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).UsedMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("MemoryUsagePercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).MemoryUsagePercentage = (double?) content.GetValueForProperty("MemoryUsagePercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).MemoryUsagePercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("TotalSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).TotalSpaceInByte = (long?) content.GetValueForProperty("TotalSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).TotalSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("AvailableSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).AvailableSpaceInByte = (long?) content.GetValueForProperty("AvailableSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).AvailableSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("UsedSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).UsedSpaceInByte = (long?) content.GetValueForProperty("UsedSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).UsedSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("FreeSpacePercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).FreeSpacePercentage = (double?) content.GetValueForProperty("FreeSpacePercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).FreeSpacePercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("ThroughputUploadPendingDataInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ThroughputUploadPendingDataInByte = (long?) content.GetValueForProperty("ThroughputUploadPendingDataInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ThroughputUploadPendingDataInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ThroughputInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ThroughputInByte = (long?) content.GetValueForProperty("ThroughputInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ThroughputInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ProcessorUsagePercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ProcessorUsagePercentage = (double?) content.GetValueForProperty("ProcessorUsagePercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ProcessorUsagePercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("ThroughputStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ThroughputStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("ThroughputStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ThroughputStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); - } - if (content.Contains("SystemLoad")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).SystemLoad = (long?) content.GetValueForProperty("SystemLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).SystemLoad, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("SystemLoadStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).SystemLoadStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("SystemLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).SystemLoadStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); - } - if (content.Contains("DiskUsageStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).DiskUsageStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("DiskUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).DiskUsageStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); - } - if (content.Contains("MemoryUsageStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).MemoryUsageStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("MemoryUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).MemoryUsageStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); - } - if (content.Contains("ProcessorUsageStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ProcessorUsageStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("ProcessorUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ProcessorUsageStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("HistoricHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).HistoricHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("HistoricHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal)this).HistoricHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Process server details. - [System.ComponentModel.TypeConverter(typeof(ProcessServerDetailsTypeConverter))] - public partial interface IProcessServerDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItem.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ProtectableItem.PowerShell.cs deleted file mode 100644 index 4a826a4f59d1..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItem.PowerShell.cs +++ /dev/null @@ -1,240 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Replication protected item. - [System.ComponentModel.TypeConverter(typeof(ProtectableItemTypeConverter))] - public partial class ProtectableItem - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IProtectableItem DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProtectableItem(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.Migrate.Models.Api20220501.IProtectableItem DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProtectableItem(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.Migrate.Models.Api20220501.IProtectableItem FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProtectableItem(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.Migrate.Models.Api20220501.IProtectableItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItemPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProtectionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).ProtectionStatus = (string) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).ProtectionStatus, global::System.Convert.ToString); - } - if (content.Contains("ReplicationProtectedItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).ReplicationProtectedItemId = (string) content.GetValueForProperty("ReplicationProtectedItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).ReplicationProtectedItemId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryServicesProviderId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); - } - if (content.Contains("ProtectionReadinessError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).ProtectionReadinessError = (string[]) content.GetValueForProperty("ProtectionReadinessError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).ProtectionReadinessError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("SupportedReplicationProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).SupportedReplicationProvider = (string[]) content.GetValueForProperty("SupportedReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).SupportedReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("CustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).CustomDetailInstanceType, 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 ProtectableItem(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.Migrate.Models.Api20220501.IProtectableItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItemPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProtectionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).ProtectionStatus = (string) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).ProtectionStatus, global::System.Convert.ToString); - } - if (content.Contains("ReplicationProtectedItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).ReplicationProtectedItemId = (string) content.GetValueForProperty("ReplicationProtectedItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).ReplicationProtectedItemId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryServicesProviderId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); - } - if (content.Contains("ProtectionReadinessError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).ProtectionReadinessError = (string[]) content.GetValueForProperty("ProtectionReadinessError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).ProtectionReadinessError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("SupportedReplicationProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).SupportedReplicationProvider = (string[]) content.GetValueForProperty("SupportedReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).SupportedReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("CustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal)this).CustomDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Replication protected item. - [System.ComponentModel.TypeConverter(typeof(ProtectableItemTypeConverter))] - public partial interface IProtectableItem - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItem.cs b/src/Migrate/generated/api/Models/Api20220501/ProtectableItem.cs deleted file mode 100644 index cbee50b6cc37..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItem.cs +++ /dev/null @@ -1,193 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Replication protected item. - public partial class ProtectableItem : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItem, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).CustomDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).CustomDetailInstanceType = value ?? null; } - - /// The name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).FriendlyName = value ?? null; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for CustomDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal.CustomDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).CustomDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).CustomDetail = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItemProperties()); set { {_property = value;} } } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemProperties _property; - - /// The custom data. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItemProperties()); set => this._property = value; } - - /// The Current protection readiness errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] ProtectionReadinessError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).ProtectionReadinessError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).ProtectionReadinessError = value ?? null /* arrayOf */; } - - /// The protection status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProtectionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).ProtectionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).ProtectionStatus = value ?? null; } - - /// The recovery provider ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryServicesProviderId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).RecoveryServicesProviderId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).RecoveryServicesProviderId = value ?? null; } - - /// The ARM resource of protected items. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReplicationProtectedItemId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).ReplicationProtectedItemId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).ReplicationProtectedItemId = value ?? null; } - - /// The list of replication providers supported for the protectable item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] SupportedReplicationProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).SupportedReplicationProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)Property).SupportedReplicationProvider = value ?? null /* arrayOf */; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public ProtectableItem() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Replication protected item. - public partial interface IProtectableItem : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the class type. Overridden in derived classes.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string CustomDetailInstanceType { get; set; } - /// The name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// The Current protection readiness errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Current protection readiness errors.", - SerializedName = @"protectionReadinessErrors", - PossibleTypes = new [] { typeof(string) })] - string[] ProtectionReadinessError { get; set; } - /// The protection status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The protection status.", - SerializedName = @"protectionStatus", - PossibleTypes = new [] { typeof(string) })] - string ProtectionStatus { get; set; } - /// The recovery provider ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery provider ARM Id.", - SerializedName = @"recoveryServicesProviderId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryServicesProviderId { get; set; } - /// The ARM resource of protected items. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ARM resource of protected items.", - SerializedName = @"replicationProtectedItemId", - PossibleTypes = new [] { typeof(string) })] - string ReplicationProtectedItemId { get; set; } - /// The list of replication providers supported for the protectable item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of replication providers supported for the protectable item.", - SerializedName = @"supportedReplicationProviders", - PossibleTypes = new [] { typeof(string) })] - string[] SupportedReplicationProvider { get; set; } - - } - /// Replication protected item. - internal partial interface IProtectableItemInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The Replication provider custom settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings CustomDetail { get; set; } - /// Gets the class type. Overridden in derived classes. - string CustomDetailInstanceType { get; set; } - /// The name. - string FriendlyName { get; set; } - /// The custom data. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemProperties Property { get; set; } - /// The Current protection readiness errors. - string[] ProtectionReadinessError { get; set; } - /// The protection status. - string ProtectionStatus { get; set; } - /// The recovery provider ARM Id. - string RecoveryServicesProviderId { get; set; } - /// The ARM resource of protected items. - string ReplicationProtectedItemId { get; set; } - /// The list of replication providers supported for the protectable item. - string[] SupportedReplicationProvider { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ProtectableItemCollection.PowerShell.cs deleted file mode 100644 index 7f8cb30b23b0..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemCollection.PowerShell.cs +++ /dev/null @@ -1,152 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Protectable item collection. - [System.ComponentModel.TypeConverter(typeof(ProtectableItemCollectionTypeConverter))] - public partial class ProtectableItemCollection - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IProtectableItemCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProtectableItemCollection(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.Migrate.Models.Api20220501.IProtectableItemCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProtectableItemCollection(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.Migrate.Models.Api20220501.IProtectableItemCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProtectableItemCollection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItem[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItemTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProtectableItemCollection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItem[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItemTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Protectable item collection. - [System.ComponentModel.TypeConverter(typeof(ProtectableItemCollectionTypeConverter))] - public partial interface IProtectableItemCollection - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ProtectableItemProperties.PowerShell.cs deleted file mode 100644 index daebdeb3c735..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemProperties.PowerShell.cs +++ /dev/null @@ -1,200 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Replication protected item custom data details. - [System.ComponentModel.TypeConverter(typeof(ProtectableItemPropertiesTypeConverter))] - public partial class ProtectableItemProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IProtectableItemProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProtectableItemProperties(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.Migrate.Models.Api20220501.IProtectableItemProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProtectableItemProperties(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.Migrate.Models.Api20220501.IProtectableItemProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProtectableItemProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProtectionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).ProtectionStatus = (string) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).ProtectionStatus, global::System.Convert.ToString); - } - if (content.Contains("ReplicationProtectedItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).ReplicationProtectedItemId = (string) content.GetValueForProperty("ReplicationProtectedItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).ReplicationProtectedItemId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryServicesProviderId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); - } - if (content.Contains("ProtectionReadinessError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).ProtectionReadinessError = (string[]) content.GetValueForProperty("ProtectionReadinessError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).ProtectionReadinessError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("SupportedReplicationProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).SupportedReplicationProvider = (string[]) content.GetValueForProperty("SupportedReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).SupportedReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("CustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).CustomDetailInstanceType, 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 ProtectableItemProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProtectionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).ProtectionStatus = (string) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).ProtectionStatus, global::System.Convert.ToString); - } - if (content.Contains("ReplicationProtectedItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).ReplicationProtectedItemId = (string) content.GetValueForProperty("ReplicationProtectedItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).ReplicationProtectedItemId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryServicesProviderId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); - } - if (content.Contains("ProtectionReadinessError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).ProtectionReadinessError = (string[]) content.GetValueForProperty("ProtectionReadinessError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).ProtectionReadinessError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("SupportedReplicationProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).SupportedReplicationProvider = (string[]) content.GetValueForProperty("SupportedReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).SupportedReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("CustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal)this).CustomDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Replication protected item custom data details. - [System.ComponentModel.TypeConverter(typeof(ProtectableItemPropertiesTypeConverter))] - public partial interface IProtectableItemProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectedItemsQueryParameter.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ProtectedItemsQueryParameter.PowerShell.cs deleted file mode 100644 index bed5a6474410..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectedItemsQueryParameter.PowerShell.cs +++ /dev/null @@ -1,202 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Query parameter to enumerate protected items. - [System.ComponentModel.TypeConverter(typeof(ProtectedItemsQueryParameterTypeConverter))] - public partial class ProtectedItemsQueryParameter - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IProtectedItemsQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProtectedItemsQueryParameter(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.Migrate.Models.Api20220501.IProtectedItemsQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProtectedItemsQueryParameter(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.Migrate.Models.Api20220501.IProtectedItemsQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProtectedItemsQueryParameter(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).SourceFabricName = (string) content.GetValueForProperty("SourceFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).SourceFabricName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPlanName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).RecoveryPlanName = (string) content.GetValueForProperty("RecoveryPlanName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).RecoveryPlanName, global::System.Convert.ToString); - } - if (content.Contains("SourceFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).SourceFabricLocation = (string) content.GetValueForProperty("SourceFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).SourceFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("VCenterName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).VCenterName = (string) content.GetValueForProperty("VCenterName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).VCenterName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupCreateOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).MultiVMGroupCreateOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption?) content.GetValueForProperty("MultiVMGroupCreateOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).MultiVMGroupCreateOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption.CreateFrom); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).ProcessServerId, 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 ProtectedItemsQueryParameter(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).SourceFabricName = (string) content.GetValueForProperty("SourceFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).SourceFabricName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPlanName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).RecoveryPlanName = (string) content.GetValueForProperty("RecoveryPlanName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).RecoveryPlanName, global::System.Convert.ToString); - } - if (content.Contains("SourceFabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).SourceFabricLocation = (string) content.GetValueForProperty("SourceFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).SourceFabricLocation, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("VCenterName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).VCenterName = (string) content.GetValueForProperty("VCenterName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).VCenterName, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("MultiVMGroupCreateOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).MultiVMGroupCreateOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption?) content.GetValueForProperty("MultiVMGroupCreateOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).MultiVMGroupCreateOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption.CreateFrom); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal)this).ProcessServerId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Query parameter to enumerate protected items. - [System.ComponentModel.TypeConverter(typeof(ProtectedItemsQueryParameterTypeConverter))] - public partial interface IProtectedItemsQueryParameter - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainer.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ProtectionContainer.PowerShell.cs deleted file mode 100644 index 57fb8c1aeb17..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainer.PowerShell.cs +++ /dev/null @@ -1,240 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Protection container details. - [System.ComponentModel.TypeConverter(typeof(ProtectionContainerTypeConverter))] - public partial class ProtectionContainer - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IProtectionContainer DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProtectionContainer(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.Migrate.Models.Api20220501.IProtectionContainer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProtectionContainer(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.Migrate.Models.Api20220501.IProtectionContainer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProtectionContainer(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.Migrate.Models.Api20220501.IProtectionContainerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerFabricSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FabricType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricType, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("PairingStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).PairingStatus = (string) content.GetValueForProperty("PairingStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).PairingStatus, global::System.Convert.ToString); - } - if (content.Contains("Role")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).Role = (string) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).Role, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricSpecificDetailInstanceType, 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 ProtectionContainer(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.Migrate.Models.Api20220501.IProtectionContainerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerFabricSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FabricType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricType, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("PairingStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).PairingStatus = (string) content.GetValueForProperty("PairingStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).PairingStatus, global::System.Convert.ToString); - } - if (content.Contains("Role")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).Role = (string) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).Role, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal)this).FabricSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Protection container details. - [System.ComponentModel.TypeConverter(typeof(ProtectionContainerTypeConverter))] - public partial interface IProtectionContainer - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainer.cs b/src/Migrate/generated/api/Models/Api20220501/ProtectionContainer.cs deleted file mode 100644 index 965490bf885b..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainer.cs +++ /dev/null @@ -1,196 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Protection container details. - public partial class ProtectionContainer : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// Fabric friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).FabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).FabricFriendlyName = value ?? null; } - - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).FabricSpecificDetailInstanceType; } - - /// The fabric type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).FabricType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).FabricType = value ?? null; } - - /// The name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).FriendlyName = value ?? null; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for FabricSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal.FabricSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).FabricSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).FabricSpecificDetail = value; } - - /// Internal Acessors for FabricSpecificDetailInstanceType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal.FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).FabricSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).FabricSpecificDetailInstanceType = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerProperties()); set { {_property = value;} } } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// The pairing status of this cloud. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PairingStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).PairingStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).PairingStatus = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerProperties _property; - - /// The custom data. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerProperties()); set => this._property = value; } - - /// Number of protected PEs. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? ProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).ProtectedItemCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).ProtectedItemCount = value ?? default(int); } - - /// The role of this cloud. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Role { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).Role; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)Property).Role = value ?? null; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public ProtectionContainer() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Protection container details. - public partial interface IProtectionContainer : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// Fabric friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fabric friendly name.", - SerializedName = @"fabricFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string FabricFriendlyName { get; set; } - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Gets the class type. Overridden in derived classes.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string FabricSpecificDetailInstanceType { get; } - /// The fabric type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The fabric type.", - SerializedName = @"fabricType", - PossibleTypes = new [] { typeof(string) })] - string FabricType { get; set; } - /// The name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// The pairing status of this cloud. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The pairing status of this cloud.", - SerializedName = @"pairingStatus", - PossibleTypes = new [] { typeof(string) })] - string PairingStatus { get; set; } - /// Number of protected PEs. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Number of protected PEs.", - SerializedName = @"protectedItemCount", - PossibleTypes = new [] { typeof(int) })] - int? ProtectedItemCount { get; set; } - /// The role of this cloud. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The role of this cloud.", - SerializedName = @"role", - PossibleTypes = new [] { typeof(string) })] - string Role { get; set; } - - } - /// Protection container details. - internal partial interface IProtectionContainerInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// Fabric friendly name. - string FabricFriendlyName { get; set; } - /// Fabric specific details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails FabricSpecificDetail { get; set; } - /// Gets the class type. Overridden in derived classes. - string FabricSpecificDetailInstanceType { get; set; } - /// The fabric type. - string FabricType { get; set; } - /// The name. - string FriendlyName { get; set; } - /// The pairing status of this cloud. - string PairingStatus { get; set; } - /// The custom data. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerProperties Property { get; set; } - /// Number of protected PEs. - int? ProtectedItemCount { get; set; } - /// The role of this cloud. - string Role { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerCollection.PowerShell.cs deleted file mode 100644 index 96466a6e8ab5..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerCollection.PowerShell.cs +++ /dev/null @@ -1,154 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Protection Container collection. - [System.ComponentModel.TypeConverter(typeof(ProtectionContainerCollectionTypeConverter))] - public partial class ProtectionContainerCollection - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IProtectionContainerCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProtectionContainerCollection(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.Migrate.Models.Api20220501.IProtectionContainerCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProtectionContainerCollection(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.Migrate.Models.Api20220501.IProtectionContainerCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProtectionContainerCollection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProtectionContainerCollection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Protection Container collection. - [System.ComponentModel.TypeConverter(typeof(ProtectionContainerCollectionTypeConverter))] - public partial interface IProtectionContainerCollection - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMapping.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMapping.PowerShell.cs deleted file mode 100644 index 9b5255376627..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMapping.PowerShell.cs +++ /dev/null @@ -1,264 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Protection container mapping object. - [System.ComponentModel.TypeConverter(typeof(ProtectionContainerMappingTypeConverter))] - public partial class ProtectionContainerMapping - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IProtectionContainerMapping DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProtectionContainerMapping(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.Migrate.Models.Api20220501.IProtectionContainerMapping DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProtectionContainerMapping(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.Migrate.Models.Api20220501.IProtectionContainerMapping FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProtectionContainerMapping(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.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("TargetProtectionContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); - } - if (content.Contains("TargetProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).TargetProtectionContainerFriendlyName = (string) content.GetValueForProperty("TargetProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).TargetProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).Health = (string) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).Health, global::System.Convert.ToString); - } - if (content.Contains("HealthErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("SourceProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).SourceProtectionContainerFriendlyName = (string) content.GetValueForProperty("SourceProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).SourceProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("SourceFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).SourceFabricFriendlyName = (string) content.GetValueForProperty("SourceFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).SourceFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("TargetFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).TargetFabricFriendlyName = (string) content.GetValueForProperty("TargetFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).TargetFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PolicyFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).PolicyFriendlyName, 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 ProtectionContainerMapping(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.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("TargetProtectionContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); - } - if (content.Contains("TargetProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).TargetProtectionContainerFriendlyName = (string) content.GetValueForProperty("TargetProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).TargetProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).Health = (string) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).Health, global::System.Convert.ToString); - } - if (content.Contains("HealthErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("SourceProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).SourceProtectionContainerFriendlyName = (string) content.GetValueForProperty("SourceProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).SourceProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("SourceFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).SourceFabricFriendlyName = (string) content.GetValueForProperty("SourceFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).SourceFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("TargetFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).TargetFabricFriendlyName = (string) content.GetValueForProperty("TargetFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).TargetFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PolicyFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal)this).PolicyFriendlyName, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Protection container mapping object. - [System.ComponentModel.TypeConverter(typeof(ProtectionContainerMappingTypeConverter))] - public partial interface IProtectionContainerMapping - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMapping.cs b/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMapping.cs deleted file mode 100644 index 4fb9b8308e54..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMapping.cs +++ /dev/null @@ -1,244 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Protection container mapping object. - public partial class ProtectionContainerMapping : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// Health of pairing. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Health { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).Health = value ?? null; } - - /// Health error. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).HealthErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).HealthErrorDetail = value ?? null /* arrayOf */; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProperties()); set { {_property = value;} } } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Friendly name of replication policy. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PolicyFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).PolicyFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).PolicyFriendlyName = value ?? null; } - - /// Policy ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).PolicyId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProperties _property; - - /// The custom data. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProperties()); set => this._property = value; } - - /// Provider specific provider details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* model class */; } - - /// Friendly name of source fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SourceFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).SourceFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).SourceFabricFriendlyName = value ?? null; } - - /// Friendly name of source protection container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SourceProtectionContainerFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).SourceProtectionContainerFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).SourceProtectionContainerFriendlyName = value ?? null; } - - /// Association Status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string State { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).State = value ?? null; } - - /// Friendly name of target fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TargetFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).TargetFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).TargetFabricFriendlyName = value ?? null; } - - /// Friendly name of paired container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TargetProtectionContainerFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).TargetProtectionContainerFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).TargetProtectionContainerFriendlyName = value ?? null; } - - /// Paired protection container ARM ID. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TargetProtectionContainerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).TargetProtectionContainerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)Property).TargetProtectionContainerId = value ?? null; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public ProtectionContainerMapping() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Protection container mapping object. - public partial interface IProtectionContainerMapping : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// Health of pairing. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Health of pairing.", - SerializedName = @"health", - PossibleTypes = new [] { typeof(string) })] - string Health { get; set; } - /// Health error. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Health error.", - SerializedName = @"healthErrorDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get; set; } - /// Friendly name of replication policy. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of replication policy.", - SerializedName = @"policyFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string PolicyFriendlyName { get; set; } - /// Policy ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Policy ARM Id.", - SerializedName = @"policyId", - PossibleTypes = new [] { typeof(string) })] - string PolicyId { get; set; } - /// Provider specific provider details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Provider specific provider details.", - SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails ProviderSpecificDetail { get; set; } - /// Friendly name of source fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of source fabric.", - SerializedName = @"sourceFabricFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string SourceFabricFriendlyName { get; set; } - /// Friendly name of source protection container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of source protection container.", - SerializedName = @"sourceProtectionContainerFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string SourceProtectionContainerFriendlyName { get; set; } - /// Association Status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Association Status.", - SerializedName = @"state", - PossibleTypes = new [] { typeof(string) })] - string State { get; set; } - /// Friendly name of target fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of target fabric.", - SerializedName = @"targetFabricFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string TargetFabricFriendlyName { get; set; } - /// Friendly name of paired container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of paired container.", - SerializedName = @"targetProtectionContainerFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string TargetProtectionContainerFriendlyName { get; set; } - /// Paired protection container ARM ID. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Paired protection container ARM ID.", - SerializedName = @"targetProtectionContainerId", - PossibleTypes = new [] { typeof(string) })] - string TargetProtectionContainerId { get; set; } - - } - /// Protection container mapping object. - internal partial interface IProtectionContainerMappingInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// Health of pairing. - string Health { get; set; } - /// Health error. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get; set; } - /// Friendly name of replication policy. - string PolicyFriendlyName { get; set; } - /// Policy ARM Id. - string PolicyId { get; set; } - /// The custom data. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProperties Property { get; set; } - /// Provider specific provider details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails ProviderSpecificDetail { get; set; } - /// Friendly name of source fabric. - string SourceFabricFriendlyName { get; set; } - /// Friendly name of source protection container. - string SourceProtectionContainerFriendlyName { get; set; } - /// Association Status. - string State { get; set; } - /// Friendly name of target fabric. - string TargetFabricFriendlyName { get; set; } - /// Friendly name of paired container. - string TargetProtectionContainerFriendlyName { get; set; } - /// Paired protection container ARM ID. - string TargetProtectionContainerId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingCollection.PowerShell.cs deleted file mode 100644 index ef5e4c580831..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingCollection.PowerShell.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Protection container mapping collection class. - [System.ComponentModel.TypeConverter(typeof(ProtectionContainerMappingCollectionTypeConverter))] - public partial class ProtectionContainerMappingCollection - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IProtectionContainerMappingCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProtectionContainerMappingCollection(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.Migrate.Models.Api20220501.IProtectionContainerMappingCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProtectionContainerMappingCollection(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.Migrate.Models.Api20220501.IProtectionContainerMappingCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProtectionContainerMappingCollection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProtectionContainerMappingCollection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Protection container mapping collection class. - [System.ComponentModel.TypeConverter(typeof(ProtectionContainerMappingCollectionTypeConverter))] - public partial interface IProtectionContainerMappingCollection - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProperties.PowerShell.cs deleted file mode 100644 index 2806ae334a0b..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProperties.PowerShell.cs +++ /dev/null @@ -1,228 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Protection container mapping properties. - [System.ComponentModel.TypeConverter(typeof(ProtectionContainerMappingPropertiesTypeConverter))] - public partial class ProtectionContainerMappingProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IProtectionContainerMappingProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProtectionContainerMappingProperties(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.Migrate.Models.Api20220501.IProtectionContainerMappingProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProtectionContainerMappingProperties(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.Migrate.Models.Api20220501.IProtectionContainerMappingProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProtectionContainerMappingProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TargetProtectionContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); - } - if (content.Contains("TargetProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerFriendlyName = (string) content.GetValueForProperty("TargetProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).Health = (string) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).Health, global::System.Convert.ToString); - } - if (content.Contains("HealthErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("SourceProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).SourceProtectionContainerFriendlyName = (string) content.GetValueForProperty("SourceProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).SourceProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("SourceFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).SourceFabricFriendlyName = (string) content.GetValueForProperty("SourceFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).SourceFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("TargetFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).TargetFabricFriendlyName = (string) content.GetValueForProperty("TargetFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).TargetFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PolicyFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).PolicyFriendlyName, 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 ProtectionContainerMappingProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TargetProtectionContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); - } - if (content.Contains("TargetProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerFriendlyName = (string) content.GetValueForProperty("TargetProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProviderSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).Health = (string) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).Health, global::System.Convert.ToString); - } - if (content.Contains("HealthErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).State, global::System.Convert.ToString); - } - if (content.Contains("SourceProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).SourceProtectionContainerFriendlyName = (string) content.GetValueForProperty("SourceProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).SourceProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("SourceFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).SourceFabricFriendlyName = (string) content.GetValueForProperty("SourceFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).SourceFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("TargetFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).TargetFabricFriendlyName = (string) content.GetValueForProperty("TargetFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).TargetFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PolicyFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal)this).PolicyFriendlyName, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Protection container mapping properties. - [System.ComponentModel.TypeConverter(typeof(ProtectionContainerMappingPropertiesTypeConverter))] - public partial interface IProtectionContainerMappingProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerProperties.PowerShell.cs deleted file mode 100644 index a04c4d286f07..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerProperties.PowerShell.cs +++ /dev/null @@ -1,202 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Protection profile custom data details. - [System.ComponentModel.TypeConverter(typeof(ProtectionContainerPropertiesTypeConverter))] - public partial class ProtectionContainerProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IProtectionContainerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProtectionContainerProperties(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.Migrate.Models.Api20220501.IProtectionContainerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProtectionContainerProperties(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.Migrate.Models.Api20220501.IProtectionContainerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProtectionContainerProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FabricSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerFabricSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FabricType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricType, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("PairingStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).PairingStatus = (string) content.GetValueForProperty("PairingStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).PairingStatus, global::System.Convert.ToString); - } - if (content.Contains("Role")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).Role = (string) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).Role, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricSpecificDetailInstanceType, 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 ProtectionContainerProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FabricSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerFabricSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FabricType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricType, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("PairingStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).PairingStatus = (string) content.GetValueForProperty("PairingStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).PairingStatus, global::System.Convert.ToString); - } - if (content.Contains("Role")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).Role = (string) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).Role, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal)this).FabricSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Protection profile custom data details. - [System.ComponentModel.TypeConverter(typeof(ProtectionContainerPropertiesTypeConverter))] - public partial interface IProtectionContainerProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProviderError.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ProviderError.PowerShell.cs deleted file mode 100644 index 84a73b26344b..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ProviderError.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class contains the error details per object. - [System.ComponentModel.TypeConverter(typeof(ProviderErrorTypeConverter))] - public partial class ProviderError - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IProviderError DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProviderError(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.Migrate.Models.Api20220501.IProviderError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProviderError(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.Migrate.Models.Api20220501.IProviderError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProviderError(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).ErrorCode = (int?) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).ErrorCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("ErrorId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).ErrorId = (string) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).ErrorId, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).RecommendedAction, 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 ProviderError(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).ErrorCode = (int?) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).ErrorCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).ErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("ErrorId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).ErrorId = (string) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).ErrorId, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)this).RecommendedAction, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class contains the error details per object. - [System.ComponentModel.TypeConverter(typeof(ProviderErrorTypeConverter))] - public partial interface IProviderError - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PushInstallerDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/PushInstallerDetails.PowerShell.cs deleted file mode 100644 index 89dc47dbcb7b..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/PushInstallerDetails.PowerShell.cs +++ /dev/null @@ -1,208 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Push installer details. - [System.ComponentModel.TypeConverter(typeof(PushInstallerDetailsTypeConverter))] - public partial class PushInstallerDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IPushInstallerDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PushInstallerDetails(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.Migrate.Models.Api20220501.IPushInstallerDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PushInstallerDetails(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.Migrate.Models.Api20220501.IPushInstallerDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PushInstallerDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal PushInstallerDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Push installer details. - [System.ComponentModel.TypeConverter(typeof(PushInstallerDetailsTypeConverter))] - public partial interface IPushInstallerDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RcmProxyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RcmProxyDetails.PowerShell.cs deleted file mode 100644 index 3670f075949c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RcmProxyDetails.PowerShell.cs +++ /dev/null @@ -1,216 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// RCM proxy details. - [System.ComponentModel.TypeConverter(typeof(RcmProxyDetailsTypeConverter))] - public partial class RcmProxyDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRcmProxyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RcmProxyDetails(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.Migrate.Models.Api20220501.IRcmProxyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RcmProxyDetails(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.Migrate.Models.Api20220501.IRcmProxyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RcmProxyDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("ClientAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).ClientAuthenticationType = (string) content.GetValueForProperty("ClientAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).ClientAuthenticationType, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RcmProxyDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("ClientAuthenticationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).ClientAuthenticationType = (string) content.GetValueForProperty("ClientAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).ClientAuthenticationType, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// RCM proxy details. - [System.ComponentModel.TypeConverter(typeof(RcmProxyDetailsTypeConverter))] - public partial interface IRcmProxyDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlan.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlan.PowerShell.cs deleted file mode 100644 index ed1c224a2cde..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlan.PowerShell.cs +++ /dev/null @@ -1,328 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan details. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanTypeConverter))] - public partial class RecoveryPlan - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlan DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlan(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.Migrate.Models.Api20220501.IRecoveryPlan DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlan(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.Migrate.Models.Api20220501.IRecoveryPlan FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlan(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.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenario")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).PrimaryFabricId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).RecoveryFabricId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FailoverDeploymentModel")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).FailoverDeploymentModel = (string) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).FailoverDeploymentModel, global::System.Convert.ToString); - } - if (content.Contains("ReplicationProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).ReplicationProvider = (string[]) content.GetValueForProperty("ReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).ReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("AllowedOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("LastPlannedFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).LastPlannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastPlannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).LastPlannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastUnplannedFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).LastUnplannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastUnplannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).LastUnplannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastTestFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).LastTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).LastTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("CurrentScenarioStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioStatus = (string) content.GetValueForProperty("CurrentScenarioStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioStatus, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioStatusDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioStatusDescription = (string) content.GetValueForProperty("CurrentScenarioStatusDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioStatusDescription, global::System.Convert.ToString); - } - if (content.Contains("Group")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTypeConverter.ConvertFrom)); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("CurrentScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioName, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RecoveryPlan(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.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenario")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).PrimaryFabricId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).RecoveryFabricId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FailoverDeploymentModel")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).FailoverDeploymentModel = (string) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).FailoverDeploymentModel, global::System.Convert.ToString); - } - if (content.Contains("ReplicationProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).ReplicationProvider = (string[]) content.GetValueForProperty("ReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).ReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("AllowedOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("LastPlannedFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).LastPlannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastPlannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).LastPlannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastUnplannedFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).LastUnplannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastUnplannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).LastUnplannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastTestFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).LastTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).LastTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("CurrentScenarioStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioStatus = (string) content.GetValueForProperty("CurrentScenarioStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioStatus, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioStatusDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioStatusDescription = (string) content.GetValueForProperty("CurrentScenarioStatusDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioStatusDescription, global::System.Convert.ToString); - } - if (content.Contains("Group")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTypeConverter.ConvertFrom)); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("CurrentScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioName, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan details. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanTypeConverter))] - public partial interface IRecoveryPlan - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlan.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlan.cs deleted file mode 100644 index c6cdb6b4137e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlan.cs +++ /dev/null @@ -1,347 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Recovery plan details. - public partial class RecoveryPlan : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlan, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// The list of allowed operations. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] AllowedOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).AllowedOperation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).AllowedOperation = value ?? null /* arrayOf */; } - - /// ARM Id of the job being executed. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CurrentScenarioJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioJobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioJobId = value ?? null; } - - /// Scenario name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CurrentScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioName = value ?? null; } - - /// Start time of the workflow. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentScenarioStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioStartTime = value ?? default(global::System.DateTime); } - - /// The recovery plan status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CurrentScenarioStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioStatus = value ?? null; } - - /// The recovery plan status description. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CurrentScenarioStatusDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioStatusDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioStatusDescription = value ?? null; } - - /// The failover deployment model. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FailoverDeploymentModel { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).FailoverDeploymentModel; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).FailoverDeploymentModel = value ?? null; } - - /// The friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).FriendlyName = value ?? null; } - - /// The recovery plan groups. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).Group; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).Group = value ?? null /* arrayOf */; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// The start time of the last planned failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? LastPlannedFailoverTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).LastPlannedFailoverTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).LastPlannedFailoverTime = value ?? default(global::System.DateTime); } - - /// The start time of the last test failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? LastTestFailoverTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).LastTestFailoverTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).LastTestFailoverTime = value ?? default(global::System.DateTime); } - - /// The start time of the last unplanned failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? LastUnplannedFailoverTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).LastUnplannedFailoverTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).LastUnplannedFailoverTime = value ?? default(global::System.DateTime); } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for CurrentScenario - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal.CurrentScenario { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).CurrentScenario; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).CurrentScenario = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProperties()); set { {_property = value;} } } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// The primary fabric friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).PrimaryFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).PrimaryFabricFriendlyName = value ?? null; } - - /// The primary fabric Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).PrimaryFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).PrimaryFabricId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProperties _property; - - /// The custom details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProperties()); set => this._property = value; } - - /// The provider id and provider specific details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails[] ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* arrayOf */; } - - /// The recovery fabric friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).RecoveryFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).RecoveryFabricFriendlyName = value ?? null; } - - /// The recovery fabric Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).RecoveryFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).RecoveryFabricId = value ?? null; } - - /// The list of replication providers. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] ReplicationProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).ReplicationProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)Property).ReplicationProvider = value ?? null /* arrayOf */; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public RecoveryPlan() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Recovery plan details. - public partial interface IRecoveryPlan : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// The list of allowed operations. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of allowed operations.", - SerializedName = @"allowedOperations", - PossibleTypes = new [] { typeof(string) })] - string[] AllowedOperation { get; set; } - /// ARM Id of the job being executed. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"ARM Id of the job being executed.", - SerializedName = @"jobId", - PossibleTypes = new [] { typeof(string) })] - string CurrentScenarioJobId { get; set; } - /// Scenario name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Scenario name.", - SerializedName = @"scenarioName", - PossibleTypes = new [] { typeof(string) })] - string CurrentScenarioName { get; set; } - /// Start time of the workflow. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Start time of the workflow.", - SerializedName = @"startTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? CurrentScenarioStartTime { get; set; } - /// The recovery plan status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery plan status.", - SerializedName = @"currentScenarioStatus", - PossibleTypes = new [] { typeof(string) })] - string CurrentScenarioStatus { get; set; } - /// The recovery plan status description. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery plan status description.", - SerializedName = @"currentScenarioStatusDescription", - PossibleTypes = new [] { typeof(string) })] - string CurrentScenarioStatusDescription { get; set; } - /// The failover deployment model. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The failover deployment model.", - SerializedName = @"failoverDeploymentModel", - PossibleTypes = new [] { typeof(string) })] - string FailoverDeploymentModel { get; set; } - /// The friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The friendly name.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// The recovery plan groups. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery plan groups.", - SerializedName = @"groups", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get; set; } - /// The start time of the last planned failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The start time of the last planned failover.", - SerializedName = @"lastPlannedFailoverTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? LastPlannedFailoverTime { get; set; } - /// The start time of the last test failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The start time of the last test failover.", - SerializedName = @"lastTestFailoverTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? LastTestFailoverTime { get; set; } - /// The start time of the last unplanned failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The start time of the last unplanned failover.", - SerializedName = @"lastUnplannedFailoverTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? LastUnplannedFailoverTime { get; set; } - /// The primary fabric friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The primary fabric friendly name.", - SerializedName = @"primaryFabricFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string PrimaryFabricFriendlyName { get; set; } - /// The primary fabric Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The primary fabric Id.", - SerializedName = @"primaryFabricId", - PossibleTypes = new [] { typeof(string) })] - string PrimaryFabricId { get; set; } - /// The provider id and provider specific details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The provider id and provider specific details.", - SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails[] ProviderSpecificDetail { get; set; } - /// The recovery fabric friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery fabric friendly name.", - SerializedName = @"recoveryFabricFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string RecoveryFabricFriendlyName { get; set; } - /// The recovery fabric Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery fabric Id.", - SerializedName = @"recoveryFabricId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryFabricId { get; set; } - /// The list of replication providers. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of replication providers.", - SerializedName = @"replicationProviders", - PossibleTypes = new [] { typeof(string) })] - string[] ReplicationProvider { get; set; } - - } - /// Recovery plan details. - internal partial interface IRecoveryPlanInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The list of allowed operations. - string[] AllowedOperation { get; set; } - /// The current scenario details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails CurrentScenario { get; set; } - /// ARM Id of the job being executed. - string CurrentScenarioJobId { get; set; } - /// Scenario name. - string CurrentScenarioName { get; set; } - /// Start time of the workflow. - global::System.DateTime? CurrentScenarioStartTime { get; set; } - /// The recovery plan status. - string CurrentScenarioStatus { get; set; } - /// The recovery plan status description. - string CurrentScenarioStatusDescription { get; set; } - /// The failover deployment model. - string FailoverDeploymentModel { get; set; } - /// The friendly name. - string FriendlyName { get; set; } - /// The recovery plan groups. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get; set; } - /// The start time of the last planned failover. - global::System.DateTime? LastPlannedFailoverTime { get; set; } - /// The start time of the last test failover. - global::System.DateTime? LastTestFailoverTime { get; set; } - /// The start time of the last unplanned failover. - global::System.DateTime? LastUnplannedFailoverTime { get; set; } - /// The primary fabric friendly name. - string PrimaryFabricFriendlyName { get; set; } - /// The primary fabric Id. - string PrimaryFabricId { get; set; } - /// The custom details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProperties Property { get; set; } - /// The provider id and provider specific details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails[] ProviderSpecificDetail { get; set; } - /// The recovery fabric friendly name. - string RecoveryFabricFriendlyName { get; set; } - /// The recovery fabric Id. - string RecoveryFabricId { get; set; } - /// The list of replication providers. - string[] ReplicationProvider { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2ADetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2ADetails.PowerShell.cs deleted file mode 100644 index 1e568c42ac5c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2ADetails.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan A2A specific details. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanA2ADetailsTypeConverter))] - public partial class RecoveryPlanA2ADetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanA2ADetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanA2ADetails(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.Migrate.Models.Api20220501.IRecoveryPlanA2ADetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanA2ADetails(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.Migrate.Models.Api20220501.IRecoveryPlanA2ADetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanA2ADetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2ADetailsInternal)this).PrimaryZone = (string) content.GetValueForProperty("PrimaryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2ADetailsInternal)this).PrimaryZone, global::System.Convert.ToString); - } - if (content.Contains("RecoveryZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2ADetailsInternal)this).RecoveryZone = (string) content.GetValueForProperty("RecoveryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2ADetailsInternal)this).RecoveryZone, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType, 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 RecoveryPlanA2ADetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2ADetailsInternal)this).PrimaryZone = (string) content.GetValueForProperty("PrimaryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2ADetailsInternal)this).PrimaryZone, global::System.Convert.ToString); - } - if (content.Contains("RecoveryZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2ADetailsInternal)this).RecoveryZone = (string) content.GetValueForProperty("RecoveryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2ADetailsInternal)this).RecoveryZone, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan A2A specific details. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanA2ADetailsTypeConverter))] - public partial interface IRecoveryPlanA2ADetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2ADetails.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2ADetails.cs deleted file mode 100644 index c7bb867c8678..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2ADetails.cs +++ /dev/null @@ -1,91 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Recovery plan A2A specific details. - public partial class RecoveryPlanA2ADetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2ADetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2ADetailsInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails __recoveryPlanProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificDetails(); - - /// Gets the Instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetailsInternal)__recoveryPlanProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetailsInternal)__recoveryPlanProviderSpecificDetails).InstanceType = value ; } - - /// Backing field for property. - private string _primaryZone; - - /// The primary zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PrimaryZone { get => this._primaryZone; set => this._primaryZone = value; } - - /// Backing field for property. - private string _recoveryZone; - - /// The recovery zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryZone { get => this._recoveryZone; set => this._recoveryZone = value; } - - /// Creates an new instance. - public RecoveryPlanA2ADetails() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__recoveryPlanProviderSpecificDetails), __recoveryPlanProviderSpecificDetails); - await eventListener.AssertObjectIsValid(nameof(__recoveryPlanProviderSpecificDetails), __recoveryPlanProviderSpecificDetails); - } - } - /// Recovery plan A2A specific details. - public partial interface IRecoveryPlanA2ADetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails - { - /// The primary zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The primary zone.", - SerializedName = @"primaryZone", - PossibleTypes = new [] { typeof(string) })] - string PrimaryZone { get; set; } - /// The recovery zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery zone.", - SerializedName = @"recoveryZone", - PossibleTypes = new [] { typeof(string) })] - string RecoveryZone { get; set; } - - } - /// Recovery plan A2A specific details. - internal partial interface IRecoveryPlanA2ADetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetailsInternal - { - /// The primary zone. - string PrimaryZone { get; set; } - /// The recovery zone. - string RecoveryZone { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AFailoverInput.PowerShell.cs deleted file mode 100644 index a52a41f54bfb..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AFailoverInput.PowerShell.cs +++ /dev/null @@ -1,170 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan A2A failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanA2AFailoverInputTypeConverter))] - public partial class RecoveryPlanA2AFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanA2AFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanA2AFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanA2AFailoverInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARpRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARpRecoveryPointType.CreateFrom); - } - if (content.Contains("CloudServiceCreationOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInputInternal)this).CloudServiceCreationOption = (string) content.GetValueForProperty("CloudServiceCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInputInternal)this).CloudServiceCreationOption, global::System.Convert.ToString); - } - if (content.Contains("MultiVMSyncPointOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInputInternal)this).MultiVMSyncPointOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMSyncPointOption?) content.GetValueForProperty("MultiVMSyncPointOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInputInternal)this).MultiVMSyncPointOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMSyncPointOption.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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 RecoveryPlanA2AFailoverInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARpRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARpRecoveryPointType.CreateFrom); - } - if (content.Contains("CloudServiceCreationOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInputInternal)this).CloudServiceCreationOption = (string) content.GetValueForProperty("CloudServiceCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInputInternal)this).CloudServiceCreationOption, global::System.Convert.ToString); - } - if (content.Contains("MultiVMSyncPointOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInputInternal)this).MultiVMSyncPointOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMSyncPointOption?) content.GetValueForProperty("MultiVMSyncPointOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInputInternal)this).MultiVMSyncPointOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMSyncPointOption.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan A2A failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanA2AFailoverInputTypeConverter))] - public partial interface IRecoveryPlanA2AFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AInput.PowerShell.cs deleted file mode 100644 index 53b469f2b269..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AInput.PowerShell.cs +++ /dev/null @@ -1,208 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan A2A input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanA2AInputTypeConverter))] - public partial class RecoveryPlanA2AInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanA2AInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanA2AInput(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.Migrate.Models.Api20220501.IRecoveryPlanA2AInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanA2AInput(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.Migrate.Models.Api20220501.IRecoveryPlanA2AInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanA2AInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryExtendedLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation) content.GetValueForProperty("PrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocationTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryExtendedLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocationTypeConverter.ConvertFrom); - } - if (content.Contains("PrimaryZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryZone = (string) content.GetValueForProperty("PrimaryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryZone, global::System.Convert.ToString); - } - if (content.Contains("RecoveryZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryZone = (string) content.GetValueForProperty("RecoveryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryZone, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("PrimaryExtendedLocationName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationName = (string) content.GetValueForProperty("PrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryExtendedLocationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationType = (string) content.GetValueForProperty("PrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryExtendedLocationName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryExtendedLocationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationType, 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 RecoveryPlanA2AInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryExtendedLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation) content.GetValueForProperty("PrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocationTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryExtendedLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocationTypeConverter.ConvertFrom); - } - if (content.Contains("PrimaryZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryZone = (string) content.GetValueForProperty("PrimaryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryZone, global::System.Convert.ToString); - } - if (content.Contains("RecoveryZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryZone = (string) content.GetValueForProperty("RecoveryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryZone, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("PrimaryExtendedLocationName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationName = (string) content.GetValueForProperty("PrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryExtendedLocationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationType = (string) content.GetValueForProperty("PrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryExtendedLocationName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryExtendedLocationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan A2A input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanA2AInputTypeConverter))] - public partial interface IRecoveryPlanA2AInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AInput.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AInput.cs deleted file mode 100644 index 49acee5ffbe4..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AInput.cs +++ /dev/null @@ -1,177 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Recovery plan A2A input. - public partial class RecoveryPlanA2AInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput __recoveryPlanProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificInput(); - - /// Gets the Instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInputInternal)__recoveryPlanProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInputInternal)__recoveryPlanProviderSpecificInput).InstanceType = value ; } - - /// Internal Acessors for PrimaryExtendedLocation - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal.PrimaryExtendedLocation { get => (this._primaryExtendedLocation = this._primaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation()); set { {_primaryExtendedLocation = value;} } } - - /// Internal Acessors for PrimaryExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal.PrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)PrimaryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)PrimaryExtendedLocation).Type = value; } - - /// Internal Acessors for RecoveryExtendedLocation - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal.RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation()); set { {_recoveryExtendedLocation = value;} } } - - /// Internal Acessors for RecoveryExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInputInternal.RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Type = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation _primaryExtendedLocation; - - /// The primary extended location. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation PrimaryExtendedLocation { get => (this._primaryExtendedLocation = this._primaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation()); set => this._primaryExtendedLocation = value; } - - /// The name of the extended location. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)PrimaryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)PrimaryExtendedLocation).Name = value ?? null; } - - /// The extended location type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)PrimaryExtendedLocation).Type; } - - /// Backing field for property. - private string _primaryZone; - - /// The primary zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PrimaryZone { get => this._primaryZone; set => this._primaryZone = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation _recoveryExtendedLocation; - - /// The recovery extended location. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation()); set => this._recoveryExtendedLocation = value; } - - /// The name of the extended location. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Name = value ?? null; } - - /// The extended location type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Type; } - - /// Backing field for property. - private string _recoveryZone; - - /// The recovery zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryZone { get => this._recoveryZone; set => this._recoveryZone = value; } - - /// Creates an new instance. - public RecoveryPlanA2AInput() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__recoveryPlanProviderSpecificInput), __recoveryPlanProviderSpecificInput); - await eventListener.AssertObjectIsValid(nameof(__recoveryPlanProviderSpecificInput), __recoveryPlanProviderSpecificInput); - } - } - /// Recovery plan A2A input. - public partial interface IRecoveryPlanA2AInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput - { - /// The name of the extended location. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name of the extended location.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string PrimaryExtendedLocationName { get; set; } - /// The extended location type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The extended location type.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string PrimaryExtendedLocationType { get; } - /// The primary zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The primary zone.", - SerializedName = @"primaryZone", - PossibleTypes = new [] { typeof(string) })] - string PrimaryZone { get; set; } - /// The name of the extended location. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name of the extended location.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string RecoveryExtendedLocationName { get; set; } - /// The extended location type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The extended location type.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string RecoveryExtendedLocationType { get; } - /// The recovery zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery zone.", - SerializedName = @"recoveryZone", - PossibleTypes = new [] { typeof(string) })] - string RecoveryZone { get; set; } - - } - /// Recovery plan A2A input. - internal partial interface IRecoveryPlanA2AInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInputInternal - { - /// The primary extended location. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation PrimaryExtendedLocation { get; set; } - /// The name of the extended location. - string PrimaryExtendedLocationName { get; set; } - /// The extended location type. - string PrimaryExtendedLocationType { get; set; } - /// The primary zone. - string PrimaryZone { get; set; } - /// The recovery extended location. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation RecoveryExtendedLocation { get; set; } - /// The name of the extended location. - string RecoveryExtendedLocationName { get; set; } - /// The extended location type. - string RecoveryExtendedLocationType { get; set; } - /// The recovery zone. - string RecoveryZone { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAction.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAction.PowerShell.cs deleted file mode 100644 index bf15b47b2291..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAction.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan action details. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanActionTypeConverter))] - public partial class RecoveryPlanAction - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanAction DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanAction(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.Migrate.Models.Api20220501.IRecoveryPlanAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanAction(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.Migrate.Models.Api20220501.IRecoveryPlanAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanAction(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ActionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).ActionName = (string) content.GetValueForProperty("ActionName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).ActionName, global::System.Convert.ToString); - } - if (content.Contains("FailoverType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).FailoverType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ReplicationProtectedItemOperation[]) content.GetValueForProperty("FailoverType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).FailoverType, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ReplicationProtectedItemOperation.CreateFrom)); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections[]) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).FailoverDirection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom)); - } - if (content.Contains("CustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).CustomDetailInstanceType, 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 RecoveryPlanAction(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CustomDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ActionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).ActionName = (string) content.GetValueForProperty("ActionName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).ActionName, global::System.Convert.ToString); - } - if (content.Contains("FailoverType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).FailoverType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ReplicationProtectedItemOperation[]) content.GetValueForProperty("FailoverType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).FailoverType, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ReplicationProtectedItemOperation.CreateFrom)); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections[]) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).FailoverDirection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom)); - } - if (content.Contains("CustomDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal)this).CustomDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan action details. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanActionTypeConverter))] - public partial interface IRecoveryPlanAction - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAutomationRunbookActionDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAutomationRunbookActionDetails.PowerShell.cs deleted file mode 100644 index 70313c033299..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAutomationRunbookActionDetails.PowerShell.cs +++ /dev/null @@ -1,173 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan Automation runbook action details. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanAutomationRunbookActionDetailsTypeConverter))] - public partial class RecoveryPlanAutomationRunbookActionDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanAutomationRunbookActionDetails(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.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanAutomationRunbookActionDetails(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.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanAutomationRunbookActionDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RunbookId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).RunbookId = (string) content.GetValueForProperty("RunbookId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).RunbookId, global::System.Convert.ToString); - } - if (content.Contains("Timeout")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).Timeout = (string) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).Timeout, global::System.Convert.ToString); - } - if (content.Contains("FabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).FabricLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation) content.GetValueForProperty("FabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).FabricLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType, 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 RecoveryPlanAutomationRunbookActionDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RunbookId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).RunbookId = (string) content.GetValueForProperty("RunbookId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).RunbookId, global::System.Convert.ToString); - } - if (content.Contains("Timeout")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).Timeout = (string) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).Timeout, global::System.Convert.ToString); - } - if (content.Contains("FabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).FabricLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation) content.GetValueForProperty("FabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).FabricLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan Automation runbook action details. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanAutomationRunbookActionDetailsTypeConverter))] - public partial interface IRecoveryPlanAutomationRunbookActionDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroup.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroup.PowerShell.cs deleted file mode 100644 index fbb7e1427deb..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroup.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan group details. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanGroupTypeConverter))] - public partial class RecoveryPlanGroup - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanGroup(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.Migrate.Models.Api20220501.IRecoveryPlanGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanGroup(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.Migrate.Models.Api20220501.IRecoveryPlanGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanGroup(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("GroupType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).GroupType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanGroupType) content.GetValueForProperty("GroupType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).GroupType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanGroupType.CreateFrom); - } - if (content.Contains("ReplicationProtectedItem")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).ReplicationProtectedItem = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem[]) content.GetValueForProperty("ReplicationProtectedItem",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).ReplicationProtectedItem, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProtectedItemTypeConverter.ConvertFrom)); - } - if (content.Contains("StartGroupAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).StartGroupAction = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction[]) content.GetValueForProperty("StartGroupAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).StartGroupAction, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionTypeConverter.ConvertFrom)); - } - if (content.Contains("EndGroupAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).EndGroupAction = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction[]) content.GetValueForProperty("EndGroupAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).EndGroupAction, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RecoveryPlanGroup(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("GroupType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).GroupType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanGroupType) content.GetValueForProperty("GroupType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).GroupType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanGroupType.CreateFrom); - } - if (content.Contains("ReplicationProtectedItem")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).ReplicationProtectedItem = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem[]) content.GetValueForProperty("ReplicationProtectedItem",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).ReplicationProtectedItem, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProtectedItemTypeConverter.ConvertFrom)); - } - if (content.Contains("StartGroupAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).StartGroupAction = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction[]) content.GetValueForProperty("StartGroupAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).StartGroupAction, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionTypeConverter.ConvertFrom)); - } - if (content.Contains("EndGroupAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).EndGroupAction = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction[]) content.GetValueForProperty("EndGroupAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal)this).EndGroupAction, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan group details. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanGroupTypeConverter))] - public partial interface IRecoveryPlanGroup - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroupTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroupTaskDetails.PowerShell.cs deleted file mode 100644 index bcd6a5a57ac8..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroupTaskDetails.PowerShell.cs +++ /dev/null @@ -1,178 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class represents the recovery plan group task. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanGroupTaskDetailsTypeConverter))] - public partial class RecoveryPlanGroupTaskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanGroupTaskDetails(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.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanGroupTaskDetails(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.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanGroupTaskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("GroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId = (string) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId, global::System.Convert.ToString); - } - if (content.Contains("RpGroupType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType = (string) content.GetValueForProperty("RpGroupType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("ChildTask")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTaskTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RecoveryPlanGroupTaskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("GroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId = (string) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId, global::System.Convert.ToString); - } - if (content.Contains("RpGroupType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType = (string) content.GetValueForProperty("RpGroupType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("ChildTask")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTaskTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class represents the recovery plan group task. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanGroupTaskDetailsTypeConverter))] - public partial interface IRecoveryPlanGroupTaskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailbackInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailbackInput.PowerShell.cs deleted file mode 100644 index e97da37e2d61..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailbackInput.PowerShell.cs +++ /dev/null @@ -1,165 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan HVR Azure failback input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanHyperVReplicaAzureFailbackInputTypeConverter))] - public partial class RecoveryPlanHyperVReplicaAzureFailbackInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanHyperVReplicaAzureFailbackInput(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.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanHyperVReplicaAzureFailbackInput(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.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanHyperVReplicaAzureFailbackInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DataSyncOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).DataSyncOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DataSyncStatus) content.GetValueForProperty("DataSyncOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).DataSyncOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DataSyncStatus.CreateFrom); - } - if (content.Contains("RecoveryVMCreationOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).RecoveryVMCreationOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AlternateLocationRecoveryOption) content.GetValueForProperty("RecoveryVMCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).RecoveryVMCreationOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AlternateLocationRecoveryOption.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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 RecoveryPlanHyperVReplicaAzureFailbackInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DataSyncOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).DataSyncOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DataSyncStatus) content.GetValueForProperty("DataSyncOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).DataSyncOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DataSyncStatus.CreateFrom); - } - if (content.Contains("RecoveryVMCreationOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).RecoveryVMCreationOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AlternateLocationRecoveryOption) content.GetValueForProperty("RecoveryVMCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).RecoveryVMCreationOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AlternateLocationRecoveryOption.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan HVR Azure failback input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanHyperVReplicaAzureFailbackInputTypeConverter))] - public partial interface IRecoveryPlanHyperVReplicaAzureFailbackInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailoverInput.PowerShell.cs deleted file mode 100644 index ba5b076de973..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailoverInput.PowerShell.cs +++ /dev/null @@ -1,173 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan HVR Azure failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanHyperVReplicaAzureFailoverInputTypeConverter))] - public partial class RecoveryPlanHyperVReplicaAzureFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanHyperVReplicaAzureFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanHyperVReplicaAzureFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanHyperVReplicaAzureFailoverInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("SecondaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HyperVReplicaAzureRpRecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HyperVReplicaAzureRpRecoveryPointType.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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 RecoveryPlanHyperVReplicaAzureFailoverInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PrimaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("SecondaryKekCertificatePfx")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); - } - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HyperVReplicaAzureRpRecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HyperVReplicaAzureRpRecoveryPointType.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan HVR Azure failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanHyperVReplicaAzureFailoverInputTypeConverter))] - public partial interface IRecoveryPlanHyperVReplicaAzureFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageAzureV2FailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageAzureV2FailoverInput.PowerShell.cs deleted file mode 100644 index 134e269389c6..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageAzureV2FailoverInput.PowerShell.cs +++ /dev/null @@ -1,165 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan InMageAzureV2 failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanInMageAzureV2FailoverInputTypeConverter))] - public partial class RecoveryPlanInMageAzureV2FailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanInMageAzureV2FailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanInMageAzureV2FailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanInMageAzureV2FailoverInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageV2RpRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageV2RpRecoveryPointType.CreateFrom); - } - if (content.Contains("UseMultiVMSyncPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).UseMultiVMSyncPoint = (string) content.GetValueForProperty("UseMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).UseMultiVMSyncPoint, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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 RecoveryPlanInMageAzureV2FailoverInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageV2RpRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageV2RpRecoveryPointType.CreateFrom); - } - if (content.Contains("UseMultiVMSyncPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).UseMultiVMSyncPoint = (string) content.GetValueForProperty("UseMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).UseMultiVMSyncPoint, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan InMageAzureV2 failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanInMageAzureV2FailoverInputTypeConverter))] - public partial interface IRecoveryPlanInMageAzureV2FailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailbackFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailbackFailoverInput.PowerShell.cs deleted file mode 100644 index b70c71b1a586..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailbackFailoverInput.PowerShell.cs +++ /dev/null @@ -1,165 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan InMageRcmFailback failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanInMageRcmFailbackFailoverInputTypeConverter))] - public partial class RecoveryPlanInMageRcmFailbackFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanInMageRcmFailbackFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanInMageRcmFailbackFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanInMageRcmFailbackFailoverInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType.CreateFrom); - } - if (content.Contains("UseMultiVMSyncPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).UseMultiVMSyncPoint = (string) content.GetValueForProperty("UseMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).UseMultiVMSyncPoint, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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 RecoveryPlanInMageRcmFailbackFailoverInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType.CreateFrom); - } - if (content.Contains("UseMultiVMSyncPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).UseMultiVMSyncPoint = (string) content.GetValueForProperty("UseMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).UseMultiVMSyncPoint, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan InMageRcmFailback failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanInMageRcmFailbackFailoverInputTypeConverter))] - public partial interface IRecoveryPlanInMageRcmFailbackFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailoverInput.PowerShell.cs deleted file mode 100644 index e9c3ad1aa8a9..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailoverInput.PowerShell.cs +++ /dev/null @@ -1,164 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan InMageRcm failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanInMageRcmFailoverInputTypeConverter))] - public partial class RecoveryPlanInMageRcmFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanInMageRcmFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanInMageRcmFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanInMageRcmFailoverInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanPointType.CreateFrom); - } - if (content.Contains("UseMultiVMSyncPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInputInternal)this).UseMultiVMSyncPoint = (string) content.GetValueForProperty("UseMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInputInternal)this).UseMultiVMSyncPoint, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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 RecoveryPlanInMageRcmFailoverInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanPointType.CreateFrom); - } - if (content.Contains("UseMultiVMSyncPoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInputInternal)this).UseMultiVMSyncPoint = (string) content.GetValueForProperty("UseMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInputInternal)this).UseMultiVMSyncPoint, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan InMageRcm failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanInMageRcmFailoverInputTypeConverter))] - public partial interface IRecoveryPlanInMageRcmFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInput.PowerShell.cs deleted file mode 100644 index 69850af82dce..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInput.PowerShell.cs +++ /dev/null @@ -1,162 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan planned failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanPlannedFailoverInputTypeConverter))] - public partial class RecoveryPlanPlannedFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanPlannedFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanPlannedFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanPlannedFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanPlannedFailoverInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInputTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RecoveryPlanPlannedFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanPlannedFailoverInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan planned failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanPlannedFailoverInputTypeConverter))] - public partial interface IRecoveryPlanPlannedFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInput.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInput.cs deleted file mode 100644 index 860be05d4455..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInput.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Recovery plan planned failover input. - public partial class RecoveryPlanPlannedFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputInternal - { - - /// The failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputPropertiesInternal)Property).FailoverDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputPropertiesInternal)Property).FailoverDirection = value ; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanPlannedFailoverInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties _property; - - /// The recovery plan planned failover input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanPlannedFailoverInputProperties()); set => this._property = value; } - - /// The provider specific properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* arrayOf */; } - - /// Creates an new instance. - public RecoveryPlanPlannedFailoverInput() - { - - } - } - /// Recovery plan planned failover input. - public partial interface IRecoveryPlanPlannedFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The failover direction.", - SerializedName = @"failoverDirection", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get; set; } - /// The provider specific properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The provider specific properties.", - SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } - - } - /// Recovery plan planned failover input. - internal partial interface IRecoveryPlanPlannedFailoverInputInternal - - { - /// The failover direction. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get; set; } - /// The recovery plan planned failover input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties Property { get; set; } - /// The provider specific properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInputProperties.PowerShell.cs deleted file mode 100644 index aee393f3f6c0..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInputProperties.PowerShell.cs +++ /dev/null @@ -1,157 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan planned failover input properties. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanPlannedFailoverInputPropertiesTypeConverter))] - public partial class RecoveryPlanPlannedFailoverInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanPlannedFailoverInputProperties(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.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanPlannedFailoverInputProperties(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.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanPlannedFailoverInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInputTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RecoveryPlanPlannedFailoverInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan planned failover input properties. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanPlannedFailoverInputPropertiesTypeConverter))] - public partial interface IRecoveryPlanPlannedFailoverInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProperties.PowerShell.cs deleted file mode 100644 index 4a97beb89e60..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProperties.PowerShell.cs +++ /dev/null @@ -1,288 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan properties. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanPropertiesTypeConverter))] - public partial class RecoveryPlanProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanProperties(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.Migrate.Models.Api20220501.IRecoveryPlanProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanProperties(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.Migrate.Models.Api20220501.IRecoveryPlanProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CurrentScenario")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).PrimaryFabricId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).RecoveryFabricId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FailoverDeploymentModel")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).FailoverDeploymentModel = (string) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).FailoverDeploymentModel, global::System.Convert.ToString); - } - if (content.Contains("ReplicationProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).ReplicationProvider = (string[]) content.GetValueForProperty("ReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).ReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("AllowedOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("LastPlannedFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).LastPlannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastPlannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).LastPlannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastUnplannedFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).LastUnplannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastUnplannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).LastUnplannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastTestFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).LastTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).LastTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("CurrentScenarioStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatus = (string) content.GetValueForProperty("CurrentScenarioStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatus, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioStatusDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatusDescription = (string) content.GetValueForProperty("CurrentScenarioStatusDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatusDescription, global::System.Convert.ToString); - } - if (content.Contains("Group")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTypeConverter.ConvertFrom)); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("CurrentScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioName, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RecoveryPlanProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CurrentScenario")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).PrimaryFabricId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).RecoveryFabricId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("FailoverDeploymentModel")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).FailoverDeploymentModel = (string) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).FailoverDeploymentModel, global::System.Convert.ToString); - } - if (content.Contains("ReplicationProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).ReplicationProvider = (string[]) content.GetValueForProperty("ReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).ReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("AllowedOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("LastPlannedFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).LastPlannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastPlannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).LastPlannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastUnplannedFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).LastUnplannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastUnplannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).LastUnplannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastTestFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).LastTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).LastTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("CurrentScenarioStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatus = (string) content.GetValueForProperty("CurrentScenarioStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatus, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioStatusDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatusDescription = (string) content.GetValueForProperty("CurrentScenarioStatusDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatusDescription, global::System.Convert.ToString); - } - if (content.Contains("Group")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTypeConverter.ConvertFrom)); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("CurrentScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioName, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan properties. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanPropertiesTypeConverter))] - public partial interface IRecoveryPlanProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanScriptActionDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanScriptActionDetails.PowerShell.cs deleted file mode 100644 index a616f1990518..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanScriptActionDetails.PowerShell.cs +++ /dev/null @@ -1,170 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan script action details. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanScriptActionDetailsTypeConverter))] - public partial class RecoveryPlanScriptActionDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanScriptActionDetails(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.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanScriptActionDetails(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.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanScriptActionDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Path")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetailsInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetailsInternal)this).Path, global::System.Convert.ToString); - } - if (content.Contains("Timeout")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetailsInternal)this).Timeout = (string) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetailsInternal)this).Timeout, global::System.Convert.ToString); - } - if (content.Contains("FabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetailsInternal)this).FabricLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation) content.GetValueForProperty("FabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetailsInternal)this).FabricLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType, 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 RecoveryPlanScriptActionDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Path")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetailsInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetailsInternal)this).Path, global::System.Convert.ToString); - } - if (content.Contains("Timeout")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetailsInternal)this).Timeout = (string) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetailsInternal)this).Timeout, global::System.Convert.ToString); - } - if (content.Contains("FabricLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetailsInternal)this).FabricLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation) content.GetValueForProperty("FabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetailsInternal)this).FabricLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation.CreateFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan script action details. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanScriptActionDetailsTypeConverter))] - public partial interface IRecoveryPlanScriptActionDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanShutdownGroupTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanShutdownGroupTaskDetails.PowerShell.cs deleted file mode 100644 index 05d7258b0037..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanShutdownGroupTaskDetails.PowerShell.cs +++ /dev/null @@ -1,180 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class represents the recovery plan shutdown group task details. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanShutdownGroupTaskDetailsTypeConverter))] - public partial class RecoveryPlanShutdownGroupTaskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanShutdownGroupTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanShutdownGroupTaskDetails(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.Migrate.Models.Api20220501.IRecoveryPlanShutdownGroupTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanShutdownGroupTaskDetails(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.Migrate.Models.Api20220501.IRecoveryPlanShutdownGroupTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanShutdownGroupTaskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("ChildTask")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTaskTypeConverter.ConvertFrom)); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("GroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId = (string) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId, global::System.Convert.ToString); - } - if (content.Contains("RpGroupType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType = (string) content.GetValueForProperty("RpGroupType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType, 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 RecoveryPlanShutdownGroupTaskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("ChildTask")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTaskTypeConverter.ConvertFrom)); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("GroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId = (string) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId, global::System.Convert.ToString); - } - if (content.Contains("RpGroupType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType = (string) content.GetValueForProperty("RpGroupType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class represents the recovery plan shutdown group task details. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanShutdownGroupTaskDetailsTypeConverter))] - public partial interface IRecoveryPlanShutdownGroupTaskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanShutdownGroupTaskDetails.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanShutdownGroupTaskDetails.cs deleted file mode 100644 index 78095c29105b..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanShutdownGroupTaskDetails.cs +++ /dev/null @@ -1,73 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// This class represents the recovery plan shutdown group task details. - public partial class RecoveryPlanShutdownGroupTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanShutdownGroupTaskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanShutdownGroupTaskDetailsInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetails __recoveryPlanGroupTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTaskDetails(); - - /// The child tasks. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] ChildTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).ChildTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).ChildTask = value ?? null /* arrayOf */; } - - /// The group identifier. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).GroupId = value ?? null; } - - /// The type of task details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).InstanceType = value ; } - - /// The name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).Name = value ?? null; } - - /// The group type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string RpGroupType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).RpGroupType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).RpGroupType = value ?? null; } - - /// Creates an new instance. - public RecoveryPlanShutdownGroupTaskDetails() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__recoveryPlanGroupTaskDetails), __recoveryPlanGroupTaskDetails); - await eventListener.AssertObjectIsValid(nameof(__recoveryPlanGroupTaskDetails), __recoveryPlanGroupTaskDetails); - } - } - /// This class represents the recovery plan shutdown group task details. - public partial interface IRecoveryPlanShutdownGroupTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetails - { - - } - /// This class represents the recovery plan shutdown group task details. - internal partial interface IRecoveryPlanShutdownGroupTaskDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInput.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInput.cs deleted file mode 100644 index a55b8399af47..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Recovery plan test failover cleanup input. - public partial class RecoveryPlanTestFailoverCleanupInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputInternal - { - - /// The test failover cleanup comments. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Comment { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputPropertiesInternal)Property).Comment; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputPropertiesInternal)Property).Comment = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTestFailoverCleanupInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties _property; - - /// The recovery plan test failover cleanup input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTestFailoverCleanupInputProperties()); set => this._property = value; } - - /// Creates an new instance. - public RecoveryPlanTestFailoverCleanupInput() - { - - } - } - /// Recovery plan test failover cleanup input. - public partial interface IRecoveryPlanTestFailoverCleanupInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The test failover cleanup comments. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The test failover cleanup comments.", - SerializedName = @"comments", - PossibleTypes = new [] { typeof(string) })] - string Comment { get; set; } - - } - /// Recovery plan test failover cleanup input. - internal partial interface IRecoveryPlanTestFailoverCleanupInputInternal - - { - /// The test failover cleanup comments. - string Comment { get; set; } - /// The recovery plan test failover cleanup input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties Property { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInput.PowerShell.cs deleted file mode 100644 index 184b7775342e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInput.PowerShell.cs +++ /dev/null @@ -1,178 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan test failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanTestFailoverInputTypeConverter))] - public partial class RecoveryPlanTestFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanTestFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanTestFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanTestFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTestFailoverInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); - } - if (content.Contains("NetworkType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).NetworkType, global::System.Convert.ToString); - } - if (content.Contains("NetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).NetworkId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInputTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RecoveryPlanTestFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTestFailoverInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); - } - if (content.Contains("NetworkType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).NetworkType, global::System.Convert.ToString); - } - if (content.Contains("NetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).NetworkId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan test failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanTestFailoverInputTypeConverter))] - public partial interface IRecoveryPlanTestFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInput.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInput.cs deleted file mode 100644 index c93b7dbbd6c9..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInput.cs +++ /dev/null @@ -1,102 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Recovery plan test failover input. - public partial class RecoveryPlanTestFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal - { - - /// The failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).FailoverDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).FailoverDirection = value ; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTestFailoverInputProperties()); set { {_property = value;} } } - - /// The Id of the network to be used for test failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string NetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).NetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).NetworkId = value ?? null; } - - /// The network type to be used for test failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string NetworkType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).NetworkType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).NetworkType = value ; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties _property; - - /// The recovery plan test failover input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTestFailoverInputProperties()); set => this._property = value; } - - /// The provider specific properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* arrayOf */; } - - /// Creates an new instance. - public RecoveryPlanTestFailoverInput() - { - - } - } - /// Recovery plan test failover input. - public partial interface IRecoveryPlanTestFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The failover direction.", - SerializedName = @"failoverDirection", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get; set; } - /// The Id of the network to be used for test failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Id of the network to be used for test failover.", - SerializedName = @"networkId", - PossibleTypes = new [] { typeof(string) })] - string NetworkId { get; set; } - /// The network type to be used for test failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The network type to be used for test failover.", - SerializedName = @"networkType", - PossibleTypes = new [] { typeof(string) })] - string NetworkType { get; set; } - /// The provider specific properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The provider specific properties.", - SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } - - } - /// Recovery plan test failover input. - internal partial interface IRecoveryPlanTestFailoverInputInternal - - { - /// The failover direction. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get; set; } - /// The Id of the network to be used for test failover. - string NetworkId { get; set; } - /// The network type to be used for test failover. - string NetworkType { get; set; } - /// The recovery plan test failover input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties Property { get; set; } - /// The provider specific properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInputProperties.PowerShell.cs deleted file mode 100644 index 0e093f1abef4..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInputProperties.PowerShell.cs +++ /dev/null @@ -1,173 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan test failover input properties. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanTestFailoverInputPropertiesTypeConverter))] - public partial class RecoveryPlanTestFailoverInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanTestFailoverInputProperties(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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanTestFailoverInputProperties(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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanTestFailoverInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); - } - if (content.Contains("NetworkType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkType, global::System.Convert.ToString); - } - if (content.Contains("NetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInputTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RecoveryPlanTestFailoverInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); - } - if (content.Contains("NetworkType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkType, global::System.Convert.ToString); - } - if (content.Contains("NetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan test failover input properties. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanTestFailoverInputPropertiesTypeConverter))] - public partial interface IRecoveryPlanTestFailoverInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInput.PowerShell.cs deleted file mode 100644 index 38ef4508cf0d..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInput.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan unplanned failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanUnplannedFailoverInputTypeConverter))] - public partial class RecoveryPlanUnplannedFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanUnplannedFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanUnplannedFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanUnplannedFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanUnplannedFailoverInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); - } - if (content.Contains("SourceSiteOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).SourceSiteOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).SourceSiteOperation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations.CreateFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInputTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RecoveryPlanUnplannedFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanUnplannedFailoverInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); - } - if (content.Contains("SourceSiteOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).SourceSiteOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).SourceSiteOperation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations.CreateFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan unplanned failover input. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanUnplannedFailoverInputTypeConverter))] - public partial interface IRecoveryPlanUnplannedFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInput.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInput.cs deleted file mode 100644 index 235fa3c27e31..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInput.cs +++ /dev/null @@ -1,88 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Recovery plan unplanned failover input. - public partial class RecoveryPlanUnplannedFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal - { - - /// The failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)Property).FailoverDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)Property).FailoverDirection = value ; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanUnplannedFailoverInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties _property; - - /// The recovery plan unplanned failover input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanUnplannedFailoverInputProperties()); set => this._property = value; } - - /// The provider specific properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* arrayOf */; } - - /// A value indicating whether source site operations are required. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations SourceSiteOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)Property).SourceSiteOperation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)Property).SourceSiteOperation = value ; } - - /// Creates an new instance. - public RecoveryPlanUnplannedFailoverInput() - { - - } - } - /// Recovery plan unplanned failover input. - public partial interface IRecoveryPlanUnplannedFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The failover direction.", - SerializedName = @"failoverDirection", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get; set; } - /// The provider specific properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The provider specific properties.", - SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } - /// A value indicating whether source site operations are required. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"A value indicating whether source site operations are required.", - SerializedName = @"sourceSiteOperations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations SourceSiteOperation { get; set; } - - } - /// Recovery plan unplanned failover input. - internal partial interface IRecoveryPlanUnplannedFailoverInputInternal - - { - /// The failover direction. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get; set; } - /// The recovery plan unplanned failover input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties Property { get; set; } - /// The provider specific properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } - /// A value indicating whether source site operations are required. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations SourceSiteOperation { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInputProperties.PowerShell.cs deleted file mode 100644 index 40db8d97f4a4..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInputProperties.PowerShell.cs +++ /dev/null @@ -1,165 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery plan unplanned failover input properties. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanUnplannedFailoverInputPropertiesTypeConverter))] - public partial class RecoveryPlanUnplannedFailoverInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPlanUnplannedFailoverInputProperties(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.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPlanUnplannedFailoverInputProperties(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.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPlanUnplannedFailoverInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); - } - if (content.Contains("SourceSiteOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations.CreateFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInputTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RecoveryPlanUnplannedFailoverInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); - } - if (content.Contains("SourceSiteOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations.CreateFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery plan unplanned failover input properties. - [System.ComponentModel.TypeConverter(typeof(RecoveryPlanUnplannedFailoverInputPropertiesTypeConverter))] - public partial interface IRecoveryPlanUnplannedFailoverInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPoint.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPoint.PowerShell.cs deleted file mode 100644 index 938628dddc25..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPoint.PowerShell.cs +++ /dev/null @@ -1,208 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery point. - [System.ComponentModel.TypeConverter(typeof(RecoveryPointTypeConverter))] - public partial class RecoveryPoint - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPoint(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.Migrate.Models.Api20220501.IRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPoint(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.Migrate.Models.Api20220501.IRecoveryPoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPoint(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.Migrate.Models.Api20220501.IRecoveryPointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPointPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Time")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).Time = (global::System.DateTime?) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).Time, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).ProviderSpecificDetailInstanceType, 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 RecoveryPoint(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.Migrate.Models.Api20220501.IRecoveryPointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPointPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Time")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).Time = (global::System.DateTime?) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).Time, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery point. - [System.ComponentModel.TypeConverter(typeof(RecoveryPointTypeConverter))] - public partial interface IRecoveryPoint - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPoint.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPoint.cs deleted file mode 100644 index 5defffab5684..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPoint.cs +++ /dev/null @@ -1,137 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Recovery point. - public partial class RecoveryPoint : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPoint, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPointProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointProperties _property; - - /// The recovery point properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPointProperties()); set => this._property = value; } - - /// Gets the provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// The recovery point type: ApplicationConsistent, CrashConsistent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryPointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)Property).RecoveryPointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)Property).RecoveryPointType = value ?? null; } - - /// The recovery point time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? Time { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)Property).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)Property).RecoveryPointTime = value ?? default(global::System.DateTime); } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public RecoveryPoint() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Recovery point. - public partial interface IRecoveryPoint : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// Gets the provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the provider type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - /// The recovery point type: ApplicationConsistent, CrashConsistent. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery point type: ApplicationConsistent, CrashConsistent.", - SerializedName = @"recoveryPointType", - PossibleTypes = new [] { typeof(string) })] - string RecoveryPointType { get; set; } - /// The recovery point time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery point time.", - SerializedName = @"recoveryPointTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? Time { get; set; } - - } - /// Recovery point. - internal partial interface IRecoveryPointInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The recovery point properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointProperties Property { get; set; } - /// The provider specific details for the recovery point. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails ProviderSpecificDetail { get; set; } - /// Gets the provider type. - string ProviderSpecificDetailInstanceType { get; set; } - /// The recovery point type: ApplicationConsistent, CrashConsistent. - string RecoveryPointType { get; set; } - /// The recovery point time. - global::System.DateTime? Time { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryPointProperties.PowerShell.cs deleted file mode 100644 index 3748c9131706..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointProperties.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery point properties. - [System.ComponentModel.TypeConverter(typeof(RecoveryPointPropertiesTypeConverter))] - public partial class RecoveryPointProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryPointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryPointProperties(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.Migrate.Models.Api20220501.IRecoveryPointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryPointProperties(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.Migrate.Models.Api20220501.IRecoveryPointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryPointProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryPointTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).RecoveryPointType, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 RecoveryPointProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryPointTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("RecoveryPointType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).RecoveryPointType, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery point properties. - [System.ComponentModel.TypeConverter(typeof(RecoveryPointPropertiesTypeConverter))] - public partial interface IRecoveryPointProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProvider.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProvider.PowerShell.cs deleted file mode 100644 index 0b5ce977dde5..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProvider.PowerShell.cs +++ /dev/null @@ -1,480 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Provider details. - [System.ComponentModel.TypeConverter(typeof(RecoveryServicesProviderTypeConverter))] - public partial class RecoveryServicesProvider - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryServicesProvider DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryServicesProvider(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.Migrate.Models.Api20220501.IRecoveryServicesProvider DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryServicesProvider(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.Migrate.Models.Api20220501.IRecoveryServicesProvider FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryServicesProvider(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.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProviderPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails) content.GetValueForProperty("AuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceAccessIdentityDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails) content.GetValueForProperty("ResourceAccessIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderVersionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails) content.GetValueForProperty("ProviderVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FabricType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).FabricType, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersion = (string) content.GetValueForProperty("ProviderVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersion, global::System.Convert.ToString); - } - if (content.Contains("ServerVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ServerVersion = (string) content.GetValueForProperty("ServerVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ServerVersion, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionState = (string) content.GetValueForProperty("ProviderVersionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionState, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).FabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("LastHeartBeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).LastHeartBeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartBeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).LastHeartBeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ConnectionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ConnectionStatus = (string) content.GetValueForProperty("ConnectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ConnectionStatus, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllowedScenario")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AllowedScenario = (string[]) content.GetValueForProperty("AllowedScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AllowedScenario, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("HealthErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("DraIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DraIdentifier = (string) content.GetValueForProperty("DraIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DraIdentifier, global::System.Convert.ToString); - } - if (content.Contains("MachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).MachineId, global::System.Convert.ToString); - } - if (content.Contains("MachineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).MachineName, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("AuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailTenantId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("AuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailObjectId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("AuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAudience, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailTenantId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailApplicationId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailObjectId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAudience = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAudience, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailTenantId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailObjectId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAudience, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetailVersion = (string) content.GetValueForProperty("ProviderVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionDetailExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProviderVersionDetailStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("ProviderVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RecoveryServicesProvider(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.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProviderPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails) content.GetValueForProperty("AuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceAccessIdentityDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails) content.GetValueForProperty("ResourceAccessIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderVersionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails) content.GetValueForProperty("ProviderVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FabricType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).FabricType, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersion = (string) content.GetValueForProperty("ProviderVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersion, global::System.Convert.ToString); - } - if (content.Contains("ServerVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ServerVersion = (string) content.GetValueForProperty("ServerVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ServerVersion, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionState = (string) content.GetValueForProperty("ProviderVersionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionState, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).FabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("LastHeartBeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).LastHeartBeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartBeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).LastHeartBeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ConnectionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ConnectionStatus = (string) content.GetValueForProperty("ConnectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ConnectionStatus, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllowedScenario")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AllowedScenario = (string[]) content.GetValueForProperty("AllowedScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AllowedScenario, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("HealthErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("DraIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DraIdentifier = (string) content.GetValueForProperty("DraIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DraIdentifier, global::System.Convert.ToString); - } - if (content.Contains("MachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).MachineId, global::System.Convert.ToString); - } - if (content.Contains("MachineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).MachineName, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("AuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailTenantId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("AuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailObjectId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("AuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAudience, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailTenantId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailApplicationId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailObjectId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAudience = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAudience, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailTenantId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailObjectId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAudience, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetailVersion = (string) content.GetValueForProperty("ProviderVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionDetailExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProviderVersionDetailStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("ProviderVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal)this).ProviderVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Provider details. - [System.ComponentModel.TypeConverter(typeof(RecoveryServicesProviderTypeConverter))] - public partial interface IRecoveryServicesProvider - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProvider.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProvider.cs deleted file mode 100644 index 64b530bce100..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProvider.cs +++ /dev/null @@ -1,694 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Provider details. - public partial class RecoveryServicesProvider : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// The scenarios allowed on this provider. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] AllowedScenario { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).AllowedScenario; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).AllowedScenario = value ?? null /* arrayOf */; } - - /// The base authority for Azure Active Directory authentication. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityDetailAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailAadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailAadAuthority = value ?? null; } - - /// - /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityDetailApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailApplicationId = value ?? null; } - - /// - /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityDetailAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailAudience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailAudience = value ?? null; } - - /// - /// The object Id of the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityDetailObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailObjectId = value ?? null; } - - /// - /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityDetailTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailTenantId = value ?? null; } - - /// The Bios Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string BiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).BiosId = value ?? null; } - - /// A value indicating whether DRA is responsive. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ConnectionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ConnectionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ConnectionStatus = value ?? null; } - - /// The base authority for Azure Active Directory authentication. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityDetailAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailAadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailAadAuthority = value ?? null; } - - /// - /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityDetailApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailApplicationId = value ?? null; } - - /// - /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityDetailAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailAudience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailAudience = value ?? null; } - - /// - /// The object Id of the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityDetailObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailObjectId = value ?? null; } - - /// - /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityDetailTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailTenantId = value ?? null; } - - /// The DRA Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DraIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).DraIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).DraIdentifier = value ?? null; } - - /// The fabric friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).FabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).FabricFriendlyName = value ?? null; } - - /// Type of the site. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).FabricType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).FabricType = value ?? null; } - - /// Friendly name of the DRA. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).FriendlyName = value ?? null; } - - /// The recovery services provider health error details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).HealthErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).HealthErrorDetail = value ?? null /* arrayOf */; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Time when last heartbeat was sent by the DRA. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? LastHeartBeat { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).LastHeartBeat; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).LastHeartBeat = value ?? default(global::System.DateTime); } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// The machine Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MachineId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).MachineId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).MachineId = value ?? null; } - - /// The machine name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MachineName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).MachineName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).MachineName = value ?? null; } - - /// Internal Acessors for AuthenticationIdentityDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal.AuthenticationIdentityDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetail = value; } - - /// Internal Acessors for DataPlaneAuthenticationIdentityDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal.DataPlaneAuthenticationIdentityDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetail = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProviderProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderVersionDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal.ProviderVersionDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetail = value; } - - /// Internal Acessors for ResourceAccessIdentityDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderInternal.ResourceAccessIdentityDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetail = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties _property; - - /// Provider properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProviderProperties()); set => this._property = value; } - - /// Number of protected VMs currently managed by the DRA. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? ProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProtectedItemCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProtectedItemCount = value ?? default(int); } - - /// The provider version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersion = value ?? null; } - - /// Version expiry date. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? ProviderVersionDetailExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetailExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetailExpiryDate = value ?? default(global::System.DateTime); } - - /// A value indicating whether security update required. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? ProviderVersionDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetailStatus = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus)""); } - - /// The agent version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderVersionDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetailVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetailVersion = value ?? null; } - - /// Expiry date of the version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? ProviderVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionExpiryDate = value ?? default(global::System.DateTime); } - - /// DRA version status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderVersionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionState = value ?? null; } - - /// The base authority for Azure Active Directory authentication. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityDetailAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailAadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailAadAuthority = value ?? null; } - - /// - /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityDetailApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailApplicationId = value ?? null; } - - /// - /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityDetailAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailAudience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailAudience = value ?? null; } - - /// - /// The object Id of the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityDetailObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailObjectId = value ?? null; } - - /// - /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityDetailTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailTenantId = value ?? null; } - - /// The fabric provider. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ServerVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ServerVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)Property).ServerVersion = value ?? null; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public RecoveryServicesProvider() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Provider details. - public partial interface IRecoveryServicesProvider : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// The scenarios allowed on this provider. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The scenarios allowed on this provider.", - SerializedName = @"allowedScenarios", - PossibleTypes = new [] { typeof(string) })] - string[] AllowedScenario { get; set; } - /// The base authority for Azure Active Directory authentication. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The base authority for Azure Active Directory authentication.", - SerializedName = @"aadAuthority", - PossibleTypes = new [] { typeof(string) })] - string AuthenticationIdentityDetailAadAuthority { get; set; } - /// - /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.", - SerializedName = @"applicationId", - PossibleTypes = new [] { typeof(string) })] - string AuthenticationIdentityDetailApplicationId { get; set; } - /// - /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The intended Audience of the service principal with which the on-premise management/data plane components would communicate with our Azure services.", - SerializedName = @"audience", - PossibleTypes = new [] { typeof(string) })] - string AuthenticationIdentityDetailAudience { get; set; } - /// - /// The object Id of the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.", - SerializedName = @"objectId", - PossibleTypes = new [] { typeof(string) })] - string AuthenticationIdentityDetailObjectId { get; set; } - /// - /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string AuthenticationIdentityDetailTenantId { get; set; } - /// The Bios Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Bios Id.", - SerializedName = @"biosId", - PossibleTypes = new [] { typeof(string) })] - string BiosId { get; set; } - /// A value indicating whether DRA is responsive. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating whether DRA is responsive.", - SerializedName = @"connectionStatus", - PossibleTypes = new [] { typeof(string) })] - string ConnectionStatus { get; set; } - /// The base authority for Azure Active Directory authentication. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The base authority for Azure Active Directory authentication.", - SerializedName = @"aadAuthority", - PossibleTypes = new [] { typeof(string) })] - string DataPlaneAuthenticationIdentityDetailAadAuthority { get; set; } - /// - /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.", - SerializedName = @"applicationId", - PossibleTypes = new [] { typeof(string) })] - string DataPlaneAuthenticationIdentityDetailApplicationId { get; set; } - /// - /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The intended Audience of the service principal with which the on-premise management/data plane components would communicate with our Azure services.", - SerializedName = @"audience", - PossibleTypes = new [] { typeof(string) })] - string DataPlaneAuthenticationIdentityDetailAudience { get; set; } - /// - /// The object Id of the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.", - SerializedName = @"objectId", - PossibleTypes = new [] { typeof(string) })] - string DataPlaneAuthenticationIdentityDetailObjectId { get; set; } - /// - /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string DataPlaneAuthenticationIdentityDetailTenantId { get; set; } - /// The DRA Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The DRA Id.", - SerializedName = @"draIdentifier", - PossibleTypes = new [] { typeof(string) })] - string DraIdentifier { get; set; } - /// The fabric friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The fabric friendly name.", - SerializedName = @"fabricFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string FabricFriendlyName { get; set; } - /// Type of the site. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Type of the site.", - SerializedName = @"fabricType", - PossibleTypes = new [] { typeof(string) })] - string FabricType { get; set; } - /// Friendly name of the DRA. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of the DRA.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// The recovery services provider health error details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery services provider health error details.", - SerializedName = @"healthErrorDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get; set; } - /// Time when last heartbeat was sent by the DRA. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Time when last heartbeat was sent by the DRA.", - SerializedName = @"lastHeartBeat", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? LastHeartBeat { get; set; } - /// The machine Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The machine Id.", - SerializedName = @"machineId", - PossibleTypes = new [] { typeof(string) })] - string MachineId { get; set; } - /// The machine name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The machine name.", - SerializedName = @"machineName", - PossibleTypes = new [] { typeof(string) })] - string MachineName { get; set; } - /// Number of protected VMs currently managed by the DRA. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Number of protected VMs currently managed by the DRA.", - SerializedName = @"protectedItemCount", - PossibleTypes = new [] { typeof(int) })] - int? ProtectedItemCount { get; set; } - /// The provider version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The provider version.", - SerializedName = @"providerVersion", - PossibleTypes = new [] { typeof(string) })] - string ProviderVersion { get; set; } - /// Version expiry date. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Version expiry date.", - SerializedName = @"expiryDate", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? ProviderVersionDetailExpiryDate { get; set; } - /// A value indicating whether security update required. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating whether security update required.", - SerializedName = @"status", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? ProviderVersionDetailStatus { get; set; } - /// The agent version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The agent version.", - SerializedName = @"version", - PossibleTypes = new [] { typeof(string) })] - string ProviderVersionDetailVersion { get; set; } - /// Expiry date of the version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Expiry date of the version.", - SerializedName = @"providerVersionExpiryDate", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? ProviderVersionExpiryDate { get; set; } - /// DRA version status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"DRA version status.", - SerializedName = @"providerVersionState", - PossibleTypes = new [] { typeof(string) })] - string ProviderVersionState { get; set; } - /// The base authority for Azure Active Directory authentication. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The base authority for Azure Active Directory authentication.", - SerializedName = @"aadAuthority", - PossibleTypes = new [] { typeof(string) })] - string ResourceAccessIdentityDetailAadAuthority { get; set; } - /// - /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.", - SerializedName = @"applicationId", - PossibleTypes = new [] { typeof(string) })] - string ResourceAccessIdentityDetailApplicationId { get; set; } - /// - /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The intended Audience of the service principal with which the on-premise management/data plane components would communicate with our Azure services.", - SerializedName = @"audience", - PossibleTypes = new [] { typeof(string) })] - string ResourceAccessIdentityDetailAudience { get; set; } - /// - /// The object Id of the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.", - SerializedName = @"objectId", - PossibleTypes = new [] { typeof(string) })] - string ResourceAccessIdentityDetailObjectId { get; set; } - /// - /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string ResourceAccessIdentityDetailTenantId { get; set; } - /// The fabric provider. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The fabric provider.", - SerializedName = @"serverVersion", - PossibleTypes = new [] { typeof(string) })] - string ServerVersion { get; set; } - - } - /// Provider details. - internal partial interface IRecoveryServicesProviderInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The scenarios allowed on this provider. - string[] AllowedScenario { get; set; } - /// The authentication identity details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails AuthenticationIdentityDetail { get; set; } - /// The base authority for Azure Active Directory authentication. - string AuthenticationIdentityDetailAadAuthority { get; set; } - /// - /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - string AuthenticationIdentityDetailApplicationId { get; set; } - /// - /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - string AuthenticationIdentityDetailAudience { get; set; } - /// - /// The object Id of the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - string AuthenticationIdentityDetailObjectId { get; set; } - /// - /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - string AuthenticationIdentityDetailTenantId { get; set; } - /// The Bios Id. - string BiosId { get; set; } - /// A value indicating whether DRA is responsive. - string ConnectionStatus { get; set; } - /// The data plane authentication identity details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails DataPlaneAuthenticationIdentityDetail { get; set; } - /// The base authority for Azure Active Directory authentication. - string DataPlaneAuthenticationIdentityDetailAadAuthority { get; set; } - /// - /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - string DataPlaneAuthenticationIdentityDetailApplicationId { get; set; } - /// - /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - string DataPlaneAuthenticationIdentityDetailAudience { get; set; } - /// - /// The object Id of the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - string DataPlaneAuthenticationIdentityDetailObjectId { get; set; } - /// - /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - string DataPlaneAuthenticationIdentityDetailTenantId { get; set; } - /// The DRA Id. - string DraIdentifier { get; set; } - /// The fabric friendly name. - string FabricFriendlyName { get; set; } - /// Type of the site. - string FabricType { get; set; } - /// Friendly name of the DRA. - string FriendlyName { get; set; } - /// The recovery services provider health error details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get; set; } - /// Time when last heartbeat was sent by the DRA. - global::System.DateTime? LastHeartBeat { get; set; } - /// The machine Id. - string MachineId { get; set; } - /// The machine name. - string MachineName { get; set; } - /// Provider properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties Property { get; set; } - /// Number of protected VMs currently managed by the DRA. - int? ProtectedItemCount { get; set; } - /// The provider version. - string ProviderVersion { get; set; } - /// The provider version details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails ProviderVersionDetail { get; set; } - /// Version expiry date. - global::System.DateTime? ProviderVersionDetailExpiryDate { get; set; } - /// A value indicating whether security update required. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? ProviderVersionDetailStatus { get; set; } - /// The agent version. - string ProviderVersionDetailVersion { get; set; } - /// Expiry date of the version. - global::System.DateTime? ProviderVersionExpiryDate { get; set; } - /// DRA version status. - string ProviderVersionState { get; set; } - /// The resource access identity details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails ResourceAccessIdentityDetail { get; set; } - /// The base authority for Azure Active Directory authentication. - string ResourceAccessIdentityDetailAadAuthority { get; set; } - /// - /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - string ResourceAccessIdentityDetailApplicationId { get; set; } - /// - /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate - /// with our Azure services. - /// - string ResourceAccessIdentityDetailAudience { get; set; } - /// - /// The object Id of the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - string ResourceAccessIdentityDetailObjectId { get; set; } - /// - /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with - /// our Azure services. - /// - string ResourceAccessIdentityDetailTenantId { get; set; } - /// The fabric provider. - string ServerVersion { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderCollection.PowerShell.cs deleted file mode 100644 index 9487d64509bc..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderCollection.PowerShell.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Collection of providers. - [System.ComponentModel.TypeConverter(typeof(RecoveryServicesProviderCollectionTypeConverter))] - public partial class RecoveryServicesProviderCollection - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryServicesProviderCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryServicesProviderCollection(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.Migrate.Models.Api20220501.IRecoveryServicesProviderCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryServicesProviderCollection(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.Migrate.Models.Api20220501.IRecoveryServicesProviderCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryServicesProviderCollection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProviderTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RecoveryServicesProviderCollection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProviderTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Collection of providers. - [System.ComponentModel.TypeConverter(typeof(RecoveryServicesProviderCollectionTypeConverter))] - public partial interface IRecoveryServicesProviderCollection - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderProperties.PowerShell.cs deleted file mode 100644 index 8c8a0f4ad301..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderProperties.PowerShell.cs +++ /dev/null @@ -1,444 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Recovery services provider properties. - [System.ComponentModel.TypeConverter(typeof(RecoveryServicesProviderPropertiesTypeConverter))] - public partial class RecoveryServicesProviderProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecoveryServicesProviderProperties(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.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecoveryServicesProviderProperties(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.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecoveryServicesProviderProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AuthenticationIdentityDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails) content.GetValueForProperty("AuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceAccessIdentityDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails) content.GetValueForProperty("ResourceAccessIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderVersionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails) content.GetValueForProperty("ProviderVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FabricType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).FabricType, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersion = (string) content.GetValueForProperty("ProviderVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersion, global::System.Convert.ToString); - } - if (content.Contains("ServerVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ServerVersion = (string) content.GetValueForProperty("ServerVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ServerVersion, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionState = (string) content.GetValueForProperty("ProviderVersionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionState, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).FabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("LastHeartBeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).LastHeartBeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartBeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).LastHeartBeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ConnectionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ConnectionStatus = (string) content.GetValueForProperty("ConnectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ConnectionStatus, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllowedScenario")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AllowedScenario = (string[]) content.GetValueForProperty("AllowedScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AllowedScenario, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("HealthErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("DraIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DraIdentifier = (string) content.GetValueForProperty("DraIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DraIdentifier, global::System.Convert.ToString); - } - if (content.Contains("MachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).MachineId, global::System.Convert.ToString); - } - if (content.Contains("MachineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).MachineName, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("AuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailTenantId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("AuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailObjectId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("AuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAudience, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailTenantId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailApplicationId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailObjectId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAudience = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAudience, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailTenantId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailObjectId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAudience, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailVersion = (string) content.GetValueForProperty("ProviderVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionDetailExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProviderVersionDetailStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("ProviderVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RecoveryServicesProviderProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AuthenticationIdentityDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails) content.GetValueForProperty("AuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceAccessIdentityDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails) content.GetValueForProperty("ResourceAccessIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderVersionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails) content.GetValueForProperty("ProviderVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("FabricType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).FabricType, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersion = (string) content.GetValueForProperty("ProviderVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersion, global::System.Convert.ToString); - } - if (content.Contains("ServerVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ServerVersion = (string) content.GetValueForProperty("ServerVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ServerVersion, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionState = (string) content.GetValueForProperty("ProviderVersionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionState, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).FabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("LastHeartBeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).LastHeartBeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartBeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).LastHeartBeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ConnectionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ConnectionStatus = (string) content.GetValueForProperty("ConnectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ConnectionStatus, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AllowedScenario")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AllowedScenario = (string[]) content.GetValueForProperty("AllowedScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AllowedScenario, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("HealthErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("DraIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DraIdentifier = (string) content.GetValueForProperty("DraIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DraIdentifier, global::System.Convert.ToString); - } - if (content.Contains("MachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).MachineId, global::System.Convert.ToString); - } - if (content.Contains("MachineName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).MachineName, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("AuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailTenantId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("AuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailObjectId, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("AuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAudience, global::System.Convert.ToString); - } - if (content.Contains("AuthenticationIdentityDetailAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailTenantId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailApplicationId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailObjectId, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAudience = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAudience, global::System.Convert.ToString); - } - if (content.Contains("ResourceAccessIdentityDetailAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailTenantId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailApplicationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailObjectId, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailAudience")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAudience, global::System.Convert.ToString); - } - if (content.Contains("DataPlaneAuthenticationIdentityDetailAadAuthority")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailVersion = (string) content.GetValueForProperty("ProviderVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("ProviderVersionDetailExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProviderVersionDetailStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("ProviderVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Recovery services provider properties. - [System.ComponentModel.TypeConverter(typeof(RecoveryServicesProviderPropertiesTypeConverter))] - public partial interface IRecoveryServicesProviderProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInput.PowerShell.cs deleted file mode 100644 index 3baa7532f0b8..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInput.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input for remove disk(s) operation. - [System.ComponentModel.TypeConverter(typeof(RemoveDisksInputTypeConverter))] - public partial class RemoveDisksInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRemoveDisksInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RemoveDisksInput(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.Migrate.Models.Api20220501.IRemoveDisksInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RemoveDisksInput(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.Migrate.Models.Api20220501.IRemoveDisksInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RemoveDisksInput(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.Migrate.Models.Api20220501.IRemoveDisksInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputInternal)this).ProviderSpecificDetailInstanceType, 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 RemoveDisksInput(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.Migrate.Models.Api20220501.IRemoveDisksInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Input for remove disk(s) operation. - [System.ComponentModel.TypeConverter(typeof(RemoveDisksInputTypeConverter))] - public partial interface IRemoveDisksInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInput.cs b/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInput.cs deleted file mode 100644 index 76b65de60e12..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInput.cs +++ /dev/null @@ -1,68 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input for remove disk(s) operation. - public partial class RemoveDisksInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputProperties _property; - - /// Remove disk input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksInputProperties()); set => this._property = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// Creates an new instance. - public RemoveDisksInput() - { - - } - } - /// Input for remove disk(s) operation. - public partial interface IRemoveDisksInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Input for remove disk(s) operation. - internal partial interface IRemoveDisksInputInternal - - { - /// Remove disk input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputProperties Property { get; set; } - /// - /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, - /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. - /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInputProperties.PowerShell.cs deleted file mode 100644 index 54ea2749ab53..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInputProperties.PowerShell.cs +++ /dev/null @@ -1,152 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Remove Disk input properties. - [System.ComponentModel.TypeConverter(typeof(RemoveDisksInputPropertiesTypeConverter))] - public partial class RemoveDisksInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRemoveDisksInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RemoveDisksInputProperties(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.Migrate.Models.Api20220501.IRemoveDisksInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RemoveDisksInputProperties(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.Migrate.Models.Api20220501.IRemoveDisksInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RemoveDisksInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 RemoveDisksInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Remove Disk input properties. - [System.ComponentModel.TypeConverter(typeof(RemoveDisksInputPropertiesTypeConverter))] - public partial interface IRemoveDisksInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInputProperties.cs b/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInputProperties.cs deleted file mode 100644 index fbeff2f3c902..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInputProperties.cs +++ /dev/null @@ -1,66 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Remove Disk input properties. - public partial class RemoveDisksInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputPropertiesInternal - { - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput _providerSpecificDetail; - - /// - /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, - /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksProviderSpecificInput()); set => this._providerSpecificDetail = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } - - /// Creates an new instance. - public RemoveDisksInputProperties() - { - - } - } - /// Remove Disk input properties. - public partial interface IRemoveDisksInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Remove Disk input properties. - internal partial interface IRemoveDisksInputPropertiesInternal - - { - /// - /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, - /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. - /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInput.PowerShell.cs deleted file mode 100644 index 5363110006db..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInput.PowerShell.cs +++ /dev/null @@ -1,165 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Container unpairing input. - [System.ComponentModel.TypeConverter(typeof(RemoveProtectionContainerMappingInputTypeConverter))] - public partial class RemoveProtectionContainerMappingInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RemoveProtectionContainerMappingInput(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.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RemoveProtectionContainerMappingInput(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.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RemoveProtectionContainerMappingInput(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.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveProtectionContainerMappingInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderContainerUnmappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInputInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType, 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 RemoveProtectionContainerMappingInput(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.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveProtectionContainerMappingInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderContainerUnmappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInputInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Container unpairing input. - [System.ComponentModel.TypeConverter(typeof(RemoveProtectionContainerMappingInputTypeConverter))] - public partial interface IRemoveProtectionContainerMappingInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInput.cs b/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInput.cs deleted file mode 100644 index 1948dd08fe7e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInput.cs +++ /dev/null @@ -1,65 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Container unpairing input. - public partial class RemoveProtectionContainerMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveProtectionContainerMappingInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputInternal.ProviderSpecificInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInput = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties _property; - - /// Configure protection input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveProtectionContainerMappingInputProperties()); set => this._property = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificInputInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInputInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInputInstanceType = value ?? null; } - - /// Creates an new instance. - public RemoveProtectionContainerMappingInput() - { - - } - } - /// Container unpairing input. - public partial interface IRemoveProtectionContainerMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificInputInstanceType { get; set; } - - } - /// Container unpairing input. - internal partial interface IRemoveProtectionContainerMappingInputInternal - - { - /// Configure protection input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties Property { get; set; } - /// Provider specific input for unpairing. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput ProviderSpecificInput { get; set; } - /// The class type. - string ProviderSpecificInputInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInputProperties.PowerShell.cs deleted file mode 100644 index 0984d32a522e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInputProperties.PowerShell.cs +++ /dev/null @@ -1,157 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Unpairing input properties. - [System.ComponentModel.TypeConverter(typeof(RemoveProtectionContainerMappingInputPropertiesTypeConverter))] - public partial class RemoveProtectionContainerMappingInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RemoveProtectionContainerMappingInputProperties(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.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RemoveProtectionContainerMappingInputProperties(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.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RemoveProtectionContainerMappingInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderContainerUnmappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInputInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType, 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 RemoveProtectionContainerMappingInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderContainerUnmappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInputInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Unpairing input properties. - [System.ComponentModel.TypeConverter(typeof(RemoveProtectionContainerMappingInputPropertiesTypeConverter))] - public partial interface IRemoveProtectionContainerMappingInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInputProperties.cs b/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInputProperties.cs deleted file mode 100644 index 0a80db3774ec..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInputProperties.cs +++ /dev/null @@ -1,62 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Unpairing input properties. - public partial class RemoveProtectionContainerMappingInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputPropertiesInternal - { - - /// Internal Acessors for ProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputPropertiesInternal.ProviderSpecificInput { get => (this._providerSpecificInput = this._providerSpecificInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderContainerUnmappingInput()); set { {_providerSpecificInput = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput _providerSpecificInput; - - /// Provider specific input for unpairing. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput ProviderSpecificInput { get => (this._providerSpecificInput = this._providerSpecificInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderContainerUnmappingInput()); set => this._providerSpecificInput = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificInputInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInputInternal)ProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInputInternal)ProviderSpecificInput).InstanceType = value ?? null; } - - /// - /// Creates an new instance. - /// - public RemoveProtectionContainerMappingInputProperties() - { - - } - } - /// Unpairing input properties. - public partial interface IRemoveProtectionContainerMappingInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificInputInstanceType { get; set; } - - } - /// Unpairing input properties. - internal partial interface IRemoveProtectionContainerMappingInputPropertiesInternal - - { - /// Provider specific input for unpairing. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput ProviderSpecificInput { get; set; } - /// The class type. - string ProviderSpecificInputInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInput.cs b/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInput.cs deleted file mode 100644 index 847f60a84646..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Certificate renewal input. - public partial class RenewCertificateInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RenewCertificateInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputProperties _property; - - /// Renew certificate input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RenewCertificateInputProperties()); set => this._property = value; } - - /// Renew certificate type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RenewCertificateType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputPropertiesInternal)Property).RenewCertificateType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputPropertiesInternal)Property).RenewCertificateType = value ?? null; } - - /// Creates an new instance. - public RenewCertificateInput() - { - - } - } - /// Certificate renewal input. - public partial interface IRenewCertificateInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Renew certificate type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Renew certificate type.", - SerializedName = @"renewCertificateType", - PossibleTypes = new [] { typeof(string) })] - string RenewCertificateType { get; set; } - - } - /// Certificate renewal input. - internal partial interface IRenewCertificateInputInternal - - { - /// Renew certificate input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputProperties Property { get; set; } - /// Renew certificate type. - string RenewCertificateType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationAgentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationAgentDetails.PowerShell.cs deleted file mode 100644 index 6aba897ba37c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationAgentDetails.PowerShell.cs +++ /dev/null @@ -1,208 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Replication agent details. - [System.ComponentModel.TypeConverter(typeof(ReplicationAgentDetailsTypeConverter))] - public partial class ReplicationAgentDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReplicationAgentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReplicationAgentDetails(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.Migrate.Models.Api20220501.IReplicationAgentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReplicationAgentDetails(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.Migrate.Models.Api20220501.IReplicationAgentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReplicationAgentDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ReplicationAgentDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Replication agent details. - [System.ComponentModel.TypeConverter(typeof(ReplicationAgentDetailsTypeConverter))] - public partial interface IReplicationAgentDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationAppliance.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationAppliance.PowerShell.cs deleted file mode 100644 index 7ad1fee0758f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationAppliance.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Replication appliance definition. - [System.ComponentModel.TypeConverter(typeof(ReplicationApplianceTypeConverter))] - public partial class ReplicationAppliance - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReplicationAppliance DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReplicationAppliance(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.Migrate.Models.Api20220501.IReplicationAppliance DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReplicationAppliance(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.Migrate.Models.Api20220501.IReplicationAppliance FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReplicationAppliance(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.Migrate.Models.Api20220501.IReplicationApplianceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationAppliancePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceInternal)this).ProviderSpecificDetailInstanceType, 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 ReplicationAppliance(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.Migrate.Models.Api20220501.IReplicationApplianceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationAppliancePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Replication appliance definition. - [System.ComponentModel.TypeConverter(typeof(ReplicationApplianceTypeConverter))] - public partial interface IReplicationAppliance - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationAppliance.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationAppliance.cs deleted file mode 100644 index dda9429c25eb..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationAppliance.cs +++ /dev/null @@ -1,65 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Replication appliance definition. - public partial class ReplicationAppliance : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliance, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationApplianceProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliancePropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliancePropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceProperties _property; - - /// Appliance related data. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationApplianceProperties()); set => this._property = value; } - - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliancePropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliancePropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// Creates an new instance. - public ReplicationAppliance() - { - - } - } - /// Replication appliance definition. - public partial interface IReplicationAppliance : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the class type. Overridden in derived classes.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Replication appliance definition. - internal partial interface IReplicationApplianceInternal - - { - /// Appliance related data. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceProperties Property { get; set; } - /// Provider specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails ProviderSpecificDetail { get; set; } - /// Gets the class type. Overridden in derived classes. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationApplianceProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationApplianceProperties.PowerShell.cs deleted file mode 100644 index 15caece42a5b..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationApplianceProperties.PowerShell.cs +++ /dev/null @@ -1,154 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Replication appliance properties. - [System.ComponentModel.TypeConverter(typeof(ReplicationAppliancePropertiesTypeConverter))] - public partial class ReplicationApplianceProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReplicationApplianceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReplicationApplianceProperties(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.Migrate.Models.Api20220501.IReplicationApplianceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReplicationApplianceProperties(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.Migrate.Models.Api20220501.IReplicationApplianceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReplicationApplianceProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 ReplicationApplianceProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceSpecificDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Replication appliance properties. - [System.ComponentModel.TypeConverter(typeof(ReplicationAppliancePropertiesTypeConverter))] - public partial interface IReplicationApplianceProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationApplianceProperties.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationApplianceProperties.cs deleted file mode 100644 index 9adaa3f4e1d1..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationApplianceProperties.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Replication appliance properties. - public partial class ReplicationApplianceProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliancePropertiesInternal - { - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliancePropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceSpecificDetails()); set { {_providerSpecificDetail = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails _providerSpecificDetail; - - /// Provider specific settings. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceSpecificDetails()); set => this._providerSpecificDetail = value; } - - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetailsInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetailsInternal)ProviderSpecificDetail).InstanceType = value ?? null; } - - /// Creates an new instance. - public ReplicationApplianceProperties() - { - - } - } - /// Replication appliance properties. - public partial interface IReplicationApplianceProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the class type. Overridden in derived classes.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Replication appliance properties. - internal partial interface IReplicationAppliancePropertiesInternal - - { - /// Provider specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails ProviderSpecificDetail { get; set; } - /// Gets the class type. Overridden in derived classes. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResults.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResults.PowerShell.cs deleted file mode 100644 index 85065a4319ba..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResults.PowerShell.cs +++ /dev/null @@ -1,186 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Replication eligibility results response model. - [System.ComponentModel.TypeConverter(typeof(ReplicationEligibilityResultsTypeConverter))] - public partial class ReplicationEligibilityResults - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReplicationEligibilityResults DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReplicationEligibilityResults(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.Migrate.Models.Api20220501.IReplicationEligibilityResults DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReplicationEligibilityResults(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.Migrate.Models.Api20220501.IReplicationEligibilityResults FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReplicationEligibilityResults(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.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("ClientRequestId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).ClientRequestId = (string) content.GetValueForProperty("ClientRequestId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).ClientRequestId, global::System.Convert.ToString); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsErrorInfoTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ReplicationEligibilityResults(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.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("ClientRequestId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).ClientRequestId = (string) content.GetValueForProperty("ClientRequestId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).ClientRequestId, global::System.Convert.ToString); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsErrorInfoTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Replication eligibility results response model. - [System.ComponentModel.TypeConverter(typeof(ReplicationEligibilityResultsTypeConverter))] - public partial interface IReplicationEligibilityResults - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResults.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResults.cs deleted file mode 100644 index 8bbcc94296d8..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResults.cs +++ /dev/null @@ -1,137 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Replication eligibility results response model. - public partial class ReplicationEligibilityResults : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResults, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal - { - - /// The client request Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ClientRequestId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal)Property).ClientRequestId; } - - /// The error details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo[] Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal)Property).Error = value ?? null /* arrayOf */; } - - /// Backing field for property. - private string _id; - - /// Gets Unique ARM identifier for this object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Id { get => this._id; } - - /// Internal Acessors for ClientRequestId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal.ClientRequestId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal)Property).ClientRequestId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal)Property).ClientRequestId = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal.Id { get => this._id; set { {_id = value;} } } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsProperties()); set { {_property = value;} } } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsInternal.Type { get => this._type; set { {_type = value;} } } - - /// Backing field for property. - private string _name; - - /// Gets the name of this object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties _property; - - /// Gets properties model for replication eligibility results API. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsProperties()); } - - /// Backing field for property. - private string _type; - - /// Gets the object type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Creates an new instance. - public ReplicationEligibilityResults() - { - - } - } - /// Replication eligibility results response model. - public partial interface IReplicationEligibilityResults : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The client request Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The client request Id.", - SerializedName = @"clientRequestId", - PossibleTypes = new [] { typeof(string) })] - string ClientRequestId { get; } - /// The error details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The error details.", - SerializedName = @"errors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo[] Error { get; set; } - /// Gets Unique ARM identifier for this object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Gets Unique ARM identifier for this object.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; } - /// Gets the name of this object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Gets the name of this object.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// Gets the object type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Gets the object type.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - - } - /// Replication eligibility results response model. - internal partial interface IReplicationEligibilityResultsInternal - - { - /// The client request Id. - string ClientRequestId { get; set; } - /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo[] Error { get; set; } - /// Gets Unique ARM identifier for this object. - string Id { get; set; } - /// Gets the name of this object. - string Name { get; set; } - /// Gets properties model for replication eligibility results API. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties Property { get; set; } - /// Gets the object type. - string Type { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsErrorInfo.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsErrorInfo.PowerShell.cs deleted file mode 100644 index fbd3f30097b0..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsErrorInfo.PowerShell.cs +++ /dev/null @@ -1,181 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Error model that can be exposed to the user. - [System.ComponentModel.TypeConverter(typeof(ReplicationEligibilityResultsErrorInfoTypeConverter))] - public partial class ReplicationEligibilityResultsErrorInfo - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReplicationEligibilityResultsErrorInfo(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.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReplicationEligibilityResultsErrorInfo(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.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReplicationEligibilityResultsErrorInfo(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).Status, 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 ReplicationEligibilityResultsErrorInfo(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal)this).Status, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Error model that can be exposed to the user. - [System.ComponentModel.TypeConverter(typeof(ReplicationEligibilityResultsErrorInfoTypeConverter))] - public partial interface IReplicationEligibilityResultsErrorInfo - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsProperties.PowerShell.cs deleted file mode 100644 index ab3466968ed8..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsProperties.PowerShell.cs +++ /dev/null @@ -1,157 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Properties model for replication eligibility results API. - [System.ComponentModel.TypeConverter(typeof(ReplicationEligibilityResultsPropertiesTypeConverter))] - public partial class ReplicationEligibilityResultsProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReplicationEligibilityResultsProperties(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.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReplicationEligibilityResultsProperties(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.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReplicationEligibilityResultsProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ClientRequestId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal)this).ClientRequestId = (string) content.GetValueForProperty("ClientRequestId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal)this).ClientRequestId, global::System.Convert.ToString); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsErrorInfoTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ReplicationEligibilityResultsProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ClientRequestId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal)this).ClientRequestId = (string) content.GetValueForProperty("ClientRequestId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal)this).ClientRequestId, global::System.Convert.ToString); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsErrorInfoTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties model for replication eligibility results API. - [System.ComponentModel.TypeConverter(typeof(ReplicationEligibilityResultsPropertiesTypeConverter))] - public partial interface IReplicationEligibilityResultsProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItem.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItem.PowerShell.cs deleted file mode 100644 index 3d2efda1dfb4..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItem.PowerShell.cs +++ /dev/null @@ -1,448 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Replication protected item. - [System.ComponentModel.TypeConverter(typeof(ReplicationProtectedItemTypeConverter))] - public partial class ReplicationProtectedItem - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReplicationProtectedItem DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReplicationProtectedItem(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.Migrate.Models.Api20220501.IReplicationProtectedItem DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReplicationProtectedItem(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.Migrate.Models.Api20220501.IReplicationProtectedItem FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReplicationProtectedItem(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.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItemPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenario")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectedItemType = (string) content.GetValueForProperty("ProtectedItemType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectedItemType, global::System.Convert.ToString); - } - if (content.Contains("ProtectableItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectableItemId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryServicesProviderId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PrimaryFabricProvider = (string) content.GetValueForProperty("PrimaryFabricProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PrimaryFabricProvider, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryFabricId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PrimaryProtectionContainerFriendlyName = (string) content.GetValueForProperty("PrimaryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PrimaryProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryProtectionContainerFriendlyName = (string) content.GetValueForProperty("RecoveryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectionState = (string) content.GetValueForProperty("ProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectionState, global::System.Convert.ToString); - } - if (content.Contains("ProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectionStateDescription = (string) content.GetValueForProperty("ProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("ActiveLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ActiveLocation = (string) content.GetValueForProperty("ActiveLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ActiveLocation, global::System.Convert.ToString); - } - if (content.Contains("TestFailoverState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).TestFailoverState = (string) content.GetValueForProperty("TestFailoverState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).TestFailoverState, global::System.Convert.ToString); - } - if (content.Contains("TestFailoverStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).TestFailoverStateDescription = (string) content.GetValueForProperty("TestFailoverStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).TestFailoverStateDescription, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).SwitchProviderState = (string) content.GetValueForProperty("SwitchProviderState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).SwitchProviderState, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).SwitchProviderStateDescription = (string) content.GetValueForProperty("SwitchProviderStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).SwitchProviderStateDescription, global::System.Convert.ToString); - } - if (content.Contains("AllowedOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("ReplicationHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ReplicationHealth = (string) content.GetValueForProperty("ReplicationHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ReplicationHealth, global::System.Convert.ToString); - } - if (content.Contains("FailoverHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).FailoverHealth = (string) content.GetValueForProperty("FailoverHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).FailoverHealth, global::System.Convert.ToString); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("PolicyFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PolicyFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("LastSuccessfulFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).LastSuccessfulFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).LastSuccessfulFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastSuccessfulTestFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).LastSuccessfulTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).LastSuccessfulTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FailoverRecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).FailoverRecoveryPointId = (string) content.GetValueForProperty("FailoverRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).FailoverRecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryContainerId, global::System.Convert.ToString); - } - if (content.Contains("EventCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).EventCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenarioName, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProviderSpecificDetailInstanceType, 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 ReplicationProtectedItem(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.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItemPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenario")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectedItemType = (string) content.GetValueForProperty("ProtectedItemType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectedItemType, global::System.Convert.ToString); - } - if (content.Contains("ProtectableItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectableItemId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryServicesProviderId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PrimaryFabricProvider = (string) content.GetValueForProperty("PrimaryFabricProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PrimaryFabricProvider, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryFabricId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PrimaryProtectionContainerFriendlyName = (string) content.GetValueForProperty("PrimaryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PrimaryProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryProtectionContainerFriendlyName = (string) content.GetValueForProperty("RecoveryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectionState = (string) content.GetValueForProperty("ProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectionState, global::System.Convert.ToString); - } - if (content.Contains("ProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectionStateDescription = (string) content.GetValueForProperty("ProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("ActiveLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ActiveLocation = (string) content.GetValueForProperty("ActiveLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ActiveLocation, global::System.Convert.ToString); - } - if (content.Contains("TestFailoverState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).TestFailoverState = (string) content.GetValueForProperty("TestFailoverState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).TestFailoverState, global::System.Convert.ToString); - } - if (content.Contains("TestFailoverStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).TestFailoverStateDescription = (string) content.GetValueForProperty("TestFailoverStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).TestFailoverStateDescription, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).SwitchProviderState = (string) content.GetValueForProperty("SwitchProviderState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).SwitchProviderState, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).SwitchProviderStateDescription = (string) content.GetValueForProperty("SwitchProviderStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).SwitchProviderStateDescription, global::System.Convert.ToString); - } - if (content.Contains("AllowedOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("ReplicationHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ReplicationHealth = (string) content.GetValueForProperty("ReplicationHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ReplicationHealth, global::System.Convert.ToString); - } - if (content.Contains("FailoverHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).FailoverHealth = (string) content.GetValueForProperty("FailoverHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).FailoverHealth, global::System.Convert.ToString); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("PolicyFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).PolicyFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("LastSuccessfulFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).LastSuccessfulFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).LastSuccessfulFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastSuccessfulTestFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).LastSuccessfulTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).LastSuccessfulTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FailoverRecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).FailoverRecoveryPointId = (string) content.GetValueForProperty("FailoverRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).FailoverRecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).RecoveryContainerId, global::System.Convert.ToString); - } - if (content.Contains("EventCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).EventCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenarioName, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Replication protected item. - [System.ComponentModel.TypeConverter(typeof(ReplicationProtectedItemTypeConverter))] - public partial interface IReplicationProtectedItem - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItem.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItem.cs deleted file mode 100644 index c556cf38e47b..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItem.cs +++ /dev/null @@ -1,557 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Replication protected item. - public partial class ReplicationProtectedItem : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItem, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// The Current active location of the PE. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ActiveLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ActiveLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ActiveLocation = value ?? null; } - - /// The allowed operations on the Replication protected item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] AllowedOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).AllowedOperation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).AllowedOperation = value ?? null /* arrayOf */; } - - /// ARM Id of the job being executed. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CurrentScenarioJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenarioJobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenarioJobId = value ?? null; } - - /// Scenario name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CurrentScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenarioName = value ?? null; } - - /// Start time of the workflow. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentScenarioStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenarioStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenarioStartTime = value ?? default(global::System.DateTime); } - - /// The correlation Id for events associated with this protected item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string EventCorrelationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).EventCorrelationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).EventCorrelationId = value ?? null; } - - /// The consolidated failover health for the VM. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FailoverHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).FailoverHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).FailoverHealth = value ?? null; } - - /// The recovery point ARM Id to which the Vm was failed over. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FailoverRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).FailoverRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).FailoverRecoveryPointId = value ?? null; } - - /// The name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).FriendlyName = value ?? null; } - - /// List of health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).HealthError = value ?? null /* arrayOf */; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// The Last successful failover time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? LastSuccessfulFailoverTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).LastSuccessfulFailoverTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).LastSuccessfulFailoverTime = value ?? default(global::System.DateTime); } - - /// The Last successful test failover time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? LastSuccessfulTestFailoverTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).LastSuccessfulTestFailoverTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).LastSuccessfulTestFailoverTime = value ?? default(global::System.DateTime); } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for CurrentScenario - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal.CurrentScenario { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenario; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenario = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItemProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// The name of Policy governing this PE. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PolicyFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).PolicyFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).PolicyFriendlyName = value ?? null; } - - /// The ID of Policy governing this PE. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).PolicyId = value ?? null; } - - /// The friendly name of the primary fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).PrimaryFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).PrimaryFabricFriendlyName = value ?? null; } - - /// The fabric provider of the primary fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryFabricProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).PrimaryFabricProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).PrimaryFabricProvider = value ?? null; } - - /// The name of primary protection container friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryProtectionContainerFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).PrimaryProtectionContainerFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).PrimaryProtectionContainerFriendlyName = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemProperties _property; - - /// The custom data. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItemProperties()); set => this._property = value; } - - /// The protected item ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProtectableItemId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ProtectableItemId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ProtectableItemId = value ?? null; } - - /// The type of protected item type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProtectedItemType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ProtectedItemType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ProtectedItemType = value ?? null; } - - /// The protection status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProtectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ProtectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ProtectionState = value ?? null; } - - /// The protection state description. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProtectionStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ProtectionStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ProtectionStateDescription = value ?? null; } - - /// Gets the Instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// The recovery container Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryContainerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).RecoveryContainerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).RecoveryContainerId = value ?? null; } - - /// The friendly name of recovery fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).RecoveryFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).RecoveryFabricFriendlyName = value ?? null; } - - /// The Arm Id of recovery fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).RecoveryFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).RecoveryFabricId = value ?? null; } - - /// The name of recovery container friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryProtectionContainerFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).RecoveryProtectionContainerFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).RecoveryProtectionContainerFriendlyName = value ?? null; } - - /// The recovery provider ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryServicesProviderId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).RecoveryServicesProviderId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).RecoveryServicesProviderId = value ?? null; } - - /// - /// The consolidated protection health for the VM taking any issues with SRS as well as all the replication units associated - /// with the VM's replication group into account. This is a string representation of the ProtectionHealth enumeration. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReplicationHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ReplicationHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).ReplicationHealth = value ?? null; } - - /// The switch provider state. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SwitchProviderState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).SwitchProviderState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).SwitchProviderState = value ?? null; } - - /// The switch provider state description. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SwitchProviderStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).SwitchProviderStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).SwitchProviderStateDescription = value ?? null; } - - /// The Test failover state. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TestFailoverState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).TestFailoverState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).TestFailoverState = value ?? null; } - - /// The Test failover state description. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TestFailoverStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).TestFailoverStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)Property).TestFailoverStateDescription = value ?? null; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public ReplicationProtectedItem() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Replication protected item. - public partial interface IReplicationProtectedItem : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// The Current active location of the PE. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Current active location of the PE.", - SerializedName = @"activeLocation", - PossibleTypes = new [] { typeof(string) })] - string ActiveLocation { get; set; } - /// The allowed operations on the Replication protected item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The allowed operations on the Replication protected item.", - SerializedName = @"allowedOperations", - PossibleTypes = new [] { typeof(string) })] - string[] AllowedOperation { get; set; } - /// ARM Id of the job being executed. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"ARM Id of the job being executed.", - SerializedName = @"jobId", - PossibleTypes = new [] { typeof(string) })] - string CurrentScenarioJobId { get; set; } - /// Scenario name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Scenario name.", - SerializedName = @"scenarioName", - PossibleTypes = new [] { typeof(string) })] - string CurrentScenarioName { get; set; } - /// Start time of the workflow. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Start time of the workflow.", - SerializedName = @"startTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? CurrentScenarioStartTime { get; set; } - /// The correlation Id for events associated with this protected item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The correlation Id for events associated with this protected item.", - SerializedName = @"eventCorrelationId", - PossibleTypes = new [] { typeof(string) })] - string EventCorrelationId { get; set; } - /// The consolidated failover health for the VM. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The consolidated failover health for the VM.", - SerializedName = @"failoverHealth", - PossibleTypes = new [] { typeof(string) })] - string FailoverHealth { get; set; } - /// The recovery point ARM Id to which the Vm was failed over. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery point ARM Id to which the Vm was failed over.", - SerializedName = @"failoverRecoveryPointId", - PossibleTypes = new [] { typeof(string) })] - string FailoverRecoveryPointId { get; set; } - /// The name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// List of health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"List of health errors.", - SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } - /// The Last successful failover time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Last successful failover time.", - SerializedName = @"lastSuccessfulFailoverTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? LastSuccessfulFailoverTime { get; set; } - /// The Last successful test failover time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Last successful test failover time.", - SerializedName = @"lastSuccessfulTestFailoverTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? LastSuccessfulTestFailoverTime { get; set; } - /// The name of Policy governing this PE. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name of Policy governing this PE.", - SerializedName = @"policyFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string PolicyFriendlyName { get; set; } - /// The ID of Policy governing this PE. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ID of Policy governing this PE.", - SerializedName = @"policyId", - PossibleTypes = new [] { typeof(string) })] - string PolicyId { get; set; } - /// The friendly name of the primary fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The friendly name of the primary fabric.", - SerializedName = @"primaryFabricFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string PrimaryFabricFriendlyName { get; set; } - /// The fabric provider of the primary fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The fabric provider of the primary fabric.", - SerializedName = @"primaryFabricProvider", - PossibleTypes = new [] { typeof(string) })] - string PrimaryFabricProvider { get; set; } - /// The name of primary protection container friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name of primary protection container friendly name.", - SerializedName = @"primaryProtectionContainerFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string PrimaryProtectionContainerFriendlyName { get; set; } - /// The protected item ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The protected item ARM Id.", - SerializedName = @"protectableItemId", - PossibleTypes = new [] { typeof(string) })] - string ProtectableItemId { get; set; } - /// The type of protected item type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of protected item type.", - SerializedName = @"protectedItemType", - PossibleTypes = new [] { typeof(string) })] - string ProtectedItemType { get; set; } - /// The protection status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The protection status.", - SerializedName = @"protectionState", - PossibleTypes = new [] { typeof(string) })] - string ProtectionState { get; set; } - /// The protection state description. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The protection state description.", - SerializedName = @"protectionStateDescription", - PossibleTypes = new [] { typeof(string) })] - string ProtectionStateDescription { get; set; } - /// Gets the Instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the Instance type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - /// The recovery container Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery container Id.", - SerializedName = @"recoveryContainerId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryContainerId { get; set; } - /// The friendly name of recovery fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The friendly name of recovery fabric.", - SerializedName = @"recoveryFabricFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string RecoveryFabricFriendlyName { get; set; } - /// The Arm Id of recovery fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Arm Id of recovery fabric.", - SerializedName = @"recoveryFabricId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryFabricId { get; set; } - /// The name of recovery container friendly name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name of recovery container friendly name.", - SerializedName = @"recoveryProtectionContainerFriendlyName", - PossibleTypes = new [] { typeof(string) })] - string RecoveryProtectionContainerFriendlyName { get; set; } - /// The recovery provider ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery provider ARM Id.", - SerializedName = @"recoveryServicesProviderId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryServicesProviderId { get; set; } - /// - /// The consolidated protection health for the VM taking any issues with SRS as well as all the replication units associated - /// with the VM's replication group into account. This is a string representation of the ProtectionHealth enumeration. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The consolidated protection health for the VM taking any issues with SRS as well as all the replication units associated with the VM's replication group into account. This is a string representation of the ProtectionHealth enumeration.", - SerializedName = @"replicationHealth", - PossibleTypes = new [] { typeof(string) })] - string ReplicationHealth { get; set; } - /// The switch provider state. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The switch provider state.", - SerializedName = @"switchProviderState", - PossibleTypes = new [] { typeof(string) })] - string SwitchProviderState { get; set; } - /// The switch provider state description. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The switch provider state description.", - SerializedName = @"switchProviderStateDescription", - PossibleTypes = new [] { typeof(string) })] - string SwitchProviderStateDescription { get; set; } - /// The Test failover state. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Test failover state.", - SerializedName = @"testFailoverState", - PossibleTypes = new [] { typeof(string) })] - string TestFailoverState { get; set; } - /// The Test failover state description. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Test failover state description.", - SerializedName = @"testFailoverStateDescription", - PossibleTypes = new [] { typeof(string) })] - string TestFailoverStateDescription { get; set; } - - } - /// Replication protected item. - internal partial interface IReplicationProtectedItemInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The Current active location of the PE. - string ActiveLocation { get; set; } - /// The allowed operations on the Replication protected item. - string[] AllowedOperation { get; set; } - /// The current scenario. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails CurrentScenario { get; set; } - /// ARM Id of the job being executed. - string CurrentScenarioJobId { get; set; } - /// Scenario name. - string CurrentScenarioName { get; set; } - /// Start time of the workflow. - global::System.DateTime? CurrentScenarioStartTime { get; set; } - /// The correlation Id for events associated with this protected item. - string EventCorrelationId { get; set; } - /// The consolidated failover health for the VM. - string FailoverHealth { get; set; } - /// The recovery point ARM Id to which the Vm was failed over. - string FailoverRecoveryPointId { get; set; } - /// The name. - string FriendlyName { get; set; } - /// List of health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } - /// The Last successful failover time. - global::System.DateTime? LastSuccessfulFailoverTime { get; set; } - /// The Last successful test failover time. - global::System.DateTime? LastSuccessfulTestFailoverTime { get; set; } - /// The name of Policy governing this PE. - string PolicyFriendlyName { get; set; } - /// The ID of Policy governing this PE. - string PolicyId { get; set; } - /// The friendly name of the primary fabric. - string PrimaryFabricFriendlyName { get; set; } - /// The fabric provider of the primary fabric. - string PrimaryFabricProvider { get; set; } - /// The name of primary protection container friendly name. - string PrimaryProtectionContainerFriendlyName { get; set; } - /// The custom data. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemProperties Property { get; set; } - /// The protected item ARM Id. - string ProtectableItemId { get; set; } - /// The type of protected item type. - string ProtectedItemType { get; set; } - /// The protection status. - string ProtectionState { get; set; } - /// The protection state description. - string ProtectionStateDescription { get; set; } - /// The Replication provider custom settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings ProviderSpecificDetail { get; set; } - /// Gets the Instance type. - string ProviderSpecificDetailInstanceType { get; set; } - /// The recovery container Id. - string RecoveryContainerId { get; set; } - /// The friendly name of recovery fabric. - string RecoveryFabricFriendlyName { get; set; } - /// The Arm Id of recovery fabric. - string RecoveryFabricId { get; set; } - /// The name of recovery container friendly name. - string RecoveryProtectionContainerFriendlyName { get; set; } - /// The recovery provider ARM Id. - string RecoveryServicesProviderId { get; set; } - /// - /// The consolidated protection health for the VM taking any issues with SRS as well as all the replication units associated - /// with the VM's replication group into account. This is a string representation of the ProtectionHealth enumeration. - /// - string ReplicationHealth { get; set; } - /// The switch provider state. - string SwitchProviderState { get; set; } - /// The switch provider state description. - string SwitchProviderStateDescription { get; set; } - /// The Test failover state. - string TestFailoverState { get; set; } - /// The Test failover state description. - string TestFailoverStateDescription { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemCollection.PowerShell.cs deleted file mode 100644 index 1aefc13419a5..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemCollection.PowerShell.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Replication protected item collection. - [System.ComponentModel.TypeConverter(typeof(ReplicationProtectedItemCollectionTypeConverter))] - public partial class ReplicationProtectedItemCollection - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReplicationProtectedItemCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReplicationProtectedItemCollection(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.Migrate.Models.Api20220501.IReplicationProtectedItemCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReplicationProtectedItemCollection(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.Migrate.Models.Api20220501.IReplicationProtectedItemCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReplicationProtectedItemCollection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItem[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItemTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ReplicationProtectedItemCollection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItem[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItemTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Replication protected item collection. - [System.ComponentModel.TypeConverter(typeof(ReplicationProtectedItemCollectionTypeConverter))] - public partial interface IReplicationProtectedItemCollection - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemProperties.PowerShell.cs deleted file mode 100644 index f51aaba157a6..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemProperties.PowerShell.cs +++ /dev/null @@ -1,412 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Replication protected item custom data details. - [System.ComponentModel.TypeConverter(typeof(ReplicationProtectedItemPropertiesTypeConverter))] - public partial class ReplicationProtectedItemProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReplicationProtectedItemProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReplicationProtectedItemProperties(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.Migrate.Models.Api20220501.IReplicationProtectedItemProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReplicationProtectedItemProperties(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.Migrate.Models.Api20220501.IReplicationProtectedItemProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReplicationProtectedItemProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CurrentScenario")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectedItemType = (string) content.GetValueForProperty("ProtectedItemType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectedItemType, global::System.Convert.ToString); - } - if (content.Contains("ProtectableItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectableItemId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryServicesProviderId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricProvider = (string) content.GetValueForProperty("PrimaryFabricProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricProvider, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PrimaryProtectionContainerFriendlyName = (string) content.GetValueForProperty("PrimaryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PrimaryProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryProtectionContainerFriendlyName = (string) content.GetValueForProperty("RecoveryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectionState = (string) content.GetValueForProperty("ProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectionState, global::System.Convert.ToString); - } - if (content.Contains("ProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectionStateDescription = (string) content.GetValueForProperty("ProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("ActiveLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ActiveLocation = (string) content.GetValueForProperty("ActiveLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ActiveLocation, global::System.Convert.ToString); - } - if (content.Contains("TestFailoverState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).TestFailoverState = (string) content.GetValueForProperty("TestFailoverState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).TestFailoverState, global::System.Convert.ToString); - } - if (content.Contains("TestFailoverStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).TestFailoverStateDescription = (string) content.GetValueForProperty("TestFailoverStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).TestFailoverStateDescription, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderState = (string) content.GetValueForProperty("SwitchProviderState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderState, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderStateDescription = (string) content.GetValueForProperty("SwitchProviderStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderStateDescription, global::System.Convert.ToString); - } - if (content.Contains("AllowedOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("ReplicationHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ReplicationHealth = (string) content.GetValueForProperty("ReplicationHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ReplicationHealth, global::System.Convert.ToString); - } - if (content.Contains("FailoverHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).FailoverHealth = (string) content.GetValueForProperty("FailoverHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).FailoverHealth, global::System.Convert.ToString); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("PolicyFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PolicyFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("LastSuccessfulFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastSuccessfulTestFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FailoverRecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).FailoverRecoveryPointId = (string) content.GetValueForProperty("FailoverRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).FailoverRecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryContainerId, global::System.Convert.ToString); - } - if (content.Contains("EventCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).EventCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioName, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 ReplicationProtectedItemProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CurrentScenario")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectedItemType = (string) content.GetValueForProperty("ProtectedItemType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectedItemType, global::System.Convert.ToString); - } - if (content.Contains("ProtectableItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectableItemId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryServicesProviderId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("PrimaryFabricProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricProvider = (string) content.GetValueForProperty("PrimaryFabricProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricProvider, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryFabricId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricId, global::System.Convert.ToString); - } - if (content.Contains("PrimaryProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PrimaryProtectionContainerFriendlyName = (string) content.GetValueForProperty("PrimaryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PrimaryProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryProtectionContainerFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryProtectionContainerFriendlyName = (string) content.GetValueForProperty("RecoveryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryProtectionContainerFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("ProtectionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectionState = (string) content.GetValueForProperty("ProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectionState, global::System.Convert.ToString); - } - if (content.Contains("ProtectionStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectionStateDescription = (string) content.GetValueForProperty("ProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProtectionStateDescription, global::System.Convert.ToString); - } - if (content.Contains("ActiveLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ActiveLocation = (string) content.GetValueForProperty("ActiveLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ActiveLocation, global::System.Convert.ToString); - } - if (content.Contains("TestFailoverState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).TestFailoverState = (string) content.GetValueForProperty("TestFailoverState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).TestFailoverState, global::System.Convert.ToString); - } - if (content.Contains("TestFailoverStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).TestFailoverStateDescription = (string) content.GetValueForProperty("TestFailoverStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).TestFailoverStateDescription, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderState = (string) content.GetValueForProperty("SwitchProviderState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderState, global::System.Convert.ToString); - } - if (content.Contains("SwitchProviderStateDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderStateDescription = (string) content.GetValueForProperty("SwitchProviderStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderStateDescription, global::System.Convert.ToString); - } - if (content.Contains("AllowedOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("ReplicationHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ReplicationHealth = (string) content.GetValueForProperty("ReplicationHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ReplicationHealth, global::System.Convert.ToString); - } - if (content.Contains("FailoverHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).FailoverHealth = (string) content.GetValueForProperty("FailoverHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).FailoverHealth, global::System.Convert.ToString); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("PolicyId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PolicyId, global::System.Convert.ToString); - } - if (content.Contains("PolicyFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).PolicyFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("LastSuccessfulFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastSuccessfulTestFailoverTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FailoverRecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).FailoverRecoveryPointId = (string) content.GetValueForProperty("FailoverRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).FailoverRecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("RecoveryContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).RecoveryContainerId, global::System.Convert.ToString); - } - if (content.Contains("EventCorrelationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).EventCorrelationId, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioName, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); - } - if (content.Contains("CurrentScenarioStartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Replication protected item custom data details. - [System.ComponentModel.TypeConverter(typeof(ReplicationProtectedItemPropertiesTypeConverter))] - public partial interface IReplicationProtectedItemProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntent.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntent.PowerShell.cs deleted file mode 100644 index de31b87dad3b..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntent.PowerShell.cs +++ /dev/null @@ -1,234 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Replication protection intent. - [System.ComponentModel.TypeConverter(typeof(ReplicationProtectionIntentTypeConverter))] - public partial class ReplicationProtectionIntent - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReplicationProtectionIntent DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReplicationProtectionIntent(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.Migrate.Models.Api20220501.IReplicationProtectionIntent DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReplicationProtectionIntent(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.Migrate.Models.Api20220501.IReplicationProtectionIntent FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReplicationProtectionIntent(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.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProviderSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("JobState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).JobState = (string) content.GetValueForProperty("JobState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).JobState, global::System.Convert.ToString); - } - if (content.Contains("IsActive")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).IsActive = (bool?) content.GetValueForProperty("IsActive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).IsActive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("CreationTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).CreationTimeUtc = (string) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).CreationTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).ProviderSpecificDetailInstanceType, 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 ReplicationProtectionIntent(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.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProviderSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("JobState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).JobState = (string) content.GetValueForProperty("JobState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).JobState, global::System.Convert.ToString); - } - if (content.Contains("IsActive")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).IsActive = (bool?) content.GetValueForProperty("IsActive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).IsActive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("CreationTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).CreationTimeUtc = (string) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).CreationTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Replication protection intent. - [System.ComponentModel.TypeConverter(typeof(ReplicationProtectionIntentTypeConverter))] - public partial interface IReplicationProtectionIntent - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntent.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntent.cs deleted file mode 100644 index 83fc7a51ffee..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntent.cs +++ /dev/null @@ -1,191 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Replication protection intent. - public partial class ReplicationProtectionIntent : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntent, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// The creation time in UTC. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CreationTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).CreationTimeUtc; } - - /// The name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).FriendlyName = value ?? null; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// A value indicating whether the intent object is active. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public bool? IsActive { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).IsActive; } - - /// The job Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string JobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).JobId; } - - /// The job state. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string JobState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).JobState; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for CreationTimeUtc - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal.CreationTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).CreationTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).CreationTimeUtc = value; } - - /// Internal Acessors for IsActive - bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal.IsActive { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).IsActive; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).IsActive = value; } - - /// Internal Acessors for JobId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal.JobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).JobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).JobId = value; } - - /// Internal Acessors for JobState - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal.JobState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).JobState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).JobState = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties _property; - - /// The custom data. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProperties()); set => this._property = value; } - - /// Gets the Instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public ReplicationProtectionIntent() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Replication protection intent. - public partial interface IReplicationProtectionIntent : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// The creation time in UTC. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The creation time in UTC.", - SerializedName = @"creationTimeUTC", - PossibleTypes = new [] { typeof(string) })] - string CreationTimeUtc { get; } - /// The name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// A value indicating whether the intent object is active. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"A value indicating whether the intent object is active.", - SerializedName = @"isActive", - PossibleTypes = new [] { typeof(bool) })] - bool? IsActive { get; } - /// The job Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The job Id.", - SerializedName = @"jobId", - PossibleTypes = new [] { typeof(string) })] - string JobId { get; } - /// The job state. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The job state.", - SerializedName = @"jobState", - PossibleTypes = new [] { typeof(string) })] - string JobState { get; } - /// Gets the Instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the Instance type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Replication protection intent. - internal partial interface IReplicationProtectionIntentInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The creation time in UTC. - string CreationTimeUtc { get; set; } - /// The name. - string FriendlyName { get; set; } - /// A value indicating whether the intent object is active. - bool? IsActive { get; set; } - /// The job Id. - string JobId { get; set; } - /// The job state. - string JobState { get; set; } - /// The custom data. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties Property { get; set; } - /// The Replication provider custom settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings ProviderSpecificDetail { get; set; } - /// Gets the Instance type. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentCollection.PowerShell.cs deleted file mode 100644 index 6d87b4ccb6d1..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentCollection.PowerShell.cs +++ /dev/null @@ -1,157 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Replication protection intent objects collection. - [System.ComponentModel.TypeConverter(typeof(ReplicationProtectionIntentCollectionTypeConverter))] - public partial class ReplicationProtectionIntentCollection - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReplicationProtectionIntentCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReplicationProtectionIntentCollection(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.Migrate.Models.Api20220501.IReplicationProtectionIntentCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReplicationProtectionIntentCollection(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.Migrate.Models.Api20220501.IReplicationProtectionIntentCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReplicationProtectionIntentCollection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ReplicationProtectionIntentCollection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Replication protection intent objects collection. - [System.ComponentModel.TypeConverter(typeof(ReplicationProtectionIntentCollectionTypeConverter))] - public partial interface IReplicationProtectionIntentCollection - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProperties.PowerShell.cs deleted file mode 100644 index 9fa722d7c04c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProperties.PowerShell.cs +++ /dev/null @@ -1,197 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Replication protection intent custom data details. - [System.ComponentModel.TypeConverter(typeof(ReplicationProtectionIntentPropertiesTypeConverter))] - public partial class ReplicationProtectionIntentProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReplicationProtectionIntentProperties(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.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReplicationProtectionIntentProperties(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.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReplicationProtectionIntentProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProviderSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("JobState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).JobState = (string) content.GetValueForProperty("JobState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).JobState, global::System.Convert.ToString); - } - if (content.Contains("IsActive")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).IsActive = (bool?) content.GetValueForProperty("IsActive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).IsActive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("CreationTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).CreationTimeUtc = (string) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).CreationTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 ReplicationProtectionIntentProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProviderSpecificSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("JobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).JobId, global::System.Convert.ToString); - } - if (content.Contains("JobState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).JobState = (string) content.GetValueForProperty("JobState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).JobState, global::System.Convert.ToString); - } - if (content.Contains("IsActive")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).IsActive = (bool?) content.GetValueForProperty("IsActive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).IsActive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("CreationTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).CreationTimeUtc = (string) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).CreationTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Replication protection intent custom data details. - [System.ComponentModel.TypeConverter(typeof(ReplicationProtectionIntentPropertiesTypeConverter))] - public partial interface IReplicationProtectionIntentProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReprotectAgentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReprotectAgentDetails.PowerShell.cs deleted file mode 100644 index 3c1b1f3bbeb5..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReprotectAgentDetails.PowerShell.cs +++ /dev/null @@ -1,240 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Reprotect agent details. - [System.ComponentModel.TypeConverter(typeof(ReprotectAgentDetailsTypeConverter))] - public partial class ReprotectAgentDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReprotectAgentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReprotectAgentDetails(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.Migrate.Models.Api20220501.IReprotectAgentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReprotectAgentDetails(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.Migrate.Models.Api20220501.IReprotectAgentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReprotectAgentDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AccessibleDatastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).AccessibleDatastore = (string[]) content.GetValueForProperty("AccessibleDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).AccessibleDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("VcenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).VcenterId = (string) content.GetValueForProperty("VcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).VcenterId, global::System.Convert.ToString); - } - if (content.Contains("LastDiscoveryInUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).LastDiscoveryInUtc = (global::System.DateTime?) content.GetValueForProperty("LastDiscoveryInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).LastDiscoveryInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ReprotectAgentDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("BiosId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); - } - if (content.Contains("FabricObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeatUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Health")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ProtectedItemCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AccessibleDatastore")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).AccessibleDatastore = (string[]) content.GetValueForProperty("AccessibleDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).AccessibleDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("VcenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).VcenterId = (string) content.GetValueForProperty("VcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).VcenterId, global::System.Convert.ToString); - } - if (content.Contains("LastDiscoveryInUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).LastDiscoveryInUtc = (global::System.DateTime?) content.GetValueForProperty("LastDiscoveryInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal)this).LastDiscoveryInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Reprotect agent details. - [System.ComponentModel.TypeConverter(typeof(ReprotectAgentDetailsTypeConverter))] - public partial interface IReprotectAgentDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInput.PowerShell.cs deleted file mode 100644 index fae281474ebf..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInput.PowerShell.cs +++ /dev/null @@ -1,152 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Resolve health input. - [System.ComponentModel.TypeConverter(typeof(ResolveHealthInputTypeConverter))] - public partial class ResolveHealthInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IResolveHealthInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ResolveHealthInput(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.Migrate.Models.Api20220501.IResolveHealthInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ResolveHealthInput(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.Migrate.Models.Api20220501.IResolveHealthInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ResolveHealthInput(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.Migrate.Models.Api20220501.IResolveHealthInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResolveHealthInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResolveHealthErrorTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ResolveHealthInput(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.Migrate.Models.Api20220501.IResolveHealthInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResolveHealthInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResolveHealthErrorTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Resolve health input. - [System.ComponentModel.TypeConverter(typeof(ResolveHealthInputTypeConverter))] - public partial interface IResolveHealthInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInput.cs b/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInput.cs deleted file mode 100644 index ac2a54770aaf..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Resolve health input. - public partial class ResolveHealthInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputInternal - { - - /// Health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError[] HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputPropertiesInternal)Property).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputPropertiesInternal)Property).HealthError = value ?? null /* arrayOf */; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResolveHealthInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputProperties _property; - - /// Disable resolve health input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResolveHealthInputProperties()); set => this._property = value; } - - /// Creates an new instance. - public ResolveHealthInput() - { - - } - } - /// Resolve health input. - public partial interface IResolveHealthInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Health errors. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Health errors.", - SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError[] HealthError { get; set; } - - } - /// Resolve health input. - internal partial interface IResolveHealthInputInternal - - { - /// Health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError[] HealthError { get; set; } - /// Disable resolve health input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputProperties Property { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummary.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummary.PowerShell.cs deleted file mode 100644 index c5628a714df2..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummary.PowerShell.cs +++ /dev/null @@ -1,162 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// - /// Base class to define the health summary of the resources contained under an Arm resource. - /// - [System.ComponentModel.TypeConverter(typeof(ResourceHealthSummaryTypeConverter))] - public partial class ResourceHealthSummary - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IResourceHealthSummary DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ResourceHealthSummary(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.Migrate.Models.Api20220501.IResourceHealthSummary DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ResourceHealthSummary(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.Migrate.Models.Api20220501.IResourceHealthSummary FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ResourceHealthSummary(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)this).ResourceCount = (int?) content.GetValueForProperty("ResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)this).ResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Issue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)this).Issue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[]) content.GetValueForProperty("Issue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)this).Issue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummaryTypeConverter.ConvertFrom)); - } - if (content.Contains("CategorizedResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)this).CategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("CategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)this).CategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ResourceHealthSummary(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)this).ResourceCount = (int?) content.GetValueForProperty("ResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)this).ResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Issue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)this).Issue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[]) content.GetValueForProperty("Issue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)this).Issue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummaryTypeConverter.ConvertFrom)); - } - if (content.Contains("CategorizedResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)this).CategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("CategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)this).CategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Base class to define the health summary of the resources contained under an Arm resource. - [System.ComponentModel.TypeConverter(typeof(ResourceHealthSummaryTypeConverter))] - public partial interface IResourceHealthSummary - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParams.cs b/src/Migrate/generated/api/Models/Api20220501/ResumeJobParams.cs deleted file mode 100644 index 4c0e65db88ff..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParams.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Resume job params. - public partial class ResumeJobParams : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParams, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsInternal - { - - /// Resume job comments. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Comment { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsPropertiesInternal)Property).Comment; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsPropertiesInternal)Property).Comment = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeJobParamsProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsProperties _property; - - /// Resume job properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeJobParamsProperties()); set => this._property = value; } - - /// Creates an new instance. - public ResumeJobParams() - { - - } - } - /// Resume job params. - public partial interface IResumeJobParams : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Resume job comments. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resume job comments.", - SerializedName = @"comments", - PossibleTypes = new [] { typeof(string) })] - string Comment { get; set; } - - } - /// Resume job params. - internal partial interface IResumeJobParamsInternal - - { - /// Resume job comments. - string Comment { get; set; } - /// Resume job properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsProperties Property { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInput.PowerShell.cs deleted file mode 100644 index 81500aff5de3..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInput.PowerShell.cs +++ /dev/null @@ -1,152 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Resume replication input. - [System.ComponentModel.TypeConverter(typeof(ResumeReplicationInputTypeConverter))] - public partial class ResumeReplicationInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IResumeReplicationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ResumeReplicationInput(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.Migrate.Models.Api20220501.IResumeReplicationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ResumeReplicationInput(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.Migrate.Models.Api20220501.IResumeReplicationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ResumeReplicationInput(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.Migrate.Models.Api20220501.IResumeReplicationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationProviderSpecificInputTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ResumeReplicationInput(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.Migrate.Models.Api20220501.IResumeReplicationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationProviderSpecificInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Resume replication input. - [System.ComponentModel.TypeConverter(typeof(ResumeReplicationInputTypeConverter))] - public partial interface IResumeReplicationInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInput.cs b/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInput.cs deleted file mode 100644 index 3496147a8590..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Resume replication input. - public partial class ResumeReplicationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputProperties _property; - - /// Resume replication input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationInputProperties()); set => this._property = value; } - - /// The provider specific input for resume replication. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputPropertiesInternal)Property).ProviderSpecificDetail = value ; } - - /// Creates an new instance. - public ResumeReplicationInput() - { - - } - } - /// Resume replication input. - public partial interface IResumeReplicationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The provider specific input for resume replication. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The provider specific input for resume replication.", - SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput ProviderSpecificDetail { get; set; } - - } - /// Resume replication input. - internal partial interface IResumeReplicationInputInternal - - { - /// Resume replication input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputProperties Property { get; set; } - /// The provider specific input for resume replication. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput ProviderSpecificDetail { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResyncInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ResyncInput.PowerShell.cs deleted file mode 100644 index 497637e9b3a2..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ResyncInput.PowerShell.cs +++ /dev/null @@ -1,152 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Resync input. - [System.ComponentModel.TypeConverter(typeof(ResyncInputTypeConverter))] - public partial class ResyncInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IResyncInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ResyncInput(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.Migrate.Models.Api20220501.IResyncInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ResyncInput(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.Migrate.Models.Api20220501.IResyncInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ResyncInput(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.Migrate.Models.Api20220501.IResyncInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncProviderSpecificInputTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ResyncInput(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.Migrate.Models.Api20220501.IResyncInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncProviderSpecificInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Resync input. - [System.ComponentModel.TypeConverter(typeof(ResyncInputTypeConverter))] - public partial interface IResyncInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResyncInput.cs b/src/Migrate/generated/api/Models/Api20220501/ResyncInput.cs deleted file mode 100644 index 50c2e885661e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ResyncInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Resync input. - public partial class ResyncInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputProperties _property; - - /// Resync input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncInputProperties()); set => this._property = value; } - - /// The provider specific details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputPropertiesInternal)Property).ProviderSpecificDetail = value ; } - - /// Creates an new instance. - public ResyncInput() - { - - } - } - /// Resync input. - public partial interface IResyncInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The provider specific details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The provider specific details.", - SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput ProviderSpecificDetail { get; set; } - - } - /// Resync input. - internal partial interface IResyncInputInternal - - { - /// Resync input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputProperties Property { get; set; } - /// The provider specific details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput ProviderSpecificDetail { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RetentionVolume.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RetentionVolume.PowerShell.cs deleted file mode 100644 index fb676e139006..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RetentionVolume.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// The retention details of the MT. - [System.ComponentModel.TypeConverter(typeof(RetentionVolumeTypeConverter))] - public partial class RetentionVolume - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRetentionVolume DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RetentionVolume(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.Migrate.Models.Api20220501.IRetentionVolume DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RetentionVolume(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.Migrate.Models.Api20220501.IRetentionVolume FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RetentionVolume(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VolumeName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).VolumeName = (string) content.GetValueForProperty("VolumeName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).VolumeName, global::System.Convert.ToString); - } - if (content.Contains("CapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("FreeSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).FreeSpaceInByte = (long?) content.GetValueForProperty("FreeSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).FreeSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ThresholdPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).ThresholdPercentage = (int?) content.GetValueForProperty("ThresholdPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).ThresholdPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RetentionVolume(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VolumeName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).VolumeName = (string) content.GetValueForProperty("VolumeName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).VolumeName, global::System.Convert.ToString); - } - if (content.Contains("CapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("FreeSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).FreeSpaceInByte = (long?) content.GetValueForProperty("FreeSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).FreeSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ThresholdPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).ThresholdPercentage = (int?) content.GetValueForProperty("ThresholdPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal)this).ThresholdPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The retention details of the MT. - [System.ComponentModel.TypeConverter(typeof(RetentionVolumeTypeConverter))] - public partial interface IRetentionVolume - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInput.PowerShell.cs deleted file mode 100644 index 705e4769c808..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInput.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Reverse replication input. - [System.ComponentModel.TypeConverter(typeof(ReverseReplicationInputTypeConverter))] - public partial class ReverseReplicationInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReverseReplicationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReverseReplicationInput(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.Migrate.Models.Api20220501.IReverseReplicationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReverseReplicationInput(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.Migrate.Models.Api20220501.IReverseReplicationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReverseReplicationInput(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.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).ProviderSpecificDetailInstanceType, 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 ReverseReplicationInput(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.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Reverse replication input. - [System.ComponentModel.TypeConverter(typeof(ReverseReplicationInputTypeConverter))] - public partial interface IReverseReplicationInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInput.cs b/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInput.cs deleted file mode 100644 index 4f5a311fbf97..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInput.cs +++ /dev/null @@ -1,79 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Reverse replication input. - public partial class ReverseReplicationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal - { - - /// Failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FailoverDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)Property).FailoverDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)Property).FailoverDirection = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputProperties _property; - - /// Reverse replication properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationInputProperties()); set => this._property = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// Creates an new instance. - public ReverseReplicationInput() - { - - } - } - /// Reverse replication input. - public partial interface IReverseReplicationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Failover direction.", - SerializedName = @"failoverDirection", - PossibleTypes = new [] { typeof(string) })] - string FailoverDirection { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Reverse replication input. - internal partial interface IReverseReplicationInputInternal - - { - /// Failover direction. - string FailoverDirection { get; set; } - /// Reverse replication properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputProperties Property { get; set; } - /// Provider specific reverse replication input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInputProperties.PowerShell.cs deleted file mode 100644 index a5cecbfdbf80..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInputProperties.PowerShell.cs +++ /dev/null @@ -1,164 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Reverse replication input properties. - [System.ComponentModel.TypeConverter(typeof(ReverseReplicationInputPropertiesTypeConverter))] - public partial class ReverseReplicationInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IReverseReplicationInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ReverseReplicationInputProperties(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.Migrate.Models.Api20220501.IReverseReplicationInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ReverseReplicationInputProperties(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.Migrate.Models.Api20220501.IReverseReplicationInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ReverseReplicationInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 ReverseReplicationInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Reverse replication input properties. - [System.ComponentModel.TypeConverter(typeof(ReverseReplicationInputPropertiesTypeConverter))] - public partial interface IReverseReplicationInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInputProperties.cs b/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInputProperties.cs deleted file mode 100644 index 941c438e68d9..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInputProperties.cs +++ /dev/null @@ -1,77 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Reverse replication input properties. - public partial class ReverseReplicationInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal - { - - /// Backing field for property. - private string _failoverDirection; - - /// Failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string FailoverDirection { get => this._failoverDirection; set => this._failoverDirection = value; } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput _providerSpecificDetail; - - /// Provider specific reverse replication input. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput()); set => this._providerSpecificDetail = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } - - /// Creates an new instance. - public ReverseReplicationInputProperties() - { - - } - } - /// Reverse replication input properties. - public partial interface IReverseReplicationInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Failover direction.", - SerializedName = @"failoverDirection", - PossibleTypes = new [] { typeof(string) })] - string FailoverDirection { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Reverse replication input properties. - internal partial interface IReverseReplicationInputPropertiesInternal - - { - /// Failover direction. - string FailoverDirection { get; set; } - /// Provider specific reverse replication input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RoleAssignment.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/RoleAssignment.PowerShell.cs deleted file mode 100644 index 5afd1ff9e0ca..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/RoleAssignment.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Azure role assignment details. - [System.ComponentModel.TypeConverter(typeof(RoleAssignmentTypeConverter))] - public partial class RoleAssignment - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IRoleAssignment DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RoleAssignment(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.Migrate.Models.Api20220501.IRoleAssignment DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RoleAssignment(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.Migrate.Models.Api20220501.IRoleAssignment FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RoleAssignment(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("PrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).PrincipalId, global::System.Convert.ToString); - } - if (content.Contains("RoleDefinitionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).RoleDefinitionId = (string) content.GetValueForProperty("RoleDefinitionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).RoleDefinitionId, 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 RoleAssignment(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("PrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).PrincipalId, global::System.Convert.ToString); - } - if (content.Contains("RoleDefinitionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).RoleDefinitionId = (string) content.GetValueForProperty("RoleDefinitionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal)this).RoleDefinitionId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Azure role assignment details. - [System.ComponentModel.TypeConverter(typeof(RoleAssignmentTypeConverter))] - public partial interface IRoleAssignment - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ScriptActionTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ScriptActionTaskDetails.PowerShell.cs deleted file mode 100644 index fa663ebb4a65..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ScriptActionTaskDetails.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class represents the script action task details. - [System.ComponentModel.TypeConverter(typeof(ScriptActionTaskDetailsTypeConverter))] - public partial class ScriptActionTaskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IScriptActionTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ScriptActionTaskDetails(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.Migrate.Models.Api20220501.IScriptActionTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ScriptActionTaskDetails(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.Migrate.Models.Api20220501.IScriptActionTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ScriptActionTaskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Path")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).Path, global::System.Convert.ToString); - } - if (content.Contains("Output")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).Output = (string) content.GetValueForProperty("Output",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).Output, global::System.Convert.ToString); - } - if (content.Contains("IsPrimarySideScript")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).IsPrimarySideScript = (bool?) content.GetValueForProperty("IsPrimarySideScript",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).IsPrimarySideScript, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, 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 ScriptActionTaskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Path")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).Path, global::System.Convert.ToString); - } - if (content.Contains("Output")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).Output = (string) content.GetValueForProperty("Output",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).Output, global::System.Convert.ToString); - } - if (content.Contains("IsPrimarySideScript")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).IsPrimarySideScript = (bool?) content.GetValueForProperty("IsPrimarySideScript",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal)this).IsPrimarySideScript, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class represents the script action task details. - [System.ComponentModel.TypeConverter(typeof(ScriptActionTaskDetailsTypeConverter))] - public partial interface IScriptActionTaskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ServiceError.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/ServiceError.PowerShell.cs deleted file mode 100644 index f1740c99b279..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/ServiceError.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// ASR error model. - [System.ComponentModel.TypeConverter(typeof(ServiceErrorTypeConverter))] - public partial class ServiceError - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IServiceError DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ServiceError(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.Migrate.Models.Api20220501.IServiceError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ServiceError(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.Migrate.Models.Api20220501.IServiceError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ServiceError(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ActivityId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).ActivityId, 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 ServiceError(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("PossibleCaus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).PossibleCaus, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("ActivityId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)this).ActivityId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// ASR error model. - [System.ComponentModel.TypeConverter(typeof(ServiceErrorTypeConverter))] - public partial interface IServiceError - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassification.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/StorageClassification.PowerShell.cs deleted file mode 100644 index 600e3e2d3b1c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassification.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Storage object definition. - [System.ComponentModel.TypeConverter(typeof(StorageClassificationTypeConverter))] - public partial class StorageClassification - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IStorageClassification DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new StorageClassification(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.Migrate.Models.Api20220501.IStorageClassification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new StorageClassification(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.Migrate.Models.Api20220501.IStorageClassification FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal StorageClassification(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.Migrate.Models.Api20220501.IStorageClassificationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationInternal)this).FriendlyName, 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 StorageClassification(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.Migrate.Models.Api20220501.IStorageClassificationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationInternal)this).FriendlyName, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Storage object definition. - [System.ComponentModel.TypeConverter(typeof(StorageClassificationTypeConverter))] - public partial interface IStorageClassification - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassification.cs b/src/Migrate/generated/api/Models/Api20220501/StorageClassification.cs deleted file mode 100644 index 20ae6073d0c0..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassification.cs +++ /dev/null @@ -1,104 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Storage object definition. - public partial class StorageClassification : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassification, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// Friendly name of the Storage classification. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationPropertiesInternal)Property).FriendlyName = value ?? null; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationProperties()); set { {_property = value;} } } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationProperties _property; - - /// Properties of the storage object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationProperties()); set => this._property = value; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public StorageClassification() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Storage object definition. - public partial interface IStorageClassification : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// Friendly name of the Storage classification. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of the Storage classification.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - - } - /// Storage object definition. - internal partial interface IStorageClassificationInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// Friendly name of the Storage classification. - string FriendlyName { get; set; } - /// Properties of the storage object. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationProperties Property { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/StorageClassificationCollection.PowerShell.cs deleted file mode 100644 index e5f3feadf270..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationCollection.PowerShell.cs +++ /dev/null @@ -1,154 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Collection of storage details. - [System.ComponentModel.TypeConverter(typeof(StorageClassificationCollectionTypeConverter))] - public partial class StorageClassificationCollection - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IStorageClassificationCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new StorageClassificationCollection(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.Migrate.Models.Api20220501.IStorageClassificationCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new StorageClassificationCollection(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.Migrate.Models.Api20220501.IStorageClassificationCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal StorageClassificationCollection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassification[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal StorageClassificationCollection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassification[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Collection of storage details. - [System.ComponentModel.TypeConverter(typeof(StorageClassificationCollectionTypeConverter))] - public partial interface IStorageClassificationCollection - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMapping.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMapping.PowerShell.cs deleted file mode 100644 index 9b300b2d3c9c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMapping.PowerShell.cs +++ /dev/null @@ -1,186 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Storage mapping object. - [System.ComponentModel.TypeConverter(typeof(StorageClassificationMappingTypeConverter))] - public partial class StorageClassificationMapping - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IStorageClassificationMapping DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new StorageClassificationMapping(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.Migrate.Models.Api20220501.IStorageClassificationMapping DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new StorageClassificationMapping(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.Migrate.Models.Api20220501.IStorageClassificationMapping FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal StorageClassificationMapping(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.Migrate.Models.Api20220501.IStorageClassificationMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMappingPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("TargetStorageClassificationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInternal)this).TargetStorageClassificationId, 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 StorageClassificationMapping(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.Migrate.Models.Api20220501.IStorageClassificationMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMappingPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("TargetStorageClassificationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInternal)this).TargetStorageClassificationId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Storage mapping object. - [System.ComponentModel.TypeConverter(typeof(StorageClassificationMappingTypeConverter))] - public partial interface IStorageClassificationMapping - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMapping.cs b/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMapping.cs deleted file mode 100644 index 345ccd143579..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMapping.cs +++ /dev/null @@ -1,104 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Storage mapping object. - public partial class StorageClassificationMapping : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMapping, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMappingProperties()); set { {_property = value;} } } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingProperties _property; - - /// Properties of the storage mapping object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMappingProperties()); set => this._property = value; } - - /// Target storage object Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TargetStorageClassificationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingPropertiesInternal)Property).TargetStorageClassificationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingPropertiesInternal)Property).TargetStorageClassificationId = value ?? null; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public StorageClassificationMapping() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Storage mapping object. - public partial interface IStorageClassificationMapping : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// Target storage object Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Target storage object Id.", - SerializedName = @"targetStorageClassificationId", - PossibleTypes = new [] { typeof(string) })] - string TargetStorageClassificationId { get; set; } - - } - /// Storage mapping object. - internal partial interface IStorageClassificationMappingInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// Properties of the storage mapping object. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingProperties Property { get; set; } - /// Target storage object Id. - string TargetStorageClassificationId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingCollection.PowerShell.cs deleted file mode 100644 index 08b7b5a836cf..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingCollection.PowerShell.cs +++ /dev/null @@ -1,157 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Collection of storage mapping details. - [System.ComponentModel.TypeConverter(typeof(StorageClassificationMappingCollectionTypeConverter))] - public partial class StorageClassificationMappingCollection - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IStorageClassificationMappingCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new StorageClassificationMappingCollection(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.Migrate.Models.Api20220501.IStorageClassificationMappingCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new StorageClassificationMappingCollection(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.Migrate.Models.Api20220501.IStorageClassificationMappingCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal StorageClassificationMappingCollection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMapping[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMappingTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal StorageClassificationMappingCollection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMapping[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMappingTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Collection of storage mapping details. - [System.ComponentModel.TypeConverter(typeof(StorageClassificationMappingCollectionTypeConverter))] - public partial interface IStorageClassificationMappingCollection - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingInput.PowerShell.cs deleted file mode 100644 index 8a65a2f55b14..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingInput.PowerShell.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Storage mapping input. - [System.ComponentModel.TypeConverter(typeof(StorageClassificationMappingInputTypeConverter))] - public partial class StorageClassificationMappingInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IStorageClassificationMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new StorageClassificationMappingInput(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.Migrate.Models.Api20220501.IStorageClassificationMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new StorageClassificationMappingInput(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.Migrate.Models.Api20220501.IStorageClassificationMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal StorageClassificationMappingInput(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.Migrate.Models.Api20220501.IStorageClassificationMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageMappingInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("TargetStorageClassificationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInputInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInputInternal)this).TargetStorageClassificationId, 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 StorageClassificationMappingInput(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.Migrate.Models.Api20220501.IStorageClassificationMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageMappingInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("TargetStorageClassificationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInputInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInputInternal)this).TargetStorageClassificationId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Storage mapping input. - [System.ComponentModel.TypeConverter(typeof(StorageClassificationMappingInputTypeConverter))] - public partial interface IStorageClassificationMappingInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingInput.cs b/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingInput.cs deleted file mode 100644 index 6ed72bdf7236..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Storage mapping input. - public partial class StorageClassificationMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageMappingInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputProperties _property; - - /// Storage mapping input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageMappingInputProperties()); set => this._property = value; } - - /// The ID of the storage object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TargetStorageClassificationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputPropertiesInternal)Property).TargetStorageClassificationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputPropertiesInternal)Property).TargetStorageClassificationId = value ?? null; } - - /// Creates an new instance. - public StorageClassificationMappingInput() - { - - } - } - /// Storage mapping input. - public partial interface IStorageClassificationMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The ID of the storage object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ID of the storage object.", - SerializedName = @"targetStorageClassificationId", - PossibleTypes = new [] { typeof(string) })] - string TargetStorageClassificationId { get; set; } - - } - /// Storage mapping input. - internal partial interface IStorageClassificationMappingInputInternal - - { - /// Storage mapping input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputProperties Property { get; set; } - /// The ID of the storage object. - string TargetStorageClassificationId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOSDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/SupportedOSDetails.PowerShell.cs deleted file mode 100644 index 7fb9eae84506..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOSDetails.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Supported operating system details. - [System.ComponentModel.TypeConverter(typeof(SupportedOSDetailsTypeConverter))] - public partial class SupportedOSDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ISupportedOSDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new SupportedOSDetails(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.Migrate.Models.Api20220501.ISupportedOSDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new SupportedOSDetails(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.Migrate.Models.Api20220501.ISupportedOSDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal SupportedOSDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("OSName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetailsInternal)this).OSName = (string) content.GetValueForProperty("OSName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetailsInternal)this).OSName, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("OSVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetailsInternal)this).OSVersion = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapper[]) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetailsInternal)this).OSVersion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSVersionWrapperTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal SupportedOSDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("OSName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetailsInternal)this).OSName = (string) content.GetValueForProperty("OSName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetailsInternal)this).OSName, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("OSVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetailsInternal)this).OSVersion = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapper[]) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetailsInternal)this).OSVersion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSVersionWrapperTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Supported operating system details. - [System.ComponentModel.TypeConverter(typeof(SupportedOSDetailsTypeConverter))] - public partial interface ISupportedOSDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOperatingSystems.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/SupportedOperatingSystems.PowerShell.cs deleted file mode 100644 index 1c1a66d1a385..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOperatingSystems.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Supported operating systems. - [System.ComponentModel.TypeConverter(typeof(SupportedOperatingSystemsTypeConverter))] - public partial class SupportedOperatingSystems - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ISupportedOperatingSystems DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new SupportedOperatingSystems(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.Migrate.Models.Api20220501.ISupportedOperatingSystems DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new SupportedOperatingSystems(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.Migrate.Models.Api20220501.ISupportedOperatingSystems FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal SupportedOperatingSystems(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.Migrate.Models.Api20220501.ISupportedOperatingSystemsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOperatingSystemsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("SupportedOSList")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOperatingSystemsInternal)this).SupportedOSList = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty[]) content.GetValueForProperty("SupportedOSList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOperatingSystemsInternal)this).SupportedOSList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSPropertyTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal SupportedOperatingSystems(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.Migrate.Models.Api20220501.ISupportedOperatingSystemsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOperatingSystemsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("SupportedOSList")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOperatingSystemsInternal)this).SupportedOSList = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty[]) content.GetValueForProperty("SupportedOSList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOperatingSystemsInternal)this).SupportedOSList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSPropertyTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Supported operating systems. - [System.ComponentModel.TypeConverter(typeof(SupportedOperatingSystemsTypeConverter))] - public partial interface ISupportedOperatingSystems - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOperatingSystems.cs b/src/Migrate/generated/api/Models/Api20220501/SupportedOperatingSystems.cs deleted file mode 100644 index 41383ead9efc..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOperatingSystems.cs +++ /dev/null @@ -1,104 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Supported operating systems. - public partial class SupportedOperatingSystems : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOperatingSystems, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOperatingSystemsInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOperatingSystemsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSProperties()); set { {_property = value;} } } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperties _property; - - /// The supported operating systems properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSProperties()); set => this._property = value; } - - /// The supported operating systems property list. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty[] SupportedOSList { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertiesInternal)Property).SupportedOSList; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertiesInternal)Property).SupportedOSList = value ?? null /* arrayOf */; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public SupportedOperatingSystems() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Supported operating systems. - public partial interface ISupportedOperatingSystems : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// The supported operating systems property list. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The supported operating systems property list.", - SerializedName = @"supportedOsList", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty[] SupportedOSList { get; set; } - - } - /// Supported operating systems. - internal partial interface ISupportedOperatingSystemsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The supported operating systems properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperties Property { get; set; } - /// The supported operating systems property list. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty[] SupportedOSList { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInput.PowerShell.cs deleted file mode 100644 index 20887298213c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInput.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Switch protection input. - [System.ComponentModel.TypeConverter(typeof(SwitchProtectionInputTypeConverter))] - public partial class SwitchProtectionInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ISwitchProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new SwitchProtectionInput(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.Migrate.Models.Api20220501.ISwitchProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new SwitchProtectionInput(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.Migrate.Models.Api20220501.ISwitchProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal SwitchProtectionInput(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.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("ReplicationProtectedItemName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).ReplicationProtectedItemName = (string) content.GetValueForProperty("ReplicationProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).ReplicationProtectedItemName, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).ProviderSpecificDetailInstanceType, 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 SwitchProtectionInput(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.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("ReplicationProtectedItemName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).ReplicationProtectedItemName = (string) content.GetValueForProperty("ReplicationProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).ReplicationProtectedItemName, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Switch protection input. - [System.ComponentModel.TypeConverter(typeof(SwitchProtectionInputTypeConverter))] - public partial interface ISwitchProtectionInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInput.cs b/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInput.cs deleted file mode 100644 index 01869e7a5a95..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInput.cs +++ /dev/null @@ -1,79 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Switch protection input. - public partial class SwitchProtectionInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputProperties _property; - - /// Switch protection properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionInputProperties()); set => this._property = value; } - - /// Gets the Instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// The unique replication protected item name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReplicationProtectedItemName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)Property).ReplicationProtectedItemName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)Property).ReplicationProtectedItemName = value ?? null; } - - /// Creates an new instance. - public SwitchProtectionInput() - { - - } - } - /// Switch protection input. - public partial interface ISwitchProtectionInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Gets the Instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the Instance type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - /// The unique replication protected item name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The unique replication protected item name.", - SerializedName = @"replicationProtectedItemName", - PossibleTypes = new [] { typeof(string) })] - string ReplicationProtectedItemName { get; set; } - - } - /// Switch protection input. - internal partial interface ISwitchProtectionInputInternal - - { - /// Switch protection properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputProperties Property { get; set; } - /// Provider specific switch protection input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput ProviderSpecificDetail { get; set; } - /// Gets the Instance type. - string ProviderSpecificDetailInstanceType { get; set; } - /// The unique replication protected item name. - string ReplicationProtectedItemName { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInputProperties.PowerShell.cs deleted file mode 100644 index f49bf41e613a..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInputProperties.PowerShell.cs +++ /dev/null @@ -1,162 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Switch protection input properties. - [System.ComponentModel.TypeConverter(typeof(SwitchProtectionInputPropertiesTypeConverter))] - public partial class SwitchProtectionInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ISwitchProtectionInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new SwitchProtectionInputProperties(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.Migrate.Models.Api20220501.ISwitchProtectionInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new SwitchProtectionInputProperties(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.Migrate.Models.Api20220501.ISwitchProtectionInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal SwitchProtectionInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("ReplicationProtectedItemName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)this).ReplicationProtectedItemName = (string) content.GetValueForProperty("ReplicationProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)this).ReplicationProtectedItemName, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 SwitchProtectionInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("ReplicationProtectedItemName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)this).ReplicationProtectedItemName = (string) content.GetValueForProperty("ReplicationProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)this).ReplicationProtectedItemName, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Switch protection input properties. - [System.ComponentModel.TypeConverter(typeof(SwitchProtectionInputPropertiesTypeConverter))] - public partial interface ISwitchProtectionInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInputProperties.cs b/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInputProperties.cs deleted file mode 100644 index 051b8a09b750..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInputProperties.cs +++ /dev/null @@ -1,77 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Switch protection input properties. - public partial class SwitchProtectionInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal - { - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput _providerSpecificDetail; - - /// Provider specific switch protection input. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionProviderSpecificInput()); set => this._providerSpecificDetail = value; } - - /// Gets the Instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } - - /// Backing field for property. - private string _replicationProtectedItemName; - - /// The unique replication protected item name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ReplicationProtectedItemName { get => this._replicationProtectedItemName; set => this._replicationProtectedItemName = value; } - - /// Creates an new instance. - public SwitchProtectionInputProperties() - { - - } - } - /// Switch protection input properties. - public partial interface ISwitchProtectionInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Gets the Instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Gets the Instance type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - /// The unique replication protected item name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The unique replication protected item name.", - SerializedName = @"replicationProtectedItemName", - PossibleTypes = new [] { typeof(string) })] - string ReplicationProtectedItemName { get; set; } - - } - /// Switch protection input properties. - internal partial interface ISwitchProtectionInputPropertiesInternal - - { - /// Provider specific switch protection input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput ProviderSpecificDetail { get; set; } - /// Gets the Instance type. - string ProviderSpecificDetailInstanceType { get; set; } - /// The unique replication protected item name. - string ReplicationProtectedItemName { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionJobDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionJobDetails.PowerShell.cs deleted file mode 100644 index a22a758bc204..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionJobDetails.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class represents details for switch protection job. - [System.ComponentModel.TypeConverter(typeof(SwitchProtectionJobDetailsTypeConverter))] - public partial class SwitchProtectionJobDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ISwitchProtectionJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new SwitchProtectionJobDetails(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.Migrate.Models.Api20220501.ISwitchProtectionJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new SwitchProtectionJobDetails(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.Migrate.Models.Api20220501.ISwitchProtectionJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal SwitchProtectionJobDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NewReplicationProtectedItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionJobDetailsInternal)this).NewReplicationProtectedItemId = (string) content.GetValueForProperty("NewReplicationProtectedItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionJobDetailsInternal)this).NewReplicationProtectedItemId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal SwitchProtectionJobDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NewReplicationProtectedItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionJobDetailsInternal)this).NewReplicationProtectedItemId = (string) content.GetValueForProperty("NewReplicationProtectedItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionJobDetailsInternal)this).NewReplicationProtectedItemId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class represents details for switch protection job. - [System.ComponentModel.TypeConverter(typeof(SwitchProtectionJobDetailsTypeConverter))] - public partial interface ISwitchProtectionJobDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInput.PowerShell.cs deleted file mode 100644 index 5f0dce9b47d0..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInput.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input definition for switch provider. - [System.ComponentModel.TypeConverter(typeof(SwitchProviderInputTypeConverter))] - public partial class SwitchProviderInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ISwitchProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new SwitchProviderInput(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.Migrate.Models.Api20220501.ISwitchProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new SwitchProviderInput(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.Migrate.Models.Api20220501.ISwitchProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal SwitchProviderInput(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.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("TargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).TargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).ProviderSpecificDetailInstanceType, 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 SwitchProviderInput(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.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("TargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).TargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Input definition for switch provider. - [System.ComponentModel.TypeConverter(typeof(SwitchProviderInputTypeConverter))] - public partial interface ISwitchProviderInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInput.cs b/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInput.cs deleted file mode 100644 index 8564b5a94c24..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInput.cs +++ /dev/null @@ -1,79 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input definition for switch provider. - public partial class SwitchProviderInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputProperties _property; - - /// Switch provider input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderInputProperties()); set => this._property = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// Target provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TargetInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)Property).TargetInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)Property).TargetInstanceType = value ?? null; } - - /// Creates an new instance. - public SwitchProviderInput() - { - - } - } - /// Input definition for switch provider. - public partial interface ISwitchProviderInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - /// Target provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Target provider type.", - SerializedName = @"targetInstanceType", - PossibleTypes = new [] { typeof(string) })] - string TargetInstanceType { get; set; } - - } - /// Input definition for switch provider. - internal partial interface ISwitchProviderInputInternal - - { - /// Switch provider input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputProperties Property { get; set; } - /// Provider specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - /// Target provider type. - string TargetInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInputProperties.PowerShell.cs deleted file mode 100644 index 85ffa4f76447..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInputProperties.PowerShell.cs +++ /dev/null @@ -1,162 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input definition for switch provider input properties. - [System.ComponentModel.TypeConverter(typeof(SwitchProviderInputPropertiesTypeConverter))] - public partial class SwitchProviderInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ISwitchProviderInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new SwitchProviderInputProperties(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.Migrate.Models.Api20220501.ISwitchProviderInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new SwitchProviderInputProperties(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.Migrate.Models.Api20220501.ISwitchProviderInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal SwitchProviderInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("TargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)this).TargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 SwitchProviderInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("TargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)this).TargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Input definition for switch provider input properties. - [System.ComponentModel.TypeConverter(typeof(SwitchProviderInputPropertiesTypeConverter))] - public partial interface ISwitchProviderInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInputProperties.cs b/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInputProperties.cs deleted file mode 100644 index d96a8eb02a9c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInputProperties.cs +++ /dev/null @@ -1,77 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input definition for switch provider input properties. - public partial class SwitchProviderInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal - { - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput _providerSpecificDetail; - - /// Provider specific settings. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderSpecificInput()); set => this._providerSpecificDetail = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } - - /// Backing field for property. - private string _targetInstanceType; - - /// Target provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetInstanceType { get => this._targetInstanceType; set => this._targetInstanceType = value; } - - /// Creates an new instance. - public SwitchProviderInputProperties() - { - - } - } - /// Input definition for switch provider input properties. - public partial interface ISwitchProviderInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - /// Target provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Target provider type.", - SerializedName = @"targetInstanceType", - PossibleTypes = new [] { typeof(string) })] - string TargetInstanceType { get; set; } - - } - /// Input definition for switch provider input properties. - internal partial interface ISwitchProviderInputPropertiesInternal - - { - /// Provider specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - /// Target provider type. - string TargetInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSize.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/TargetComputeSize.PowerShell.cs deleted file mode 100644 index 25766c776905..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSize.PowerShell.cs +++ /dev/null @@ -1,248 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Represents applicable recovery vm sizes. - [System.ComponentModel.TypeConverter(typeof(TargetComputeSizeTypeConverter))] - public partial class TargetComputeSize - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ITargetComputeSize DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new TargetComputeSize(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.Migrate.Models.Api20220501.ITargetComputeSize DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new TargetComputeSize(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.Migrate.Models.Api20220501.ITargetComputeSize FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal TargetComputeSize(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.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSizePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("PropertiesName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).PropertiesName = (string) content.GetValueForProperty("PropertiesName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).PropertiesName, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("CpuCoresCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).CpuCoresCount = (int?) content.GetValueForProperty("CpuCoresCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).CpuCoresCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsAvailable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).VCpUsAvailable = (int?) content.GetValueForProperty("VCpUsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).VCpUsAvailable, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MemoryInGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).MemoryInGb = (double?) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("MaxDataDiskCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).MaxDataDiskCount = (int?) content.GetValueForProperty("MaxDataDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).MaxDataDiskCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MaxNicsCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).MaxNicsCount = (int?) content.GetValueForProperty("MaxNicsCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).MaxNicsCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ComputeSizeErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("HighIopsSupported")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).HighIopsSupported = (string) content.GetValueForProperty("HighIopsSupported",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).HighIopsSupported, global::System.Convert.ToString); - } - if (content.Contains("HyperVGeneration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).HyperVGeneration = (string[]) content.GetValueForProperty("HyperVGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).HyperVGeneration, __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 TargetComputeSize(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.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSizePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("PropertiesName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).PropertiesName = (string) content.GetValueForProperty("PropertiesName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).PropertiesName, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("CpuCoresCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).CpuCoresCount = (int?) content.GetValueForProperty("CpuCoresCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).CpuCoresCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsAvailable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).VCpUsAvailable = (int?) content.GetValueForProperty("VCpUsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).VCpUsAvailable, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MemoryInGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).MemoryInGb = (double?) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("MaxDataDiskCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).MaxDataDiskCount = (int?) content.GetValueForProperty("MaxDataDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).MaxDataDiskCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MaxNicsCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).MaxNicsCount = (int?) content.GetValueForProperty("MaxNicsCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).MaxNicsCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ComputeSizeErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("HighIopsSupported")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).HighIopsSupported = (string) content.GetValueForProperty("HighIopsSupported",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).HighIopsSupported, global::System.Convert.ToString); - } - if (content.Contains("HyperVGeneration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).HyperVGeneration = (string[]) content.GetValueForProperty("HyperVGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal)this).HyperVGeneration, __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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Represents applicable recovery vm sizes. - [System.ComponentModel.TypeConverter(typeof(TargetComputeSizeTypeConverter))] - public partial interface ITargetComputeSize - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeCollection.PowerShell.cs deleted file mode 100644 index 2f4c71331f90..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeCollection.PowerShell.cs +++ /dev/null @@ -1,154 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Target compute size collection. - [System.ComponentModel.TypeConverter(typeof(TargetComputeSizeCollectionTypeConverter))] - public partial class TargetComputeSizeCollection - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ITargetComputeSizeCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new TargetComputeSizeCollection(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.Migrate.Models.Api20220501.ITargetComputeSizeCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new TargetComputeSizeCollection(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.Migrate.Models.Api20220501.ITargetComputeSizeCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal TargetComputeSizeCollection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSize[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSizeTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal TargetComputeSizeCollection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSize[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSizeTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeCollectionInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Target compute size collection. - [System.ComponentModel.TypeConverter(typeof(TargetComputeSizeCollectionTypeConverter))] - public partial interface ITargetComputeSizeCollection - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeProperties.PowerShell.cs deleted file mode 100644 index b8d49813c700..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeProperties.PowerShell.cs +++ /dev/null @@ -1,218 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Represents applicable recovery vm sizes properties. - [System.ComponentModel.TypeConverter(typeof(TargetComputeSizePropertiesTypeConverter))] - public partial class TargetComputeSizeProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ITargetComputeSizeProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new TargetComputeSizeProperties(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.Migrate.Models.Api20220501.ITargetComputeSizeProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new TargetComputeSizeProperties(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.Migrate.Models.Api20220501.ITargetComputeSizeProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal TargetComputeSizeProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("CpuCoresCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).CpuCoresCount = (int?) content.GetValueForProperty("CpuCoresCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).CpuCoresCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsAvailable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).VCpUsAvailable = (int?) content.GetValueForProperty("VCpUsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).VCpUsAvailable, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MemoryInGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).MemoryInGb = (double?) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("MaxDataDiskCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).MaxDataDiskCount = (int?) content.GetValueForProperty("MaxDataDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).MaxDataDiskCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MaxNicsCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).MaxNicsCount = (int?) content.GetValueForProperty("MaxNicsCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).MaxNicsCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ComputeSizeErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("HighIopsSupported")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).HighIopsSupported = (string) content.GetValueForProperty("HighIopsSupported",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).HighIopsSupported, global::System.Convert.ToString); - } - if (content.Contains("HyperVGeneration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).HyperVGeneration = (string[]) content.GetValueForProperty("HyperVGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).HyperVGeneration, __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 TargetComputeSizeProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("CpuCoresCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).CpuCoresCount = (int?) content.GetValueForProperty("CpuCoresCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).CpuCoresCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsAvailable")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).VCpUsAvailable = (int?) content.GetValueForProperty("VCpUsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).VCpUsAvailable, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MemoryInGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).MemoryInGb = (double?) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - } - if (content.Contains("MaxDataDiskCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).MaxDataDiskCount = (int?) content.GetValueForProperty("MaxDataDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).MaxDataDiskCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MaxNicsCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).MaxNicsCount = (int?) content.GetValueForProperty("MaxNicsCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).MaxNicsCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ComputeSizeErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("HighIopsSupported")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).HighIopsSupported = (string) content.GetValueForProperty("HighIopsSupported",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).HighIopsSupported, global::System.Convert.ToString); - } - if (content.Contains("HyperVGeneration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).HyperVGeneration = (string[]) content.GetValueForProperty("HyperVGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)this).HyperVGeneration, __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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Represents applicable recovery vm sizes properties. - [System.ComponentModel.TypeConverter(typeof(TargetComputeSizePropertiesTypeConverter))] - public partial interface ITargetComputeSizeProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInput.cs b/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInput.cs deleted file mode 100644 index 0000f4b707b7..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input definition for test failover cleanup. - public partial class TestFailoverCleanupInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputInternal - { - - /// Test failover cleanup comments. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Comment { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputPropertiesInternal)Property).Comment; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputPropertiesInternal)Property).Comment = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverCleanupInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties _property; - - /// Test failover cleanup input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverCleanupInputProperties()); set => this._property = value; } - - /// Creates an new instance. - public TestFailoverCleanupInput() - { - - } - } - /// Input definition for test failover cleanup. - public partial interface ITestFailoverCleanupInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Test failover cleanup comments. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Test failover cleanup comments.", - SerializedName = @"comments", - PossibleTypes = new [] { typeof(string) })] - string Comment { get; set; } - - } - /// Input definition for test failover cleanup. - internal partial interface ITestFailoverCleanupInputInternal - - { - /// Test failover cleanup comments. - string Comment { get; set; } - /// Test failover cleanup input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties Property { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/TestFailoverInput.PowerShell.cs deleted file mode 100644 index 656a159aa133..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInput.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input definition for test failover. - [System.ComponentModel.TypeConverter(typeof(TestFailoverInputTypeConverter))] - public partial class TestFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ITestFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new TestFailoverInput(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.Migrate.Models.Api20220501.ITestFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new TestFailoverInput(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.Migrate.Models.Api20220501.ITestFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal TestFailoverInput(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.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("NetworkType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).NetworkType, global::System.Convert.ToString); - } - if (content.Contains("NetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).NetworkId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).ProviderSpecificDetailInstanceType, 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 TestFailoverInput(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.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("NetworkType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).NetworkType, global::System.Convert.ToString); - } - if (content.Contains("NetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).NetworkId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Input definition for test failover. - [System.ComponentModel.TypeConverter(typeof(TestFailoverInputTypeConverter))] - public partial interface ITestFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInput.cs b/src/Migrate/generated/api/Models/Api20220501/TestFailoverInput.cs deleted file mode 100644 index 2219da049486..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInput.cs +++ /dev/null @@ -1,107 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input definition for test failover. - public partial class TestFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal - { - - /// Test failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FailoverDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)Property).FailoverDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)Property).FailoverDirection = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// The id of the network to be used for test failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string NetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)Property).NetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)Property).NetworkId = value ?? null; } - - /// Network type to be used for test failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string NetworkType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)Property).NetworkType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)Property).NetworkType = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputProperties _property; - - /// Test failover input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverInputProperties()); set => this._property = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// Creates an new instance. - public TestFailoverInput() - { - - } - } - /// Input definition for test failover. - public partial interface ITestFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Test failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Test failover direction.", - SerializedName = @"failoverDirection", - PossibleTypes = new [] { typeof(string) })] - string FailoverDirection { get; set; } - /// The id of the network to be used for test failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The id of the network to be used for test failover.", - SerializedName = @"networkId", - PossibleTypes = new [] { typeof(string) })] - string NetworkId { get; set; } - /// Network type to be used for test failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Network type to be used for test failover.", - SerializedName = @"networkType", - PossibleTypes = new [] { typeof(string) })] - string NetworkType { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - - } - /// Input definition for test failover. - internal partial interface ITestFailoverInputInternal - - { - /// Test failover direction. - string FailoverDirection { get; set; } - /// The id of the network to be used for test failover. - string NetworkId { get; set; } - /// Network type to be used for test failover. - string NetworkType { get; set; } - /// Test failover input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputProperties Property { get; set; } - /// Provider specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/TestFailoverInputProperties.PowerShell.cs deleted file mode 100644 index f38db3ffc70b..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInputProperties.PowerShell.cs +++ /dev/null @@ -1,178 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input definition for test failover input properties. - [System.ComponentModel.TypeConverter(typeof(TestFailoverInputPropertiesTypeConverter))] - public partial class TestFailoverInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ITestFailoverInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new TestFailoverInputProperties(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.Migrate.Models.Api20220501.ITestFailoverInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new TestFailoverInputProperties(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.Migrate.Models.Api20220501.ITestFailoverInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal TestFailoverInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("NetworkType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).NetworkType, global::System.Convert.ToString); - } - if (content.Contains("NetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).NetworkId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 TestFailoverInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("NetworkType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).NetworkType, global::System.Convert.ToString); - } - if (content.Contains("NetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).NetworkId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Input definition for test failover input properties. - [System.ComponentModel.TypeConverter(typeof(TestFailoverInputPropertiesTypeConverter))] - public partial interface ITestFailoverInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverJobDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/TestFailoverJobDetails.PowerShell.cs deleted file mode 100644 index abc887c154db..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverJobDetails.PowerShell.cs +++ /dev/null @@ -1,200 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class represents the details for a test failover job. - [System.ComponentModel.TypeConverter(typeof(TestFailoverJobDetailsTypeConverter))] - public partial class TestFailoverJobDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ITestFailoverJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new TestFailoverJobDetails(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.Migrate.Models.Api20220501.ITestFailoverJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new TestFailoverJobDetails(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.Migrate.Models.Api20220501.ITestFailoverJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal TestFailoverJobDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TestFailoverStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).TestFailoverStatus = (string) content.GetValueForProperty("TestFailoverStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).TestFailoverStatus, global::System.Convert.ToString); - } - if (content.Contains("Comment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).Comment, global::System.Convert.ToString); - } - if (content.Contains("NetworkName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).NetworkName = (string) content.GetValueForProperty("NetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).NetworkName, global::System.Convert.ToString); - } - if (content.Contains("NetworkFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).NetworkFriendlyName = (string) content.GetValueForProperty("NetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).NetworkFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("NetworkType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).NetworkType, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).ProtectedItemDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails[]) content.GetValueForProperty("ProtectedItemDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).ProtectedItemDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverReplicationProtectedItemDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal TestFailoverJobDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TestFailoverStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).TestFailoverStatus = (string) content.GetValueForProperty("TestFailoverStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).TestFailoverStatus, global::System.Convert.ToString); - } - if (content.Contains("Comment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).Comment, global::System.Convert.ToString); - } - if (content.Contains("NetworkName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).NetworkName = (string) content.GetValueForProperty("NetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).NetworkName, global::System.Convert.ToString); - } - if (content.Contains("NetworkFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).NetworkFriendlyName = (string) content.GetValueForProperty("NetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).NetworkFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("NetworkType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).NetworkType, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).ProtectedItemDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails[]) content.GetValueForProperty("ProtectedItemDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal)this).ProtectedItemDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverReplicationProtectedItemDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("AffectedObjectDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// This class represents the details for a test failover job. - [System.ComponentModel.TypeConverter(typeof(TestFailoverJobDetailsTypeConverter))] - public partial interface ITestFailoverJobDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInput.cs b/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInput.cs deleted file mode 100644 index 3eae82f124c3..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input for test migrate cleanup. - public partial class TestMigrateCleanupInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputInternal - { - - /// Test migrate cleanup comments. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Comment { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputPropertiesInternal)Property).Comment; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputPropertiesInternal)Property).Comment = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateCleanupInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties _property; - - /// Test migrate cleanup input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateCleanupInputProperties()); set => this._property = value; } - - /// Creates an new instance. - public TestMigrateCleanupInput() - { - - } - } - /// Input for test migrate cleanup. - public partial interface ITestMigrateCleanupInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Test migrate cleanup comments. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Test migrate cleanup comments.", - SerializedName = @"comments", - PossibleTypes = new [] { typeof(string) })] - string Comment { get; set; } - - } - /// Input for test migrate cleanup. - internal partial interface ITestMigrateCleanupInputInternal - - { - /// Test migrate cleanup comments. - string Comment { get; set; } - /// Test migrate cleanup input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties Property { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/TestMigrateInput.PowerShell.cs deleted file mode 100644 index fa7179b8ae9a..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInput.PowerShell.cs +++ /dev/null @@ -1,152 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input for test migrate. - [System.ComponentModel.TypeConverter(typeof(TestMigrateInputTypeConverter))] - public partial class TestMigrateInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.ITestMigrateInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new TestMigrateInput(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.Migrate.Models.Api20220501.ITestMigrateInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new TestMigrateInput(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.Migrate.Models.Api20220501.ITestMigrateInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal TestMigrateInput(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.Migrate.Models.Api20220501.ITestMigrateInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateProviderSpecificInputTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal TestMigrateInput(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.Migrate.Models.Api20220501.ITestMigrateInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateProviderSpecificInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Input for test migrate. - [System.ComponentModel.TypeConverter(typeof(TestMigrateInputTypeConverter))] - public partial interface ITestMigrateInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInput.cs b/src/Migrate/generated/api/Models/Api20220501/TestMigrateInput.cs deleted file mode 100644 index 37901006b1ce..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input for test migrate. - public partial class TestMigrateInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputProperties _property; - - /// Test migrate input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateInputProperties()); set => this._property = value; } - - /// The provider specific details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputPropertiesInternal)Property).ProviderSpecificDetail = value ; } - - /// Creates an new instance. - public TestMigrateInput() - { - - } - } - /// Input for test migrate. - public partial interface ITestMigrateInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The provider specific details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The provider specific details.", - SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } - - } - /// Input for test migrate. - internal partial interface ITestMigrateInputInternal - - { - /// Test migrate input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputProperties Property { get; set; } - /// The provider specific details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInput.PowerShell.cs deleted file mode 100644 index b87824805e86..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInput.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input definition for unplanned failover. - [System.ComponentModel.TypeConverter(typeof(UnplannedFailoverInputTypeConverter))] - public partial class UnplannedFailoverInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUnplannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UnplannedFailoverInput(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.Migrate.Models.Api20220501.IUnplannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UnplannedFailoverInput(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.Migrate.Models.Api20220501.IUnplannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UnplannedFailoverInput(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.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("SourceSiteOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).SourceSiteOperation = (string) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).SourceSiteOperation, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType, 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 UnplannedFailoverInput(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.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("SourceSiteOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).SourceSiteOperation = (string) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).SourceSiteOperation, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Input definition for unplanned failover. - [System.ComponentModel.TypeConverter(typeof(UnplannedFailoverInputTypeConverter))] - public partial interface IUnplannedFailoverInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInput.cs b/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInput.cs deleted file mode 100644 index 36642cb50569..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInput.cs +++ /dev/null @@ -1,93 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input definition for unplanned failover. - public partial class UnplannedFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal - { - - /// Failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FailoverDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)Property).FailoverDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)Property).FailoverDirection = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties _property; - - /// Unplanned failover input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverInputProperties()); set => this._property = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// Source site operations status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SourceSiteOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)Property).SourceSiteOperation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)Property).SourceSiteOperation = value ?? null; } - - /// Creates an new instance. - public UnplannedFailoverInput() - { - - } - } - /// Input definition for unplanned failover. - public partial interface IUnplannedFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// Failover direction. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Failover direction.", - SerializedName = @"failoverDirection", - PossibleTypes = new [] { typeof(string) })] - string FailoverDirection { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - /// Source site operations status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Source site operations status.", - SerializedName = @"sourceSiteOperations", - PossibleTypes = new [] { typeof(string) })] - string SourceSiteOperation { get; set; } - - } - /// Input definition for unplanned failover. - internal partial interface IUnplannedFailoverInputInternal - - { - /// Failover direction. - string FailoverDirection { get; set; } - /// Unplanned failover input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties Property { get; set; } - /// Provider specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - /// Source site operations status. - string SourceSiteOperation { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInputProperties.PowerShell.cs deleted file mode 100644 index 0d1fc60aad3f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInputProperties.PowerShell.cs +++ /dev/null @@ -1,170 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input definition for unplanned failover input properties. - [System.ComponentModel.TypeConverter(typeof(UnplannedFailoverInputPropertiesTypeConverter))] - public partial class UnplannedFailoverInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UnplannedFailoverInputProperties(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.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UnplannedFailoverInputProperties(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.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UnplannedFailoverInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("SourceSiteOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation = (string) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 UnplannedFailoverInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("FailoverDirection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); - } - if (content.Contains("SourceSiteOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation = (string) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Input definition for unplanned failover input properties. - [System.ComponentModel.TypeConverter(typeof(UnplannedFailoverInputPropertiesTypeConverter))] - public partial interface IUnplannedFailoverInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInput.PowerShell.cs deleted file mode 100644 index d2d115040348..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInput.PowerShell.cs +++ /dev/null @@ -1,173 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Update appliance for replication protected item input. - [System.ComponentModel.TypeConverter(typeof(UpdateApplianceForReplicationProtectedItemInputTypeConverter))] - public partial class UpdateApplianceForReplicationProtectedItemInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UpdateApplianceForReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UpdateApplianceForReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UpdateApplianceForReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("TargetApplianceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).TargetApplianceId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType, 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 UpdateApplianceForReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("TargetApplianceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).TargetApplianceId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Update appliance for replication protected item input. - [System.ComponentModel.TypeConverter(typeof(UpdateApplianceForReplicationProtectedItemInputTypeConverter))] - public partial interface IUpdateApplianceForReplicationProtectedItemInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInput.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInput.cs deleted file mode 100644 index 962bba73757b..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInput.cs +++ /dev/null @@ -1,81 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Update appliance for replication protected item input. - public partial class UpdateApplianceForReplicationProtectedItemInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties _property; - - /// Update appliance replication protected item properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemInputProperties()); set => this._property = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ; } - - /// The target appliance Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string TargetApplianceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)Property).TargetApplianceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)Property).TargetApplianceId = value ; } - - /// - /// Creates an new instance. - /// - public UpdateApplianceForReplicationProtectedItemInput() - { - - } - } - /// Update appliance for replication protected item input. - public partial interface IUpdateApplianceForReplicationProtectedItemInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - /// The target appliance Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The target appliance Id.", - SerializedName = @"targetApplianceId", - PossibleTypes = new [] { typeof(string) })] - string TargetApplianceId { get; set; } - - } - /// Update appliance for replication protected item input. - internal partial interface IUpdateApplianceForReplicationProtectedItemInputInternal - - { - /// Update appliance replication protected item properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties Property { get; set; } - /// The provider specific input to update replication protected item. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - /// The target appliance Id. - string TargetApplianceId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInputProperties.PowerShell.cs deleted file mode 100644 index 7ae78502486f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInputProperties.PowerShell.cs +++ /dev/null @@ -1,165 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Update appliance for protected item input properties. - [System.ComponentModel.TypeConverter(typeof(UpdateApplianceForReplicationProtectedItemInputPropertiesTypeConverter))] - public partial class UpdateApplianceForReplicationProtectedItemInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UpdateApplianceForReplicationProtectedItemInputProperties(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.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UpdateApplianceForReplicationProtectedItemInputProperties(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.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UpdateApplianceForReplicationProtectedItemInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("TargetApplianceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).TargetApplianceId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 UpdateApplianceForReplicationProtectedItemInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemProviderSpecificInputTypeConverter.ConvertFrom); - } - if (content.Contains("TargetApplianceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).TargetApplianceId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Update appliance for protected item input properties. - [System.ComponentModel.TypeConverter(typeof(UpdateApplianceForReplicationProtectedItemInputPropertiesTypeConverter))] - public partial interface IUpdateApplianceForReplicationProtectedItemInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInputProperties.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInputProperties.cs deleted file mode 100644 index 6d1e4e3f4047..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInputProperties.cs +++ /dev/null @@ -1,79 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Update appliance for protected item input properties. - public partial class UpdateApplianceForReplicationProtectedItemInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal - { - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput _providerSpecificDetail; - - /// The provider specific input to update replication protected item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemProviderSpecificInput()); set => this._providerSpecificDetail = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ; } - - /// Backing field for property. - private string _targetApplianceId; - - /// The target appliance Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetApplianceId { get => this._targetApplianceId; set => this._targetApplianceId = value; } - - /// - /// Creates an new instance. - /// - public UpdateApplianceForReplicationProtectedItemInputProperties() - { - - } - } - /// Update appliance for protected item input properties. - public partial interface IUpdateApplianceForReplicationProtectedItemInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - /// The target appliance Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The target appliance Id.", - SerializedName = @"targetApplianceId", - PossibleTypes = new [] { typeof(string) })] - string TargetApplianceId { get; set; } - - } - /// Update appliance for protected item input properties. - internal partial interface IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal - - { - /// The provider specific input to update replication protected item. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - /// The target appliance Id. - string TargetApplianceId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInput.PowerShell.cs deleted file mode 100644 index 763deb05ccd8..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInput.PowerShell.cs +++ /dev/null @@ -1,152 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Update migration item input. - [System.ComponentModel.TypeConverter(typeof(UpdateMigrationItemInputTypeConverter))] - public partial class UpdateMigrationItemInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUpdateMigrationItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UpdateMigrationItemInput(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.Migrate.Models.Api20220501.IUpdateMigrationItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UpdateMigrationItemInput(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.Migrate.Models.Api20220501.IUpdateMigrationItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UpdateMigrationItemInput(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.Migrate.Models.Api20220501.IUpdateMigrationItemInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemProviderSpecificInputTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal UpdateMigrationItemInput(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.Migrate.Models.Api20220501.IUpdateMigrationItemInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemProviderSpecificInputTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - } - /// Update migration item input. - [System.ComponentModel.TypeConverter(typeof(UpdateMigrationItemInputTypeConverter))] - public partial interface IUpdateMigrationItemInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInput.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInput.cs deleted file mode 100644 index 9c71e992fe92..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Update migration item input. - public partial class UpdateMigrationItemInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties _property; - - /// Update migration item input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemInputProperties()); set => this._property = value; } - - /// The provider specific input to update migration item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* model class */; } - - /// Creates an new instance. - public UpdateMigrationItemInput() - { - - } - } - /// Update migration item input. - public partial interface IUpdateMigrationItemInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The provider specific input to update migration item. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The provider specific input to update migration item.", - SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput ProviderSpecificDetail { get; set; } - - } - /// Update migration item input. - internal partial interface IUpdateMigrationItemInputInternal - - { - /// Update migration item input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties Property { get; set; } - /// The provider specific input to update migration item. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput ProviderSpecificDetail { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequest.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequest.cs deleted file mode 100644 index c1faad0b4589..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequest.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Request to update the mobility service on a protected item. - public partial class UpdateMobilityServiceRequest : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequest, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMobilityServiceRequestProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties _property; - - /// The properties of the update mobility service request. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMobilityServiceRequestProperties()); set => this._property = value; } - - /// The CS run as account Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RunAsAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestPropertiesInternal)Property).RunAsAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestPropertiesInternal)Property).RunAsAccountId = value ?? null; } - - /// Creates an new instance. - public UpdateMobilityServiceRequest() - { - - } - } - /// Request to update the mobility service on a protected item. - public partial interface IUpdateMobilityServiceRequest : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The CS run as account Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The CS run as account Id.", - SerializedName = @"runAsAccountId", - PossibleTypes = new [] { typeof(string) })] - string RunAsAccountId { get; set; } - - } - /// Request to update the mobility service on a protected item. - internal partial interface IUpdateMobilityServiceRequestInternal - - { - /// The properties of the update mobility service request. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties Property { get; set; } - /// The CS run as account Id. - string RunAsAccountId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInput.PowerShell.cs deleted file mode 100644 index 340b5820e92c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInput.PowerShell.cs +++ /dev/null @@ -1,176 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Update network mapping input. - [System.ComponentModel.TypeConverter(typeof(UpdateNetworkMappingInputTypeConverter))] - public partial class UpdateNetworkMappingInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUpdateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UpdateNetworkMappingInput(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.Migrate.Models.Api20220501.IUpdateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UpdateNetworkMappingInput(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.Migrate.Models.Api20220501.IUpdateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UpdateNetworkMappingInput(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.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateNetworkMappingInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FabricSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).RecoveryFabricName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).RecoveryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType, 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 UpdateNetworkMappingInput(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.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateNetworkMappingInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FabricSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).RecoveryFabricName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).RecoveryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Update network mapping input. - [System.ComponentModel.TypeConverter(typeof(UpdateNetworkMappingInputTypeConverter))] - public partial interface IUpdateNetworkMappingInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInput.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInput.cs deleted file mode 100644 index 0d775e0ed73f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInput.cs +++ /dev/null @@ -1,93 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Update network mapping input. - public partial class UpdateNetworkMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal - { - - /// The instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetailInstanceType = value ?? null; } - - /// Internal Acessors for FabricSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal.FabricSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetail = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateNetworkMappingInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties _property; - - /// The input properties needed to update network mapping. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateNetworkMappingInputProperties()); set => this._property = value; } - - /// Recovery fabric name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryFabricName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)Property).RecoveryFabricName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)Property).RecoveryFabricName = value ?? null; } - - /// Recovery network Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)Property).RecoveryNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)Property).RecoveryNetworkId = value ?? null; } - - /// Creates an new instance. - public UpdateNetworkMappingInput() - { - - } - } - /// Update network mapping input. - public partial interface IUpdateNetworkMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The instance type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string FabricSpecificDetailInstanceType { get; set; } - /// Recovery fabric name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Recovery fabric name.", - SerializedName = @"recoveryFabricName", - PossibleTypes = new [] { typeof(string) })] - string RecoveryFabricName { get; set; } - /// Recovery network Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Recovery network Id.", - SerializedName = @"recoveryNetworkId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryNetworkId { get; set; } - - } - /// Update network mapping input. - internal partial interface IUpdateNetworkMappingInputInternal - - { - /// Fabrics specific input network Id. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput FabricSpecificDetail { get; set; } - /// The instance type. - string FabricSpecificDetailInstanceType { get; set; } - /// The input properties needed to update network mapping. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties Property { get; set; } - /// Recovery fabric name. - string RecoveryFabricName { get; set; } - /// Recovery network Id. - string RecoveryNetworkId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInputProperties.PowerShell.cs deleted file mode 100644 index ba229d23eb22..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInputProperties.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Common input details for network mapping operation. - [System.ComponentModel.TypeConverter(typeof(UpdateNetworkMappingInputPropertiesTypeConverter))] - public partial class UpdateNetworkMappingInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UpdateNetworkMappingInputProperties(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.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UpdateNetworkMappingInputProperties(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.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UpdateNetworkMappingInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FabricSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType, 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 UpdateNetworkMappingInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FabricSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryFabricName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId, global::System.Convert.ToString); - } - if (content.Contains("FabricSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Common input details for network mapping operation. - [System.ComponentModel.TypeConverter(typeof(UpdateNetworkMappingInputPropertiesTypeConverter))] - public partial interface IUpdateNetworkMappingInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInput.PowerShell.cs deleted file mode 100644 index 8b8b386b9b1d..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInput.PowerShell.cs +++ /dev/null @@ -1,152 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Update policy input. - [System.ComponentModel.TypeConverter(typeof(UpdatePolicyInputTypeConverter))] - public partial class UpdatePolicyInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUpdatePolicyInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UpdatePolicyInput(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.Migrate.Models.Api20220501.IUpdatePolicyInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UpdatePolicyInput(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.Migrate.Models.Api20220501.IUpdatePolicyInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UpdatePolicyInput(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.Migrate.Models.Api20220501.IUpdatePolicyInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdatePolicyInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ReplicationProviderSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputInternal)this).ReplicationProviderSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput) content.GetValueForProperty("ReplicationProviderSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputInternal)this).ReplicationProviderSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInputTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal UpdatePolicyInput(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.Migrate.Models.Api20220501.IUpdatePolicyInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdatePolicyInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ReplicationProviderSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputInternal)this).ReplicationProviderSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput) content.GetValueForProperty("ReplicationProviderSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputInternal)this).ReplicationProviderSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInputTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - } - /// Update policy input. - [System.ComponentModel.TypeConverter(typeof(UpdatePolicyInputTypeConverter))] - public partial interface IUpdatePolicyInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInput.cs b/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInput.cs deleted file mode 100644 index d2c07db81578..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Update policy input. - public partial class UpdatePolicyInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdatePolicyInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputProperties _property; - - /// The ReplicationProviderSettings. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdatePolicyInputProperties()); set => this._property = value; } - - /// The ReplicationProviderSettings. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput ReplicationProviderSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputPropertiesInternal)Property).ReplicationProviderSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputPropertiesInternal)Property).ReplicationProviderSetting = value ?? null /* model class */; } - - /// Creates an new instance. - public UpdatePolicyInput() - { - - } - } - /// Update policy input. - public partial interface IUpdatePolicyInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The ReplicationProviderSettings. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ReplicationProviderSettings.", - SerializedName = @"replicationProviderSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput ReplicationProviderSetting { get; set; } - - } - /// Update policy input. - internal partial interface IUpdatePolicyInputInternal - - { - /// The ReplicationProviderSettings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputProperties Property { get; set; } - /// The ReplicationProviderSettings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput ReplicationProviderSetting { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInput.PowerShell.cs deleted file mode 100644 index 1a72f04f399f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInput.PowerShell.cs +++ /dev/null @@ -1,165 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Container pairing update input. - [System.ComponentModel.TypeConverter(typeof(UpdateProtectionContainerMappingInputTypeConverter))] - public partial class UpdateProtectionContainerMappingInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UpdateProtectionContainerMappingInput(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.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UpdateProtectionContainerMappingInput(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.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UpdateProtectionContainerMappingInput(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.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateProtectionContainerMappingInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificUpdateContainerMappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInputInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType, 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 UpdateProtectionContainerMappingInput(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.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateProtectionContainerMappingInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificUpdateContainerMappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInputInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Container pairing update input. - [System.ComponentModel.TypeConverter(typeof(UpdateProtectionContainerMappingInputTypeConverter))] - public partial interface IUpdateProtectionContainerMappingInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInput.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInput.cs deleted file mode 100644 index 3083779e5c46..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInput.cs +++ /dev/null @@ -1,65 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Container pairing update input. - public partial class UpdateProtectionContainerMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateProtectionContainerMappingInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputInternal.ProviderSpecificInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInput = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties _property; - - /// Update protection container mapping input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateProtectionContainerMappingInputProperties()); set => this._property = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificInputInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInputInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInputInstanceType = value ?? null; } - - /// Creates an new instance. - public UpdateProtectionContainerMappingInput() - { - - } - } - /// Container pairing update input. - public partial interface IUpdateProtectionContainerMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificInputInstanceType { get; set; } - - } - /// Container pairing update input. - internal partial interface IUpdateProtectionContainerMappingInputInternal - - { - /// Update protection container mapping input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties Property { get; set; } - /// Provider specific input for updating protection container mapping. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput ProviderSpecificInput { get; set; } - /// The class type. - string ProviderSpecificInputInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInputProperties.PowerShell.cs deleted file mode 100644 index 28aee0960e79..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInputProperties.PowerShell.cs +++ /dev/null @@ -1,157 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Container pairing update input. - [System.ComponentModel.TypeConverter(typeof(UpdateProtectionContainerMappingInputPropertiesTypeConverter))] - public partial class UpdateProtectionContainerMappingInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UpdateProtectionContainerMappingInputProperties(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.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UpdateProtectionContainerMappingInputProperties(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.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UpdateProtectionContainerMappingInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificUpdateContainerMappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInputInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType, 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 UpdateProtectionContainerMappingInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificInput")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificUpdateContainerMappingInputTypeConverter.ConvertFrom); - } - if (content.Contains("ProviderSpecificInputInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Container pairing update input. - [System.ComponentModel.TypeConverter(typeof(UpdateProtectionContainerMappingInputPropertiesTypeConverter))] - public partial interface IUpdateProtectionContainerMappingInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInputProperties.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInputProperties.cs deleted file mode 100644 index db6fc2c92270..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInputProperties.cs +++ /dev/null @@ -1,62 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Container pairing update input. - public partial class UpdateProtectionContainerMappingInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputPropertiesInternal - { - - /// Internal Acessors for ProviderSpecificInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputPropertiesInternal.ProviderSpecificInput { get => (this._providerSpecificInput = this._providerSpecificInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificUpdateContainerMappingInput()); set { {_providerSpecificInput = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput _providerSpecificInput; - - /// Provider specific input for updating protection container mapping. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput ProviderSpecificInput { get => (this._providerSpecificInput = this._providerSpecificInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificUpdateContainerMappingInput()); set => this._providerSpecificInput = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificInputInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)ProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)ProviderSpecificInput).InstanceType = value ?? null; } - - /// - /// Creates an new instance. - /// - public UpdateProtectionContainerMappingInputProperties() - { - - } - } - /// Container pairing update input. - public partial interface IUpdateProtectionContainerMappingInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificInputInstanceType { get; set; } - - } - /// Container pairing update input. - internal partial interface IUpdateProtectionContainerMappingInputPropertiesInternal - - { - /// Provider specific input for updating protection container mapping. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput ProviderSpecificInput { get; set; } - /// The class type. - string ProviderSpecificInputInstanceType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInput.PowerShell.cs deleted file mode 100644 index e8530d882b36..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInput.PowerShell.cs +++ /dev/null @@ -1,152 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Update recovery plan input class. - [System.ComponentModel.TypeConverter(typeof(UpdateRecoveryPlanInputTypeConverter))] - public partial class UpdateRecoveryPlanInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUpdateRecoveryPlanInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UpdateRecoveryPlanInput(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.Migrate.Models.Api20220501.IUpdateRecoveryPlanInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UpdateRecoveryPlanInput(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.Migrate.Models.Api20220501.IUpdateRecoveryPlanInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UpdateRecoveryPlanInput(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.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateRecoveryPlanInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Group")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal UpdateRecoveryPlanInput(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.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateRecoveryPlanInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Group")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - } - /// Update recovery plan input class. - [System.ComponentModel.TypeConverter(typeof(UpdateRecoveryPlanInputTypeConverter))] - public partial interface IUpdateRecoveryPlanInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInput.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInput.cs deleted file mode 100644 index 470e467fbf77..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInput.cs +++ /dev/null @@ -1,60 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Update recovery plan input class. - public partial class UpdateRecoveryPlanInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputInternal - { - - /// The recovery plan groups. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputPropertiesInternal)Property).Group; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputPropertiesInternal)Property).Group = value ?? null /* arrayOf */; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateRecoveryPlanInputProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties _property; - - /// Recovery plan update properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateRecoveryPlanInputProperties()); set => this._property = value; } - - /// Creates an new instance. - public UpdateRecoveryPlanInput() - { - - } - } - /// Update recovery plan input class. - public partial interface IUpdateRecoveryPlanInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The recovery plan groups. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The recovery plan groups.", - SerializedName = @"groups", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get; set; } - - } - /// Update recovery plan input class. - internal partial interface IUpdateRecoveryPlanInputInternal - - { - /// The recovery plan groups. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get; set; } - /// Recovery plan update properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties Property { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInput.PowerShell.cs deleted file mode 100644 index ba147fc5f914..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInput.PowerShell.cs +++ /dev/null @@ -1,236 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Update replication protected item input. - [System.ComponentModel.TypeConverter(typeof(UpdateReplicationProtectedItemInputTypeConverter))] - public partial class UpdateReplicationProtectedItemInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UpdateReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UpdateReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UpdateReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); - } - if (content.Contains("SelectedRecoveryAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedTfoAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedSourceNicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).SelectedSourceNicId, global::System.Convert.ToString); - } - if (content.Contains("EnableRdpOnTargetOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType, 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 UpdateReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); - } - if (content.Contains("SelectedRecoveryAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedTfoAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedSourceNicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).SelectedSourceNicId, global::System.Convert.ToString); - } - if (content.Contains("EnableRdpOnTargetOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("RecoveryAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Update replication protected item input. - [System.ComponentModel.TypeConverter(typeof(UpdateReplicationProtectedItemInputTypeConverter))] - public partial interface IUpdateReplicationProtectedItemInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInput.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInput.cs deleted file mode 100644 index 3d6841e530f5..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInput.cs +++ /dev/null @@ -1,206 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Update replication protected item input. - public partial class UpdateReplicationProtectedItemInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal - { - - /// - /// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption - /// enum. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string EnableRdpOnTargetOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).EnableRdpOnTargetOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).EnableRdpOnTargetOption = value ?? null; } - - /// License type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).LicenseType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).LicenseType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType)""); } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemInputProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetail = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties _property; - - /// Update replication protected item properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemInputProperties()); set => this._property = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } - - /// The target availability set Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryAvailabilitySetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).RecoveryAvailabilitySetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).RecoveryAvailabilitySetId = value ?? null; } - - /// Target Azure VM name given by the user. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryAzureVMName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).RecoveryAzureVMName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).RecoveryAzureVMName = value ?? null; } - - /// Target Azure VM size. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryAzureVMSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).RecoveryAzureVMSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).RecoveryAzureVMSize = value ?? null; } - - /// Target Azure Network Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SelectedRecoveryAzureNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).SelectedRecoveryAzureNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).SelectedRecoveryAzureNetworkId = value ?? null; } - - /// - /// The selected source nic Id which will be used as the primary nic during failover. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SelectedSourceNicId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).SelectedSourceNicId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).SelectedSourceNicId = value ?? null; } - - /// The Azure Network Id for test failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SelectedTfoAzureNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).SelectedTfoAzureNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).SelectedTfoAzureNetworkId = value ?? null; } - - /// The list of VM nic details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails[] VMNic { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).VMNic; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).VMNic = value ?? null /* arrayOf */; } - - /// Creates an new instance. - public UpdateReplicationProtectedItemInput() - { - - } - } - /// Update replication protected item input. - public partial interface IUpdateReplicationProtectedItemInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// - /// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption - /// enum. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption enum.", - SerializedName = @"enableRdpOnTargetOption", - PossibleTypes = new [] { typeof(string) })] - string EnableRdpOnTargetOption { get; set; } - /// License type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"License type.", - SerializedName = @"licenseType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get; set; } - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The class type.", - SerializedName = @"instanceType", - PossibleTypes = new [] { typeof(string) })] - string ProviderSpecificDetailInstanceType { get; set; } - /// The target availability set Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target availability set Id.", - SerializedName = @"recoveryAvailabilitySetId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryAvailabilitySetId { get; set; } - /// Target Azure VM name given by the user. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Target Azure VM name given by the user.", - SerializedName = @"recoveryAzureVMName", - PossibleTypes = new [] { typeof(string) })] - string RecoveryAzureVMName { get; set; } - /// Target Azure VM size. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Target Azure VM size.", - SerializedName = @"recoveryAzureVMSize", - PossibleTypes = new [] { typeof(string) })] - string RecoveryAzureVMSize { get; set; } - /// Target Azure Network Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Target Azure Network Id.", - SerializedName = @"selectedRecoveryAzureNetworkId", - PossibleTypes = new [] { typeof(string) })] - string SelectedRecoveryAzureNetworkId { get; set; } - /// - /// The selected source nic Id which will be used as the primary nic during failover. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The selected source nic Id which will be used as the primary nic during failover.", - SerializedName = @"selectedSourceNicId", - PossibleTypes = new [] { typeof(string) })] - string SelectedSourceNicId { get; set; } - /// The Azure Network Id for test failover. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The Azure Network Id for test failover.", - SerializedName = @"selectedTfoAzureNetworkId", - PossibleTypes = new [] { typeof(string) })] - string SelectedTfoAzureNetworkId { get; set; } - /// The list of VM nic details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of VM nic details.", - SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails[] VMNic { get; set; } - - } - /// Update replication protected item input. - internal partial interface IUpdateReplicationProtectedItemInputInternal - - { - /// - /// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption - /// enum. - /// - string EnableRdpOnTargetOption { get; set; } - /// License type. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get; set; } - /// Update replication protected item properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties Property { get; set; } - /// The provider specific input to update replication protected item. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput ProviderSpecificDetail { get; set; } - /// The class type. - string ProviderSpecificDetailInstanceType { get; set; } - /// The target availability set Id. - string RecoveryAvailabilitySetId { get; set; } - /// Target Azure VM name given by the user. - string RecoveryAzureVMName { get; set; } - /// Target Azure VM size. - string RecoveryAzureVMSize { get; set; } - /// Target Azure Network Id. - string SelectedRecoveryAzureNetworkId { get; set; } - /// - /// The selected source nic Id which will be used as the primary nic during failover. - /// - string SelectedSourceNicId { get; set; } - /// The Azure Network Id for test failover. - string SelectedTfoAzureNetworkId { get; set; } - /// The list of VM nic details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails[] VMNic { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInputProperties.PowerShell.cs deleted file mode 100644 index fbce4d977ffd..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInputProperties.PowerShell.cs +++ /dev/null @@ -1,229 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Update protected item input properties. - [System.ComponentModel.TypeConverter(typeof(UpdateReplicationProtectedItemInputPropertiesTypeConverter))] - public partial class UpdateReplicationProtectedItemInputProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UpdateReplicationProtectedItemInputProperties(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.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UpdateReplicationProtectedItemInputProperties(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.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UpdateReplicationProtectedItemInputProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); - } - if (content.Contains("SelectedRecoveryAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedTfoAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedSourceNicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedSourceNicId, global::System.Convert.ToString); - } - if (content.Contains("EnableRdpOnTargetOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("RecoveryAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 UpdateReplicationProtectedItemInputProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProviderSpecificDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInputTypeConverter.ConvertFrom); - } - if (content.Contains("RecoveryAzureVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryAzureVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); - } - if (content.Contains("SelectedRecoveryAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedTfoAzureNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); - } - if (content.Contains("SelectedSourceNicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedSourceNicId, global::System.Convert.ToString); - } - if (content.Contains("EnableRdpOnTargetOption")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("RecoveryAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("ProviderSpecificDetailInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Update protected item input properties. - [System.ComponentModel.TypeConverter(typeof(UpdateReplicationProtectedItemInputPropertiesTypeConverter))] - public partial interface IUpdateReplicationProtectedItemInputProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequest.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequest.PowerShell.cs deleted file mode 100644 index 5c2a06f4b0e2..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequest.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input required to update vCenter. - [System.ComponentModel.TypeConverter(typeof(UpdateVCenterRequestTypeConverter))] - public partial class UpdateVCenterRequest - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUpdateVCenterRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UpdateVCenterRequest(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.Migrate.Models.Api20220501.IUpdateVCenterRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UpdateVCenterRequest(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.Migrate.Models.Api20220501.IUpdateVCenterRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UpdateVCenterRequest(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.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateVCenterRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("Port")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).Port, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).RunAsAccountId, 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 UpdateVCenterRequest(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.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateVCenterRequestPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("Port")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).Port, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Input required to update vCenter. - [System.ComponentModel.TypeConverter(typeof(UpdateVCenterRequestTypeConverter))] - public partial interface IUpdateVCenterRequest - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequest.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequest.cs deleted file mode 100644 index be374b2c63fc..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequest.cs +++ /dev/null @@ -1,116 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input required to update vCenter. - public partial class UpdateVCenterRequest : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequest, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal - { - - /// The friendly name of the vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)Property).FriendlyName = value ?? null; } - - /// The IP address of the vCenter to be discovered. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)Property).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)Property).IPAddress = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateVCenterRequestProperties()); set { {_property = value;} } } - - /// The port number for discovery. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Port { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)Property).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)Property).Port = value ?? null; } - - /// The process server Id from where the update can be orchestrated. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProcessServerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)Property).ProcessServerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)Property).ProcessServerId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties _property; - - /// The update VCenter Request Properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateVCenterRequestProperties()); set => this._property = value; } - - /// The CS account Id which has privileges to update the vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RunAsAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)Property).RunAsAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)Property).RunAsAccountId = value ?? null; } - - /// Creates an new instance. - public UpdateVCenterRequest() - { - - } - } - /// Input required to update vCenter. - public partial interface IUpdateVCenterRequest : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The friendly name of the vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The friendly name of the vCenter.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// The IP address of the vCenter to be discovered. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The IP address of the vCenter to be discovered.", - SerializedName = @"ipAddress", - PossibleTypes = new [] { typeof(string) })] - string IPAddress { get; set; } - /// The port number for discovery. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The port number for discovery.", - SerializedName = @"port", - PossibleTypes = new [] { typeof(string) })] - string Port { get; set; } - /// The process server Id from where the update can be orchestrated. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The process server Id from where the update can be orchestrated.", - SerializedName = @"processServerId", - PossibleTypes = new [] { typeof(string) })] - string ProcessServerId { get; set; } - /// The CS account Id which has privileges to update the vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The CS account Id which has privileges to update the vCenter.", - SerializedName = @"runAsAccountId", - PossibleTypes = new [] { typeof(string) })] - string RunAsAccountId { get; set; } - - } - /// Input required to update vCenter. - internal partial interface IUpdateVCenterRequestInternal - - { - /// The friendly name of the vCenter. - string FriendlyName { get; set; } - /// The IP address of the vCenter to be discovered. - string IPAddress { get; set; } - /// The port number for discovery. - string Port { get; set; } - /// The process server Id from where the update can be orchestrated. - string ProcessServerId { get; set; } - /// The update VCenter Request Properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties Property { get; set; } - /// The CS account Id which has privileges to update the vCenter. - string RunAsAccountId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequestProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequestProperties.PowerShell.cs deleted file mode 100644 index f6de64856b7b..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequestProperties.PowerShell.cs +++ /dev/null @@ -1,178 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// The properties of an update vCenter request. - [System.ComponentModel.TypeConverter(typeof(UpdateVCenterRequestPropertiesTypeConverter))] - public partial class UpdateVCenterRequestProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new UpdateVCenterRequestProperties(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.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new UpdateVCenterRequestProperties(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.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal UpdateVCenterRequestProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("Port")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).Port, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).RunAsAccountId, 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 UpdateVCenterRequestProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("Port")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).Port, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// The properties of an update vCenter request. - [System.ComponentModel.TypeConverter(typeof(UpdateVCenterRequestPropertiesTypeConverter))] - public partial interface IUpdateVCenterRequestProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VCenterAutoGenerated.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VCenterAutoGenerated.PowerShell.cs deleted file mode 100644 index 0a40774f71c0..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VCenterAutoGenerated.PowerShell.cs +++ /dev/null @@ -1,264 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// vCenter definition. - [System.ComponentModel.TypeConverter(typeof(VCenterAutoGeneratedTypeConverter))] - public partial class VCenterAutoGenerated - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVCenterAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VCenterAutoGenerated(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.Migrate.Models.Api20220501.IVCenterAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VCenterAutoGenerated(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.Migrate.Models.Api20220501.IVCenterAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VCenterAutoGenerated(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.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterPropertiesAutoGeneratedTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("InternalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).InternalId, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DiscoveryStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).DiscoveryStatus = (string) content.GetValueForProperty("DiscoveryStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).DiscoveryStatus, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("InfrastructureId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).InfrastructureId = (string) content.GetValueForProperty("InfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).InfrastructureId, global::System.Convert.ToString); - } - if (content.Contains("Port")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).Port, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("FabricArmResourceName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).FabricArmResourceName = (string) content.GetValueForProperty("FabricArmResourceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).FabricArmResourceName, global::System.Convert.ToString); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal VCenterAutoGenerated(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.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterPropertiesAutoGeneratedTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("InternalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).InternalId, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DiscoveryStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).DiscoveryStatus = (string) content.GetValueForProperty("DiscoveryStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).DiscoveryStatus, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("InfrastructureId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).InfrastructureId = (string) content.GetValueForProperty("InfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).InfrastructureId, global::System.Convert.ToString); - } - if (content.Contains("Port")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).Port, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("FabricArmResourceName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).FabricArmResourceName = (string) content.GetValueForProperty("FabricArmResourceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).FabricArmResourceName, global::System.Convert.ToString); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - } - /// vCenter definition. - [System.ComponentModel.TypeConverter(typeof(VCenterAutoGeneratedTypeConverter))] - public partial interface IVCenterAutoGenerated - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VCenterAutoGenerated.cs b/src/Migrate/generated/api/Models/Api20220501/VCenterAutoGenerated.cs deleted file mode 100644 index 2a6fc1174701..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VCenterAutoGenerated.cs +++ /dev/null @@ -1,244 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// vCenter definition. - public partial class VCenterAutoGenerated : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGenerated, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// The VCenter discovery status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiscoveryStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).DiscoveryStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).DiscoveryStatus = value ?? null; } - - /// The ARM resource name of the fabric containing this VCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricArmResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).FabricArmResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).FabricArmResourceName = value ?? null; } - - /// Friendly name of the vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).FriendlyName = value ?? null; } - - /// The health errors for this VCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).HealthError = value ?? null /* arrayOf */; } - - /// The IP address of the vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).IPAddress = value ?? null; } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// The infrastructure Id of vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InfrastructureId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).InfrastructureId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).InfrastructureId = value ?? null; } - - /// VCenter internal ID. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).InternalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).InternalId = value ?? null; } - - /// The time when the last heartbeat was received by vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? LastHeartbeat { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).LastHeartbeat; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).LastHeartbeat = value ?? default(global::System.DateTime); } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGeneratedInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterPropertiesAutoGenerated()); set { {_property = value;} } } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// The port number for discovery. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string Port { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).Port = value ?? null; } - - /// The process server Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProcessServerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).ProcessServerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).ProcessServerId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated _property; - - /// VCenter related data. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterPropertiesAutoGenerated()); set => this._property = value; } - - /// The account Id which has privileges to discover the vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RunAsAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).RunAsAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)Property).RunAsAccountId = value ?? null; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public VCenterAutoGenerated() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// vCenter definition. - public partial interface IVCenterAutoGenerated : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// The VCenter discovery status. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The VCenter discovery status.", - SerializedName = @"discoveryStatus", - PossibleTypes = new [] { typeof(string) })] - string DiscoveryStatus { get; set; } - /// The ARM resource name of the fabric containing this VCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ARM resource name of the fabric containing this VCenter.", - SerializedName = @"fabricArmResourceName", - PossibleTypes = new [] { typeof(string) })] - string FabricArmResourceName { get; set; } - /// Friendly name of the vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Friendly name of the vCenter.", - SerializedName = @"friendlyName", - PossibleTypes = new [] { typeof(string) })] - string FriendlyName { get; set; } - /// The health errors for this VCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The health errors for this VCenter.", - SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } - /// The IP address of the vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The IP address of the vCenter.", - SerializedName = @"ipAddress", - PossibleTypes = new [] { typeof(string) })] - string IPAddress { get; set; } - /// The infrastructure Id of vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The infrastructure Id of vCenter.", - SerializedName = @"infrastructureId", - PossibleTypes = new [] { typeof(string) })] - string InfrastructureId { get; set; } - /// VCenter internal ID. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"VCenter internal ID.", - SerializedName = @"internalId", - PossibleTypes = new [] { typeof(string) })] - string InternalId { get; set; } - /// The time when the last heartbeat was received by vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The time when the last heartbeat was received by vCenter.", - SerializedName = @"lastHeartbeat", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? LastHeartbeat { get; set; } - /// The port number for discovery. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The port number for discovery.", - SerializedName = @"port", - PossibleTypes = new [] { typeof(string) })] - string Port { get; set; } - /// The process server Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The process server Id.", - SerializedName = @"processServerId", - PossibleTypes = new [] { typeof(string) })] - string ProcessServerId { get; set; } - /// The account Id which has privileges to discover the vCenter. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The account Id which has privileges to discover the vCenter.", - SerializedName = @"runAsAccountId", - PossibleTypes = new [] { typeof(string) })] - string RunAsAccountId { get; set; } - - } - /// vCenter definition. - internal partial interface IVCenterAutoGeneratedInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The VCenter discovery status. - string DiscoveryStatus { get; set; } - /// The ARM resource name of the fabric containing this VCenter. - string FabricArmResourceName { get; set; } - /// Friendly name of the vCenter. - string FriendlyName { get; set; } - /// The health errors for this VCenter. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } - /// The IP address of the vCenter. - string IPAddress { get; set; } - /// The infrastructure Id of vCenter. - string InfrastructureId { get; set; } - /// VCenter internal ID. - string InternalId { get; set; } - /// The time when the last heartbeat was received by vCenter. - global::System.DateTime? LastHeartbeat { get; set; } - /// The port number for discovery. - string Port { get; set; } - /// The process server Id. - string ProcessServerId { get; set; } - /// VCenter related data. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated Property { get; set; } - /// The account Id which has privileges to discover the vCenter. - string RunAsAccountId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VCenterCollectionAutoGenerated.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VCenterCollectionAutoGenerated.PowerShell.cs deleted file mode 100644 index f27e989290b2..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VCenterCollectionAutoGenerated.PowerShell.cs +++ /dev/null @@ -1,154 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Collection of vCenter details. - [System.ComponentModel.TypeConverter(typeof(VCenterCollectionAutoGeneratedTypeConverter))] - public partial class VCenterCollectionAutoGenerated - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVCenterCollectionAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VCenterCollectionAutoGenerated(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.Migrate.Models.Api20220501.IVCenterCollectionAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VCenterCollectionAutoGenerated(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.Migrate.Models.Api20220501.IVCenterCollectionAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VCenterCollectionAutoGenerated(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterCollectionAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGenerated[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterCollectionAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterAutoGeneratedTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterCollectionAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterCollectionAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal VCenterCollectionAutoGenerated(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterCollectionAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGenerated[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterCollectionAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterAutoGeneratedTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterCollectionAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterCollectionAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Collection of vCenter details. - [System.ComponentModel.TypeConverter(typeof(VCenterCollectionAutoGeneratedTypeConverter))] - public partial interface IVCenterCollectionAutoGenerated - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VCenterPropertiesAutoGenerated.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VCenterPropertiesAutoGenerated.PowerShell.cs deleted file mode 100644 index eb63653ace87..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VCenterPropertiesAutoGenerated.PowerShell.cs +++ /dev/null @@ -1,226 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// vCenter properties. - [System.ComponentModel.TypeConverter(typeof(VCenterPropertiesAutoGeneratedTypeConverter))] - public partial class VCenterPropertiesAutoGenerated - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VCenterPropertiesAutoGenerated(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.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VCenterPropertiesAutoGenerated(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.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VCenterPropertiesAutoGenerated(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("InternalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).InternalId, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DiscoveryStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).DiscoveryStatus = (string) content.GetValueForProperty("DiscoveryStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).DiscoveryStatus, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("InfrastructureId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).InfrastructureId = (string) content.GetValueForProperty("InfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).InfrastructureId, global::System.Convert.ToString); - } - if (content.Contains("Port")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).Port, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("FabricArmResourceName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).FabricArmResourceName = (string) content.GetValueForProperty("FabricArmResourceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).FabricArmResourceName, global::System.Convert.ToString); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal VCenterPropertiesAutoGenerated(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).FriendlyName, global::System.Convert.ToString); - } - if (content.Contains("InternalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).InternalId, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DiscoveryStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).DiscoveryStatus = (string) content.GetValueForProperty("DiscoveryStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).DiscoveryStatus, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).ProcessServerId, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("InfrastructureId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).InfrastructureId = (string) content.GetValueForProperty("InfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).InfrastructureId, global::System.Convert.ToString); - } - if (content.Contains("Port")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).Port, global::System.Convert.ToString); - } - if (content.Contains("RunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).RunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("FabricArmResourceName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).FabricArmResourceName = (string) content.GetValueForProperty("FabricArmResourceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).FabricArmResourceName, global::System.Convert.ToString); - } - if (content.Contains("HealthError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - } - /// vCenter properties. - [System.ComponentModel.TypeConverter(typeof(VCenterPropertiesAutoGeneratedTypeConverter))] - public partial interface IVCenterPropertiesAutoGenerated - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMNicDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMNicDetails.PowerShell.cs deleted file mode 100644 index 37884774ad18..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMNicDetails.PowerShell.cs +++ /dev/null @@ -1,288 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Hyper V VM network details. - [System.ComponentModel.TypeConverter(typeof(VMNicDetailsTypeConverter))] - public partial class VMNicDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMNicDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMNicDetails(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.Migrate.Models.Api20220501.IVMNicDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMNicDetails(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.Migrate.Models.Api20220501.IVMNicDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMNicDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).NicId, global::System.Convert.ToString); - } - if (content.Contains("ReplicaNicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).ReplicaNicId = (string) content.GetValueForProperty("ReplicaNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).ReplicaNicId, global::System.Convert.ToString); - } - if (content.Contains("SourceNicArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).SourceNicArmId = (string) content.GetValueForProperty("SourceNicArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).SourceNicArmId, global::System.Convert.ToString); - } - if (content.Contains("VMNetworkName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).VMNetworkName = (string) content.GetValueForProperty("VMNetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).VMNetworkName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVMNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryVMNetworkId = (string) content.GetValueForProperty("RecoveryVMNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryVMNetworkId, global::System.Convert.ToString); - } - if (content.Contains("IPConfig")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).IPConfig = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetails[]) content.GetValueForProperty("IPConfig",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).IPConfig, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPConfigDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("SelectionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).SelectionType = (string) content.GetValueForProperty("SelectionType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).SelectionType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkSecurityGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryNetworkSecurityGroupId = (string) content.GetValueForProperty("RecoveryNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryNetworkSecurityGroupId, global::System.Convert.ToString); - } - if (content.Contains("EnableAcceleratedNetworkingOnRecovery")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnRecovery",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TfoVMNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoVMNetworkId = (string) content.GetValueForProperty("TfoVMNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoVMNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TfoNetworkSecurityGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoNetworkSecurityGroupId = (string) content.GetValueForProperty("TfoNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoNetworkSecurityGroupId, global::System.Convert.ToString); - } - if (content.Contains("EnableAcceleratedNetworkingOnTfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnTfo = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnTfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnTfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RecoveryNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryNicName = (string) content.GetValueForProperty("RecoveryNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryNicName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNicResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryNicResourceGroupName = (string) content.GetValueForProperty("RecoveryNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryNicResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("ReuseExistingNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).ReuseExistingNic = (bool?) content.GetValueForProperty("ReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).ReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TfoRecoveryNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoRecoveryNicName = (string) content.GetValueForProperty("TfoRecoveryNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoRecoveryNicName, global::System.Convert.ToString); - } - if (content.Contains("TfoRecoveryNicResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoRecoveryNicResourceGroupName = (string) content.GetValueForProperty("TfoRecoveryNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoRecoveryNicResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("TfoReuseExistingNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoReuseExistingNic = (bool?) content.GetValueForProperty("TfoReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TargetNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TargetNicName, 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 VMNicDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).NicId, global::System.Convert.ToString); - } - if (content.Contains("ReplicaNicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).ReplicaNicId = (string) content.GetValueForProperty("ReplicaNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).ReplicaNicId, global::System.Convert.ToString); - } - if (content.Contains("SourceNicArmId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).SourceNicArmId = (string) content.GetValueForProperty("SourceNicArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).SourceNicArmId, global::System.Convert.ToString); - } - if (content.Contains("VMNetworkName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).VMNetworkName = (string) content.GetValueForProperty("VMNetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).VMNetworkName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryVMNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryVMNetworkId = (string) content.GetValueForProperty("RecoveryVMNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryVMNetworkId, global::System.Convert.ToString); - } - if (content.Contains("IPConfig")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).IPConfig = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetails[]) content.GetValueForProperty("IPConfig",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).IPConfig, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPConfigDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("SelectionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).SelectionType = (string) content.GetValueForProperty("SelectionType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).SelectionType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkSecurityGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryNetworkSecurityGroupId = (string) content.GetValueForProperty("RecoveryNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryNetworkSecurityGroupId, global::System.Convert.ToString); - } - if (content.Contains("EnableAcceleratedNetworkingOnRecovery")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnRecovery",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TfoVMNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoVMNetworkId = (string) content.GetValueForProperty("TfoVMNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoVMNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TfoNetworkSecurityGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoNetworkSecurityGroupId = (string) content.GetValueForProperty("TfoNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoNetworkSecurityGroupId, global::System.Convert.ToString); - } - if (content.Contains("EnableAcceleratedNetworkingOnTfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnTfo = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnTfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnTfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RecoveryNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryNicName = (string) content.GetValueForProperty("RecoveryNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryNicName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNicResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryNicResourceGroupName = (string) content.GetValueForProperty("RecoveryNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).RecoveryNicResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("ReuseExistingNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).ReuseExistingNic = (bool?) content.GetValueForProperty("ReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).ReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TfoRecoveryNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoRecoveryNicName = (string) content.GetValueForProperty("TfoRecoveryNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoRecoveryNicName, global::System.Convert.ToString); - } - if (content.Contains("TfoRecoveryNicResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoRecoveryNicResourceGroupName = (string) content.GetValueForProperty("TfoRecoveryNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoRecoveryNicResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("TfoReuseExistingNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoReuseExistingNic = (bool?) content.GetValueForProperty("TfoReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TfoReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TargetNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal)this).TargetNicName, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Hyper V VM network details. - [System.ComponentModel.TypeConverter(typeof(VMNicDetailsTypeConverter))] - public partial interface IVMNicDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMNicInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMNicInputDetails.PowerShell.cs deleted file mode 100644 index dc5f093c94e3..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMNicInputDetails.PowerShell.cs +++ /dev/null @@ -1,248 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Hyper V VM network input details. - [System.ComponentModel.TypeConverter(typeof(VMNicInputDetailsTypeConverter))] - public partial class VMNicInputDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMNicInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMNicInputDetails(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.Migrate.Models.Api20220501.IVMNicInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMNicInputDetails(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.Migrate.Models.Api20220501.IVMNicInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMNicInputDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).NicId, global::System.Convert.ToString); - } - if (content.Contains("IPConfig")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).IPConfig = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetails[]) content.GetValueForProperty("IPConfig",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).IPConfig, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPConfigInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("SelectionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).SelectionType = (string) content.GetValueForProperty("SelectionType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).SelectionType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkSecurityGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).RecoveryNetworkSecurityGroupId = (string) content.GetValueForProperty("RecoveryNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).RecoveryNetworkSecurityGroupId, global::System.Convert.ToString); - } - if (content.Contains("EnableAcceleratedNetworkingOnRecovery")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnRecovery",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TfoNetworkSecurityGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoNetworkSecurityGroupId = (string) content.GetValueForProperty("TfoNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoNetworkSecurityGroupId, global::System.Convert.ToString); - } - if (content.Contains("EnableAcceleratedNetworkingOnTfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnTfo = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnTfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnTfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RecoveryNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).RecoveryNicName = (string) content.GetValueForProperty("RecoveryNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).RecoveryNicName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNicResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).RecoveryNicResourceGroupName = (string) content.GetValueForProperty("RecoveryNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).RecoveryNicResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("ReuseExistingNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).ReuseExistingNic = (bool?) content.GetValueForProperty("ReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).ReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TfoNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoNicName = (string) content.GetValueForProperty("TfoNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoNicName, global::System.Convert.ToString); - } - if (content.Contains("TfoNicResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoNicResourceGroupName = (string) content.GetValueForProperty("TfoNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoNicResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("TfoReuseExistingNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoReuseExistingNic = (bool?) content.GetValueForProperty("TfoReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TargetNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TargetNicName, 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 VMNicInputDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).NicId, global::System.Convert.ToString); - } - if (content.Contains("IPConfig")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).IPConfig = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetails[]) content.GetValueForProperty("IPConfig",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).IPConfig, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPConfigInputDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("SelectionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).SelectionType = (string) content.GetValueForProperty("SelectionType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).SelectionType, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNetworkSecurityGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).RecoveryNetworkSecurityGroupId = (string) content.GetValueForProperty("RecoveryNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).RecoveryNetworkSecurityGroupId, global::System.Convert.ToString); - } - if (content.Contains("EnableAcceleratedNetworkingOnRecovery")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnRecovery",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TfoNetworkSecurityGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoNetworkSecurityGroupId = (string) content.GetValueForProperty("TfoNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoNetworkSecurityGroupId, global::System.Convert.ToString); - } - if (content.Contains("EnableAcceleratedNetworkingOnTfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnTfo = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnTfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnTfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RecoveryNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).RecoveryNicName = (string) content.GetValueForProperty("RecoveryNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).RecoveryNicName, global::System.Convert.ToString); - } - if (content.Contains("RecoveryNicResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).RecoveryNicResourceGroupName = (string) content.GetValueForProperty("RecoveryNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).RecoveryNicResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("ReuseExistingNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).ReuseExistingNic = (bool?) content.GetValueForProperty("ReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).ReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TfoNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoNicName = (string) content.GetValueForProperty("TfoNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoNicName, global::System.Convert.ToString); - } - if (content.Contains("TfoNicResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoNicResourceGroupName = (string) content.GetValueForProperty("TfoNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoNicResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("TfoReuseExistingNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoReuseExistingNic = (bool?) content.GetValueForProperty("TfoReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TfoReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TargetNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal)this).TargetNicName, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Hyper V VM network input details. - [System.ComponentModel.TypeConverter(typeof(VMNicInputDetailsTypeConverter))] - public partial interface IVMNicInputDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMNicUpdatesTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMNicUpdatesTaskDetails.PowerShell.cs deleted file mode 100644 index 656e794ebca2..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMNicUpdatesTaskDetails.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class represents the vm NicUpdates task details. - [System.ComponentModel.TypeConverter(typeof(VMNicUpdatesTaskDetailsTypeConverter))] - public partial class VMNicUpdatesTaskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMNicUpdatesTaskDetails(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.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMNicUpdatesTaskDetails(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.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMNicUpdatesTaskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetailsInternal)this).VMId, global::System.Convert.ToString); - } - if (content.Contains("NicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetailsInternal)this).NicId, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, 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 VMNicUpdatesTaskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VMId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetailsInternal)this).VMId, global::System.Convert.ToString); - } - if (content.Contains("NicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetailsInternal)this).NicId, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetailsInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// This class represents the vm NicUpdates task details. - [System.ComponentModel.TypeConverter(typeof(VMNicUpdatesTaskDetailsTypeConverter))] - public partial interface IVMNicUpdatesTaskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerCreationInput.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerCreationInput.cs deleted file mode 100644 index cd398a22a988..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerCreationInput.cs +++ /dev/null @@ -1,57 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// VMwareCbt container creation input. - public partial class VMwareCbtContainerCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerCreationInputInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput __replicationProviderSpecificContainerCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerCreationInput(); - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)__replicationProviderSpecificContainerCreationInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)__replicationProviderSpecificContainerCreationInput).InstanceType = value ; } - - /// Creates an new instance. - public VMwareCbtContainerCreationInput() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__replicationProviderSpecificContainerCreationInput), __replicationProviderSpecificContainerCreationInput); - await eventListener.AssertObjectIsValid(nameof(__replicationProviderSpecificContainerCreationInput), __replicationProviderSpecificContainerCreationInput); - } - } - /// VMwareCbt container creation input. - public partial interface IVMwareCbtContainerCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput - { - - } - /// VMwareCbt container creation input. - internal partial interface IVMwareCbtContainerCreationInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerMappingInput.PowerShell.cs deleted file mode 100644 index f01966fbeb2a..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerMappingInput.PowerShell.cs +++ /dev/null @@ -1,194 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMwareCbt container mapping input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtContainerMappingInputTypeConverter))] - public partial class VMwareCbtContainerMappingInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareCbtContainerMappingInput(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.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareCbtContainerMappingInput(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.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareCbtContainerMappingInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("KeyVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).KeyVaultId = (string) content.GetValueForProperty("KeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).KeyVaultId, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).KeyVaultUri = (string) content.GetValueForProperty("KeyVaultUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).KeyVaultUri, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).StorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountSasSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).StorageAccountSasSecretName = (string) content.GetValueForProperty("StorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).StorageAccountSasSecretName, global::System.Convert.ToString); - } - if (content.Contains("ServiceBusConnectionStringSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).ServiceBusConnectionStringSecretName = (string) content.GetValueForProperty("ServiceBusConnectionStringSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).ServiceBusConnectionStringSecretName, global::System.Convert.ToString); - } - if (content.Contains("TargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).TargetLocation, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType, 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 VMwareCbtContainerMappingInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("KeyVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).KeyVaultId = (string) content.GetValueForProperty("KeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).KeyVaultId, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).KeyVaultUri = (string) content.GetValueForProperty("KeyVaultUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).KeyVaultUri, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).StorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountSasSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).StorageAccountSasSecretName = (string) content.GetValueForProperty("StorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).StorageAccountSasSecretName, global::System.Convert.ToString); - } - if (content.Contains("ServiceBusConnectionStringSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).ServiceBusConnectionStringSecretName = (string) content.GetValueForProperty("ServiceBusConnectionStringSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).ServiceBusConnectionStringSecretName, global::System.Convert.ToString); - } - if (content.Contains("TargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal)this).TargetLocation, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMwareCbt container mapping input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtContainerMappingInputTypeConverter))] - public partial interface IVMwareCbtContainerMappingInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtDiskInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtDiskInput.PowerShell.cs deleted file mode 100644 index 6e629565458f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtDiskInput.PowerShell.cs +++ /dev/null @@ -1,184 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMwareCbt disk input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtDiskInputTypeConverter))] - public partial class VMwareCbtDiskInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareCbtDiskInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareCbtDiskInput(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.Migrate.Models.Api20220501.IVMwareCbtDiskInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareCbtDiskInput(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.Migrate.Models.Api20220501.IVMwareCbtDiskInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareCbtDiskInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("IsOSDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).IsOSDisk, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountSasSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).LogStorageAccountSasSecretName = (string) content.GetValueForProperty("LogStorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).LogStorageAccountSasSecretName, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).DiskEncryptionSetId, 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 VMwareCbtDiskInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("IsOSDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).IsOSDisk, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountSasSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).LogStorageAccountSasSecretName = (string) content.GetValueForProperty("LogStorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).LogStorageAccountSasSecretName, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMwareCbt disk input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtDiskInputTypeConverter))] - public partial interface IVMwareCbtDiskInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInput.PowerShell.cs deleted file mode 100644 index 772a75ed6fd5..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInput.PowerShell.cs +++ /dev/null @@ -1,322 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMwareCbt specific enable migration input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtEnableMigrationInputTypeConverter))] - public partial class VMwareCbtEnableMigrationInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareCbtEnableMigrationInput(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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareCbtEnableMigrationInput(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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareCbtEnableMigrationInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VmwareMachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).VmwareMachineId = (string) content.GetValueForProperty("VmwareMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).VmwareMachineId, global::System.Convert.ToString); - } - if (content.Contains("DisksToInclude")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).DisksToInclude = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtDiskInputTypeConverter.ConvertFrom)); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); - } - if (content.Contains("DataMoverRunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).DataMoverRunAsAccountId = (string) content.GetValueForProperty("DataMoverRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).DataMoverRunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("SnapshotRunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).SnapshotRunAsAccountId = (string) content.GetValueForProperty("SnapshotRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).SnapshotRunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetVMName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("TargetResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TestNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TestNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TargetSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TestSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetBootDiagnosticsStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("PerformAutoResync")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).PerformAutoResync = (string) content.GetValueForProperty("PerformAutoResync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).PerformAutoResync, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetVmtagsTypeConverter.ConvertFrom); - } - if (content.Contains("SeedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).SeedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags) content.GetValueForProperty("SeedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).SeedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputSeedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags) content.GetValueForProperty("TargetDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInputInternal)this).InstanceType, 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 VMwareCbtEnableMigrationInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VmwareMachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).VmwareMachineId = (string) content.GetValueForProperty("VmwareMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).VmwareMachineId, global::System.Convert.ToString); - } - if (content.Contains("DisksToInclude")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).DisksToInclude = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtDiskInputTypeConverter.ConvertFrom)); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); - } - if (content.Contains("DataMoverRunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).DataMoverRunAsAccountId = (string) content.GetValueForProperty("DataMoverRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).DataMoverRunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("SnapshotRunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).SnapshotRunAsAccountId = (string) content.GetValueForProperty("SnapshotRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).SnapshotRunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetVMName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("TargetResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TestNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TestNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TargetSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TestSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetBootDiagnosticsStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("PerformAutoResync")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).PerformAutoResync = (string) content.GetValueForProperty("PerformAutoResync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).PerformAutoResync, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetVmtagsTypeConverter.ConvertFrom); - } - if (content.Contains("SeedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).SeedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags) content.GetValueForProperty("SeedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).SeedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputSeedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags) content.GetValueForProperty("TargetDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMwareCbt specific enable migration input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtEnableMigrationInputTypeConverter))] - public partial interface IVMwareCbtEnableMigrationInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInput.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInput.cs deleted file mode 100644 index 5a9b21ac7d60..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInput.cs +++ /dev/null @@ -1,433 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// VMwareCbt specific enable migration input. - public partial class VMwareCbtEnableMigrationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput __enableMigrationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationProviderSpecificInput(); - - /// Backing field for property. - private string _dataMoverRunAsAccountId; - - /// The data mover run as account Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string DataMoverRunAsAccountId { get => this._dataMoverRunAsAccountId; set => this._dataMoverRunAsAccountId = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput[] _disksToInclude; - - /// The disks to include list. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput[] DisksToInclude { get => this._disksToInclude; set => this._disksToInclude = value; } - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInputInternal)__enableMigrationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInputInternal)__enableMigrationProviderSpecificInput).InstanceType = value ; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? _licenseType; - - /// License type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get => this._licenseType; set => this._licenseType = value; } - - /// Backing field for property. - private string _performAutoResync; - - /// A value indicating whether auto resync is to be done. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PerformAutoResync { get => this._performAutoResync; set => this._performAutoResync = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags _seedDiskTag; - - /// The tags for the seed disks. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags SeedDiskTag { get => (this._seedDiskTag = this._seedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputSeedDiskTags()); set => this._seedDiskTag = value; } - - /// Backing field for property. - private string _snapshotRunAsAccountId; - - /// The snapshot run as account Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string SnapshotRunAsAccountId { get => this._snapshotRunAsAccountId; set => this._snapshotRunAsAccountId = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType? _sqlServerLicenseType; - - /// The SQL Server license type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType? SqlServerLicenseType { get => this._sqlServerLicenseType; set => this._sqlServerLicenseType = value; } - - /// Backing field for property. - private string _targetAvailabilitySetId; - - /// The target availability set ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetAvailabilitySetId { get => this._targetAvailabilitySetId; set => this._targetAvailabilitySetId = value; } - - /// Backing field for property. - private string _targetAvailabilityZone; - - /// The target availability zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetAvailabilityZone { get => this._targetAvailabilityZone; set => this._targetAvailabilityZone = value; } - - /// - /// Backing field for property. - /// - private string _targetBootDiagnosticsStorageAccountId; - - /// The target boot diagnostics storage account ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetBootDiagnosticsStorageAccountId { get => this._targetBootDiagnosticsStorageAccountId; set => this._targetBootDiagnosticsStorageAccountId = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags _targetDiskTag; - - /// The tags for the target disks. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags TargetDiskTag { get => (this._targetDiskTag = this._targetDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetDiskTags()); set => this._targetDiskTag = value; } - - /// Backing field for property. - private string _targetNetworkId; - - /// The target network ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetNetworkId { get => this._targetNetworkId; set => this._targetNetworkId = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags _targetNicTag; - - /// The tags for the target NICs. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetNicTags()); set => this._targetNicTag = value; } - - /// Backing field for property. - private string _targetProximityPlacementGroupId; - - /// The target proximity placement group ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetProximityPlacementGroupId { get => this._targetProximityPlacementGroupId; set => this._targetProximityPlacementGroupId = value; } - - /// Backing field for property. - private string _targetResourceGroupId; - - /// The target resource group ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetResourceGroupId { get => this._targetResourceGroupId; set => this._targetResourceGroupId = value; } - - /// Backing field for property. - private string _targetSubnetName; - - /// The target subnet name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetSubnetName { get => this._targetSubnetName; set => this._targetSubnetName = value; } - - /// Backing field for property. - private string _targetVMName; - - /// The target VM name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetVMName { get => this._targetVMName; set => this._targetVMName = value; } - - /// Backing field for property. - private string _targetVMSize; - - /// The target VM size. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetVMSize { get => this._targetVMSize; set => this._targetVMSize = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags _targetVMTag; - - /// The target VM tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetVmtags()); set => this._targetVMTag = value; } - - /// Backing field for property. - private string _testNetworkId; - - /// The selected test network ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TestNetworkId { get => this._testNetworkId; set => this._testNetworkId = value; } - - /// Backing field for property. - private string _testSubnetName; - - /// The selected test subnet name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TestSubnetName { get => this._testSubnetName; set => this._testSubnetName = value; } - - /// Backing field for property. - private string _vmwareMachineId; - - /// The ARM Id of the VM discovered in VMware. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string VmwareMachineId { get => this._vmwareMachineId; set => this._vmwareMachineId = value; } - - /// Creates an new instance. - public VMwareCbtEnableMigrationInput() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__enableMigrationProviderSpecificInput), __enableMigrationProviderSpecificInput); - await eventListener.AssertObjectIsValid(nameof(__enableMigrationProviderSpecificInput), __enableMigrationProviderSpecificInput); - } - } - /// VMwareCbt specific enable migration input. - public partial interface IVMwareCbtEnableMigrationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput - { - /// The data mover run as account Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The data mover run as account Id.", - SerializedName = @"dataMoverRunAsAccountId", - PossibleTypes = new [] { typeof(string) })] - string DataMoverRunAsAccountId { get; set; } - /// The disks to include list. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The disks to include list.", - SerializedName = @"disksToInclude", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput[] DisksToInclude { get; set; } - /// License type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"License type.", - SerializedName = @"licenseType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get; set; } - /// A value indicating whether auto resync is to be done. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating whether auto resync is to be done.", - SerializedName = @"performAutoResync", - PossibleTypes = new [] { typeof(string) })] - string PerformAutoResync { get; set; } - /// The tags for the seed disks. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The tags for the seed disks.", - SerializedName = @"seedDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags SeedDiskTag { get; set; } - /// The snapshot run as account Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The snapshot run as account Id.", - SerializedName = @"snapshotRunAsAccountId", - PossibleTypes = new [] { typeof(string) })] - string SnapshotRunAsAccountId { get; set; } - /// The SQL Server license type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The SQL Server license type.", - SerializedName = @"sqlServerLicenseType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType? SqlServerLicenseType { get; set; } - /// The target availability set ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target availability set ARM Id.", - SerializedName = @"targetAvailabilitySetId", - PossibleTypes = new [] { typeof(string) })] - string TargetAvailabilitySetId { get; set; } - /// The target availability zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target availability zone.", - SerializedName = @"targetAvailabilityZone", - PossibleTypes = new [] { typeof(string) })] - string TargetAvailabilityZone { get; set; } - /// The target boot diagnostics storage account ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target boot diagnostics storage account ARM Id.", - SerializedName = @"targetBootDiagnosticsStorageAccountId", - PossibleTypes = new [] { typeof(string) })] - string TargetBootDiagnosticsStorageAccountId { get; set; } - /// The tags for the target disks. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The tags for the target disks.", - SerializedName = @"targetDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags TargetDiskTag { get; set; } - /// The target network ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The target network ARM Id.", - SerializedName = @"targetNetworkId", - PossibleTypes = new [] { typeof(string) })] - string TargetNetworkId { get; set; } - /// The tags for the target NICs. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The tags for the target NICs.", - SerializedName = @"targetNicTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags TargetNicTag { get; set; } - /// The target proximity placement group ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target proximity placement group ARM Id.", - SerializedName = @"targetProximityPlacementGroupId", - PossibleTypes = new [] { typeof(string) })] - string TargetProximityPlacementGroupId { get; set; } - /// The target resource group ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The target resource group ARM Id.", - SerializedName = @"targetResourceGroupId", - PossibleTypes = new [] { typeof(string) })] - string TargetResourceGroupId { get; set; } - /// The target subnet name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target subnet name.", - SerializedName = @"targetSubnetName", - PossibleTypes = new [] { typeof(string) })] - string TargetSubnetName { get; set; } - /// The target VM name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target VM name.", - SerializedName = @"targetVmName", - PossibleTypes = new [] { typeof(string) })] - string TargetVMName { get; set; } - /// The target VM size. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target VM size.", - SerializedName = @"targetVmSize", - PossibleTypes = new [] { typeof(string) })] - string TargetVMSize { get; set; } - /// The target VM tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target VM tags.", - SerializedName = @"targetVmTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags TargetVMTag { get; set; } - /// The selected test network ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The selected test network ARM Id.", - SerializedName = @"testNetworkId", - PossibleTypes = new [] { typeof(string) })] - string TestNetworkId { get; set; } - /// The selected test subnet name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The selected test subnet name.", - SerializedName = @"testSubnetName", - PossibleTypes = new [] { typeof(string) })] - string TestSubnetName { get; set; } - /// The ARM Id of the VM discovered in VMware. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The ARM Id of the VM discovered in VMware.", - SerializedName = @"vmwareMachineId", - PossibleTypes = new [] { typeof(string) })] - string VmwareMachineId { get; set; } - - } - /// VMwareCbt specific enable migration input. - internal partial interface IVMwareCbtEnableMigrationInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInputInternal - { - /// The data mover run as account Id. - string DataMoverRunAsAccountId { get; set; } - /// The disks to include list. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput[] DisksToInclude { get; set; } - /// License type. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get; set; } - /// A value indicating whether auto resync is to be done. - string PerformAutoResync { get; set; } - /// The tags for the seed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags SeedDiskTag { get; set; } - /// The snapshot run as account Id. - string SnapshotRunAsAccountId { get; set; } - /// The SQL Server license type. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType? SqlServerLicenseType { get; set; } - /// The target availability set ARM Id. - string TargetAvailabilitySetId { get; set; } - /// The target availability zone. - string TargetAvailabilityZone { get; set; } - /// The target boot diagnostics storage account ARM Id. - string TargetBootDiagnosticsStorageAccountId { get; set; } - /// The tags for the target disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags TargetDiskTag { get; set; } - /// The target network ARM Id. - string TargetNetworkId { get; set; } - /// The tags for the target NICs. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags TargetNicTag { get; set; } - /// The target proximity placement group ARM Id. - string TargetProximityPlacementGroupId { get; set; } - /// The target resource group ARM Id. - string TargetResourceGroupId { get; set; } - /// The target subnet name. - string TargetSubnetName { get; set; } - /// The target VM name. - string TargetVMName { get; set; } - /// The target VM size. - string TargetVMSize { get; set; } - /// The target VM tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags TargetVMTag { get; set; } - /// The selected test network ARM Id. - string TestNetworkId { get; set; } - /// The selected test subnet name. - string TestSubnetName { get; set; } - /// The ARM Id of the VM discovered in VMware. - string VmwareMachineId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrateInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrateInput.PowerShell.cs deleted file mode 100644 index c6af7951d7da..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrateInput.PowerShell.cs +++ /dev/null @@ -1,152 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMwareCbt specific migrate input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtMigrateInputTypeConverter))] - public partial class VMwareCbtMigrateInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareCbtMigrateInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareCbtMigrateInput(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.Migrate.Models.Api20220501.IVMwareCbtMigrateInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareCbtMigrateInput(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.Migrate.Models.Api20220501.IVMwareCbtMigrateInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareCbtMigrateInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PerformShutdown")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrateInputInternal)this).PerformShutdown = (string) content.GetValueForProperty("PerformShutdown",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrateInputInternal)this).PerformShutdown, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInputInternal)this).InstanceType, 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 VMwareCbtMigrateInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("PerformShutdown")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrateInputInternal)this).PerformShutdown = (string) content.GetValueForProperty("PerformShutdown",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrateInputInternal)this).PerformShutdown, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMwareCbt specific migrate input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtMigrateInputTypeConverter))] - public partial interface IVMwareCbtMigrateInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrateInput.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrateInput.cs deleted file mode 100644 index d531a87d9f46..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrateInput.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// VMwareCbt specific migrate input. - public partial class VMwareCbtMigrateInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrateInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrateInputInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput __migrateProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateProviderSpecificInput(); - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInputInternal)__migrateProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInputInternal)__migrateProviderSpecificInput).InstanceType = value ; } - - /// Backing field for property. - private string _performShutdown; - - /// A value indicating whether VM is to be shutdown. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PerformShutdown { get => this._performShutdown; set => this._performShutdown = value; } - - /// Creates an new instance. - public VMwareCbtMigrateInput() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__migrateProviderSpecificInput), __migrateProviderSpecificInput); - await eventListener.AssertObjectIsValid(nameof(__migrateProviderSpecificInput), __migrateProviderSpecificInput); - } - } - /// VMwareCbt specific migrate input. - public partial interface IVMwareCbtMigrateInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput - { - /// A value indicating whether VM is to be shutdown. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"A value indicating whether VM is to be shutdown.", - SerializedName = @"performShutdown", - PossibleTypes = new [] { typeof(string) })] - string PerformShutdown { get; set; } - - } - /// VMwareCbt specific migrate input. - internal partial interface IVMwareCbtMigrateInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInputInternal - { - /// A value indicating whether VM is to be shutdown. - string PerformShutdown { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetails.PowerShell.cs deleted file mode 100644 index d6a9fadf90ad..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetails.PowerShell.cs +++ /dev/null @@ -1,448 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMwareCbt provider specific settings. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtMigrationDetailsTypeConverter))] - public partial class VMwareCbtMigrationDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareCbtMigrationDetails(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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareCbtMigrationDetails(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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareCbtMigrationDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VmwareMachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).VmwareMachineId = (string) content.GetValueForProperty("VmwareMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).VmwareMachineId, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("FirmwareType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).FirmwareType = (string) content.GetValueForProperty("FirmwareType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).FirmwareType, global::System.Convert.ToString); - } - if (content.Contains("TargetGeneration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetGeneration = (string) content.GetValueForProperty("TargetGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetGeneration, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).LicenseType, global::System.Convert.ToString); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).SqlServerLicenseType = (string) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).SqlServerLicenseType, global::System.Convert.ToString); - } - if (content.Contains("DataMoverRunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).DataMoverRunAsAccountId = (string) content.GetValueForProperty("DataMoverRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).DataMoverRunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("SnapshotRunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).SnapshotRunAsAccountId = (string) content.GetValueForProperty("SnapshotRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).SnapshotRunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetVMName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("TargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetLocation, global::System.Convert.ToString); - } - if (content.Contains("TargetResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetBootDiagnosticsStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetVmtagsTypeConverter.ConvertFrom); - } - if (content.Contains("ProtectedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("TargetNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TestNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TestNetworkId, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationRecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).MigrationRecoveryPointId = (string) content.GetValueForProperty("MigrationRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).MigrationRecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("LastRecoveryPointReceived")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastRecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointId = (string) content.GetValueForProperty("LastRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InitialSeedingProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingProgressPercentage = (int?) content.GetValueForProperty("InitialSeedingProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MigrationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).MigrationProgressPercentage = (int?) content.GetValueForProperty("MigrationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).MigrationProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResyncProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResumeProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResumeProgressPercentage = (int?) content.GetValueForProperty("ResumeProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResumeProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InitialSeedingRetryCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingRetryCount = (long?) content.GetValueForProperty("InitialSeedingRetryCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingRetryCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncRetryCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncRetryCount = (long?) content.GetValueForProperty("ResyncRetryCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncRetryCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResumeRetryCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResumeRetryCount = (long?) content.GetValueForProperty("ResumeRetryCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResumeRetryCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); - } - if (content.Contains("ResyncState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState?) content.GetValueForProperty("ResyncState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState.CreateFrom); - } - if (content.Contains("PerformAutoResync")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).PerformAutoResync = (string) content.GetValueForProperty("PerformAutoResync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).PerformAutoResync, global::System.Convert.ToString); - } - if (content.Contains("SeedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).SeedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags) content.GetValueForProperty("SeedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).SeedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsSeedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags) content.GetValueForProperty("TargetDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettingsInternal)this).InstanceType, 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 VMwareCbtMigrationDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VmwareMachineId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).VmwareMachineId = (string) content.GetValueForProperty("VmwareMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).VmwareMachineId, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("FirmwareType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).FirmwareType = (string) content.GetValueForProperty("FirmwareType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).FirmwareType, global::System.Convert.ToString); - } - if (content.Contains("TargetGeneration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetGeneration = (string) content.GetValueForProperty("TargetGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetGeneration, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).LicenseType, global::System.Convert.ToString); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).SqlServerLicenseType = (string) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).SqlServerLicenseType, global::System.Convert.ToString); - } - if (content.Contains("DataMoverRunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).DataMoverRunAsAccountId = (string) content.GetValueForProperty("DataMoverRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).DataMoverRunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("SnapshotRunAsAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).SnapshotRunAsAccountId = (string) content.GetValueForProperty("SnapshotRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).SnapshotRunAsAccountId, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetVMName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("TargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetLocation, global::System.Convert.ToString); - } - if (content.Contains("TargetResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetBootDiagnosticsStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetVmtagsTypeConverter.ConvertFrom); - } - if (content.Contains("ProtectedDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectedDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("TargetNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TestNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TestNetworkId, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationRecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).MigrationRecoveryPointId = (string) content.GetValueForProperty("MigrationRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).MigrationRecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("LastRecoveryPointReceived")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastRecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointId = (string) content.GetValueForProperty("LastRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("InitialSeedingProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingProgressPercentage = (int?) content.GetValueForProperty("InitialSeedingProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MigrationProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).MigrationProgressPercentage = (int?) content.GetValueForProperty("MigrationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).MigrationProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResyncProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ResumeProgressPercentage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResumeProgressPercentage = (int?) content.GetValueForProperty("ResumeProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResumeProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InitialSeedingRetryCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingRetryCount = (long?) content.GetValueForProperty("InitialSeedingRetryCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingRetryCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncRetryCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncRetryCount = (long?) content.GetValueForProperty("ResyncRetryCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncRetryCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResumeRetryCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResumeRetryCount = (long?) content.GetValueForProperty("ResumeRetryCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResumeRetryCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("ResyncRequired")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); - } - if (content.Contains("ResyncState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState?) content.GetValueForProperty("ResyncState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).ResyncState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState.CreateFrom); - } - if (content.Contains("PerformAutoResync")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).PerformAutoResync = (string) content.GetValueForProperty("PerformAutoResync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).PerformAutoResync, global::System.Convert.ToString); - } - if (content.Contains("SeedDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).SeedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags) content.GetValueForProperty("SeedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).SeedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsSeedDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags) content.GetValueForProperty("TargetDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal)this).TargetDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMwareCbt provider specific settings. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtMigrationDetailsTypeConverter))] - public partial interface IVMwareCbtMigrationDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetails.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetails.cs deleted file mode 100644 index 5caf3166e5d3..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetails.cs +++ /dev/null @@ -1,771 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// VMwareCbt provider specific settings. - public partial class VMwareCbtMigrationDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings __migrationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationProviderSpecificSettings(); - - /// Backing field for property. - private string _dataMoverRunAsAccountId; - - /// The data mover run as account Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string DataMoverRunAsAccountId { get => this._dataMoverRunAsAccountId; } - - /// Backing field for property. - private string _firmwareType; - - /// The firmware type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string FirmwareType { get => this._firmwareType; } - - /// Backing field for property. - private int? _initialSeedingProgressPercentage; - - /// The initial seeding progress percentage. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public int? InitialSeedingProgressPercentage { get => this._initialSeedingProgressPercentage; } - - /// Backing field for property. - private long? _initialSeedingRetryCount; - - /// The initial seeding retry count. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public long? InitialSeedingRetryCount { get => this._initialSeedingRetryCount; } - - /// Gets the instance type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettingsInternal)__migrationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettingsInternal)__migrationProviderSpecificSettings).InstanceType = value ; } - - /// Backing field for property. - private string _lastRecoveryPointId; - - /// The last recovery point Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string LastRecoveryPointId { get => this._lastRecoveryPointId; } - - /// Backing field for property. - private global::System.DateTime? _lastRecoveryPointReceived; - - /// The last recovery point received time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public global::System.DateTime? LastRecoveryPointReceived { get => this._lastRecoveryPointReceived; } - - /// Backing field for property. - private string _licenseType; - - /// License Type of the VM to be used. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string LicenseType { get => this._licenseType; set => this._licenseType = value; } - - /// Internal Acessors for DataMoverRunAsAccountId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.DataMoverRunAsAccountId { get => this._dataMoverRunAsAccountId; set { {_dataMoverRunAsAccountId = value;} } } - - /// Internal Acessors for FirmwareType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.FirmwareType { get => this._firmwareType; set { {_firmwareType = value;} } } - - /// Internal Acessors for InitialSeedingProgressPercentage - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.InitialSeedingProgressPercentage { get => this._initialSeedingProgressPercentage; set { {_initialSeedingProgressPercentage = value;} } } - - /// Internal Acessors for InitialSeedingRetryCount - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.InitialSeedingRetryCount { get => this._initialSeedingRetryCount; set { {_initialSeedingRetryCount = value;} } } - - /// Internal Acessors for LastRecoveryPointId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.LastRecoveryPointId { get => this._lastRecoveryPointId; set { {_lastRecoveryPointId = value;} } } - - /// Internal Acessors for LastRecoveryPointReceived - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.LastRecoveryPointReceived { get => this._lastRecoveryPointReceived; set { {_lastRecoveryPointReceived = value;} } } - - /// Internal Acessors for MigrationProgressPercentage - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.MigrationProgressPercentage { get => this._migrationProgressPercentage; set { {_migrationProgressPercentage = value;} } } - - /// Internal Acessors for MigrationRecoveryPointId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.MigrationRecoveryPointId { get => this._migrationRecoveryPointId; set { {_migrationRecoveryPointId = value;} } } - - /// Internal Acessors for OSType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.OSType { get => this._oSType; set { {_oSType = value;} } } - - /// Internal Acessors for ResumeProgressPercentage - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.ResumeProgressPercentage { get => this._resumeProgressPercentage; set { {_resumeProgressPercentage = value;} } } - - /// Internal Acessors for ResumeRetryCount - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.ResumeRetryCount { get => this._resumeRetryCount; set { {_resumeRetryCount = value;} } } - - /// Internal Acessors for ResyncProgressPercentage - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.ResyncProgressPercentage { get => this._resyncProgressPercentage; set { {_resyncProgressPercentage = value;} } } - - /// Internal Acessors for ResyncRequired - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.ResyncRequired { get => this._resyncRequired; set { {_resyncRequired = value;} } } - - /// Internal Acessors for ResyncRetryCount - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.ResyncRetryCount { get => this._resyncRetryCount; set { {_resyncRetryCount = value;} } } - - /// Internal Acessors for ResyncState - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.ResyncState { get => this._resyncState; set { {_resyncState = value;} } } - - /// Internal Acessors for SnapshotRunAsAccountId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.SnapshotRunAsAccountId { get => this._snapshotRunAsAccountId; set { {_snapshotRunAsAccountId = value;} } } - - /// Internal Acessors for StorageAccountId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.StorageAccountId { get => this._storageAccountId; set { {_storageAccountId = value;} } } - - /// Internal Acessors for TargetGeneration - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.TargetGeneration { get => this._targetGeneration; set { {_targetGeneration = value;} } } - - /// Internal Acessors for TargetLocation - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.TargetLocation { get => this._targetLocation; set { {_targetLocation = value;} } } - - /// Internal Acessors for VmwareMachineId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsInternal.VmwareMachineId { get => this._vmwareMachineId; set { {_vmwareMachineId = value;} } } - - /// Backing field for property. - private int? _migrationProgressPercentage; - - /// The migration progress percentage. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public int? MigrationProgressPercentage { get => this._migrationProgressPercentage; } - - /// Backing field for property. - private string _migrationRecoveryPointId; - - /// The recovery point Id to which the VM was migrated. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string MigrationRecoveryPointId { get => this._migrationRecoveryPointId; } - - /// Backing field for property. - private string _oSType; - - /// The type of the OS on the VM. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string OSType { get => this._oSType; } - - /// Backing field for property. - private string _performAutoResync; - - /// A value indicating whether auto resync is to be done. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string PerformAutoResync { get => this._performAutoResync; set => this._performAutoResync = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails[] _protectedDisk; - - /// The list of protected disks. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails[] ProtectedDisk { get => this._protectedDisk; set => this._protectedDisk = value; } - - /// Backing field for property. - private int? _resumeProgressPercentage; - - /// The resume progress percentage. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public int? ResumeProgressPercentage { get => this._resumeProgressPercentage; } - - /// Backing field for property. - private long? _resumeRetryCount; - - /// The resume retry count. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public long? ResumeRetryCount { get => this._resumeRetryCount; } - - /// Backing field for property. - private int? _resyncProgressPercentage; - - /// The resync progress percentage. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public int? ResyncProgressPercentage { get => this._resyncProgressPercentage; } - - /// Backing field for property. - private string _resyncRequired; - - /// A value indicating whether resync is required. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ResyncRequired { get => this._resyncRequired; } - - /// Backing field for property. - private long? _resyncRetryCount; - - /// The resync retry count. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public long? ResyncRetryCount { get => this._resyncRetryCount; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState? _resyncState; - - /// The resync state. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState? ResyncState { get => this._resyncState; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags _seedDiskTag; - - /// The tags for the seed disks. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags SeedDiskTag { get => (this._seedDiskTag = this._seedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsSeedDiskTags()); set => this._seedDiskTag = value; } - - /// Backing field for property. - private string _snapshotRunAsAccountId; - - /// The snapshot run as account Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string SnapshotRunAsAccountId { get => this._snapshotRunAsAccountId; } - - /// Backing field for property. - private string _sqlServerLicenseType; - - /// The SQL Server license type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string SqlServerLicenseType { get => this._sqlServerLicenseType; set => this._sqlServerLicenseType = value; } - - /// Backing field for property. - private string _storageAccountId; - - /// - /// The replication storage account ARM Id. This is applicable only for the blob based replication test hook. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string StorageAccountId { get => this._storageAccountId; } - - /// Backing field for property. - private string _targetAvailabilitySetId; - - /// The target availability set Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetAvailabilitySetId { get => this._targetAvailabilitySetId; set => this._targetAvailabilitySetId = value; } - - /// Backing field for property. - private string _targetAvailabilityZone; - - /// The target availability zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetAvailabilityZone { get => this._targetAvailabilityZone; set => this._targetAvailabilityZone = value; } - - /// - /// Backing field for property. - /// - private string _targetBootDiagnosticsStorageAccountId; - - /// The target boot diagnostics storage account ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetBootDiagnosticsStorageAccountId { get => this._targetBootDiagnosticsStorageAccountId; set => this._targetBootDiagnosticsStorageAccountId = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags _targetDiskTag; - - /// The tags for the target disks. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags TargetDiskTag { get => (this._targetDiskTag = this._targetDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetDiskTags()); set => this._targetDiskTag = value; } - - /// Backing field for property. - private string _targetGeneration; - - /// The target generation. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetGeneration { get => this._targetGeneration; } - - /// Backing field for property. - private string _targetLocation; - - /// The target location. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetLocation { get => this._targetLocation; } - - /// Backing field for property. - private string _targetNetworkId; - - /// The target network Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetNetworkId { get => this._targetNetworkId; set => this._targetNetworkId = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags _targetNicTag; - - /// The tags for the target NICs. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetNicTags()); set => this._targetNicTag = value; } - - /// Backing field for property. - private string _targetProximityPlacementGroupId; - - /// The target proximity placement group Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetProximityPlacementGroupId { get => this._targetProximityPlacementGroupId; set => this._targetProximityPlacementGroupId = value; } - - /// Backing field for property. - private string _targetResourceGroupId; - - /// The target resource group Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetResourceGroupId { get => this._targetResourceGroupId; set => this._targetResourceGroupId = value; } - - /// Backing field for property. - private string _targetVMName; - - /// Target VM name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetVMName { get => this._targetVMName; set => this._targetVMName = value; } - - /// Backing field for property. - private string _targetVMSize; - - /// The target VM size. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetVMSize { get => this._targetVMSize; set => this._targetVMSize = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags _targetVMTag; - - /// The target VM tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetVmtags()); set => this._targetVMTag = value; } - - /// Backing field for property. - private string _testNetworkId; - - /// The test network Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TestNetworkId { get => this._testNetworkId; set => this._testNetworkId = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetails[] _vMNic; - - /// The network details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } - - /// Backing field for property. - private string _vmwareMachineId; - - /// The ARM Id of the VM discovered in VMware. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string VmwareMachineId { get => this._vmwareMachineId; } - - /// Creates an new instance. - public VMwareCbtMigrationDetails() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__migrationProviderSpecificSettings), __migrationProviderSpecificSettings); - await eventListener.AssertObjectIsValid(nameof(__migrationProviderSpecificSettings), __migrationProviderSpecificSettings); - } - } - /// VMwareCbt provider specific settings. - public partial interface IVMwareCbtMigrationDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings - { - /// The data mover run as account Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The data mover run as account Id.", - SerializedName = @"dataMoverRunAsAccountId", - PossibleTypes = new [] { typeof(string) })] - string DataMoverRunAsAccountId { get; } - /// The firmware type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The firmware type.", - SerializedName = @"firmwareType", - PossibleTypes = new [] { typeof(string) })] - string FirmwareType { get; } - /// The initial seeding progress percentage. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The initial seeding progress percentage.", - SerializedName = @"initialSeedingProgressPercentage", - PossibleTypes = new [] { typeof(int) })] - int? InitialSeedingProgressPercentage { get; } - /// The initial seeding retry count. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The initial seeding retry count.", - SerializedName = @"initialSeedingRetryCount", - PossibleTypes = new [] { typeof(long) })] - long? InitialSeedingRetryCount { get; } - /// The last recovery point Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The last recovery point Id.", - SerializedName = @"lastRecoveryPointId", - PossibleTypes = new [] { typeof(string) })] - string LastRecoveryPointId { get; } - /// The last recovery point received time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The last recovery point received time.", - SerializedName = @"lastRecoveryPointReceived", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? LastRecoveryPointReceived { get; } - /// License Type of the VM to be used. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"License Type of the VM to be used.", - SerializedName = @"licenseType", - PossibleTypes = new [] { typeof(string) })] - string LicenseType { get; set; } - /// The migration progress percentage. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The migration progress percentage.", - SerializedName = @"migrationProgressPercentage", - PossibleTypes = new [] { typeof(int) })] - int? MigrationProgressPercentage { get; } - /// The recovery point Id to which the VM was migrated. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The recovery point Id to which the VM was migrated.", - SerializedName = @"migrationRecoveryPointId", - PossibleTypes = new [] { typeof(string) })] - string MigrationRecoveryPointId { get; } - /// The type of the OS on the VM. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The type of the OS on the VM.", - SerializedName = @"osType", - PossibleTypes = new [] { typeof(string) })] - string OSType { get; } - /// A value indicating whether auto resync is to be done. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A value indicating whether auto resync is to be done.", - SerializedName = @"performAutoResync", - PossibleTypes = new [] { typeof(string) })] - string PerformAutoResync { get; set; } - /// The list of protected disks. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of protected disks.", - SerializedName = @"protectedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails[] ProtectedDisk { get; set; } - /// The resume progress percentage. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The resume progress percentage.", - SerializedName = @"resumeProgressPercentage", - PossibleTypes = new [] { typeof(int) })] - int? ResumeProgressPercentage { get; } - /// The resume retry count. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The resume retry count.", - SerializedName = @"resumeRetryCount", - PossibleTypes = new [] { typeof(long) })] - long? ResumeRetryCount { get; } - /// The resync progress percentage. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The resync progress percentage.", - SerializedName = @"resyncProgressPercentage", - PossibleTypes = new [] { typeof(int) })] - int? ResyncProgressPercentage { get; } - /// A value indicating whether resync is required. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"A value indicating whether resync is required.", - SerializedName = @"resyncRequired", - PossibleTypes = new [] { typeof(string) })] - string ResyncRequired { get; } - /// The resync retry count. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The resync retry count.", - SerializedName = @"resyncRetryCount", - PossibleTypes = new [] { typeof(long) })] - long? ResyncRetryCount { get; } - /// The resync state. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The resync state.", - SerializedName = @"resyncState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState? ResyncState { get; } - /// The tags for the seed disks. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The tags for the seed disks.", - SerializedName = @"seedDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags SeedDiskTag { get; set; } - /// The snapshot run as account Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The snapshot run as account Id.", - SerializedName = @"snapshotRunAsAccountId", - PossibleTypes = new [] { typeof(string) })] - string SnapshotRunAsAccountId { get; } - /// The SQL Server license type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The SQL Server license type.", - SerializedName = @"sqlServerLicenseType", - PossibleTypes = new [] { typeof(string) })] - string SqlServerLicenseType { get; set; } - /// - /// The replication storage account ARM Id. This is applicable only for the blob based replication test hook. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The replication storage account ARM Id. This is applicable only for the blob based replication test hook.", - SerializedName = @"storageAccountId", - PossibleTypes = new [] { typeof(string) })] - string StorageAccountId { get; } - /// The target availability set Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target availability set Id.", - SerializedName = @"targetAvailabilitySetId", - PossibleTypes = new [] { typeof(string) })] - string TargetAvailabilitySetId { get; set; } - /// The target availability zone. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target availability zone.", - SerializedName = @"targetAvailabilityZone", - PossibleTypes = new [] { typeof(string) })] - string TargetAvailabilityZone { get; set; } - /// The target boot diagnostics storage account ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target boot diagnostics storage account ARM Id.", - SerializedName = @"targetBootDiagnosticsStorageAccountId", - PossibleTypes = new [] { typeof(string) })] - string TargetBootDiagnosticsStorageAccountId { get; set; } - /// The tags for the target disks. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The tags for the target disks.", - SerializedName = @"targetDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags TargetDiskTag { get; set; } - /// The target generation. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The target generation.", - SerializedName = @"targetGeneration", - PossibleTypes = new [] { typeof(string) })] - string TargetGeneration { get; } - /// The target location. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The target location.", - SerializedName = @"targetLocation", - PossibleTypes = new [] { typeof(string) })] - string TargetLocation { get; } - /// The target network Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target network Id.", - SerializedName = @"targetNetworkId", - PossibleTypes = new [] { typeof(string) })] - string TargetNetworkId { get; set; } - /// The tags for the target NICs. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The tags for the target NICs.", - SerializedName = @"targetNicTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags TargetNicTag { get; set; } - /// The target proximity placement group Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target proximity placement group Id.", - SerializedName = @"targetProximityPlacementGroupId", - PossibleTypes = new [] { typeof(string) })] - string TargetProximityPlacementGroupId { get; set; } - /// The target resource group Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target resource group Id.", - SerializedName = @"targetResourceGroupId", - PossibleTypes = new [] { typeof(string) })] - string TargetResourceGroupId { get; set; } - /// Target VM name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Target VM name.", - SerializedName = @"targetVmName", - PossibleTypes = new [] { typeof(string) })] - string TargetVMName { get; set; } - /// The target VM size. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target VM size.", - SerializedName = @"targetVmSize", - PossibleTypes = new [] { typeof(string) })] - string TargetVMSize { get; set; } - /// The target VM tags. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target VM tags.", - SerializedName = @"targetVmTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags TargetVMTag { get; set; } - /// The test network Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The test network Id.", - SerializedName = @"testNetworkId", - PossibleTypes = new [] { typeof(string) })] - string TestNetworkId { get; set; } - /// The network details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The network details.", - SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetails[] VMNic { get; set; } - /// The ARM Id of the VM discovered in VMware. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The ARM Id of the VM discovered in VMware.", - SerializedName = @"vmwareMachineId", - PossibleTypes = new [] { typeof(string) })] - string VmwareMachineId { get; } - - } - /// VMwareCbt provider specific settings. - internal partial interface IVMwareCbtMigrationDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettingsInternal - { - /// The data mover run as account Id. - string DataMoverRunAsAccountId { get; set; } - /// The firmware type. - string FirmwareType { get; set; } - /// The initial seeding progress percentage. - int? InitialSeedingProgressPercentage { get; set; } - /// The initial seeding retry count. - long? InitialSeedingRetryCount { get; set; } - /// The last recovery point Id. - string LastRecoveryPointId { get; set; } - /// The last recovery point received time. - global::System.DateTime? LastRecoveryPointReceived { get; set; } - /// License Type of the VM to be used. - string LicenseType { get; set; } - /// The migration progress percentage. - int? MigrationProgressPercentage { get; set; } - /// The recovery point Id to which the VM was migrated. - string MigrationRecoveryPointId { get; set; } - /// The type of the OS on the VM. - string OSType { get; set; } - /// A value indicating whether auto resync is to be done. - string PerformAutoResync { get; set; } - /// The list of protected disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails[] ProtectedDisk { get; set; } - /// The resume progress percentage. - int? ResumeProgressPercentage { get; set; } - /// The resume retry count. - long? ResumeRetryCount { get; set; } - /// The resync progress percentage. - int? ResyncProgressPercentage { get; set; } - /// A value indicating whether resync is required. - string ResyncRequired { get; set; } - /// The resync retry count. - long? ResyncRetryCount { get; set; } - /// The resync state. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState? ResyncState { get; set; } - /// The tags for the seed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags SeedDiskTag { get; set; } - /// The snapshot run as account Id. - string SnapshotRunAsAccountId { get; set; } - /// The SQL Server license type. - string SqlServerLicenseType { get; set; } - /// - /// The replication storage account ARM Id. This is applicable only for the blob based replication test hook. - /// - string StorageAccountId { get; set; } - /// The target availability set Id. - string TargetAvailabilitySetId { get; set; } - /// The target availability zone. - string TargetAvailabilityZone { get; set; } - /// The target boot diagnostics storage account ARM Id. - string TargetBootDiagnosticsStorageAccountId { get; set; } - /// The tags for the target disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags TargetDiskTag { get; set; } - /// The target generation. - string TargetGeneration { get; set; } - /// The target location. - string TargetLocation { get; set; } - /// The target network Id. - string TargetNetworkId { get; set; } - /// The tags for the target NICs. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags TargetNicTag { get; set; } - /// The target proximity placement group Id. - string TargetProximityPlacementGroupId { get; set; } - /// The target resource group Id. - string TargetResourceGroupId { get; set; } - /// Target VM name. - string TargetVMName { get; set; } - /// The target VM size. - string TargetVMSize { get; set; } - /// The target VM tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags TargetVMTag { get; set; } - /// The test network Id. - string TestNetworkId { get; set; } - /// The network details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetails[] VMNic { get; set; } - /// The ARM Id of the VM discovered in VMware. - string VmwareMachineId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicDetails.PowerShell.cs deleted file mode 100644 index 3f47c22f55ce..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicDetails.PowerShell.cs +++ /dev/null @@ -1,248 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMwareCbt NIC details. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtNicDetailsTypeConverter))] - public partial class VMwareCbtNicDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareCbtNicDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareCbtNicDetails(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.Migrate.Models.Api20220501.IVMwareCbtNicDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareCbtNicDetails(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.Migrate.Models.Api20220501.IVMwareCbtNicDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareCbtNicDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).NicId, global::System.Convert.ToString); - } - if (content.Contains("IsPrimaryNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).IsPrimaryNic, global::System.Convert.ToString); - } - if (content.Contains("SourceIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).SourceIPAddress = (string) content.GetValueForProperty("SourceIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).SourceIPAddress, global::System.Convert.ToString); - } - if (content.Contains("SourceIPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).SourceIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("SourceIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).SourceIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); - } - if (content.Contains("SourceNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).SourceNetworkId = (string) content.GetValueForProperty("SourceNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).SourceNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TargetIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetIPAddress = (string) content.GetValueForProperty("TargetIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TargetIPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TargetIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); - } - if (content.Contains("TargetSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TestSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestIPAddress = (string) content.GetValueForProperty("TestIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TestIPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TestIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); - } - if (content.Contains("TargetNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetNicName, global::System.Convert.ToString); - } - if (content.Contains("IsSelectedForMigration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).IsSelectedForMigration = (string) content.GetValueForProperty("IsSelectedForMigration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).IsSelectedForMigration, 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 VMwareCbtNicDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).NicId, global::System.Convert.ToString); - } - if (content.Contains("IsPrimaryNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).IsPrimaryNic, global::System.Convert.ToString); - } - if (content.Contains("SourceIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).SourceIPAddress = (string) content.GetValueForProperty("SourceIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).SourceIPAddress, global::System.Convert.ToString); - } - if (content.Contains("SourceIPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).SourceIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("SourceIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).SourceIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); - } - if (content.Contains("SourceNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).SourceNetworkId = (string) content.GetValueForProperty("SourceNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).SourceNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TargetIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetIPAddress = (string) content.GetValueForProperty("TargetIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TargetIPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TargetIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); - } - if (content.Contains("TargetSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TestSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestIPAddress = (string) content.GetValueForProperty("TestIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestIPAddress, global::System.Convert.ToString); - } - if (content.Contains("TestIPAddressType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TestIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TestIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); - } - if (content.Contains("TargetNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).TargetNicName, global::System.Convert.ToString); - } - if (content.Contains("IsSelectedForMigration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).IsSelectedForMigration = (string) content.GetValueForProperty("IsSelectedForMigration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal)this).IsSelectedForMigration, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMwareCbt NIC details. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtNicDetailsTypeConverter))] - public partial interface IVMwareCbtNicDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicInput.PowerShell.cs deleted file mode 100644 index 343a8fd0963c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicInput.PowerShell.cs +++ /dev/null @@ -1,200 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMwareCbt NIC input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtNicInputTypeConverter))] - public partial class VMwareCbtNicInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareCbtNicInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareCbtNicInput(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.Migrate.Models.Api20220501.IVMwareCbtNicInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareCbtNicInput(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.Migrate.Models.Api20220501.IVMwareCbtNicInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareCbtNicInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).NicId, global::System.Convert.ToString); - } - if (content.Contains("IsPrimaryNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).IsPrimaryNic, global::System.Convert.ToString); - } - if (content.Contains("TargetSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TargetSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TargetStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TargetStaticIPAddress = (string) content.GetValueForProperty("TargetStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TargetStaticIPAddress, global::System.Convert.ToString); - } - if (content.Contains("IsSelectedForMigration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).IsSelectedForMigration = (string) content.GetValueForProperty("IsSelectedForMigration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).IsSelectedForMigration, global::System.Convert.ToString); - } - if (content.Contains("TargetNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TargetNicName, global::System.Convert.ToString); - } - if (content.Contains("TestSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TestSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TestStaticIPAddress = (string) content.GetValueForProperty("TestStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TestStaticIPAddress, 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 VMwareCbtNicInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("NicId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).NicId, global::System.Convert.ToString); - } - if (content.Contains("IsPrimaryNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).IsPrimaryNic, global::System.Convert.ToString); - } - if (content.Contains("TargetSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TargetSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TargetStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TargetStaticIPAddress = (string) content.GetValueForProperty("TargetStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TargetStaticIPAddress, global::System.Convert.ToString); - } - if (content.Contains("IsSelectedForMigration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).IsSelectedForMigration = (string) content.GetValueForProperty("IsSelectedForMigration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).IsSelectedForMigration, global::System.Convert.ToString); - } - if (content.Contains("TargetNicName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TargetNicName, global::System.Convert.ToString); - } - if (content.Contains("TestSubnetName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TestSubnetName, global::System.Convert.ToString); - } - if (content.Contains("TestStaticIPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TestStaticIPAddress = (string) content.GetValueForProperty("TestStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal)this).TestStaticIPAddress, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMwareCbt NIC input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtNicInputTypeConverter))] - public partial interface IVMwareCbtNicInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtPolicyCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtPolicyCreationInput.PowerShell.cs deleted file mode 100644 index c75511ed953c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtPolicyCreationInput.PowerShell.cs +++ /dev/null @@ -1,170 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMware Cbt policy creation input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtPolicyCreationInputTypeConverter))] - public partial class VMwareCbtPolicyCreationInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareCbtPolicyCreationInput(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.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareCbtPolicyCreationInput(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.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareCbtPolicyCreationInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointHistoryInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 VMwareCbtPolicyCreationInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointHistoryInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMware Cbt policy creation input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtPolicyCreationInputTypeConverter))] - public partial interface IVMwareCbtPolicyCreationInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectedDiskDetails.PowerShell.cs deleted file mode 100644 index 1c397004cd7f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectedDiskDetails.PowerShell.cs +++ /dev/null @@ -1,250 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMwareCbt protected disk details. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtProtectedDiskDetailsTypeConverter))] - public partial class VMwareCbtProtectedDiskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareCbtProtectedDiskDetails(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.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareCbtProtectedDiskDetails(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.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareCbtProtectedDiskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DiskPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskPath = (string) content.GetValueForProperty("DiskPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskPath, global::System.Convert.ToString); - } - if (content.Contains("IsOSDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); - } - if (content.Contains("CapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountSasSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountSasSecretName = (string) content.GetValueForProperty("LogStorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountSasSecretName, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("SeedManagedDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); - } - if (content.Contains("SeedBlobUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).SeedBlobUri = (string) content.GetValueForProperty("SeedBlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).SeedBlobUri, global::System.Convert.ToString); - } - if (content.Contains("TargetManagedDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).TargetManagedDiskId = (string) content.GetValueForProperty("TargetManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).TargetManagedDiskId, global::System.Convert.ToString); - } - if (content.Contains("TargetBlobUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).TargetBlobUri = (string) content.GetValueForProperty("TargetBlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).TargetBlobUri, global::System.Convert.ToString); - } - if (content.Contains("TargetDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).TargetDiskName, 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 VMwareCbtProtectedDiskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); - } - if (content.Contains("DiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); - } - if (content.Contains("DiskType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); - } - if (content.Contains("DiskPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskPath = (string) content.GetValueForProperty("DiskPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskPath, global::System.Convert.ToString); - } - if (content.Contains("IsOSDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); - } - if (content.Contains("CapacityInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("LogStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("LogStorageAccountSasSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountSasSecretName = (string) content.GetValueForProperty("LogStorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountSasSecretName, global::System.Convert.ToString); - } - if (content.Contains("DiskEncryptionSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); - } - if (content.Contains("SeedManagedDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); - } - if (content.Contains("SeedBlobUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).SeedBlobUri = (string) content.GetValueForProperty("SeedBlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).SeedBlobUri, global::System.Convert.ToString); - } - if (content.Contains("TargetManagedDiskId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).TargetManagedDiskId = (string) content.GetValueForProperty("TargetManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).TargetManagedDiskId, global::System.Convert.ToString); - } - if (content.Contains("TargetBlobUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).TargetBlobUri = (string) content.GetValueForProperty("TargetBlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).TargetBlobUri, global::System.Convert.ToString); - } - if (content.Contains("TargetDiskName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal)this).TargetDiskName, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMwareCbt protected disk details. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtProtectedDiskDetailsTypeConverter))] - public partial interface IVMwareCbtProtectedDiskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetails.PowerShell.cs deleted file mode 100644 index dea63603915f..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetails.PowerShell.cs +++ /dev/null @@ -1,205 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMwareCbt provider specific container mapping details. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtProtectionContainerMappingDetailsTypeConverter))] - public partial class VMwareCbtProtectionContainerMappingDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareCbtProtectionContainerMappingDetails(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.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareCbtProtectionContainerMappingDetails(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.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareCbtProtectionContainerMappingDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("KeyVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultId = (string) content.GetValueForProperty("KeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultId, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultUri = (string) content.GetValueForProperty("KeyVaultUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultUri, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountSasSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountSasSecretName = (string) content.GetValueForProperty("StorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountSasSecretName, global::System.Convert.ToString); - } - if (content.Contains("ServiceBusConnectionStringSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).ServiceBusConnectionStringSecretName = (string) content.GetValueForProperty("ServiceBusConnectionStringSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).ServiceBusConnectionStringSecretName, global::System.Convert.ToString); - } - if (content.Contains("TargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).TargetLocation, global::System.Convert.ToString); - } - if (content.Contains("RoleSizeToNicCountMap")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).RoleSizeToNicCountMap = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap) content.GetValueForProperty("RoleSizeToNicCountMap",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).RoleSizeToNicCountMap, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMapTypeConverter.ConvertFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, 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 VMwareCbtProtectionContainerMappingDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("KeyVaultId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultId = (string) content.GetValueForProperty("KeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultId, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultUri = (string) content.GetValueForProperty("KeyVaultUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultUri, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("StorageAccountSasSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountSasSecretName = (string) content.GetValueForProperty("StorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountSasSecretName, global::System.Convert.ToString); - } - if (content.Contains("ServiceBusConnectionStringSecretName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).ServiceBusConnectionStringSecretName = (string) content.GetValueForProperty("ServiceBusConnectionStringSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).ServiceBusConnectionStringSecretName, global::System.Convert.ToString); - } - if (content.Contains("TargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).TargetLocation, global::System.Convert.ToString); - } - if (content.Contains("RoleSizeToNicCountMap")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).RoleSizeToNicCountMap = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap) content.GetValueForProperty("RoleSizeToNicCountMap",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal)this).RoleSizeToNicCountMap, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMapTypeConverter.ConvertFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMwareCbt provider specific container mapping details. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtProtectionContainerMappingDetailsTypeConverter))] - public partial interface IVMwareCbtProtectionContainerMappingDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetails.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetails.cs deleted file mode 100644 index a3400a4738ed..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetails.cs +++ /dev/null @@ -1,199 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// VMwareCbt provider specific container mapping details. - public partial class VMwareCbtProtectionContainerMappingDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails __protectionContainerMappingProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProviderSpecificDetails(); - - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)__protectionContainerMappingProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)__protectionContainerMappingProviderSpecificDetails).InstanceType = value ; } - - /// Backing field for property. - private string _keyVaultId; - - /// The target key vault ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string KeyVaultId { get => this._keyVaultId; } - - /// Backing field for property. - private string _keyVaultUri; - - /// The target key vault URI. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string KeyVaultUri { get => this._keyVaultUri; } - - /// Internal Acessors for KeyVaultId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal.KeyVaultId { get => this._keyVaultId; set { {_keyVaultId = value;} } } - - /// Internal Acessors for KeyVaultUri - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal.KeyVaultUri { get => this._keyVaultUri; set { {_keyVaultUri = value;} } } - - /// Internal Acessors for RoleSizeToNicCountMap - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal.RoleSizeToNicCountMap { get => (this._roleSizeToNicCountMap = this._roleSizeToNicCountMap ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap()); set { {_roleSizeToNicCountMap = value;} } } - - /// Internal Acessors for ServiceBusConnectionStringSecretName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal.ServiceBusConnectionStringSecretName { get => this._serviceBusConnectionStringSecretName; set { {_serviceBusConnectionStringSecretName = value;} } } - - /// Internal Acessors for StorageAccountId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal.StorageAccountId { get => this._storageAccountId; set { {_storageAccountId = value;} } } - - /// Internal Acessors for StorageAccountSasSecretName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal.StorageAccountSasSecretName { get => this._storageAccountSasSecretName; set { {_storageAccountSasSecretName = value;} } } - - /// Internal Acessors for TargetLocation - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsInternal.TargetLocation { get => this._targetLocation; set { {_targetLocation = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap _roleSizeToNicCountMap; - - /// The role size to NIC count map. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap RoleSizeToNicCountMap { get => (this._roleSizeToNicCountMap = this._roleSizeToNicCountMap ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap()); } - - /// Backing field for property. - private string _serviceBusConnectionStringSecretName; - - /// The secret name of the service bus connection string. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ServiceBusConnectionStringSecretName { get => this._serviceBusConnectionStringSecretName; } - - /// Backing field for property. - private string _storageAccountId; - - /// The storage account ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string StorageAccountId { get => this._storageAccountId; } - - /// Backing field for property. - private string _storageAccountSasSecretName; - - /// The secret name of the storage account. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string StorageAccountSasSecretName { get => this._storageAccountSasSecretName; } - - /// Backing field for property. - private string _targetLocation; - - /// The target location. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string TargetLocation { get => this._targetLocation; } - - /// - /// Creates an new instance. - /// - public VMwareCbtProtectionContainerMappingDetails() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__protectionContainerMappingProviderSpecificDetails), __protectionContainerMappingProviderSpecificDetails); - await eventListener.AssertObjectIsValid(nameof(__protectionContainerMappingProviderSpecificDetails), __protectionContainerMappingProviderSpecificDetails); - } - } - /// VMwareCbt provider specific container mapping details. - public partial interface IVMwareCbtProtectionContainerMappingDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails - { - /// The target key vault ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The target key vault ARM Id.", - SerializedName = @"keyVaultId", - PossibleTypes = new [] { typeof(string) })] - string KeyVaultId { get; } - /// The target key vault URI. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The target key vault URI.", - SerializedName = @"keyVaultUri", - PossibleTypes = new [] { typeof(string) })] - string KeyVaultUri { get; } - /// The role size to NIC count map. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The role size to NIC count map.", - SerializedName = @"roleSizeToNicCountMap", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap RoleSizeToNicCountMap { get; } - /// The secret name of the service bus connection string. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The secret name of the service bus connection string.", - SerializedName = @"serviceBusConnectionStringSecretName", - PossibleTypes = new [] { typeof(string) })] - string ServiceBusConnectionStringSecretName { get; } - /// The storage account ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The storage account ARM Id.", - SerializedName = @"storageAccountId", - PossibleTypes = new [] { typeof(string) })] - string StorageAccountId { get; } - /// The secret name of the storage account. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The secret name of the storage account.", - SerializedName = @"storageAccountSasSecretName", - PossibleTypes = new [] { typeof(string) })] - string StorageAccountSasSecretName { get; } - /// The target location. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The target location.", - SerializedName = @"targetLocation", - PossibleTypes = new [] { typeof(string) })] - string TargetLocation { get; } - - } - /// VMwareCbt provider specific container mapping details. - internal partial interface IVMwareCbtProtectionContainerMappingDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal - { - /// The target key vault ARM Id. - string KeyVaultId { get; set; } - /// The target key vault URI. - string KeyVaultUri { get; set; } - /// The role size to NIC count map. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap RoleSizeToNicCountMap { get; set; } - /// The secret name of the service bus connection string. - string ServiceBusConnectionStringSecretName { get; set; } - /// The storage account ARM Id. - string StorageAccountId { get; set; } - /// The secret name of the storage account. - string StorageAccountSasSecretName { get; set; } - /// The target location. - string TargetLocation { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtTestMigrateInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtTestMigrateInput.PowerShell.cs deleted file mode 100644 index af0c26533712..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtTestMigrateInput.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMwareCbt specific test migrate input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtTestMigrateInputTypeConverter))] - public partial class VMwareCbtTestMigrateInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareCbtTestMigrateInput(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.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareCbtTestMigrateInput(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.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareCbtTestMigrateInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("NetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInputInternal)this).NetworkId, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicInputTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInputInternal)this).InstanceType, 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 VMwareCbtTestMigrateInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInputInternal)this).RecoveryPointId, global::System.Convert.ToString); - } - if (content.Contains("NetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInputInternal)this).NetworkId, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicInputTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMwareCbt specific test migrate input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtTestMigrateInputTypeConverter))] - public partial interface IVMwareCbtTestMigrateInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtTestMigrateInput.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtTestMigrateInput.cs deleted file mode 100644 index 2aff1f13ae86..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtTestMigrateInput.cs +++ /dev/null @@ -1,108 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// VMwareCbt specific test migrate input. - public partial class VMwareCbtTestMigrateInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInputInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput __testMigrateProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateProviderSpecificInput(); - - /// The class type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInputInternal)__testMigrateProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInputInternal)__testMigrateProviderSpecificInput).InstanceType = value ; } - - /// Backing field for property. - private string _networkId; - - /// The test network Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string NetworkId { get => this._networkId; set => this._networkId = value; } - - /// Backing field for property. - private string _recoveryPointId; - - /// The recovery point Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string RecoveryPointId { get => this._recoveryPointId; set => this._recoveryPointId = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[] _vMNic; - - /// The list of NIC details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[] VMNic { get => this._vMNic; set => this._vMNic = value; } - - /// Creates an new instance. - public VMwareCbtTestMigrateInput() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__testMigrateProviderSpecificInput), __testMigrateProviderSpecificInput); - await eventListener.AssertObjectIsValid(nameof(__testMigrateProviderSpecificInput), __testMigrateProviderSpecificInput); - } - } - /// VMwareCbt specific test migrate input. - public partial interface IVMwareCbtTestMigrateInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput - { - /// The test network Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The test network Id.", - SerializedName = @"networkId", - PossibleTypes = new [] { typeof(string) })] - string NetworkId { get; set; } - /// The recovery point Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The recovery point Id.", - SerializedName = @"recoveryPointId", - PossibleTypes = new [] { typeof(string) })] - string RecoveryPointId { get; set; } - /// The list of NIC details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of NIC details.", - SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[] VMNic { get; set; } - - } - /// VMwareCbt specific test migrate input. - internal partial interface IVMwareCbtTestMigrateInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInputInternal - { - /// The test network Id. - string NetworkId { get; set; } - /// The recovery point Id. - string RecoveryPointId { get; set; } - /// The list of NIC details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[] VMNic { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInput.PowerShell.cs deleted file mode 100644 index 2c75d90464e1..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInput.PowerShell.cs +++ /dev/null @@ -1,284 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMwareCbt specific update migration item input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtUpdateMigrationItemInputTypeConverter))] - public partial class VMwareCbtUpdateMigrationItemInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareCbtUpdateMigrationItemInput(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.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareCbtUpdateMigrationItemInput(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.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareCbtUpdateMigrationItemInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TargetVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("TargetResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetBootDiagnosticsStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TestNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TestNetworkId, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicInputTypeConverter.ConvertFrom)); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateDiskInputTypeConverter.ConvertFrom)); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); - } - if (content.Contains("PerformAutoResync")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).PerformAutoResync = (string) content.GetValueForProperty("PerformAutoResync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).PerformAutoResync, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetVmtagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags) content.GetValueForProperty("TargetDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType, 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 VMwareCbtUpdateMigrationItemInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("TargetVMName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMName, global::System.Convert.ToString); - } - if (content.Contains("TargetVMSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMSize, global::System.Convert.ToString); - } - if (content.Contains("TargetResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilitySetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); - } - if (content.Contains("TargetAvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); - } - if (content.Contains("TargetProximityPlacementGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); - } - if (content.Contains("TargetBootDiagnosticsStorageAccountId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); - } - if (content.Contains("TargetNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNetworkId, global::System.Convert.ToString); - } - if (content.Contains("TestNetworkId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TestNetworkId, global::System.Convert.ToString); - } - if (content.Contains("VMNic")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicInputTypeConverter.ConvertFrom)); - } - if (content.Contains("VMDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateDiskInputTypeConverter.ConvertFrom)); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); - } - if (content.Contains("SqlServerLicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); - } - if (content.Contains("PerformAutoResync")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).PerformAutoResync = (string) content.GetValueForProperty("PerformAutoResync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).PerformAutoResync, global::System.Convert.ToString); - } - if (content.Contains("TargetVMTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetVmtagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetDiskTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags) content.GetValueForProperty("TargetDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetDiskTagsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetNicTag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetNicTagsTypeConverter.ConvertFrom); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMwareCbt specific update migration item input. - [System.ComponentModel.TypeConverter(typeof(VMwareCbtUpdateMigrationItemInputTypeConverter))] - public partial interface IVMwareCbtUpdateMigrationItemInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareDetails.PowerShell.cs deleted file mode 100644 index ec5e0360046e..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareDetails.PowerShell.cs +++ /dev/null @@ -1,432 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Store the fabric details specific to the VMware fabric. - [System.ComponentModel.TypeConverter(typeof(VMwareDetailsTypeConverter))] - public partial class VMwareDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareDetails(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.Migrate.Models.Api20220501.IVMwareDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareDetails(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.Migrate.Models.Api20220501.IVMwareDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentVersionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails) content.GetValueForProperty("AgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProcessServer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServer[]) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ProcessServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerTypeConverter.ConvertFrom)); - } - if (content.Contains("MasterTargetServer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).MasterTargetServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServer[]) content.GetValueForProperty("MasterTargetServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).MasterTargetServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MasterTargetServerTypeConverter.ConvertFrom)); - } - if (content.Contains("RunAsAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).RunAsAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccount[]) content.GetValueForProperty("RunAsAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).RunAsAccount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RunAsAccountTypeConverter.ConvertFrom)); - } - if (content.Contains("ReplicationPairCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ReplicationPairCount = (string) content.GetValueForProperty("ReplicationPairCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ReplicationPairCount, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ProcessServerCount = (string) content.GetValueForProperty("ProcessServerCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ProcessServerCount, global::System.Convert.ToString); - } - if (content.Contains("AgentCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentCount = (string) content.GetValueForProperty("AgentCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentCount, global::System.Convert.ToString); - } - if (content.Contains("ProtectedServer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ProtectedServer = (string) content.GetValueForProperty("ProtectedServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ProtectedServer, global::System.Convert.ToString); - } - if (content.Contains("SystemLoad")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SystemLoad = (string) content.GetValueForProperty("SystemLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SystemLoad, global::System.Convert.ToString); - } - if (content.Contains("SystemLoadStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SystemLoadStatus = (string) content.GetValueForProperty("SystemLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SystemLoadStatus, global::System.Convert.ToString); - } - if (content.Contains("CpuLoad")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).CpuLoad = (string) content.GetValueForProperty("CpuLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).CpuLoad, global::System.Convert.ToString); - } - if (content.Contains("CpuLoadStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).CpuLoadStatus = (string) content.GetValueForProperty("CpuLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).CpuLoadStatus, global::System.Convert.ToString); - } - if (content.Contains("TotalMemoryInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).TotalMemoryInByte = (long?) content.GetValueForProperty("TotalMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).TotalMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("AvailableMemoryInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AvailableMemoryInByte = (long?) content.GetValueForProperty("AvailableMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AvailableMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("MemoryUsageStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).MemoryUsageStatus = (string) content.GetValueForProperty("MemoryUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).MemoryUsageStatus, global::System.Convert.ToString); - } - if (content.Contains("TotalSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).TotalSpaceInByte = (long?) content.GetValueForProperty("TotalSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).TotalSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("AvailableSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AvailableSpaceInByte = (long?) content.GetValueForProperty("AvailableSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AvailableSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("SpaceUsageStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SpaceUsageStatus = (string) content.GetValueForProperty("SpaceUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SpaceUsageStatus, global::System.Convert.ToString); - } - if (content.Contains("WebLoad")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).WebLoad = (string) content.GetValueForProperty("WebLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).WebLoad, global::System.Convert.ToString); - } - if (content.Contains("WebLoadStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).WebLoadStatus = (string) content.GetValueForProperty("WebLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).WebLoadStatus, global::System.Convert.ToString); - } - if (content.Contains("DatabaseServerLoad")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).DatabaseServerLoad = (string) content.GetValueForProperty("DatabaseServerLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).DatabaseServerLoad, global::System.Convert.ToString); - } - if (content.Contains("DatabaseServerLoadStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).DatabaseServerLoadStatus = (string) content.GetValueForProperty("DatabaseServerLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).DatabaseServerLoadStatus, global::System.Convert.ToString); - } - if (content.Contains("CsServiceStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).CsServiceStatus = (string) content.GetValueForProperty("CsServiceStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).CsServiceStatus, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("AgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersion, global::System.Convert.ToString); - } - if (content.Contains("HostName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).HostName, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VersionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).VersionStatus = (string) content.GetValueForProperty("VersionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).VersionStatus, global::System.Convert.ToString); - } - if (content.Contains("SslCertExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SslCertExpiryDate = (global::System.DateTime?) content.GetValueForProperty("SslCertExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SslCertExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SslCertExpiryRemainingDay")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SslCertExpiryRemainingDay = (int?) content.GetValueForProperty("SslCertExpiryRemainingDay",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SslCertExpiryRemainingDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("PsTemplateVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).PsTemplateVersion = (string) content.GetValueForProperty("PsTemplateVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).PsTemplateVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SwitchProviderBlockingErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SwitchProviderBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails[]) content.GetValueForProperty("SwitchProviderBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SwitchProviderBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("AgentVersionDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetailVersion = (string) content.GetValueForProperty("AgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentVersionDetailExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AgentVersionDetailStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("AgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal VMwareDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentVersionDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails) content.GetValueForProperty("AgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProcessServer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServer[]) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ProcessServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerTypeConverter.ConvertFrom)); - } - if (content.Contains("MasterTargetServer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).MasterTargetServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServer[]) content.GetValueForProperty("MasterTargetServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).MasterTargetServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MasterTargetServerTypeConverter.ConvertFrom)); - } - if (content.Contains("RunAsAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).RunAsAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccount[]) content.GetValueForProperty("RunAsAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).RunAsAccount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RunAsAccountTypeConverter.ConvertFrom)); - } - if (content.Contains("ReplicationPairCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ReplicationPairCount = (string) content.GetValueForProperty("ReplicationPairCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ReplicationPairCount, global::System.Convert.ToString); - } - if (content.Contains("ProcessServerCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ProcessServerCount = (string) content.GetValueForProperty("ProcessServerCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ProcessServerCount, global::System.Convert.ToString); - } - if (content.Contains("AgentCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentCount = (string) content.GetValueForProperty("AgentCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentCount, global::System.Convert.ToString); - } - if (content.Contains("ProtectedServer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ProtectedServer = (string) content.GetValueForProperty("ProtectedServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).ProtectedServer, global::System.Convert.ToString); - } - if (content.Contains("SystemLoad")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SystemLoad = (string) content.GetValueForProperty("SystemLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SystemLoad, global::System.Convert.ToString); - } - if (content.Contains("SystemLoadStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SystemLoadStatus = (string) content.GetValueForProperty("SystemLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SystemLoadStatus, global::System.Convert.ToString); - } - if (content.Contains("CpuLoad")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).CpuLoad = (string) content.GetValueForProperty("CpuLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).CpuLoad, global::System.Convert.ToString); - } - if (content.Contains("CpuLoadStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).CpuLoadStatus = (string) content.GetValueForProperty("CpuLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).CpuLoadStatus, global::System.Convert.ToString); - } - if (content.Contains("TotalMemoryInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).TotalMemoryInByte = (long?) content.GetValueForProperty("TotalMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).TotalMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("AvailableMemoryInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AvailableMemoryInByte = (long?) content.GetValueForProperty("AvailableMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AvailableMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("MemoryUsageStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).MemoryUsageStatus = (string) content.GetValueForProperty("MemoryUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).MemoryUsageStatus, global::System.Convert.ToString); - } - if (content.Contains("TotalSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).TotalSpaceInByte = (long?) content.GetValueForProperty("TotalSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).TotalSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("AvailableSpaceInByte")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AvailableSpaceInByte = (long?) content.GetValueForProperty("AvailableSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AvailableSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("SpaceUsageStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SpaceUsageStatus = (string) content.GetValueForProperty("SpaceUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SpaceUsageStatus, global::System.Convert.ToString); - } - if (content.Contains("WebLoad")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).WebLoad = (string) content.GetValueForProperty("WebLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).WebLoad, global::System.Convert.ToString); - } - if (content.Contains("WebLoadStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).WebLoadStatus = (string) content.GetValueForProperty("WebLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).WebLoadStatus, global::System.Convert.ToString); - } - if (content.Contains("DatabaseServerLoad")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).DatabaseServerLoad = (string) content.GetValueForProperty("DatabaseServerLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).DatabaseServerLoad, global::System.Convert.ToString); - } - if (content.Contains("DatabaseServerLoadStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).DatabaseServerLoadStatus = (string) content.GetValueForProperty("DatabaseServerLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).DatabaseServerLoadStatus, global::System.Convert.ToString); - } - if (content.Contains("CsServiceStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).CsServiceStatus = (string) content.GetValueForProperty("CsServiceStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).CsServiceStatus, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("AgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersion, global::System.Convert.ToString); - } - if (content.Contains("HostName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).HostName, global::System.Convert.ToString); - } - if (content.Contains("LastHeartbeat")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("VersionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).VersionStatus = (string) content.GetValueForProperty("VersionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).VersionStatus, global::System.Convert.ToString); - } - if (content.Contains("SslCertExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SslCertExpiryDate = (global::System.DateTime?) content.GetValueForProperty("SslCertExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SslCertExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SslCertExpiryRemainingDay")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SslCertExpiryRemainingDay = (int?) content.GetValueForProperty("SslCertExpiryRemainingDay",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SslCertExpiryRemainingDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("PsTemplateVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).PsTemplateVersion = (string) content.GetValueForProperty("PsTemplateVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).PsTemplateVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SwitchProviderBlockingErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SwitchProviderBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails[]) content.GetValueForProperty("SwitchProviderBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).SwitchProviderBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("AgentVersionDetailVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetailVersion = (string) content.GetValueForProperty("AgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetailVersion, global::System.Convert.ToString); - } - if (content.Contains("AgentVersionDetailExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("AgentVersionDetailStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("AgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal)this).AgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); - } - AfterDeserializePSObject(content); - } - } - /// Store the fabric details specific to the VMware fabric. - [System.ComponentModel.TypeConverter(typeof(VMwareDetailsTypeConverter))] - public partial interface IVMwareDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricCreationInput.PowerShell.cs deleted file mode 100644 index 81ae926caec6..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricCreationInput.PowerShell.cs +++ /dev/null @@ -1,170 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMwareV2 fabric provider specific settings. - [System.ComponentModel.TypeConverter(typeof(VMwareV2FabricCreationInputTypeConverter))] - public partial class VMwareV2FabricCreationInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareV2FabricCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareV2FabricCreationInput(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.Migrate.Models.Api20220501.IVMwareV2FabricCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareV2FabricCreationInput(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.Migrate.Models.Api20220501.IVMwareV2FabricCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareV2FabricCreationInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VmwareSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInputInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInputInternal)this).VmwareSiteId, global::System.Convert.ToString); - } - if (content.Contains("PhysicalSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInputInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInputInternal)this).PhysicalSiteId, global::System.Convert.ToString); - } - if (content.Contains("MigrationSolutionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInputInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInputInternal)this).MigrationSolutionId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType, 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 VMwareV2FabricCreationInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VmwareSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInputInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInputInternal)this).VmwareSiteId, global::System.Convert.ToString); - } - if (content.Contains("PhysicalSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInputInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInputInternal)this).PhysicalSiteId, global::System.Convert.ToString); - } - if (content.Contains("MigrationSolutionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInputInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInputInternal)this).MigrationSolutionId, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMwareV2 fabric provider specific settings. - [System.ComponentModel.TypeConverter(typeof(VMwareV2FabricCreationInputTypeConverter))] - public partial interface IVMwareV2FabricCreationInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricSpecificDetails.PowerShell.cs deleted file mode 100644 index 648fea8df79b..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricSpecificDetails.PowerShell.cs +++ /dev/null @@ -1,202 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMwareV2 fabric specific details. - [System.ComponentModel.TypeConverter(typeof(VMwareV2FabricSpecificDetailsTypeConverter))] - public partial class VMwareV2FabricSpecificDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareV2FabricSpecificDetails(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.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareV2FabricSpecificDetails(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.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareV2FabricSpecificDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VmwareSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).VmwareSiteId, global::System.Convert.ToString); - } - if (content.Contains("PhysicalSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).PhysicalSiteId, global::System.Convert.ToString); - } - if (content.Contains("MigrationSolutionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).MigrationSolutionId, global::System.Convert.ToString); - } - if (content.Contains("ServiceEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ServiceEndpoint = (string) content.GetValueForProperty("ServiceEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ServiceEndpoint, global::System.Convert.ToString); - } - if (content.Contains("ServiceResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ServiceResourceId = (string) content.GetValueForProperty("ServiceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ServiceResourceId, global::System.Convert.ToString); - } - if (content.Contains("ServiceContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ServiceContainerId = (string) content.GetValueForProperty("ServiceContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ServiceContainerId, global::System.Convert.ToString); - } - if (content.Contains("ProcessServer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails[]) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ProcessServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType, 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 VMwareV2FabricSpecificDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("VmwareSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).VmwareSiteId, global::System.Convert.ToString); - } - if (content.Contains("PhysicalSiteId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).PhysicalSiteId, global::System.Convert.ToString); - } - if (content.Contains("MigrationSolutionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).MigrationSolutionId, global::System.Convert.ToString); - } - if (content.Contains("ServiceEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ServiceEndpoint = (string) content.GetValueForProperty("ServiceEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ServiceEndpoint, global::System.Convert.ToString); - } - if (content.Contains("ServiceResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ServiceResourceId = (string) content.GetValueForProperty("ServiceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ServiceResourceId, global::System.Convert.ToString); - } - if (content.Contains("ServiceContainerId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ServiceContainerId = (string) content.GetValueForProperty("ServiceContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ServiceContainerId, global::System.Convert.ToString); - } - if (content.Contains("ProcessServer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails[]) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal)this).ProcessServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMwareV2 fabric specific details. - [System.ComponentModel.TypeConverter(typeof(VMwareV2FabricSpecificDetailsTypeConverter))] - public partial interface IVMwareV2FabricSpecificDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareVirtualMachineDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VMwareVirtualMachineDetails.PowerShell.cs deleted file mode 100644 index 07c901ff1600..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareVirtualMachineDetails.PowerShell.cs +++ /dev/null @@ -1,226 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMware provider specific settings. - [System.ComponentModel.TypeConverter(typeof(VMwareVirtualMachineDetailsTypeConverter))] - public partial class VMwareVirtualMachineDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVMwareVirtualMachineDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VMwareVirtualMachineDetails(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.Migrate.Models.Api20220501.IVMwareVirtualMachineDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VMwareVirtualMachineDetails(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.Migrate.Models.Api20220501.IVMwareVirtualMachineDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VMwareVirtualMachineDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentGeneratedId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).AgentGeneratedId = (string) content.GetValueForProperty("AgentGeneratedId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).AgentGeneratedId, global::System.Convert.ToString); - } - if (content.Contains("AgentInstalled")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).AgentInstalled = (string) content.GetValueForProperty("AgentInstalled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).AgentInstalled, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("AgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).AgentVersion, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("PoweredOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).PoweredOn = (string) content.GetValueForProperty("PoweredOn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).PoweredOn, global::System.Convert.ToString); - } - if (content.Contains("VCenterInfrastructureId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).VCenterInfrastructureId = (string) content.GetValueForProperty("VCenterInfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).VCenterInfrastructureId, global::System.Convert.ToString); - } - if (content.Contains("DiscoveryType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); - } - if (content.Contains("DiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).DiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetails[]) content.GetValueForProperty("DiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).DiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("ValidationError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType, 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 VMwareVirtualMachineDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("AgentGeneratedId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).AgentGeneratedId = (string) content.GetValueForProperty("AgentGeneratedId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).AgentGeneratedId, global::System.Convert.ToString); - } - if (content.Contains("AgentInstalled")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).AgentInstalled = (string) content.GetValueForProperty("AgentInstalled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).AgentInstalled, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).OSType, global::System.Convert.ToString); - } - if (content.Contains("AgentVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).AgentVersion, global::System.Convert.ToString); - } - if (content.Contains("IPAddress")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).IPAddress, global::System.Convert.ToString); - } - if (content.Contains("PoweredOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).PoweredOn = (string) content.GetValueForProperty("PoweredOn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).PoweredOn, global::System.Convert.ToString); - } - if (content.Contains("VCenterInfrastructureId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).VCenterInfrastructureId = (string) content.GetValueForProperty("VCenterInfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).VCenterInfrastructureId, global::System.Convert.ToString); - } - if (content.Contains("DiscoveryType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); - } - if (content.Contains("DiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).DiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetails[]) content.GetValueForProperty("DiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).DiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("ValidationError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMware provider specific settings. - [System.ComponentModel.TypeConverter(typeof(VMwareVirtualMachineDetailsTypeConverter))] - public partial interface IVMwareVirtualMachineDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultHealthDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VaultHealthDetails.PowerShell.cs deleted file mode 100644 index 95b3ff8a6076..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VaultHealthDetails.PowerShell.cs +++ /dev/null @@ -1,280 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Vault health details definition. - [System.ComponentModel.TypeConverter(typeof(VaultHealthDetailsTypeConverter))] - public partial class VaultHealthDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVaultHealthDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VaultHealthDetails(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.Migrate.Models.Api20220501.IVaultHealthDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VaultHealthDetails(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.Migrate.Models.Api20220501.IVaultHealthDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VaultHealthDetails(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.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultHealthPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemsHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary) content.GetValueForProperty("ProtectedItemsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryTypeConverter.ConvertFrom); - } - if (content.Contains("FabricsHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary) content.GetValueForProperty("FabricsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryTypeConverter.ConvertFrom); - } - if (content.Contains("ContainersHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainersHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary) content.GetValueForProperty("ContainersHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainersHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryTypeConverter.ConvertFrom); - } - if (content.Contains("VaultError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).VaultError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("VaultError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).VaultError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ProtectedItemHealthResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemHealthResourceCount = (int?) content.GetValueForProperty("ProtectedItemHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ProtectedItemHealthIssue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[]) content.GetValueForProperty("ProtectedItemHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummaryTypeConverter.ConvertFrom)); - } - if (content.Contains("ProtectedItemHealthCategorizedResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ProtectedItemHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); - } - if (content.Contains("FabricHealthResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricHealthResourceCount = (int?) content.GetValueForProperty("FabricHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("FabricHealthIssue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[]) content.GetValueForProperty("FabricHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummaryTypeConverter.ConvertFrom)); - } - if (content.Contains("FabricHealthCategorizedResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("FabricHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); - } - if (content.Contains("ContainerHealthResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainerHealthResourceCount = (int?) content.GetValueForProperty("ContainerHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainerHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ContainerHealthIssue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainerHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[]) content.GetValueForProperty("ContainerHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainerHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummaryTypeConverter.ConvertFrom)); - } - if (content.Contains("ContainerHealthCategorizedResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainerHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ContainerHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainerHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal VaultHealthDetails(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.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultHealthPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProtectedItemsHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary) content.GetValueForProperty("ProtectedItemsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryTypeConverter.ConvertFrom); - } - if (content.Contains("FabricsHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary) content.GetValueForProperty("FabricsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryTypeConverter.ConvertFrom); - } - if (content.Contains("ContainersHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainersHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary) content.GetValueForProperty("ContainersHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainersHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryTypeConverter.ConvertFrom); - } - if (content.Contains("VaultError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).VaultError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("VaultError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).VaultError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ProtectedItemHealthResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemHealthResourceCount = (int?) content.GetValueForProperty("ProtectedItemHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ProtectedItemHealthIssue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[]) content.GetValueForProperty("ProtectedItemHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummaryTypeConverter.ConvertFrom)); - } - if (content.Contains("ProtectedItemHealthCategorizedResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ProtectedItemHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ProtectedItemHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); - } - if (content.Contains("FabricHealthResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricHealthResourceCount = (int?) content.GetValueForProperty("FabricHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("FabricHealthIssue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[]) content.GetValueForProperty("FabricHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummaryTypeConverter.ConvertFrom)); - } - if (content.Contains("FabricHealthCategorizedResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("FabricHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).FabricHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); - } - if (content.Contains("ContainerHealthResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainerHealthResourceCount = (int?) content.GetValueForProperty("ContainerHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainerHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ContainerHealthIssue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainerHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[]) content.GetValueForProperty("ContainerHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainerHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummaryTypeConverter.ConvertFrom)); - } - if (content.Contains("ContainerHealthCategorizedResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainerHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ContainerHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal)this).ContainerHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - } - /// Vault health details definition. - [System.ComponentModel.TypeConverter(typeof(VaultHealthDetailsTypeConverter))] - public partial interface IVaultHealthDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultHealthDetails.cs b/src/Migrate/generated/api/Models/Api20220501/VaultHealthDetails.cs deleted file mode 100644 index 1b0b1cfcf20c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VaultHealthDetails.cs +++ /dev/null @@ -1,245 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Vault health details definition. - public partial class VaultHealthDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// The categorized resource counts. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts ContainerHealthCategorizedResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ContainerHealthCategorizedResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ContainerHealthCategorizedResourceCount = value ?? null /* model class */; } - - /// The list of summary of health errors across the resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] ContainerHealthIssue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ContainerHealthIssue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ContainerHealthIssue = value ?? null /* arrayOf */; } - - /// The count of total resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? ContainerHealthResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ContainerHealthResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ContainerHealthResourceCount = value ?? default(int); } - - /// The categorized resource counts. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts FabricHealthCategorizedResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).FabricHealthCategorizedResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).FabricHealthCategorizedResourceCount = value ?? null /* model class */; } - - /// The list of summary of health errors across the resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] FabricHealthIssue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).FabricHealthIssue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).FabricHealthIssue = value ?? null /* arrayOf */; } - - /// The count of total resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? FabricHealthResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).FabricHealthResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).FabricHealthResourceCount = value ?? default(int); } - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Internal Acessors for ContainersHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal.ContainersHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ContainersHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ContainersHealth = value; } - - /// Internal Acessors for FabricsHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal.FabricsHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).FabricsHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).FabricsHealth = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultHealthProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProtectedItemsHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetailsInternal.ProtectedItemsHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ProtectedItemsHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ProtectedItemsHealth = value; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthProperties _property; - - /// The vault health related data. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultHealthProperties()); set => this._property = value; } - - /// The categorized resource counts. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts ProtectedItemHealthCategorizedResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ProtectedItemHealthCategorizedResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ProtectedItemHealthCategorizedResourceCount = value ?? null /* model class */; } - - /// The list of summary of health errors across the resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] ProtectedItemHealthIssue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ProtectedItemHealthIssue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ProtectedItemHealthIssue = value ?? null /* arrayOf */; } - - /// The count of total resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? ProtectedItemHealthResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ProtectedItemHealthResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).ProtectedItemHealthResourceCount = value ?? default(int); } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// The list of errors on the vault. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] VaultError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).VaultError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)Property).VaultError = value ?? null /* arrayOf */; } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - - /// Creates an new instance. - public VaultHealthDetails() - { - - } - } - /// Vault health details definition. - public partial interface IVaultHealthDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// The categorized resource counts. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The categorized resource counts.", - SerializedName = @"categorizedResourceCounts", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts ContainerHealthCategorizedResourceCount { get; set; } - /// The list of summary of health errors across the resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of summary of health errors across the resources under the container.", - SerializedName = @"issues", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] ContainerHealthIssue { get; set; } - /// The count of total resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The count of total resources under the container.", - SerializedName = @"resourceCount", - PossibleTypes = new [] { typeof(int) })] - int? ContainerHealthResourceCount { get; set; } - /// The categorized resource counts. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The categorized resource counts.", - SerializedName = @"categorizedResourceCounts", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts FabricHealthCategorizedResourceCount { get; set; } - /// The list of summary of health errors across the resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of summary of health errors across the resources under the container.", - SerializedName = @"issues", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] FabricHealthIssue { get; set; } - /// The count of total resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The count of total resources under the container.", - SerializedName = @"resourceCount", - PossibleTypes = new [] { typeof(int) })] - int? FabricHealthResourceCount { get; set; } - /// The categorized resource counts. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The categorized resource counts.", - SerializedName = @"categorizedResourceCounts", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts ProtectedItemHealthCategorizedResourceCount { get; set; } - /// The list of summary of health errors across the resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of summary of health errors across the resources under the container.", - SerializedName = @"issues", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] ProtectedItemHealthIssue { get; set; } - /// The count of total resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The count of total resources under the container.", - SerializedName = @"resourceCount", - PossibleTypes = new [] { typeof(int) })] - int? ProtectedItemHealthResourceCount { get; set; } - /// The list of errors on the vault. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of errors on the vault.", - SerializedName = @"vaultErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] VaultError { get; set; } - - } - /// Vault health details definition. - internal partial interface IVaultHealthDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The categorized resource counts. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts ContainerHealthCategorizedResourceCount { get; set; } - /// The list of summary of health errors across the resources under the container. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] ContainerHealthIssue { get; set; } - /// The count of total resources under the container. - int? ContainerHealthResourceCount { get; set; } - /// The list of the health detail of the containers in the vault. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary ContainersHealth { get; set; } - /// The categorized resource counts. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts FabricHealthCategorizedResourceCount { get; set; } - /// The list of summary of health errors across the resources under the container. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] FabricHealthIssue { get; set; } - /// The count of total resources under the container. - int? FabricHealthResourceCount { get; set; } - /// The list of the health detail of the fabrics in the vault. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary FabricsHealth { get; set; } - /// The vault health related data. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthProperties Property { get; set; } - /// The categorized resource counts. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts ProtectedItemHealthCategorizedResourceCount { get; set; } - /// The list of summary of health errors across the resources under the container. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] ProtectedItemHealthIssue { get; set; } - /// The count of total resources under the container. - int? ProtectedItemHealthResourceCount { get; set; } - /// The list of the health detail of the protected items in the vault. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary ProtectedItemsHealth { get; set; } - /// The list of errors on the vault. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] VaultError { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultHealthProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VaultHealthProperties.PowerShell.cs deleted file mode 100644 index af1bff090221..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VaultHealthProperties.PowerShell.cs +++ /dev/null @@ -1,240 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// class to define the health summary of the Vault. - [System.ComponentModel.TypeConverter(typeof(VaultHealthPropertiesTypeConverter))] - public partial class VaultHealthProperties - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVaultHealthProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VaultHealthProperties(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.Migrate.Models.Api20220501.IVaultHealthProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VaultHealthProperties(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.Migrate.Models.Api20220501.IVaultHealthProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VaultHealthProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProtectedItemsHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary) content.GetValueForProperty("ProtectedItemsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryTypeConverter.ConvertFrom); - } - if (content.Contains("FabricsHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary) content.GetValueForProperty("FabricsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryTypeConverter.ConvertFrom); - } - if (content.Contains("ContainersHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainersHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary) content.GetValueForProperty("ContainersHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainersHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryTypeConverter.ConvertFrom); - } - if (content.Contains("VaultError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).VaultError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("VaultError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).VaultError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ProtectedItemHealthResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemHealthResourceCount = (int?) content.GetValueForProperty("ProtectedItemHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ProtectedItemHealthIssue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[]) content.GetValueForProperty("ProtectedItemHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummaryTypeConverter.ConvertFrom)); - } - if (content.Contains("ProtectedItemHealthCategorizedResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ProtectedItemHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); - } - if (content.Contains("FabricHealthResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricHealthResourceCount = (int?) content.GetValueForProperty("FabricHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("FabricHealthIssue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[]) content.GetValueForProperty("FabricHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummaryTypeConverter.ConvertFrom)); - } - if (content.Contains("FabricHealthCategorizedResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("FabricHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); - } - if (content.Contains("ContainerHealthResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainerHealthResourceCount = (int?) content.GetValueForProperty("ContainerHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainerHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ContainerHealthIssue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainerHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[]) content.GetValueForProperty("ContainerHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainerHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummaryTypeConverter.ConvertFrom)); - } - if (content.Contains("ContainerHealthCategorizedResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainerHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ContainerHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainerHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal VaultHealthProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProtectedItemsHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary) content.GetValueForProperty("ProtectedItemsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryTypeConverter.ConvertFrom); - } - if (content.Contains("FabricsHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary) content.GetValueForProperty("FabricsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryTypeConverter.ConvertFrom); - } - if (content.Contains("ContainersHealth")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainersHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary) content.GetValueForProperty("ContainersHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainersHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryTypeConverter.ConvertFrom); - } - if (content.Contains("VaultError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).VaultError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[]) content.GetValueForProperty("VaultError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).VaultError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorTypeConverter.ConvertFrom)); - } - if (content.Contains("ProtectedItemHealthResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemHealthResourceCount = (int?) content.GetValueForProperty("ProtectedItemHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ProtectedItemHealthIssue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[]) content.GetValueForProperty("ProtectedItemHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummaryTypeConverter.ConvertFrom)); - } - if (content.Contains("ProtectedItemHealthCategorizedResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ProtectedItemHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ProtectedItemHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); - } - if (content.Contains("FabricHealthResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricHealthResourceCount = (int?) content.GetValueForProperty("FabricHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("FabricHealthIssue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[]) content.GetValueForProperty("FabricHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummaryTypeConverter.ConvertFrom)); - } - if (content.Contains("FabricHealthCategorizedResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("FabricHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).FabricHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); - } - if (content.Contains("ContainerHealthResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainerHealthResourceCount = (int?) content.GetValueForProperty("ContainerHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainerHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ContainerHealthIssue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainerHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[]) content.GetValueForProperty("ContainerHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainerHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummaryTypeConverter.ConvertFrom)); - } - if (content.Contains("ContainerHealthCategorizedResourceCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainerHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ContainerHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal)this).ContainerHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - } - /// class to define the health summary of the Vault. - [System.ComponentModel.TypeConverter(typeof(VaultHealthPropertiesTypeConverter))] - public partial interface IVaultHealthProperties - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultHealthProperties.cs b/src/Migrate/generated/api/Models/Api20220501/VaultHealthProperties.cs deleted file mode 100644 index 68d84b6373d7..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VaultHealthProperties.cs +++ /dev/null @@ -1,213 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// class to define the health summary of the Vault. - public partial class VaultHealthProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal - { - - /// The categorized resource counts. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts ContainerHealthCategorizedResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)ContainersHealth).CategorizedResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)ContainersHealth).CategorizedResourceCount = value ?? null /* model class */; } - - /// The list of summary of health errors across the resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] ContainerHealthIssue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)ContainersHealth).Issue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)ContainersHealth).Issue = value ?? null /* arrayOf */; } - - /// The count of total resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? ContainerHealthResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)ContainersHealth).ResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)ContainersHealth).ResourceCount = value ?? default(int); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary _containersHealth; - - /// The list of the health detail of the containers in the vault. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary ContainersHealth { get => (this._containersHealth = this._containersHealth ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummary()); set => this._containersHealth = value; } - - /// The categorized resource counts. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts FabricHealthCategorizedResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)FabricsHealth).CategorizedResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)FabricsHealth).CategorizedResourceCount = value ?? null /* model class */; } - - /// The list of summary of health errors across the resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] FabricHealthIssue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)FabricsHealth).Issue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)FabricsHealth).Issue = value ?? null /* arrayOf */; } - - /// The count of total resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? FabricHealthResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)FabricsHealth).ResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)FabricsHealth).ResourceCount = value ?? default(int); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary _fabricsHealth; - - /// The list of the health detail of the fabrics in the vault. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary FabricsHealth { get => (this._fabricsHealth = this._fabricsHealth ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummary()); set => this._fabricsHealth = value; } - - /// Internal Acessors for ContainersHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal.ContainersHealth { get => (this._containersHealth = this._containersHealth ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummary()); set { {_containersHealth = value;} } } - - /// Internal Acessors for FabricsHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal.FabricsHealth { get => (this._fabricsHealth = this._fabricsHealth ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummary()); set { {_fabricsHealth = value;} } } - - /// Internal Acessors for ProtectedItemsHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthPropertiesInternal.ProtectedItemsHealth { get => (this._protectedItemsHealth = this._protectedItemsHealth ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummary()); set { {_protectedItemsHealth = value;} } } - - /// The categorized resource counts. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts ProtectedItemHealthCategorizedResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)ProtectedItemsHealth).CategorizedResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)ProtectedItemsHealth).CategorizedResourceCount = value ?? null /* model class */; } - - /// The list of summary of health errors across the resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] ProtectedItemHealthIssue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)ProtectedItemsHealth).Issue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)ProtectedItemsHealth).Issue = value ?? null /* arrayOf */; } - - /// The count of total resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? ProtectedItemHealthResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)ProtectedItemsHealth).ResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal)ProtectedItemsHealth).ResourceCount = value ?? default(int); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary _protectedItemsHealth; - - /// The list of the health detail of the protected items in the vault. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary ProtectedItemsHealth { get => (this._protectedItemsHealth = this._protectedItemsHealth ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummary()); set => this._protectedItemsHealth = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _vaultError; - - /// The list of errors on the vault. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] VaultError { get => this._vaultError; set => this._vaultError = value; } - - /// Creates an new instance. - public VaultHealthProperties() - { - - } - } - /// class to define the health summary of the Vault. - public partial interface IVaultHealthProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The categorized resource counts. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The categorized resource counts.", - SerializedName = @"categorizedResourceCounts", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts ContainerHealthCategorizedResourceCount { get; set; } - /// The list of summary of health errors across the resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of summary of health errors across the resources under the container.", - SerializedName = @"issues", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] ContainerHealthIssue { get; set; } - /// The count of total resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The count of total resources under the container.", - SerializedName = @"resourceCount", - PossibleTypes = new [] { typeof(int) })] - int? ContainerHealthResourceCount { get; set; } - /// The categorized resource counts. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The categorized resource counts.", - SerializedName = @"categorizedResourceCounts", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts FabricHealthCategorizedResourceCount { get; set; } - /// The list of summary of health errors across the resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of summary of health errors across the resources under the container.", - SerializedName = @"issues", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] FabricHealthIssue { get; set; } - /// The count of total resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The count of total resources under the container.", - SerializedName = @"resourceCount", - PossibleTypes = new [] { typeof(int) })] - int? FabricHealthResourceCount { get; set; } - /// The categorized resource counts. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The categorized resource counts.", - SerializedName = @"categorizedResourceCounts", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts ProtectedItemHealthCategorizedResourceCount { get; set; } - /// The list of summary of health errors across the resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of summary of health errors across the resources under the container.", - SerializedName = @"issues", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] ProtectedItemHealthIssue { get; set; } - /// The count of total resources under the container. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The count of total resources under the container.", - SerializedName = @"resourceCount", - PossibleTypes = new [] { typeof(int) })] - int? ProtectedItemHealthResourceCount { get; set; } - /// The list of errors on the vault. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The list of errors on the vault.", - SerializedName = @"vaultErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] VaultError { get; set; } - - } - /// class to define the health summary of the Vault. - internal partial interface IVaultHealthPropertiesInternal - - { - /// The categorized resource counts. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts ContainerHealthCategorizedResourceCount { get; set; } - /// The list of summary of health errors across the resources under the container. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] ContainerHealthIssue { get; set; } - /// The count of total resources under the container. - int? ContainerHealthResourceCount { get; set; } - /// The list of the health detail of the containers in the vault. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary ContainersHealth { get; set; } - /// The categorized resource counts. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts FabricHealthCategorizedResourceCount { get; set; } - /// The list of summary of health errors across the resources under the container. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] FabricHealthIssue { get; set; } - /// The count of total resources under the container. - int? FabricHealthResourceCount { get; set; } - /// The list of the health detail of the fabrics in the vault. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary FabricsHealth { get; set; } - /// The categorized resource counts. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts ProtectedItemHealthCategorizedResourceCount { get; set; } - /// The list of summary of health errors across the resources under the container. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] ProtectedItemHealthIssue { get; set; } - /// The count of total resources under the container. - int? ProtectedItemHealthResourceCount { get; set; } - /// The list of the health detail of the protected items in the vault. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary ProtectedItemsHealth { get; set; } - /// The list of errors on the vault. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] VaultError { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSetting.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VaultSetting.PowerShell.cs deleted file mode 100644 index 52e821d4ce1c..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSetting.PowerShell.cs +++ /dev/null @@ -1,192 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Vault setting. - [System.ComponentModel.TypeConverter(typeof(VaultSettingTypeConverter))] - public partial class VaultSetting - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVaultSetting DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VaultSetting(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.Migrate.Models.Api20220501.IVaultSetting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VaultSetting(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.Migrate.Models.Api20220501.IVaultSetting FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VaultSetting(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.Migrate.Models.Api20220501.IVaultSettingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("MigrationSolutionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingInternal)this).MigrationSolutionId, global::System.Convert.ToString); - } - if (content.Contains("VmwareToAzureProviderType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingInternal)this).VmwareToAzureProviderType, 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 VaultSetting(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.Migrate.Models.Api20220501.IVaultSettingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("MigrationSolutionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingInternal)this).MigrationSolutionId, global::System.Convert.ToString); - } - if (content.Contains("VmwareToAzureProviderType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingInternal)this).VmwareToAzureProviderType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Vault setting. - [System.ComponentModel.TypeConverter(typeof(VaultSettingTypeConverter))] - public partial interface IVaultSetting - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSetting.cs b/src/Migrate/generated/api/Models/Api20220501/VaultSetting.cs deleted file mode 100644 index c8e48d3795e1..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSetting.cs +++ /dev/null @@ -1,118 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Vault setting. - public partial class VaultSetting : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSetting, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(); - - /// Resource Id - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; } - - /// Resource Location - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Location = value ?? null; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingProperties()); set { {_property = value;} } } - - /// The migration solution ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MigrationSolutionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingPropertiesInternal)Property).MigrationSolutionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingPropertiesInternal)Property).MigrationSolutionId = value ?? null; } - - /// Resource Name - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingProperties _property; - - /// The vault setting properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingProperties()); set => this._property = value; } - - /// Resource Type - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)__resource).Type; } - - /// VMware to Azure provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string VmwareToAzureProviderType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingPropertiesInternal)Property).VmwareToAzureProviderType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingPropertiesInternal)Property).VmwareToAzureProviderType = value ?? null; } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - - /// Creates an new instance. - public VaultSetting() - { - - } - } - /// Vault setting. - public partial interface IVaultSetting : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource - { - /// The migration solution ARM Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The migration solution ARM Id.", - SerializedName = @"migrationSolutionId", - PossibleTypes = new [] { typeof(string) })] - string MigrationSolutionId { get; set; } - /// VMware to Azure provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"VMware to Azure provider type.", - SerializedName = @"vmwareToAzureProviderType", - PossibleTypes = new [] { typeof(string) })] - string VmwareToAzureProviderType { get; set; } - - } - /// Vault setting. - internal partial interface IVaultSettingInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal - { - /// The migration solution ARM Id. - string MigrationSolutionId { get; set; } - /// The vault setting properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingProperties Property { get; set; } - /// VMware to Azure provider type. - string VmwareToAzureProviderType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInput.PowerShell.cs deleted file mode 100644 index b13d7e3f0eef..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInput.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Input to create vault setting. - [System.ComponentModel.TypeConverter(typeof(VaultSettingCreationInputTypeConverter))] - public partial class VaultSettingCreationInput - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVaultSettingCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VaultSettingCreationInput(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.Migrate.Models.Api20220501.IVaultSettingCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VaultSettingCreationInput(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.Migrate.Models.Api20220501.IVaultSettingCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VaultSettingCreationInput(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.Migrate.Models.Api20220501.IVaultSettingCreationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingCreationInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationSolutionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputInternal)this).MigrationSolutionId, global::System.Convert.ToString); - } - if (content.Contains("VmwareToAzureProviderType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputInternal)this).VmwareToAzureProviderType, 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 VaultSettingCreationInput(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.Migrate.Models.Api20220501.IVaultSettingCreationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingCreationInputPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationSolutionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputInternal)this).MigrationSolutionId, global::System.Convert.ToString); - } - if (content.Contains("VmwareToAzureProviderType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputInternal)this).VmwareToAzureProviderType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// Input to create vault setting. - [System.ComponentModel.TypeConverter(typeof(VaultSettingCreationInputTypeConverter))] - public partial interface IVaultSettingCreationInput - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInput.cs b/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInput.cs deleted file mode 100644 index 069a49ea34ab..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInput.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// Input to create vault setting. - public partial class VaultSettingCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputInternal - { - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingCreationInputProperties()); set { {_property = value;} } } - - /// The migration solution Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MigrationSolutionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputPropertiesInternal)Property).MigrationSolutionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputPropertiesInternal)Property).MigrationSolutionId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties _property; - - /// Vault setting creation input properties. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingCreationInputProperties()); set => this._property = value; } - - /// VMware to Azure provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string VmwareToAzureProviderType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputPropertiesInternal)Property).VmwareToAzureProviderType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputPropertiesInternal)Property).VmwareToAzureProviderType = value ?? null; } - - /// Creates an new instance. - public VaultSettingCreationInput() - { - - } - } - /// Input to create vault setting. - public partial interface IVaultSettingCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable - { - /// The migration solution Id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The migration solution Id.", - SerializedName = @"migrationSolutionId", - PossibleTypes = new [] { typeof(string) })] - string MigrationSolutionId { get; set; } - /// VMware to Azure provider type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"VMware to Azure provider type.", - SerializedName = @"vmwareToAzureProviderType", - PossibleTypes = new [] { typeof(string) })] - string VmwareToAzureProviderType { get; set; } - - } - /// Input to create vault setting. - internal partial interface IVaultSettingCreationInputInternal - - { - /// The migration solution Id. - string MigrationSolutionId { get; set; } - /// Vault setting creation input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties Property { get; set; } - /// VMware to Azure provider type. - string VmwareToAzureProviderType { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VersionDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VersionDetails.PowerShell.cs deleted file mode 100644 index 99431956e76d..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VersionDetails.PowerShell.cs +++ /dev/null @@ -1,160 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// Version related details. - [System.ComponentModel.TypeConverter(typeof(VersionDetailsTypeConverter))] - public partial class VersionDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVersionDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VersionDetails(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.Migrate.Models.Api20220501.IVersionDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VersionDetails(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.Migrate.Models.Api20220501.IVersionDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VersionDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("ExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)this).ExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)this).ExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal VersionDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("ExpiryDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)this).ExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)this).ExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); - } - AfterDeserializePSObject(content); - } - } - /// Version related details. - [System.ComponentModel.TypeConverter(typeof(VersionDetailsTypeConverter))] - public partial interface IVersionDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VirtualMachineTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VirtualMachineTaskDetails.PowerShell.cs deleted file mode 100644 index f32f47d534c2..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VirtualMachineTaskDetails.PowerShell.cs +++ /dev/null @@ -1,216 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// This class represents the virtual machine task details. - [System.ComponentModel.TypeConverter(typeof(VirtualMachineTaskDetailsTypeConverter))] - public partial class VirtualMachineTaskDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVirtualMachineTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VirtualMachineTaskDetails(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.Migrate.Models.Api20220501.IVirtualMachineTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VirtualMachineTaskDetails(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.Migrate.Models.Api20220501.IVirtualMachineTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VirtualMachineTaskDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SkippedReason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVirtualMachineTaskDetailsInternal)this).SkippedReason = (string) content.GetValueForProperty("SkippedReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVirtualMachineTaskDetailsInternal)this).SkippedReason, global::System.Convert.ToString); - } - if (content.Contains("SkippedReasonString")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVirtualMachineTaskDetailsInternal)this).SkippedReasonString = (string) content.GetValueForProperty("SkippedReasonString",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVirtualMachineTaskDetailsInternal)this).SkippedReasonString, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobId = (string) content.GetValueForProperty("JobTaskJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobId, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName = (string) content.GetValueForProperty("JobTaskJobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectId = (string) content.GetValueForProperty("JobTaskTargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectId, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetObjectName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectName = (string) content.GetValueForProperty("JobTaskTargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectName, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType = (string) content.GetValueForProperty("JobTaskTargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobScenarioName = (string) content.GetValueForProperty("JobTaskJobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobScenarioName, global::System.Convert.ToString); - } - if (content.Contains("JobTask")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity) content.GetValueForProperty("JobTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTask, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobEntityTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal VirtualMachineTaskDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SkippedReason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVirtualMachineTaskDetailsInternal)this).SkippedReason = (string) content.GetValueForProperty("SkippedReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVirtualMachineTaskDetailsInternal)this).SkippedReason, global::System.Convert.ToString); - } - if (content.Contains("SkippedReasonString")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVirtualMachineTaskDetailsInternal)this).SkippedReasonString = (string) content.GetValueForProperty("SkippedReasonString",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVirtualMachineTaskDetailsInternal)this).SkippedReasonString, global::System.Convert.ToString); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobId = (string) content.GetValueForProperty("JobTaskJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobId, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobFriendlyName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName = (string) content.GetValueForProperty("JobTaskJobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetObjectId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectId = (string) content.GetValueForProperty("JobTaskTargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectId, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetObjectName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectName = (string) content.GetValueForProperty("JobTaskTargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetObjectName, global::System.Convert.ToString); - } - if (content.Contains("JobTaskTargetInstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType = (string) content.GetValueForProperty("JobTaskTargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType, global::System.Convert.ToString); - } - if (content.Contains("JobTaskJobScenarioName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobScenarioName = (string) content.GetValueForProperty("JobTaskJobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTaskJobScenarioName, global::System.Convert.ToString); - } - if (content.Contains("JobTask")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity) content.GetValueForProperty("JobTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)this).JobTask, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobEntityTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - } - /// This class represents the virtual machine task details. - [System.ComponentModel.TypeConverter(typeof(VirtualMachineTaskDetailsTypeConverter))] - public partial interface IVirtualMachineTaskDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VirtualMachineTaskDetails.cs b/src/Migrate/generated/api/Models/Api20220501/VirtualMachineTaskDetails.cs deleted file mode 100644 index e78491e2e5b4..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VirtualMachineTaskDetails.cs +++ /dev/null @@ -1,119 +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.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// This class represents the virtual machine task details. - public partial class VirtualMachineTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVirtualMachineTaskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVirtualMachineTaskDetailsInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetails __jobTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobTaskDetails(); - - /// The type of task details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__jobTaskDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__jobTaskDetails).InstanceType = value ; } - - /// The job entity. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity JobTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTask = value ?? null /* model class */; } - - /// The job display name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string JobTaskJobFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobFriendlyName = value ?? null; } - - /// The job id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string JobTaskJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobId = value ?? null; } - - /// The job name. Enum type ScenarioName. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string JobTaskJobScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobScenarioName = value ?? null; } - - /// The workflow affected object type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string JobTaskTargetInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetInstanceType = value ?? null; } - - /// The object id. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string JobTaskTargetObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectId = value ?? null; } - - /// The object name. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string JobTaskTargetObjectName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectName = value ?? null; } - - /// Backing field for property. - private string _skippedReason; - - /// The skipped reason. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string SkippedReason { get => this._skippedReason; set => this._skippedReason = value; } - - /// Backing field for property. - private string _skippedReasonString; - - /// The skipped reason string. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string SkippedReasonString { get => this._skippedReasonString; set => this._skippedReasonString = value; } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__jobTaskDetails), __jobTaskDetails); - await eventListener.AssertObjectIsValid(nameof(__jobTaskDetails), __jobTaskDetails); - } - - /// Creates an new instance. - public VirtualMachineTaskDetails() - { - - } - } - /// This class represents the virtual machine task details. - public partial interface IVirtualMachineTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetails - { - /// The skipped reason. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The skipped reason.", - SerializedName = @"skippedReason", - PossibleTypes = new [] { typeof(string) })] - string SkippedReason { get; set; } - /// The skipped reason string. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The skipped reason string.", - SerializedName = @"skippedReasonString", - PossibleTypes = new [] { typeof(string) })] - string SkippedReasonString { get; set; } - - } - /// This class represents the virtual machine task details. - internal partial interface IVirtualMachineTaskDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal - { - /// The skipped reason. - string SkippedReason { get; set; } - /// The skipped reason string. - string SkippedReasonString { get; set; } - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmVirtualMachineDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VmmVirtualMachineDetails.PowerShell.cs deleted file mode 100644 index b35e24cd7e69..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VmmVirtualMachineDetails.PowerShell.cs +++ /dev/null @@ -1,256 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMM fabric provider specific VM settings. - [System.ComponentModel.TypeConverter(typeof(VmmVirtualMachineDetailsTypeConverter))] - public partial class VmmVirtualMachineDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVmmVirtualMachineDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VmmVirtualMachineDetails(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.Migrate.Models.Api20220501.IVmmVirtualMachineDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VmmVirtualMachineDetails(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.Migrate.Models.Api20220501.IVmmVirtualMachineDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VmmVirtualMachineDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOstype")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); - } - if (content.Contains("OSDetailProductType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType = (string) content.GetValueForProperty("OSDetailProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsedition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition = (string) content.GetValueForProperty("OSDetailOsedition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsversion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion = (string) content.GetValueForProperty("OSDetailOsversion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsmajorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion = (string) content.GetValueForProperty("OSDetailOsmajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsminorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion = (string) content.GetValueForProperty("OSDetailOsminorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion, global::System.Convert.ToString); - } - if (content.Contains("OSDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("SourceItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).SourceItemId = (string) content.GetValueForProperty("SourceItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).SourceItemId, global::System.Convert.ToString); - } - if (content.Contains("Generation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).Generation = (string) content.GetValueForProperty("Generation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).Generation, global::System.Convert.ToString); - } - if (content.Contains("DiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).DiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[]) content.GetValueForProperty("DiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).DiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("HasPhysicalDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasPhysicalDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); - } - if (content.Contains("HasFibreChannelAdapter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasFibreChannelAdapter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); - } - if (content.Contains("HasSharedVhd")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasSharedVhd",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); - } - if (content.Contains("HyperVHostId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId = (string) content.GetValueForProperty("HyperVHostId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId, 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 VmmVirtualMachineDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOstype")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); - } - if (content.Contains("OSDetailProductType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType = (string) content.GetValueForProperty("OSDetailProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsedition")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition = (string) content.GetValueForProperty("OSDetailOsedition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsversion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion = (string) content.GetValueForProperty("OSDetailOsversion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsmajorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion = (string) content.GetValueForProperty("OSDetailOsmajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion, global::System.Convert.ToString); - } - if (content.Contains("OSDetailOsminorVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion = (string) content.GetValueForProperty("OSDetailOsminorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion, global::System.Convert.ToString); - } - if (content.Contains("OSDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("SourceItemId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).SourceItemId = (string) content.GetValueForProperty("SourceItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).SourceItemId, global::System.Convert.ToString); - } - if (content.Contains("Generation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).Generation = (string) content.GetValueForProperty("Generation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).Generation, global::System.Convert.ToString); - } - if (content.Contains("DiskDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).DiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[]) content.GetValueForProperty("DiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).DiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("HasPhysicalDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasPhysicalDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); - } - if (content.Contains("HasFibreChannelAdapter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasFibreChannelAdapter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); - } - if (content.Contains("HasSharedVhd")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasSharedVhd",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); - } - if (content.Contains("HyperVHostId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId = (string) content.GetValueForProperty("HyperVHostId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMM fabric provider specific VM settings. - [System.ComponentModel.TypeConverter(typeof(VmmVirtualMachineDetailsTypeConverter))] - public partial interface IVmmVirtualMachineDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmVirtualMachineDetails.cs b/src/Migrate/generated/api/Models/Api20220501/VmmVirtualMachineDetails.cs deleted file mode 100644 index 04f27c24e509..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VmmVirtualMachineDetails.cs +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; - - /// VMM fabric provider specific VM settings. - public partial class VmmVirtualMachineDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmVirtualMachineDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmVirtualMachineDetailsInternal, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetails __hyperVVirtualMachineDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVVirtualMachineDetails(); - - /// The Last successful failover time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] DiskDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).DiskDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).DiskDetail = value ?? null /* arrayOf */; } - - /// The id of the object in fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string Generation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).Generation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).Generation = value ?? null; } - - /// - /// A value indicating whether the VM has a fibre channel adapter attached. String value of SrsDataContract.PresenceStatus - /// enum. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus? HasFibreChannelAdapter { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HasFibreChannelAdapter; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HasFibreChannelAdapter = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus)""); } - - /// - /// A value indicating whether the VM has a physical disk attached. String value of SrsDataContract.PresenceStatus enum. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus? HasPhysicalDisk { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HasPhysicalDisk; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HasPhysicalDisk = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus)""); } - - /// - /// A value indicating whether the VM has a shared VHD attached. String value of SrsDataContract.PresenceStatus enum. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus? HasSharedVhd { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HasSharedVhd; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HasSharedVhd = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus)""); } - - /// The Id of the hyper-v host in fabric. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string HyperVHostId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HyperVHostId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HyperVHostId = value ?? null; } - - /// Gets the class type. Overridden in derived classes. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)__hyperVVirtualMachineDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)__hyperVVirtualMachineDetails).InstanceType = value ; } - - /// The Last replication time. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails OSDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetail = value ?? null /* model class */; } - - /// The OSEdition. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string OSDetailOsedition { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsedition; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsedition = value ?? null; } - - /// The OS Major Version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string OSDetailOsmajorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsmajorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsmajorVersion = value ?? null; } - - /// The OS Minor Version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string OSDetailOsminorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsminorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsminorVersion = value ?? null; } - - /// VM Disk details. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string OSDetailOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOstype; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOstype = value ?? null; } - - /// The OS Version. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string OSDetailOsversion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsversion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsversion = value ?? null; } - - /// Product type. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string OSDetailProductType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailProductType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailProductType = value ?? null; } - - /// The source id of the object. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string SourceItemId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).SourceItemId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).SourceItemId = value ?? null; } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__hyperVVirtualMachineDetails), __hyperVVirtualMachineDetails); - await eventListener.AssertObjectIsValid(nameof(__hyperVVirtualMachineDetails), __hyperVVirtualMachineDetails); - } - - /// Creates an new instance. - public VmmVirtualMachineDetails() - { - - } - } - /// VMM fabric provider specific VM settings. - public partial interface IVmmVirtualMachineDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetails - { - - } - /// VMM fabric provider specific VM settings. - internal partial interface IVmmVirtualMachineDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VmwareCbtPolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api20220501/VmwareCbtPolicyDetails.PowerShell.cs deleted file mode 100644 index cb5c647f3f28..000000000000 --- a/src/Migrate/generated/api/Models/Api20220501/VmwareCbtPolicyDetails.PowerShell.cs +++ /dev/null @@ -1,168 +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.Migrate.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; - - /// VMware Cbt specific policy details. - [System.ComponentModel.TypeConverter(typeof(VmwareCbtPolicyDetailsTypeConverter))] - public partial class VmwareCbtPolicyDetails - { - - /// - /// 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); - - /// - /// 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.Migrate.Models.Api20220501.IVmwareCbtPolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VmwareCbtPolicyDetails(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.Migrate.Models.Api20220501.IVmwareCbtPolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VmwareCbtPolicyDetails(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.Migrate.Models.Api20220501.IVmwareCbtPolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VmwareCbtPolicyDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointHistoryInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetailsInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetailsInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 VmwareCbtPolicyDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecoveryPointHistoryInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetailsInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetailsInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AppConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("CrashConsistentFrequencyInMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("InstanceType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// VMware Cbt specific policy details. - [System.ComponentModel.TypeConverter(typeof(VmwareCbtPolicyDetailsTypeConverter))] - public partial interface IVmwareCbtPolicyDetails - - { - - } -} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api202301/A2AAddDisksInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AAddDisksInput.PowerShell.cs new file mode 100644 index 000000000000..7d9a55e5c1ef --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AAddDisksInput.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A add disk(s) input. + [System.ComponentModel.TypeConverter(typeof(A2AAddDisksInputTypeConverter))] + public partial class A2AAddDisksInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AAddDisksInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInputInternal)this).InstanceType, 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 A2AAddDisksInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AAddDisksInput(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.Migrate.Models.Api202301.IA2AAddDisksInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AAddDisksInput(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.Migrate.Models.Api202301.IA2AAddDisksInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A add disk(s) input. + [System.ComponentModel.TypeConverter(typeof(A2AAddDisksInputTypeConverter))] + public partial interface IA2AAddDisksInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AAddDisksInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AAddDisksInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/A2AAddDisksInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AAddDisksInput.TypeConverter.cs index d0f7c75ffa6a..76fe5db760df 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AAddDisksInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AAddDisksInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AAddDisksInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AAddDisksInput.cs b/src/Migrate/generated/api/Models/Api202301/A2AAddDisksInput.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/A2AAddDisksInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2AAddDisksInput.cs index a2d163cf9270..7aa17e036cc0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AAddDisksInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AAddDisksInput.cs @@ -3,39 +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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A add disk(s) input. public partial class A2AAddDisksInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput __addDisksProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput __addDisksProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInputInternal)__addDisksProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInputInternal)__addDisksProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInputInternal)__addDisksProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInputInternal)__addDisksProviderSpecificInput).InstanceType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] _vMDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] _vMDisk; /// The list of vm disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[] _vMManagedDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[] _vMManagedDisk; /// The list of vm managed disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get => this._vMManagedDisk; set => this._vMManagedDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get => this._vMManagedDisk; set => this._vMManagedDisk = value; } /// Creates an new instance. public A2AAddDisksInput() @@ -58,7 +58,7 @@ public A2AAddDisksInput() /// A2A add disk(s) input. public partial interface IA2AAddDisksInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput { /// The list of vm disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -66,26 +66,26 @@ public partial interface IA2AAddDisksInput : ReadOnly = false, Description = @"The list of vm disk details.", SerializedName = @"vmDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] VMDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] VMDisk { get; set; } /// The list of vm managed disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The list of vm managed disk details.", SerializedName = @"vmManagedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get; set; } } /// A2A add disk(s) input. internal partial interface IA2AAddDisksInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInputInternal { /// The list of vm disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] VMDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] VMDisk { get; set; } /// The list of vm managed disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AAddDisksInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AAddDisksInput.json.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/A2AAddDisksInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AAddDisksInput.json.cs index cd576bec3d18..2c4b075757b4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AAddDisksInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AAddDisksInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,20 +65,20 @@ internal A2AAddDisksInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Jso { return; } - __addDisksProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksProviderSpecificInput(json); - {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AvmDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmDiskInputDetails.FromJson(__u) )) ))() : null : VMDisk;} - {_vMManagedDisk = If( json?.PropertyT("vmManagedDisks"), out var __jsonVMManagedDisks) ? If( __jsonVMManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskInputDetails.FromJson(__p) )) ))() : null : VMManagedDisk;} + __addDisksProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksProviderSpecificInput(json); + {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IA2AvmDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmDiskInputDetails.FromJson(__u) )) ))() : null : VMDisk;} + {_vMManagedDisk = If( json?.PropertyT("vmManagedDisks"), out var __jsonVMManagedDisks) ? If( __jsonVMManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskInputDetails.FromJson(__p) )) ))() : null : VMManagedDisk;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AAddDisksInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AAddDisksInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AAddDisksInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AApplyRecoveryPointInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AApplyRecoveryPointInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/A2AApplyRecoveryPointInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/A2AApplyRecoveryPointInput.PowerShell.cs index ec5ef3e2995f..d7a3d1e46888 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AApplyRecoveryPointInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class A2AApplyRecoveryPointInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,13 +70,13 @@ internal A2AApplyRecoveryPointInput(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, 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. @@ -91,33 +91,33 @@ internal A2AApplyRecoveryPointInput(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Models.Api20220501.IA2AApplyRecoveryPointInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AApplyRecoveryPointInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new A2AApplyRecoveryPointInput(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.Migrate.Models.Api20220501.IA2AApplyRecoveryPointInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AApplyRecoveryPointInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new A2AApplyRecoveryPointInput(content); } @@ -127,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2A /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AApplyRecoveryPointInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AApplyRecoveryPointInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AApplyRecoveryPointInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AApplyRecoveryPointInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AApplyRecoveryPointInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AApplyRecoveryPointInput.TypeConverter.cs index 6771eaccdb4b..8cd4cdd82fb0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AApplyRecoveryPointInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AApplyRecoveryPointInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AApplyRecoveryPointInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AApplyRecoveryPointInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AApplyRecoveryPointInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AApplyRecoveryPointInput.cs b/src/Migrate/generated/api/Models/Api202301/A2AApplyRecoveryPointInput.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/A2AApplyRecoveryPointInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2AApplyRecoveryPointInput.cs index 1e51dc08272a..5bc3b5b20226 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AApplyRecoveryPointInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// ApplyRecoveryPoint input specific to A2A provider. public partial class A2AApplyRecoveryPointInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AApplyRecoveryPointInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AApplyRecoveryPointInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AApplyRecoveryPointInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AApplyRecoveryPointInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType = value ; } /// Creates an new instance. public A2AApplyRecoveryPointInput() @@ -44,13 +44,13 @@ public A2AApplyRecoveryPointInput() /// ApplyRecoveryPoint input specific to A2A provider. public partial interface IA2AApplyRecoveryPointInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput { } /// ApplyRecoveryPoint input specific to A2A provider. internal partial interface IA2AApplyRecoveryPointInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal { } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AApplyRecoveryPointInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AApplyRecoveryPointInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/A2AApplyRecoveryPointInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AApplyRecoveryPointInput.json.cs index d2e0cd7adf91..771a122047a8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AApplyRecoveryPointInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal A2AApplyRecoveryPointInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.R { return; } - __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput(json); + __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AApplyRecoveryPointInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AApplyRecoveryPointInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AApplyRecoveryPointInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AApplyRecoveryPointInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AApplyRecoveryPointInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AApplyRecoveryPointInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AApplyRecoveryPointInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AContainerCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AContainerCreationInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/A2AContainerCreationInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/A2AContainerCreationInput.PowerShell.cs index 9136dbe6d003..9193b7ceee57 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AContainerCreationInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AContainerCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class A2AContainerCreationInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,13 +70,13 @@ internal A2AContainerCreationInput(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, 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. @@ -91,33 +91,33 @@ internal A2AContainerCreationInput(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, 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.Migrate.Models.Api20220501.IA2AContainerCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new A2AContainerCreationInput(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.Migrate.Models.Api20220501.IA2AContainerCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new A2AContainerCreationInput(content); } @@ -127,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2A /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AContainerCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AContainerCreationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AContainerCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AContainerCreationInput.TypeConverter.cs index f83eb7c4ac97..0b2915551266 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AContainerCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AContainerCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AContainerCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AContainerCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/A2AContainerCreationInput.cs new file mode 100644 index 000000000000..c97bd414c3ec --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AContainerCreationInput.cs @@ -0,0 +1,57 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// A2A cloud creation input. + public partial class A2AContainerCreationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerCreationInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput __replicationProviderSpecificContainerCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerCreationInput(); + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)__replicationProviderSpecificContainerCreationInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)__replicationProviderSpecificContainerCreationInput).InstanceType = value ; } + + /// Creates an new instance. + public A2AContainerCreationInput() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__replicationProviderSpecificContainerCreationInput), __replicationProviderSpecificContainerCreationInput); + await eventListener.AssertObjectIsValid(nameof(__replicationProviderSpecificContainerCreationInput), __replicationProviderSpecificContainerCreationInput); + } + } + /// A2A cloud creation input. + public partial interface IA2AContainerCreationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput + { + + } + /// A2A cloud creation input. + internal partial interface IA2AContainerCreationInputInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AContainerCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AContainerCreationInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/A2AContainerCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AContainerCreationInput.json.cs index 581756d8386b..a5b010a5ce4f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AContainerCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AContainerCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal A2AContainerCreationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - __replicationProviderSpecificContainerCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerCreationInput(json); + __replicationProviderSpecificContainerCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerCreationInput(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerCreationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerCreationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AContainerCreationInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AContainerMappingInput.PowerShell.cs new file mode 100644 index 000000000000..d2598ee40cc1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AContainerMappingInput.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A container mapping input. + [System.ComponentModel.TypeConverter(typeof(A2AContainerMappingInputTypeConverter))] + public partial class A2AContainerMappingInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AContainerMappingInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentAutoUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInputInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInputInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); + } + if (content.Contains("AutomationAccountArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInputInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInputInternal)this).AutomationAccountArmId, global::System.Convert.ToString); + } + if (content.Contains("AutomationAccountAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInputInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInputInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType, 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 A2AContainerMappingInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentAutoUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInputInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInputInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); + } + if (content.Contains("AutomationAccountArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInputInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInputInternal)this).AutomationAccountArmId, global::System.Convert.ToString); + } + if (content.Contains("AutomationAccountAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInputInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInputInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AContainerMappingInput(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.Migrate.Models.Api202301.IA2AContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AContainerMappingInput(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.Migrate.Models.Api202301.IA2AContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A container mapping input. + [System.ComponentModel.TypeConverter(typeof(A2AContainerMappingInputTypeConverter))] + public partial interface IA2AContainerMappingInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AContainerMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AContainerMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AContainerMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AContainerMappingInput.TypeConverter.cs index 58c9446b7573..fd189488e139 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AContainerMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AContainerMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AContainerMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/A2AContainerMappingInput.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/A2AContainerMappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2AContainerMappingInput.cs index b7110d69db14..5129380b1596 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AContainerMappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A container mapping input. public partial class A2AContainerMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput __replicationProviderSpecificContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerMappingInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput __replicationProviderSpecificContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerMappingInput(); /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? _agentAutoUpdateStatus; @@ -42,7 +42,7 @@ public partial class A2AContainerMappingInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)__replicationProviderSpecificContainerMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)__replicationProviderSpecificContainerMappingInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)__replicationProviderSpecificContainerMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)__replicationProviderSpecificContainerMappingInput).InstanceType = value ; } /// Creates an new instance. public A2AContainerMappingInput() @@ -65,7 +65,7 @@ public A2AContainerMappingInput() /// A2A container mapping input. public partial interface IA2AContainerMappingInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput { /// A value indicating whether the auto update is enabled. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -95,7 +95,7 @@ public partial interface IA2AContainerMappingInput : } /// A2A container mapping input. internal partial interface IA2AContainerMappingInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal { /// A value indicating whether the auto update is enabled. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AContainerMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AContainerMappingInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/A2AContainerMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AContainerMappingInput.json.cs index 124967242003..2fea3c5a7e93 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AContainerMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,7 +65,7 @@ internal A2AContainerMappingInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - __replicationProviderSpecificContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerMappingInput(json); + __replicationProviderSpecificContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerMappingInput(json); {_agentAutoUpdateStatus = If( json?.PropertyT("agentAutoUpdateStatus"), out var __jsonAgentAutoUpdateStatus) ? (string)__jsonAgentAutoUpdateStatus : (string)AgentAutoUpdateStatus;} {_automationAccountArmId = If( json?.PropertyT("automationAccountArmId"), out var __jsonAutomationAccountArmId) ? (string)__jsonAutomationAccountArmId : (string)AutomationAccountArmId;} {_automationAccountAuthenticationType = If( json?.PropertyT("automationAccountAuthenticationType"), out var __jsonAutomationAccountAuthenticationType) ? (string)__jsonAutomationAccountAuthenticationType : (string)AutomationAccountAuthenticationType;} @@ -73,13 +73,13 @@ internal A2AContainerMappingInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AContainerMappingInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2ACreateProtectionIntentInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2ACreateProtectionIntentInput.PowerShell.cs new file mode 100644 index 000000000000..43471ee785d1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2ACreateProtectionIntentInput.PowerShell.cs @@ -0,0 +1,418 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A create protection intent input. + [System.ComponentModel.TypeConverter(typeof(A2ACreateProtectionIntentInputTypeConverter))] + public partial class A2ACreateProtectionIntentInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2ACreateProtectionIntentInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProtectionProfileCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails) content.GetValueForProperty("ProtectionProfileCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryStagingStorageAccountCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryAvailabilitySetCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails) content.GetValueForProperty("RecoveryAvailabilitySetCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryAvailabilitySetCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryVirtualNetworkCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails) content.GetValueForProperty("RecoveryVirtualNetworkCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryProximityPlacementGroupCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails) content.GetValueForProperty("RecoveryProximityPlacementGroupCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryProximityPlacementGroupCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryBootDiagStorageAccount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails) content.GetValueForProperty("RecoveryBootDiagStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).PrimaryLocation = (string) content.GetValueForProperty("PrimaryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).PrimaryLocation, global::System.Convert.ToString); + } + if (content.Contains("RecoveryLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryLocation = (string) content.GetValueForProperty("RecoveryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryLocation, global::System.Convert.ToString); + } + if (content.Contains("RecoverySubscriptionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoverySubscriptionId = (string) content.GetValueForProperty("RecoverySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoverySubscriptionId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType) content.GetValueForProperty("RecoveryAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType.CreateFrom); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("AutoProtectionOfDataDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AutoProtectionOfDataDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("AutoProtectionOfDataDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AutoProtectionOfDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.CreateFrom); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentManagedDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("AgentAutoUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); + } + if (content.Contains("AutomationAccountAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); + } + if (content.Contains("AutomationAccountArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountArmId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("ProtectionProfileCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInputResourceType = (string) content.GetValueForProperty("ProtectionProfileCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("PrimaryStagingStorageAccountCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySetCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInputResourceType = (string) content.GetValueForProperty("RecoveryAvailabilitySetCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVirtualNetworkCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInputResourceType = (string) content.GetValueForProperty("RecoveryVirtualNetworkCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProximityPlacementGroupCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInputResourceType = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryBootDiagStorageAccountResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccountResourceType = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccountResourceType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2ACreateProtectionIntentInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProtectionProfileCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails) content.GetValueForProperty("ProtectionProfileCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryStagingStorageAccountCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryAvailabilitySetCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails) content.GetValueForProperty("RecoveryAvailabilitySetCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryAvailabilitySetCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryVirtualNetworkCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails) content.GetValueForProperty("RecoveryVirtualNetworkCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryProximityPlacementGroupCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails) content.GetValueForProperty("RecoveryProximityPlacementGroupCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryProximityPlacementGroupCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryBootDiagStorageAccount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails) content.GetValueForProperty("RecoveryBootDiagStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).PrimaryLocation = (string) content.GetValueForProperty("PrimaryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).PrimaryLocation, global::System.Convert.ToString); + } + if (content.Contains("RecoveryLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryLocation = (string) content.GetValueForProperty("RecoveryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryLocation, global::System.Convert.ToString); + } + if (content.Contains("RecoverySubscriptionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoverySubscriptionId = (string) content.GetValueForProperty("RecoverySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoverySubscriptionId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType) content.GetValueForProperty("RecoveryAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType.CreateFrom); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("AutoProtectionOfDataDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AutoProtectionOfDataDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("AutoProtectionOfDataDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AutoProtectionOfDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.CreateFrom); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentManagedDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("AgentAutoUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); + } + if (content.Contains("AutomationAccountAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); + } + if (content.Contains("AutomationAccountArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).AutomationAccountArmId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("ProtectionProfileCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInputResourceType = (string) content.GetValueForProperty("ProtectionProfileCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).ProtectionProfileCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("PrimaryStagingStorageAccountCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).PrimaryStagingStorageAccountCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySetCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInputResourceType = (string) content.GetValueForProperty("RecoveryAvailabilitySetCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryAvailabilitySetCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVirtualNetworkCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInputResourceType = (string) content.GetValueForProperty("RecoveryVirtualNetworkCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryVirtualNetworkCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProximityPlacementGroupCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInputResourceType = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryProximityPlacementGroupCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryBootDiagStorageAccountResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccountResourceType = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).RecoveryBootDiagStorageAccountResourceType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2ACreateProtectionIntentInput(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.Migrate.Models.Api202301.IA2ACreateProtectionIntentInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2ACreateProtectionIntentInput(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.Migrate.Models.Api202301.IA2ACreateProtectionIntentInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A create protection intent input. + [System.ComponentModel.TypeConverter(typeof(A2ACreateProtectionIntentInputTypeConverter))] + public partial interface IA2ACreateProtectionIntentInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACreateProtectionIntentInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2ACreateProtectionIntentInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2ACreateProtectionIntentInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACreateProtectionIntentInput.TypeConverter.cs index 8fb75939df08..0136ecc1e0a0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACreateProtectionIntentInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACreateProtectionIntentInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2ACreateProtectionIntentInput.cs b/src/Migrate/generated/api/Models/Api202301/A2ACreateProtectionIntentInput.cs new file mode 100644 index 000000000000..9fa491fee27a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2ACreateProtectionIntentInput.cs @@ -0,0 +1,556 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// A2A create protection intent input. + public partial class A2ACreateProtectionIntentInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails __createProtectionIntentProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentProviderSpecificDetails(); + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? _agentAutoUpdateStatus; + + /// A value indicating whether the auto update is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get => this._agentAutoUpdateStatus; set => this._agentAutoUpdateStatus = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? _autoProtectionOfDataDisk; + + /// A value indicating whether the auto protection is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? AutoProtectionOfDataDisk { get => this._autoProtectionOfDataDisk; set => this._autoProtectionOfDataDisk = value; } + + /// Backing field for property. + private string _automationAccountArmId; + + /// The automation account arm id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string AutomationAccountArmId { get => this._automationAccountArmId; set => this._automationAccountArmId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? _automationAccountAuthenticationType; + + /// + /// A value indicating the authentication type for automation account. The default value is "RunAsAccount". + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? AutomationAccountAuthenticationType { get => this._automationAccountAuthenticationType; set => this._automationAccountAuthenticationType = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo _diskEncryptionInfo; + + /// The recovery disk encryption information (for two pass flows). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } + + /// The KeyVault resource ARM id for secret. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + + /// The secret url / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } + + /// Backing field for property. + private string _fabricObjectId; + + /// The fabric specific object Id of the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string FabricObjectId { get => this._fabricObjectId; set => this._fabricObjectId = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetailsInternal)__createProtectionIntentProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetailsInternal)__createProtectionIntentProviderSpecificDetails).InstanceType = value ; } + + /// The key URL / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } + + /// The KeyVault resource ARM Id for key. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + + /// Internal Acessors for DiskEncryptionInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } + + /// Internal Acessors for DiskEncryptionInfoDiskEncryptionKeyInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } + + /// Internal Acessors for DiskEncryptionInfoKeyEncryptionKeyInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } + + /// Internal Acessors for PrimaryStagingStorageAccountCustomInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal.PrimaryStagingStorageAccountCustomInput { get => (this._primaryStagingStorageAccountCustomInput = this._primaryStagingStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails()); set { {_primaryStagingStorageAccountCustomInput = value;} } } + + /// Internal Acessors for ProtectionProfileCustomInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal.ProtectionProfileCustomInput { get => (this._protectionProfileCustomInput = this._protectionProfileCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetails()); set { {_protectionProfileCustomInput = value;} } } + + /// Internal Acessors for RecoveryAvailabilitySetCustomInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal.RecoveryAvailabilitySetCustomInput { get => (this._recoveryAvailabilitySetCustomInput = this._recoveryAvailabilitySetCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryAvailabilitySetCustomDetails()); set { {_recoveryAvailabilitySetCustomInput = value;} } } + + /// Internal Acessors for RecoveryBootDiagStorageAccount + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal.RecoveryBootDiagStorageAccount { get => (this._recoveryBootDiagStorageAccount = this._recoveryBootDiagStorageAccount ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails()); set { {_recoveryBootDiagStorageAccount = value;} } } + + /// Internal Acessors for RecoveryProximityPlacementGroupCustomInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal.RecoveryProximityPlacementGroupCustomInput { get => (this._recoveryProximityPlacementGroupCustomInput = this._recoveryProximityPlacementGroupCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryProximityPlacementGroupCustomDetails()); set { {_recoveryProximityPlacementGroupCustomInput = value;} } } + + /// Internal Acessors for RecoveryVirtualNetworkCustomInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInputInternal.RecoveryVirtualNetworkCustomInput { get => (this._recoveryVirtualNetworkCustomInput = this._recoveryVirtualNetworkCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetails()); set { {_recoveryVirtualNetworkCustomInput = value;} } } + + /// Backing field for property. + private string _multiVMGroupId; + + /// The multi vm group id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string MultiVMGroupId { get => this._multiVMGroupId; set => this._multiVMGroupId = value; } + + /// Backing field for property. + private string _multiVMGroupName; + + /// The multi vm group name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string MultiVMGroupName { get => this._multiVMGroupName; set => this._multiVMGroupName = value; } + + /// Backing field for property. + private string _primaryLocation; + + /// The primary location for the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PrimaryLocation { get => this._primaryLocation; set => this._primaryLocation = value; } + + /// + /// Backing field for property. + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails _primaryStagingStorageAccountCustomInput; + + /// The primary staging storage account input. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get => (this._primaryStagingStorageAccountCustomInput = this._primaryStagingStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails()); set => this._primaryStagingStorageAccountCustomInput = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryStagingStorageAccountCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccountCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccountCustomInput).ResourceType = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails _protectionProfileCustomInput; + + /// The protection profile custom inputs. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails ProtectionProfileCustomInput { get => (this._protectionProfileCustomInput = this._protectionProfileCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetails()); set => this._protectionProfileCustomInput = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProtectionProfileCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)ProtectionProfileCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)ProtectionProfileCustomInput).ResourceType = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails _recoveryAvailabilitySetCustomInput; + + /// The recovery availability set input. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails RecoveryAvailabilitySetCustomInput { get => (this._recoveryAvailabilitySetCustomInput = this._recoveryAvailabilitySetCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryAvailabilitySetCustomDetails()); set => this._recoveryAvailabilitySetCustomInput = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryAvailabilitySetCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal)RecoveryAvailabilitySetCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal)RecoveryAvailabilitySetCustomInput).ResourceType = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType _recoveryAvailabilityType; + + /// The recovery availability type of the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType RecoveryAvailabilityType { get => this._recoveryAvailabilityType; set => this._recoveryAvailabilityType = value; } + + /// Backing field for property. + private string _recoveryAvailabilityZone; + + /// The recovery availability zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoveryAvailabilityZone { get => this._recoveryAvailabilityZone; set => this._recoveryAvailabilityZone = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails _recoveryBootDiagStorageAccount; + + /// The boot diagnostic storage account. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails RecoveryBootDiagStorageAccount { get => (this._recoveryBootDiagStorageAccount = this._recoveryBootDiagStorageAccount ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails()); set => this._recoveryBootDiagStorageAccount = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryBootDiagStorageAccountResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)RecoveryBootDiagStorageAccount).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)RecoveryBootDiagStorageAccount).ResourceType = value ?? null; } + + /// Backing field for property. + private string _recoveryLocation; + + /// The recovery location for the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoveryLocation { get => this._recoveryLocation; set => this._recoveryLocation = value; } + + /// + /// Backing field for property. + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails _recoveryProximityPlacementGroupCustomInput; + + /// The recovery proximity placement group custom input. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails RecoveryProximityPlacementGroupCustomInput { get => (this._recoveryProximityPlacementGroupCustomInput = this._recoveryProximityPlacementGroupCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryProximityPlacementGroupCustomDetails()); set => this._recoveryProximityPlacementGroupCustomInput = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryProximityPlacementGroupCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal)RecoveryProximityPlacementGroupCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal)RecoveryProximityPlacementGroupCustomInput).ResourceType = value ?? null; } + + /// Backing field for property. + private string _recoveryResourceGroupId; + + /// The recovery resource group Id. Valid for V2 scenarios. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoveryResourceGroupId { get => this._recoveryResourceGroupId; set => this._recoveryResourceGroupId = value; } + + /// Backing field for property. + private string _recoverySubscriptionId; + + /// The recovery subscription Id of the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoverySubscriptionId { get => this._recoverySubscriptionId; set => this._recoverySubscriptionId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails _recoveryVirtualNetworkCustomInput; + + /// The recovery virtual network input. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails RecoveryVirtualNetworkCustomInput { get => (this._recoveryVirtualNetworkCustomInput = this._recoveryVirtualNetworkCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetails()); set => this._recoveryVirtualNetworkCustomInput = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryVirtualNetworkCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)RecoveryVirtualNetworkCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)RecoveryVirtualNetworkCustomInput).ResourceType = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails[] _vMDisk; + + /// The list of vm disk inputs. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails[] _vMManagedDisk; + + /// The list of vm managed disk inputs. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails[] VMManagedDisk { get => this._vMManagedDisk; set => this._vMManagedDisk = value; } + + /// Creates an new instance. + public A2ACreateProtectionIntentInput() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__createProtectionIntentProviderSpecificDetails), __createProtectionIntentProviderSpecificDetails); + await eventListener.AssertObjectIsValid(nameof(__createProtectionIntentProviderSpecificDetails), __createProtectionIntentProviderSpecificDetails); + } + } + /// A2A create protection intent input. + public partial interface IA2ACreateProtectionIntentInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails + { + /// A value indicating whether the auto update is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether the auto update is enabled.", + SerializedName = @"agentAutoUpdateStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get; set; } + /// A value indicating whether the auto protection is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether the auto protection is enabled.", + SerializedName = @"autoProtectionOfDataDisk", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? AutoProtectionOfDataDisk { get; set; } + /// The automation account arm id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The automation account arm id.", + SerializedName = @"automationAccountArmId", + PossibleTypes = new [] { typeof(string) })] + string AutomationAccountArmId { get; set; } + /// + /// A value indicating the authentication type for automation account. The default value is "RunAsAccount". + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating the authentication type for automation account. The default value is ""RunAsAccount"".", + SerializedName = @"automationAccountAuthenticationType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? AutomationAccountAuthenticationType { get; set; } + /// The KeyVault resource ARM id for secret. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The KeyVault resource ARM id for secret.", + SerializedName = @"keyVaultResourceArmId", + PossibleTypes = new [] { typeof(string) })] + string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + /// The secret url / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The secret url / identifier.", + SerializedName = @"secretIdentifier", + PossibleTypes = new [] { typeof(string) })] + string DiskEncryptionKeyInfoSecretIdentifier { get; set; } + /// The fabric specific object Id of the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The fabric specific object Id of the virtual machine.", + SerializedName = @"fabricObjectId", + PossibleTypes = new [] { typeof(string) })] + string FabricObjectId { get; set; } + /// The key URL / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key URL / identifier.", + SerializedName = @"keyIdentifier", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyInfoKeyIdentifier { get; set; } + /// The KeyVault resource ARM Id for key. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The KeyVault resource ARM Id for key.", + SerializedName = @"keyVaultResourceArmId", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + /// The multi vm group id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The multi vm group id.", + SerializedName = @"multiVmGroupId", + PossibleTypes = new [] { typeof(string) })] + string MultiVMGroupId { get; set; } + /// The multi vm group name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The multi vm group name.", + SerializedName = @"multiVmGroupName", + PossibleTypes = new [] { typeof(string) })] + string MultiVMGroupName { get; set; } + /// The primary location for the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The primary location for the virtual machine.", + SerializedName = @"primaryLocation", + PossibleTypes = new [] { typeof(string) })] + string PrimaryLocation { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string PrimaryStagingStorageAccountCustomInputResourceType { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string ProtectionProfileCustomInputResourceType { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string RecoveryAvailabilitySetCustomInputResourceType { get; set; } + /// The recovery availability type of the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The recovery availability type of the virtual machine.", + SerializedName = @"recoveryAvailabilityType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType RecoveryAvailabilityType { get; set; } + /// The recovery availability zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery availability zone.", + SerializedName = @"recoveryAvailabilityZone", + PossibleTypes = new [] { typeof(string) })] + string RecoveryAvailabilityZone { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string RecoveryBootDiagStorageAccountResourceType { get; set; } + /// The recovery location for the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The recovery location for the virtual machine.", + SerializedName = @"recoveryLocation", + PossibleTypes = new [] { typeof(string) })] + string RecoveryLocation { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string RecoveryProximityPlacementGroupCustomInputResourceType { get; set; } + /// The recovery resource group Id. Valid for V2 scenarios. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The recovery resource group Id. Valid for V2 scenarios.", + SerializedName = @"recoveryResourceGroupId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryResourceGroupId { get; set; } + /// The recovery subscription Id of the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The recovery subscription Id of the virtual machine.", + SerializedName = @"recoverySubscriptionId", + PossibleTypes = new [] { typeof(string) })] + string RecoverySubscriptionId { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string RecoveryVirtualNetworkCustomInputResourceType { get; set; } + /// The list of vm disk inputs. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of vm disk inputs.", + SerializedName = @"vmDisks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails[] VMDisk { get; set; } + /// The list of vm managed disk inputs. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of vm managed disk inputs.", + SerializedName = @"vmManagedDisks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails[] VMManagedDisk { get; set; } + + } + /// A2A create protection intent input. + internal partial interface IA2ACreateProtectionIntentInputInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetailsInternal + { + /// A value indicating whether the auto update is enabled. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get; set; } + /// A value indicating whether the auto protection is enabled. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? AutoProtectionOfDataDisk { get; set; } + /// The automation account arm id. + string AutomationAccountArmId { get; set; } + /// + /// A value indicating the authentication type for automation account. The default value is "RunAsAccount". + /// + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? AutomationAccountAuthenticationType { get; set; } + /// The recovery disk encryption information (for two pass flows). + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } + /// The recovery KeyVault reference for secret. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } + /// The recovery KeyVault reference for key. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } + /// The KeyVault resource ARM id for secret. + string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + /// The secret url / identifier. + string DiskEncryptionKeyInfoSecretIdentifier { get; set; } + /// The fabric specific object Id of the virtual machine. + string FabricObjectId { get; set; } + /// The key URL / identifier. + string KeyEncryptionKeyInfoKeyIdentifier { get; set; } + /// The KeyVault resource ARM Id for key. + string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + /// The multi vm group id. + string MultiVMGroupId { get; set; } + /// The multi vm group name. + string MultiVMGroupName { get; set; } + /// The primary location for the virtual machine. + string PrimaryLocation { get; set; } + /// The primary staging storage account input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get; set; } + /// The class type. + string PrimaryStagingStorageAccountCustomInputResourceType { get; set; } + /// The protection profile custom inputs. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails ProtectionProfileCustomInput { get; set; } + /// The class type. + string ProtectionProfileCustomInputResourceType { get; set; } + /// The recovery availability set input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails RecoveryAvailabilitySetCustomInput { get; set; } + /// The class type. + string RecoveryAvailabilitySetCustomInputResourceType { get; set; } + /// The recovery availability type of the virtual machine. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARecoveryAvailabilityType RecoveryAvailabilityType { get; set; } + /// The recovery availability zone. + string RecoveryAvailabilityZone { get; set; } + /// The boot diagnostic storage account. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails RecoveryBootDiagStorageAccount { get; set; } + /// The class type. + string RecoveryBootDiagStorageAccountResourceType { get; set; } + /// The recovery location for the virtual machine. + string RecoveryLocation { get; set; } + /// The recovery proximity placement group custom input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails RecoveryProximityPlacementGroupCustomInput { get; set; } + /// The class type. + string RecoveryProximityPlacementGroupCustomInputResourceType { get; set; } + /// The recovery resource group Id. Valid for V2 scenarios. + string RecoveryResourceGroupId { get; set; } + /// The recovery subscription Id of the virtual machine. + string RecoverySubscriptionId { get; set; } + /// The recovery virtual network input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails RecoveryVirtualNetworkCustomInput { get; set; } + /// The class type. + string RecoveryVirtualNetworkCustomInputResourceType { get; set; } + /// The list of vm disk inputs. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails[] VMDisk { get; set; } + /// The list of vm managed disk inputs. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails[] VMManagedDisk { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACreateProtectionIntentInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2ACreateProtectionIntentInput.json.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/A2ACreateProtectionIntentInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACreateProtectionIntentInput.json.cs index e1f514547ee5..c18f3b295845 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACreateProtectionIntentInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACreateProtectionIntentInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,14 +65,14 @@ internal A2ACreateProtectionIntentInput(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - __createProtectionIntentProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentProviderSpecificDetails(json); - {_protectionProfileCustomInput = If( json?.PropertyT("protectionProfileCustomInput"), out var __jsonProtectionProfileCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetails.FromJson(__jsonProtectionProfileCustomInput) : ProtectionProfileCustomInput;} - {_primaryStagingStorageAccountCustomInput = If( json?.PropertyT("primaryStagingStorageAccountCustomInput"), out var __jsonPrimaryStagingStorageAccountCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails.FromJson(__jsonPrimaryStagingStorageAccountCustomInput) : PrimaryStagingStorageAccountCustomInput;} - {_recoveryAvailabilitySetCustomInput = If( json?.PropertyT("recoveryAvailabilitySetCustomInput"), out var __jsonRecoveryAvailabilitySetCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryAvailabilitySetCustomDetails.FromJson(__jsonRecoveryAvailabilitySetCustomInput) : RecoveryAvailabilitySetCustomInput;} - {_recoveryVirtualNetworkCustomInput = If( json?.PropertyT("recoveryVirtualNetworkCustomInput"), out var __jsonRecoveryVirtualNetworkCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetails.FromJson(__jsonRecoveryVirtualNetworkCustomInput) : RecoveryVirtualNetworkCustomInput;} - {_recoveryProximityPlacementGroupCustomInput = If( json?.PropertyT("recoveryProximityPlacementGroupCustomInput"), out var __jsonRecoveryProximityPlacementGroupCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryProximityPlacementGroupCustomDetails.FromJson(__jsonRecoveryProximityPlacementGroupCustomInput) : RecoveryProximityPlacementGroupCustomInput;} - {_recoveryBootDiagStorageAccount = If( json?.PropertyT("recoveryBootDiagStorageAccount"), out var __jsonRecoveryBootDiagStorageAccount) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails.FromJson(__jsonRecoveryBootDiagStorageAccount) : RecoveryBootDiagStorageAccount;} - {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} + __createProtectionIntentProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentProviderSpecificDetails(json); + {_protectionProfileCustomInput = If( json?.PropertyT("protectionProfileCustomInput"), out var __jsonProtectionProfileCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetails.FromJson(__jsonProtectionProfileCustomInput) : ProtectionProfileCustomInput;} + {_primaryStagingStorageAccountCustomInput = If( json?.PropertyT("primaryStagingStorageAccountCustomInput"), out var __jsonPrimaryStagingStorageAccountCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails.FromJson(__jsonPrimaryStagingStorageAccountCustomInput) : PrimaryStagingStorageAccountCustomInput;} + {_recoveryAvailabilitySetCustomInput = If( json?.PropertyT("recoveryAvailabilitySetCustomInput"), out var __jsonRecoveryAvailabilitySetCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryAvailabilitySetCustomDetails.FromJson(__jsonRecoveryAvailabilitySetCustomInput) : RecoveryAvailabilitySetCustomInput;} + {_recoveryVirtualNetworkCustomInput = If( json?.PropertyT("recoveryVirtualNetworkCustomInput"), out var __jsonRecoveryVirtualNetworkCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetails.FromJson(__jsonRecoveryVirtualNetworkCustomInput) : RecoveryVirtualNetworkCustomInput;} + {_recoveryProximityPlacementGroupCustomInput = If( json?.PropertyT("recoveryProximityPlacementGroupCustomInput"), out var __jsonRecoveryProximityPlacementGroupCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryProximityPlacementGroupCustomDetails.FromJson(__jsonRecoveryProximityPlacementGroupCustomInput) : RecoveryProximityPlacementGroupCustomInput;} + {_recoveryBootDiagStorageAccount = If( json?.PropertyT("recoveryBootDiagStorageAccount"), out var __jsonRecoveryBootDiagStorageAccount) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails.FromJson(__jsonRecoveryBootDiagStorageAccount) : RecoveryBootDiagStorageAccount;} + {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} {_fabricObjectId = If( json?.PropertyT("fabricObjectId"), out var __jsonFabricObjectId) ? (string)__jsonFabricObjectId : (string)FabricObjectId;} {_primaryLocation = If( json?.PropertyT("primaryLocation"), out var __jsonPrimaryLocation) ? (string)__jsonPrimaryLocation : (string)PrimaryLocation;} {_recoveryLocation = If( json?.PropertyT("recoveryLocation"), out var __jsonRecoveryLocation) ? (string)__jsonRecoveryLocation : (string)RecoveryLocation;} @@ -80,8 +80,8 @@ internal A2ACreateProtectionIntentInput(Microsoft.Azure.PowerShell.Cmdlets.Migra {_recoveryAvailabilityType = If( json?.PropertyT("recoveryAvailabilityType"), out var __jsonRecoveryAvailabilityType) ? (string)__jsonRecoveryAvailabilityType : (string)RecoveryAvailabilityType;} {_recoveryResourceGroupId = If( json?.PropertyT("recoveryResourceGroupId"), out var __jsonRecoveryResourceGroupId) ? (string)__jsonRecoveryResourceGroupId : (string)RecoveryResourceGroupId;} {_autoProtectionOfDataDisk = If( json?.PropertyT("autoProtectionOfDataDisk"), out var __jsonAutoProtectionOfDataDisk) ? (string)__jsonAutoProtectionOfDataDisk : (string)AutoProtectionOfDataDisk;} - {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentDiskInputDetails.FromJson(__u) )) ))() : null : VMDisk;} - {_vMManagedDisk = If( json?.PropertyT("vmManagedDisks"), out var __jsonVMManagedDisks) ? If( __jsonVMManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentManagedDiskInputDetails.FromJson(__p) )) ))() : null : VMManagedDisk;} + {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentDiskInputDetails.FromJson(__u) )) ))() : null : VMDisk;} + {_vMManagedDisk = If( json?.PropertyT("vmManagedDisks"), out var __jsonVMManagedDisks) ? If( __jsonVMManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentManagedDiskInputDetails.FromJson(__p) )) ))() : null : VMManagedDisk;} {_multiVMGroupName = If( json?.PropertyT("multiVmGroupName"), out var __jsonMultiVMGroupName) ? (string)__jsonMultiVMGroupName : (string)MultiVMGroupName;} {_multiVMGroupId = If( json?.PropertyT("multiVmGroupId"), out var __jsonMultiVMGroupId) ? (string)__jsonMultiVMGroupId : (string)MultiVMGroupId;} {_recoveryAvailabilityZone = If( json?.PropertyT("recoveryAvailabilityZone"), out var __jsonRecoveryAvailabilityZone) ? (string)__jsonRecoveryAvailabilityZone : (string)RecoveryAvailabilityZone;} @@ -92,13 +92,13 @@ internal A2ACreateProtectionIntentInput(Microsoft.Azure.PowerShell.Cmdlets.Migra } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACreateProtectionIntentInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACreateProtectionIntentInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2ACreateProtectionIntentInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationApplyRecoveryPointInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationApplyRecoveryPointInput.PowerShell.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationApplyRecoveryPointInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationApplyRecoveryPointInput.PowerShell.cs index e2cbbf1cff79..d5a047163190 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationApplyRecoveryPointInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class A2ACrossClusterMigrationApplyRecoveryPointInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,13 +70,13 @@ internal A2ACrossClusterMigrationApplyRecoveryPointInput(global::System.Collecti // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, 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. @@ -91,35 +91,35 @@ internal A2ACrossClusterMigrationApplyRecoveryPointInput(global::System.Manageme // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Models.Api20220501.IA2ACrossClusterMigrationApplyRecoveryPointInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationApplyRecoveryPointInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new A2ACrossClusterMigrationApplyRecoveryPointInput(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.Migrate.Models.Api20220501.IA2ACrossClusterMigrationApplyRecoveryPointInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationApplyRecoveryPointInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new A2ACrossClusterMigrationApplyRecoveryPointInput(content); } @@ -132,7 +132,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2A /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationApplyRecoveryPointInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationApplyRecoveryPointInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationApplyRecoveryPointInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationApplyRecoveryPointInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationApplyRecoveryPointInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationApplyRecoveryPointInput.TypeConverter.cs index c2ab154ff974..eb64a90c0321 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationApplyRecoveryPointInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationApplyRecoveryPointInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationApplyRecoveryPointInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationApplyRecoveryPointInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationApplyRecoveryPointInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationApplyRecoveryPointInput.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationApplyRecoveryPointInput.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationApplyRecoveryPointInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationApplyRecoveryPointInput.cs index 5b0bd3a12729..654ca0f19d75 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationApplyRecoveryPointInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// ApplyRecoveryPoint input specific to A2ACrossClusterMigration provider. public partial class A2ACrossClusterMigrationApplyRecoveryPointInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationApplyRecoveryPointInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationApplyRecoveryPointInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationApplyRecoveryPointInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationApplyRecoveryPointInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType = value ; } /// /// Creates an new instance. @@ -46,13 +46,13 @@ public A2ACrossClusterMigrationApplyRecoveryPointInput() /// ApplyRecoveryPoint input specific to A2ACrossClusterMigration provider. public partial interface IA2ACrossClusterMigrationApplyRecoveryPointInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput { } /// ApplyRecoveryPoint input specific to A2ACrossClusterMigration provider. internal partial interface IA2ACrossClusterMigrationApplyRecoveryPointInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal { } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationApplyRecoveryPointInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationApplyRecoveryPointInput.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationApplyRecoveryPointInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationApplyRecoveryPointInput.json.cs index 761d58231890..ceeff9325e29 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationApplyRecoveryPointInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -66,18 +66,18 @@ internal A2ACrossClusterMigrationApplyRecoveryPointInput(Microsoft.Azure.PowerSh { return; } - __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput(json); + __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationApplyRecoveryPointInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationApplyRecoveryPointInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationApplyRecoveryPointInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationApplyRecoveryPointInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationApplyRecoveryPointInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationApplyRecoveryPointInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2ACrossClusterMigrationApplyRecoveryPointInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationContainerCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationContainerCreationInput.PowerShell.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationContainerCreationInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationContainerCreationInput.PowerShell.cs index baaa8039bbc6..d0da49e25400 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationContainerCreationInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationContainerCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class A2ACrossClusterMigrationContainerCreationInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,13 +70,13 @@ internal A2ACrossClusterMigrationContainerCreationInput(global::System.Collectio // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, 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. @@ -91,35 +91,35 @@ internal A2ACrossClusterMigrationContainerCreationInput(global::System.Managemen // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, 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.Migrate.Models.Api20220501.IA2ACrossClusterMigrationContainerCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationContainerCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new A2ACrossClusterMigrationContainerCreationInput(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.Migrate.Models.Api20220501.IA2ACrossClusterMigrationContainerCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationContainerCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new A2ACrossClusterMigrationContainerCreationInput(content); } @@ -132,7 +132,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2A /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationContainerCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationContainerCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationContainerCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationContainerCreationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationContainerCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationContainerCreationInput.TypeConverter.cs index f8214a0b831c..b1587ef9ea71 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationContainerCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationContainerCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2ACrossClusterMigrationContainerCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationContainerCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationContainerCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationContainerCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationContainerCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationContainerCreationInput.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationContainerCreationInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationContainerCreationInput.cs index 5e282fb6a9e4..47fc5b19e595 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationContainerCreationInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationContainerCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2ACrossClusterMigration cloud creation input. public partial class A2ACrossClusterMigrationContainerCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationContainerCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationContainerCreationInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationContainerCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationContainerCreationInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput __replicationProviderSpecificContainerCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerCreationInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput __replicationProviderSpecificContainerCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerCreationInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)__replicationProviderSpecificContainerCreationInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)__replicationProviderSpecificContainerCreationInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)__replicationProviderSpecificContainerCreationInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)__replicationProviderSpecificContainerCreationInput).InstanceType = value ; } /// /// Creates an new instance. @@ -46,13 +46,13 @@ public A2ACrossClusterMigrationContainerCreationInput() /// A2ACrossClusterMigration cloud creation input. public partial interface IA2ACrossClusterMigrationContainerCreationInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput { } /// A2ACrossClusterMigration cloud creation input. internal partial interface IA2ACrossClusterMigrationContainerCreationInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal { } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationContainerCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationContainerCreationInput.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationContainerCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationContainerCreationInput.json.cs index ece50f132cc6..7bdfec978217 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationContainerCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationContainerCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -66,18 +66,18 @@ internal A2ACrossClusterMigrationContainerCreationInput(Microsoft.Azure.PowerShe { return; } - __replicationProviderSpecificContainerCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerCreationInput(json); + __replicationProviderSpecificContainerCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerCreationInput(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationContainerCreationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationContainerCreationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationContainerCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationContainerCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationContainerCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationContainerCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2ACrossClusterMigrationContainerCreationInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationEnableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationEnableProtectionInput.PowerShell.cs new file mode 100644 index 000000000000..52c100a2e124 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationEnableProtectionInput.PowerShell.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A Cross-Cluster Migration enable protection input. + [System.ComponentModel.TypeConverter(typeof(A2ACrossClusterMigrationEnableProtectionInputTypeConverter))] + public partial class A2ACrossClusterMigrationEnableProtectionInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2ACrossClusterMigrationEnableProtectionInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, 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 A2ACrossClusterMigrationEnableProtectionInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2ACrossClusterMigrationEnableProtectionInput(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.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2ACrossClusterMigrationEnableProtectionInput(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.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A Cross-Cluster Migration enable protection input. + [System.ComponentModel.TypeConverter(typeof(A2ACrossClusterMigrationEnableProtectionInputTypeConverter))] + public partial interface IA2ACrossClusterMigrationEnableProtectionInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationEnableProtectionInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationEnableProtectionInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationEnableProtectionInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationEnableProtectionInput.TypeConverter.cs index c2de75a323ad..6595861432ce 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationEnableProtectionInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationEnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationEnableProtectionInput.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationEnableProtectionInput.cs similarity index 84% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationEnableProtectionInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationEnableProtectionInput.cs index 2ef58c8dd163..5712c3b00575 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationEnableProtectionInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationEnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A Cross-Cluster Migration enable protection input. public partial class A2ACrossClusterMigrationEnableProtectionInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput(); /// Backing field for property. private string _fabricObjectId; @@ -28,7 +28,7 @@ public partial class A2ACrossClusterMigrationEnableProtectionInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _recoveryContainerId; @@ -60,7 +60,7 @@ public A2ACrossClusterMigrationEnableProtectionInput() /// A2A Cross-Cluster Migration enable protection input. public partial interface IA2ACrossClusterMigrationEnableProtectionInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput { /// The fabric specific object Id of the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -82,7 +82,7 @@ public partial interface IA2ACrossClusterMigrationEnableProtectionInput : } /// A2A Cross-Cluster Migration enable protection input. internal partial interface IA2ACrossClusterMigrationEnableProtectionInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal { /// The fabric specific object Id of the virtual machine. string FabricObjectId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationEnableProtectionInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationEnableProtectionInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationEnableProtectionInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationEnableProtectionInput.json.cs index 402c516373cd..ccad1b1ce50f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationEnableProtectionInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationEnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -66,20 +66,20 @@ internal A2ACrossClusterMigrationEnableProtectionInput(Microsoft.Azure.PowerShel { return; } - __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput(json); + __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput(json); {_fabricObjectId = If( json?.PropertyT("fabricObjectId"), out var __jsonFabricObjectId) ? (string)__jsonFabricObjectId : (string)FabricObjectId;} {_recoveryContainerId = If( json?.PropertyT("recoveryContainerId"), out var __jsonRecoveryContainerId) ? (string)__jsonRecoveryContainerId : (string)RecoveryContainerId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationEnableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationEnableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2ACrossClusterMigrationEnableProtectionInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationPolicyCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationPolicyCreationInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationPolicyCreationInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationPolicyCreationInput.PowerShell.cs index 7ed2bfd26fd9..30032c39f21a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationPolicyCreationInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationPolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class A2ACrossClusterMigrationPolicyCreationInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,13 +70,13 @@ internal A2ACrossClusterMigrationPolicyCreationInput(global::System.Collections. // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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. @@ -91,35 +91,35 @@ internal A2ACrossClusterMigrationPolicyCreationInput(global::System.Management.A // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Models.Api20220501.IA2ACrossClusterMigrationPolicyCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationPolicyCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new A2ACrossClusterMigrationPolicyCreationInput(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.Migrate.Models.Api20220501.IA2ACrossClusterMigrationPolicyCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationPolicyCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new A2ACrossClusterMigrationPolicyCreationInput(content); } @@ -132,7 +132,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2A /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationPolicyCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationPolicyCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationPolicyCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationPolicyCreationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationPolicyCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationPolicyCreationInput.TypeConverter.cs index bba0f18591e7..0e6b86de8c92 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationPolicyCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationPolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2ACrossClusterMigrationPolicyCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationPolicyCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationPolicyCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationPolicyCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationPolicyCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationPolicyCreationInput.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationPolicyCreationInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationPolicyCreationInput.cs index 134bf9e984b1..ef6b07b4bd57 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationPolicyCreationInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationPolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A Cross-Cluster Migration Policy creation input. public partial class A2ACrossClusterMigrationPolicyCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationPolicyCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationPolicyCreationInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationPolicyCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationPolicyCreationInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } /// /// Creates an new instance. @@ -46,13 +46,13 @@ public A2ACrossClusterMigrationPolicyCreationInput() /// A2A Cross-Cluster Migration Policy creation input. public partial interface IA2ACrossClusterMigrationPolicyCreationInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput { } /// A2A Cross-Cluster Migration Policy creation input. internal partial interface IA2ACrossClusterMigrationPolicyCreationInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal { } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationPolicyCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationPolicyCreationInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationPolicyCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationPolicyCreationInput.json.cs index 25efe3147a49..78e48fbb72e9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationPolicyCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationPolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal A2ACrossClusterMigrationPolicyCreationInput(Microsoft.Azure.PowerShell. { return; } - __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(json); + __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationPolicyCreationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationPolicyCreationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationPolicyCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationPolicyCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationPolicyCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationPolicyCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2ACrossClusterMigrationPolicyCreationInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationReplicationDetails.PowerShell.cs new file mode 100644 index 000000000000..c93ee452a757 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationReplicationDetails.PowerShell.cs @@ -0,0 +1,197 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A provider specific settings. + [System.ComponentModel.TypeConverter(typeof(A2ACrossClusterMigrationReplicationDetailsTypeConverter))] + public partial class A2ACrossClusterMigrationReplicationDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2ACrossClusterMigrationReplicationDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).PrimaryFabricLocation = (string) content.GetValueForProperty("PrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).PrimaryFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("LifecycleId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).LifecycleId = (string) content.GetValueForProperty("LifecycleId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).LifecycleId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, 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 A2ACrossClusterMigrationReplicationDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).PrimaryFabricLocation = (string) content.GetValueForProperty("PrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).PrimaryFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("LifecycleId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).LifecycleId = (string) content.GetValueForProperty("LifecycleId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal)this).LifecycleId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2ACrossClusterMigrationReplicationDetails(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.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2ACrossClusterMigrationReplicationDetails(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.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A provider specific settings. + [System.ComponentModel.TypeConverter(typeof(A2ACrossClusterMigrationReplicationDetailsTypeConverter))] + public partial interface IA2ACrossClusterMigrationReplicationDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationReplicationDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationReplicationDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationReplicationDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationReplicationDetails.TypeConverter.cs index a304050eb217..d9040dcf1024 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationReplicationDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationReplicationDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationReplicationDetails.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationReplicationDetails.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationReplicationDetails.cs index decb9b7be57a..0030681fabea 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationReplicationDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A provider specific settings. public partial class A2ACrossClusterMigrationReplicationDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(); /// Backing field for property. private string _fabricObjectId; @@ -28,7 +28,7 @@ public partial class A2ACrossClusterMigrationReplicationDetails : /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } /// Backing field for property. private string _lifecycleId; @@ -92,7 +92,7 @@ public A2ACrossClusterMigrationReplicationDetails() /// A2A provider specific settings. public partial interface IA2ACrossClusterMigrationReplicationDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings { /// The fabric specific object Id of the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -150,7 +150,7 @@ public partial interface IA2ACrossClusterMigrationReplicationDetails : } /// A2A provider specific settings. internal partial interface IA2ACrossClusterMigrationReplicationDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal { /// The fabric specific object Id of the virtual machine. string FabricObjectId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationReplicationDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationReplicationDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationReplicationDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationReplicationDetails.json.cs index a108f07e9876..4da65eb7c5f1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ACrossClusterMigrationReplicationDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ACrossClusterMigrationReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,7 +65,7 @@ internal A2ACrossClusterMigrationReplicationDetails(Microsoft.Azure.PowerShell.C { return; } - __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(json); + __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(json); {_fabricObjectId = If( json?.PropertyT("fabricObjectId"), out var __jsonFabricObjectId) ? (string)__jsonFabricObjectId : (string)FabricObjectId;} {_primaryFabricLocation = If( json?.PropertyT("primaryFabricLocation"), out var __jsonPrimaryFabricLocation) ? (string)__jsonPrimaryFabricLocation : (string)PrimaryFabricLocation;} {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType;} @@ -76,13 +76,13 @@ internal A2ACrossClusterMigrationReplicationDetails(Microsoft.Azure.PowerShell.C } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ACrossClusterMigrationReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ACrossClusterMigrationReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2ACrossClusterMigrationReplicationDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AEnableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AEnableProtectionInput.PowerShell.cs new file mode 100644 index 000000000000..1ece57f1e41f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AEnableProtectionInput.PowerShell.cs @@ -0,0 +1,352 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A enable protection input. + [System.ComponentModel.TypeConverter(typeof(A2AEnableProtectionInputTypeConverter))] + public partial class A2AEnableProtectionInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AEnableProtectionInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCloudServiceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryBootDiagStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryAzureNetworkId = (string) content.GetValueForProperty("RecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("RecoverySubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoverySubnetName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVirtualMachineScaleSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCapacityReservationGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2AEnableProtectionInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCloudServiceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryBootDiagStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryAzureNetworkId = (string) content.GetValueForProperty("RecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("RecoverySubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoverySubnetName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVirtualMachineScaleSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCapacityReservationGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).RecoveryExtendedLocationType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AEnableProtectionInput(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.Migrate.Models.Api202301.IA2AEnableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AEnableProtectionInput(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.Migrate.Models.Api202301.IA2AEnableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A enable protection input. + [System.ComponentModel.TypeConverter(typeof(A2AEnableProtectionInputTypeConverter))] + public partial interface IA2AEnableProtectionInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AEnableProtectionInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AEnableProtectionInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AEnableProtectionInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AEnableProtectionInput.TypeConverter.cs index 8a9b48b4229a..859ef9235185 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AEnableProtectionInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AEnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AEnableProtectionInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AEnableProtectionInput.cs b/src/Migrate/generated/api/Models/Api202301/A2AEnableProtectionInput.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/A2AEnableProtectionInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2AEnableProtectionInput.cs index 5dfca3a18b46..d3f05c464ad9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AEnableProtectionInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AEnableProtectionInput.cs @@ -3,36 +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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A enable protection input. public partial class A2AEnableProtectionInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo _diskEncryptionInfo; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo _diskEncryptionInfo; /// The recovery disk encryption information (for two pass flows). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } /// The KeyVault resource ARM id for secret. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } /// The secret url / identifier. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } + public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } /// Backing field for property. private string _fabricObjectId; @@ -43,30 +43,30 @@ public partial class A2AEnableProtectionInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType = value ; } /// The key URL / identifier. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } + public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } /// The KeyVault resource ARM Id for key. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } /// Internal Acessors for DiskEncryptionInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } /// Internal Acessors for DiskEncryptionInfoDiskEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } /// Internal Acessors for DiskEncryptionInfoKeyEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } /// Internal Acessors for RecoveryExtendedLocation - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal.RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation()); set { {_recoveryExtendedLocation = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal.RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set { {_recoveryExtendedLocation = value;} } } /// Internal Acessors for RecoveryExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInputInternal.RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInputInternal.RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type = value; } /// Backing field for property. private string _multiVMGroupId; @@ -132,19 +132,19 @@ public partial class A2AEnableProtectionInput : public string RecoveryContainerId { get => this._recoveryContainerId; set => this._recoveryContainerId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation _recoveryExtendedLocation; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation _recoveryExtendedLocation; /// The recovery extended location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation()); set => this._recoveryExtendedLocation = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set => this._recoveryExtendedLocation = value; } /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Name = value ?? null; } + public string RecoveryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Name = value ?? null; } /// The extended location type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Type; } + public string RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type; } /// Backing field for property. private string _recoveryProximityPlacementGroupId; @@ -175,18 +175,18 @@ public partial class A2AEnableProtectionInput : public string RecoveryVirtualMachineScaleSetId { get => this._recoveryVirtualMachineScaleSetId; set => this._recoveryVirtualMachineScaleSetId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] _vMDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] _vMDisk; /// The list of vm disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[] _vMManagedDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[] _vMManagedDisk; /// The list of vm managed disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get => this._vMManagedDisk; set => this._vMManagedDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get => this._vMManagedDisk; set => this._vMManagedDisk = value; } /// Creates an new instance. public A2AEnableProtectionInput() @@ -209,7 +209,7 @@ public A2AEnableProtectionInput() /// A2A enable protection input. public partial interface IA2AEnableProtectionInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput { /// The KeyVault resource ARM id for secret. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -377,28 +377,28 @@ public partial interface IA2AEnableProtectionInput : ReadOnly = false, Description = @"The list of vm disk details.", SerializedName = @"vmDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] VMDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] VMDisk { get; set; } /// The list of vm managed disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The list of vm managed disk details.", SerializedName = @"vmManagedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get; set; } } /// A2A enable protection input. internal partial interface IA2AEnableProtectionInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal { /// The recovery disk encryption information (for two pass flows). - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } /// The recovery KeyVault reference for secret. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } /// The recovery KeyVault reference for key. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } /// The KeyVault resource ARM id for secret. string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } /// The secret url / identifier. @@ -428,7 +428,7 @@ internal partial interface IA2AEnableProtectionInputInternal : /// The recovery container Id. string RecoveryContainerId { get; set; } /// The recovery extended location. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation RecoveryExtendedLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation RecoveryExtendedLocation { get; set; } /// The name of the extended location. string RecoveryExtendedLocationName { get; set; } /// The extended location type. @@ -442,9 +442,9 @@ internal partial interface IA2AEnableProtectionInputInternal : /// The virtual machine scale set Id. string RecoveryVirtualMachineScaleSetId { get; set; } /// The list of vm disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] VMDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] VMDisk { get; set; } /// The list of vm managed disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AEnableProtectionInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AEnableProtectionInput.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/A2AEnableProtectionInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AEnableProtectionInput.json.cs index 5074a74d17ef..fed867bdfe68 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AEnableProtectionInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AEnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,17 +65,17 @@ internal A2AEnableProtectionInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput(json); - {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} - {_recoveryExtendedLocation = If( json?.PropertyT("recoveryExtendedLocation"), out var __jsonRecoveryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation.FromJson(__jsonRecoveryExtendedLocation) : RecoveryExtendedLocation;} + __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput(json); + {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} + {_recoveryExtendedLocation = If( json?.PropertyT("recoveryExtendedLocation"), out var __jsonRecoveryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation.FromJson(__jsonRecoveryExtendedLocation) : RecoveryExtendedLocation;} {_fabricObjectId = If( json?.PropertyT("fabricObjectId"), out var __jsonFabricObjectId) ? (string)__jsonFabricObjectId : (string)FabricObjectId;} {_recoveryContainerId = If( json?.PropertyT("recoveryContainerId"), out var __jsonRecoveryContainerId) ? (string)__jsonRecoveryContainerId : (string)RecoveryContainerId;} {_recoveryResourceGroupId = If( json?.PropertyT("recoveryResourceGroupId"), out var __jsonRecoveryResourceGroupId) ? (string)__jsonRecoveryResourceGroupId : (string)RecoveryResourceGroupId;} {_recoveryCloudServiceId = If( json?.PropertyT("recoveryCloudServiceId"), out var __jsonRecoveryCloudServiceId) ? (string)__jsonRecoveryCloudServiceId : (string)RecoveryCloudServiceId;} {_recoveryAvailabilitySetId = If( json?.PropertyT("recoveryAvailabilitySetId"), out var __jsonRecoveryAvailabilitySetId) ? (string)__jsonRecoveryAvailabilitySetId : (string)RecoveryAvailabilitySetId;} {_recoveryProximityPlacementGroupId = If( json?.PropertyT("recoveryProximityPlacementGroupId"), out var __jsonRecoveryProximityPlacementGroupId) ? (string)__jsonRecoveryProximityPlacementGroupId : (string)RecoveryProximityPlacementGroupId;} - {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AvmDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmDiskInputDetails.FromJson(__u) )) ))() : null : VMDisk;} - {_vMManagedDisk = If( json?.PropertyT("vmManagedDisks"), out var __jsonVMManagedDisks) ? If( __jsonVMManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskInputDetails.FromJson(__p) )) ))() : null : VMManagedDisk;} + {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IA2AvmDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmDiskInputDetails.FromJson(__u) )) ))() : null : VMDisk;} + {_vMManagedDisk = If( json?.PropertyT("vmManagedDisks"), out var __jsonVMManagedDisks) ? If( __jsonVMManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskInputDetails.FromJson(__p) )) ))() : null : VMManagedDisk;} {_multiVMGroupName = If( json?.PropertyT("multiVmGroupName"), out var __jsonMultiVMGroupName) ? (string)__jsonMultiVMGroupName : (string)MultiVMGroupName;} {_multiVMGroupId = If( json?.PropertyT("multiVmGroupId"), out var __jsonMultiVMGroupId) ? (string)__jsonMultiVMGroupId : (string)MultiVMGroupId;} {_recoveryBootDiagStorageAccountId = If( json?.PropertyT("recoveryBootDiagStorageAccountId"), out var __jsonRecoveryBootDiagStorageAccountId) ? (string)__jsonRecoveryBootDiagStorageAccountId : (string)RecoveryBootDiagStorageAccountId;} @@ -88,13 +88,13 @@ internal A2AEnableProtectionInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEnableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEnableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AEnableProtectionInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AEventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AEventDetails.PowerShell.cs new file mode 100644 index 000000000000..b9a870583e59 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AEventDetails.PowerShell.cs @@ -0,0 +1,192 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Model class for event details of a A2A event. + [System.ComponentModel.TypeConverter(typeof(A2AEventDetailsTypeConverter))] + public partial class A2AEventDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AEventDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProtectedItemName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).ProtectedItemName = (string) content.GetValueForProperty("ProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).ProtectedItemName, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("FabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).FabricName, global::System.Convert.ToString); + } + if (content.Contains("FabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).FabricLocation = (string) content.GetValueForProperty("FabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).FabricLocation, global::System.Convert.ToString); + } + if (content.Contains("RemoteFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); + } + if (content.Contains("RemoteFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).RemoteFabricLocation = (string) content.GetValueForProperty("RemoteFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).RemoteFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 A2AEventDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProtectedItemName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).ProtectedItemName = (string) content.GetValueForProperty("ProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).ProtectedItemName, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("FabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).FabricName, global::System.Convert.ToString); + } + if (content.Contains("FabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).FabricLocation = (string) content.GetValueForProperty("FabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).FabricLocation, global::System.Convert.ToString); + } + if (content.Contains("RemoteFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); + } + if (content.Contains("RemoteFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).RemoteFabricLocation = (string) content.GetValueForProperty("RemoteFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal)this).RemoteFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AEventDetails(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.Migrate.Models.Api202301.IA2AEventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AEventDetails(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.Migrate.Models.Api202301.IA2AEventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Model class for event details of a A2A event. + [System.ComponentModel.TypeConverter(typeof(A2AEventDetailsTypeConverter))] + public partial interface IA2AEventDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AEventDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AEventDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/A2AEventDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AEventDetails.TypeConverter.cs index 2d5fab7a16ca..af81e0a13a86 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AEventDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AEventDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AEventDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2AEventDetails.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/A2AEventDetails.cs rename to src/Migrate/generated/api/Models/Api202301/A2AEventDetails.cs index b5c8b67bcdac..acc6236fbbc4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AEventDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Model class for event details of a A2A event. public partial class A2AEventDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(); /// Backing field for property. private string _fabricLocation; @@ -42,7 +42,7 @@ public partial class A2AEventDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _protectedItemName; @@ -86,7 +86,7 @@ public A2AEventDetails() /// Model class for event details of a A2A event. public partial interface IA2AEventDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails { /// The fabric location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -140,7 +140,7 @@ public partial interface IA2AEventDetails : } /// Model class for event details of a A2A event. internal partial interface IA2AEventDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal { /// The fabric location. string FabricLocation { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AEventDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AEventDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/A2AEventDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AEventDetails.json.cs index c960f0969ca1..4fac834a73fc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AEventDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,7 +65,7 @@ internal A2AEventDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json { return; } - __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(json); + __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(json); {_protectedItemName = If( json?.PropertyT("protectedItemName"), out var __jsonProtectedItemName) ? (string)__jsonProtectedItemName : (string)ProtectedItemName;} {_fabricObjectId = If( json?.PropertyT("fabricObjectId"), out var __jsonFabricObjectId) ? (string)__jsonFabricObjectId : (string)FabricObjectId;} {_fabricName = If( json?.PropertyT("fabricName"), out var __jsonFabricName) ? (string)__jsonFabricName : (string)FabricName;} @@ -76,13 +76,13 @@ internal A2AEventDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AEventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AEventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AEventDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AExtendedLocationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AExtendedLocationDetails.PowerShell.cs new file mode 100644 index 000000000000..d04c853edb1d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AExtendedLocationDetails.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// ExtendedLocation details data. + [System.ComponentModel.TypeConverter(typeof(A2AExtendedLocationDetailsTypeConverter))] + public partial class A2AExtendedLocationDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AExtendedLocationDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).PrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("PrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).PrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).PrimaryExtendedLocationName = (string) content.GetValueForProperty("PrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).PrimaryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).PrimaryExtendedLocationType = (string) content.GetValueForProperty("PrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).PrimaryExtendedLocationType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).RecoveryExtendedLocationType, 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 A2AExtendedLocationDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).PrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("PrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).PrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).PrimaryExtendedLocationName = (string) content.GetValueForProperty("PrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).PrimaryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).PrimaryExtendedLocationType = (string) content.GetValueForProperty("PrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).PrimaryExtendedLocationType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal)this).RecoveryExtendedLocationType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AExtendedLocationDetails(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.Migrate.Models.Api202301.IA2AExtendedLocationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AExtendedLocationDetails(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.Migrate.Models.Api202301.IA2AExtendedLocationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// ExtendedLocation details data. + [System.ComponentModel.TypeConverter(typeof(A2AExtendedLocationDetailsTypeConverter))] + public partial interface IA2AExtendedLocationDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api202301/A2AExtendedLocationDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AExtendedLocationDetails.TypeConverter.cs new file mode 100644 index 000000000000..2e63d2e77e90 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AExtendedLocationDetails.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class A2AExtendedLocationDetailsTypeConverter : 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.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IA2AExtendedLocationDetails ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetails).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return A2AExtendedLocationDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return A2AExtendedLocationDetails.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return A2AExtendedLocationDetails.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/Migrate/generated/api/Models/Api202301/A2AExtendedLocationDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2AExtendedLocationDetails.cs new file mode 100644 index 000000000000..4b264117703b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AExtendedLocationDetails.cs @@ -0,0 +1,120 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// ExtendedLocation details data. + public partial class A2AExtendedLocationDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal + { + + /// Internal Acessors for PrimaryExtendedLocation + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal.PrimaryExtendedLocation { get => (this._primaryExtendedLocation = this._primaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set { {_primaryExtendedLocation = value;} } } + + /// Internal Acessors for PrimaryExtendedLocationType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal.PrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Type = value; } + + /// Internal Acessors for RecoveryExtendedLocation + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal.RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set { {_recoveryExtendedLocation = value;} } } + + /// Internal Acessors for RecoveryExtendedLocationType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetailsInternal.RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation _primaryExtendedLocation; + + /// The primary ExtendedLocation. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation PrimaryExtendedLocation { get => (this._primaryExtendedLocation = this._primaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set => this._primaryExtendedLocation = value; } + + /// The name of the extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Name = value ?? null; } + + /// The extended location type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Type; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation _recoveryExtendedLocation; + + /// The recovery ExtendedLocation. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set => this._recoveryExtendedLocation = value; } + + /// The name of the extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Name = value ?? null; } + + /// The extended location type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type; } + + /// Creates an new instance. + public A2AExtendedLocationDetails() + { + + } + } + /// ExtendedLocation details data. + public partial interface IA2AExtendedLocationDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The name of the extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the extended location.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string PrimaryExtendedLocationName { get; set; } + /// The extended location type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The extended location type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string PrimaryExtendedLocationType { get; } + /// The name of the extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the extended location.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string RecoveryExtendedLocationName { get; set; } + /// The extended location type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The extended location type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string RecoveryExtendedLocationType { get; } + + } + /// ExtendedLocation details data. + internal partial interface IA2AExtendedLocationDetailsInternal + + { + /// The primary ExtendedLocation. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation PrimaryExtendedLocation { get; set; } + /// The name of the extended location. + string PrimaryExtendedLocationName { get; set; } + /// The extended location type. + string PrimaryExtendedLocationType { get; set; } + /// The recovery ExtendedLocation. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation RecoveryExtendedLocation { get; set; } + /// The name of the extended location. + string RecoveryExtendedLocationName { get; set; } + /// The extended location type. + string RecoveryExtendedLocationType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api202301/A2AExtendedLocationDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AExtendedLocationDetails.json.cs new file mode 100644 index 000000000000..75445ced8808 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AExtendedLocationDetails.json.cs @@ -0,0 +1,110 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// ExtendedLocation details data. + public partial class A2AExtendedLocationDetails + { + + /// + /// 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.Migrate.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.Migrate.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.Migrate.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.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. + internal A2AExtendedLocationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_primaryExtendedLocation = If( json?.PropertyT("primaryExtendedLocation"), out var __jsonPrimaryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation.FromJson(__jsonPrimaryExtendedLocation) : PrimaryExtendedLocation;} + {_recoveryExtendedLocation = If( json?.PropertyT("recoveryExtendedLocation"), out var __jsonRecoveryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation.FromJson(__jsonRecoveryExtendedLocation) : RecoveryExtendedLocation;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetails. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetails. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AExtendedLocationDetails(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.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._primaryExtendedLocation ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._primaryExtendedLocation.ToJson(null,serializationMode) : null, "primaryExtendedLocation" ,container.Add ); + AddIf( null != this._recoveryExtendedLocation ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._recoveryExtendedLocation.ToJson(null,serializationMode) : null, "recoveryExtendedLocation" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api202301/A2APolicyCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2APolicyCreationInput.PowerShell.cs new file mode 100644 index 000000000000..5e2e52d94518 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2APolicyCreationInput.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A Policy creation input. + [System.ComponentModel.TypeConverter(typeof(A2APolicyCreationInputTypeConverter))] + public partial class A2APolicyCreationInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2APolicyCreationInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 A2APolicyCreationInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2APolicyCreationInput(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.Migrate.Models.Api202301.IA2APolicyCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2APolicyCreationInput(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.Migrate.Models.Api202301.IA2APolicyCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A Policy creation input. + [System.ComponentModel.TypeConverter(typeof(A2APolicyCreationInputTypeConverter))] + public partial interface IA2APolicyCreationInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2APolicyCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2APolicyCreationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2APolicyCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2APolicyCreationInput.TypeConverter.cs index e0ae6e8bee9a..385fc5ee6894 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2APolicyCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2APolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2APolicyCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2APolicyCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/A2APolicyCreationInput.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/A2APolicyCreationInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2APolicyCreationInput.cs index 346797eec5c7..9282b134fa9b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2APolicyCreationInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2APolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A Policy creation input. public partial class A2APolicyCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(); /// Backing field for property. private int? _appConsistentFrequencyInMinute; @@ -35,7 +35,7 @@ public partial class A2APolicyCreationInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus _multiVMSyncStatus; @@ -74,7 +74,7 @@ public A2APolicyCreationInput() /// A2A Policy creation input. public partial interface IA2APolicyCreationInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput { /// The app consistent snapshot frequency (in minutes). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -114,7 +114,7 @@ public partial interface IA2APolicyCreationInput : } /// A2A Policy creation input. internal partial interface IA2APolicyCreationInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal { /// The app consistent snapshot frequency (in minutes). int? AppConsistentFrequencyInMinute { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2APolicyCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2APolicyCreationInput.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/A2APolicyCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2APolicyCreationInput.json.cs index 850256d5865a..cab635701f1d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2APolicyCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2APolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,7 +65,7 @@ internal A2APolicyCreationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(json); + __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(json); {_recoveryPointHistory = If( json?.PropertyT("recoveryPointHistory"), out var __jsonRecoveryPointHistory) ? (int?)__jsonRecoveryPointHistory : RecoveryPointHistory;} {_crashConsistentFrequencyInMinute = If( json?.PropertyT("crashConsistentFrequencyInMinutes"), out var __jsonCrashConsistentFrequencyInMinutes) ? (int?)__jsonCrashConsistentFrequencyInMinutes : CrashConsistentFrequencyInMinute;} {_appConsistentFrequencyInMinute = If( json?.PropertyT("appConsistentFrequencyInMinutes"), out var __jsonAppConsistentFrequencyInMinutes) ? (int?)__jsonAppConsistentFrequencyInMinutes : AppConsistentFrequencyInMinute;} @@ -74,13 +74,13 @@ internal A2APolicyCreationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2APolicyCreationInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2APolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2APolicyDetails.PowerShell.cs new file mode 100644 index 000000000000..53a977be54bc --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2APolicyDetails.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A specific policy details. + [System.ComponentModel.TypeConverter(typeof(A2APolicyDetailsTypeConverter))] + public partial class A2APolicyDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2APolicyDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointThresholdInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 A2APolicyDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointThresholdInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2APolicyDetails(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.Migrate.Models.Api202301.IA2APolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2APolicyDetails(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.Migrate.Models.Api202301.IA2APolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A specific policy details. + [System.ComponentModel.TypeConverter(typeof(A2APolicyDetailsTypeConverter))] + public partial interface IA2APolicyDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2APolicyDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2APolicyDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/A2APolicyDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2APolicyDetails.TypeConverter.cs index 4e3911ff3f38..a4a374fdbf2e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2APolicyDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2APolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2APolicyDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2APolicyDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2APolicyDetails.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/A2APolicyDetails.cs rename to src/Migrate/generated/api/Models/Api202301/A2APolicyDetails.cs index 499f57e9bf3f..7d3c10380b31 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2APolicyDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2APolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A specific policy details. public partial class A2APolicyDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(); /// Backing field for property. private int? _appConsistentFrequencyInMinute; @@ -35,7 +35,7 @@ public partial class A2APolicyDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _multiVMSyncStatus; @@ -79,7 +79,7 @@ public A2APolicyDetails() /// A2A specific policy details. public partial interface IA2APolicyDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails { /// The app consistent snapshot frequency in minutes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -125,7 +125,7 @@ public partial interface IA2APolicyDetails : } /// A2A specific policy details. internal partial interface IA2APolicyDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal { /// The app consistent snapshot frequency in minutes. int? AppConsistentFrequencyInMinute { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2APolicyDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2APolicyDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/A2APolicyDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2APolicyDetails.json.cs index e74012ca2314..f4cc15b26bd6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2APolicyDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2APolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,7 +65,7 @@ internal A2APolicyDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Jso { return; } - __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(json); + __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(json); {_recoveryPointThresholdInMinute = If( json?.PropertyT("recoveryPointThresholdInMinutes"), out var __jsonRecoveryPointThresholdInMinutes) ? (int?)__jsonRecoveryPointThresholdInMinutes : RecoveryPointThresholdInMinute;} {_recoveryPointHistory = If( json?.PropertyT("recoveryPointHistory"), out var __jsonRecoveryPointHistory) ? (int?)__jsonRecoveryPointHistory : RecoveryPointHistory;} {_appConsistentFrequencyInMinute = If( json?.PropertyT("appConsistentFrequencyInMinutes"), out var __jsonAppConsistentFrequencyInMinutes) ? (int?)__jsonAppConsistentFrequencyInMinutes : AppConsistentFrequencyInMinute;} @@ -75,13 +75,13 @@ internal A2APolicyDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Jso } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2APolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2APolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2APolicyDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AProtectedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectedDiskDetails.PowerShell.cs new file mode 100644 index 000000000000..d663251bb414 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectedDiskDetails.PowerShell.cs @@ -0,0 +1,320 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A protected disk details. + [System.ComponentModel.TypeConverter(typeof(A2AProtectedDiskDetailsTypeConverter))] + public partial class A2AProtectedDiskDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AProtectedDiskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskUri = (string) content.GetValueForProperty("DiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskUri, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).RecoveryAzureStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).RecoveryAzureStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryDiskAzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).PrimaryDiskAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryDiskAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).PrimaryDiskAzureStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryDiskUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).RecoveryDiskUri = (string) content.GetValueForProperty("RecoveryDiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).RecoveryDiskUri, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("DiskCapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("PrimaryStagingAzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskType = (string) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskType, global::System.Convert.ToString); + } + if (content.Contains("ResyncRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).ResyncRequired = (bool?) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).ResyncRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MonitoringPercentageCompletion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).MonitoringPercentageCompletion = (int?) content.GetValueForProperty("MonitoringPercentageCompletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).MonitoringPercentageCompletion, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MonitoringJobType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).MonitoringJobType = (string) content.GetValueForProperty("MonitoringJobType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).MonitoringJobType, global::System.Convert.ToString); + } + if (content.Contains("DataPendingInStagingStorageAccountInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb = (double?) content.GetValueForProperty("DataPendingInStagingStorageAccountInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DataPendingAtSourceAgentInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DiskState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskState = (string) content.GetValueForProperty("DiskState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskState, global::System.Convert.ToString); + } + if (content.Contains("AllowedDiskLevelOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).AllowedDiskLevelOperation = (string[]) content.GetValueForProperty("AllowedDiskLevelOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).AllowedDiskLevelOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("IsDiskEncrypted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).IsDiskEncrypted = (bool?) content.GetValueForProperty("IsDiskEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).IsDiskEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).SecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DekKeyVaultArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DekKeyVaultArmId = (string) content.GetValueForProperty("DekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DekKeyVaultArmId, global::System.Convert.ToString); + } + if (content.Contains("IsDiskKeyEncrypted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).IsDiskKeyEncrypted = (bool?) content.GetValueForProperty("IsDiskKeyEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).IsDiskKeyEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("KeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).KeyIdentifier = (string) content.GetValueForProperty("KeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).KeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KekKeyVaultArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).KekKeyVaultArmId = (string) content.GetValueForProperty("KekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).KekKeyVaultArmId, global::System.Convert.ToString); + } + if (content.Contains("FailoverDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).FailoverDiskName = (string) content.GetValueForProperty("FailoverDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).FailoverDiskName, global::System.Convert.ToString); + } + if (content.Contains("TfoDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).TfoDiskName = (string) content.GetValueForProperty("TfoDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).TfoDiskName, 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 A2AProtectedDiskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskUri = (string) content.GetValueForProperty("DiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskUri, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).RecoveryAzureStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).RecoveryAzureStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryDiskAzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).PrimaryDiskAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryDiskAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).PrimaryDiskAzureStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryDiskUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).RecoveryDiskUri = (string) content.GetValueForProperty("RecoveryDiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).RecoveryDiskUri, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("DiskCapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("PrimaryStagingAzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskType = (string) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskType, global::System.Convert.ToString); + } + if (content.Contains("ResyncRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).ResyncRequired = (bool?) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).ResyncRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MonitoringPercentageCompletion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).MonitoringPercentageCompletion = (int?) content.GetValueForProperty("MonitoringPercentageCompletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).MonitoringPercentageCompletion, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MonitoringJobType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).MonitoringJobType = (string) content.GetValueForProperty("MonitoringJobType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).MonitoringJobType, global::System.Convert.ToString); + } + if (content.Contains("DataPendingInStagingStorageAccountInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb = (double?) content.GetValueForProperty("DataPendingInStagingStorageAccountInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DataPendingAtSourceAgentInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DiskState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskState = (string) content.GetValueForProperty("DiskState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DiskState, global::System.Convert.ToString); + } + if (content.Contains("AllowedDiskLevelOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).AllowedDiskLevelOperation = (string[]) content.GetValueForProperty("AllowedDiskLevelOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).AllowedDiskLevelOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("IsDiskEncrypted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).IsDiskEncrypted = (bool?) content.GetValueForProperty("IsDiskEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).IsDiskEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).SecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DekKeyVaultArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DekKeyVaultArmId = (string) content.GetValueForProperty("DekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).DekKeyVaultArmId, global::System.Convert.ToString); + } + if (content.Contains("IsDiskKeyEncrypted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).IsDiskKeyEncrypted = (bool?) content.GetValueForProperty("IsDiskKeyEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).IsDiskKeyEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("KeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).KeyIdentifier = (string) content.GetValueForProperty("KeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).KeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KekKeyVaultArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).KekKeyVaultArmId = (string) content.GetValueForProperty("KekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).KekKeyVaultArmId, global::System.Convert.ToString); + } + if (content.Contains("FailoverDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).FailoverDiskName = (string) content.GetValueForProperty("FailoverDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).FailoverDiskName, global::System.Convert.ToString); + } + if (content.Contains("TfoDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).TfoDiskName = (string) content.GetValueForProperty("TfoDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal)this).TfoDiskName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AProtectedDiskDetails(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.Migrate.Models.Api202301.IA2AProtectedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AProtectedDiskDetails(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.Migrate.Models.Api202301.IA2AProtectedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A protected disk details. + [System.ComponentModel.TypeConverter(typeof(A2AProtectedDiskDetailsTypeConverter))] + public partial interface IA2AProtectedDiskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedDiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectedDiskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AProtectedDiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AProtectedDiskDetails.TypeConverter.cs index adbb3a91755d..2bce588f4fb9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedDiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AProtectedDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedDiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectedDiskDetails.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/A2AProtectedDiskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/A2AProtectedDiskDetails.cs index 259a324a6747..073cb8e2c5a6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedDiskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A protected disk details. public partial class A2AProtectedDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedDiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectedDiskDetails.json.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/A2AProtectedDiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AProtectedDiskDetails.json.cs index 35b6fbd824fe..4313ab26e787 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedDiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -92,13 +92,13 @@ internal A2AProtectedDiskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AProtectedDiskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AProtectedManagedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectedManagedDiskDetails.PowerShell.cs new file mode 100644 index 000000000000..d06723ba7f67 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectedManagedDiskDetails.PowerShell.cs @@ -0,0 +1,362 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A protected managed disk details. + [System.ComponentModel.TypeConverter(typeof(A2AProtectedManagedDiskDetailsTypeConverter))] + public partial class A2AProtectedManagedDiskDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AProtectedManagedDiskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryTargetDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskId = (string) content.GetValueForProperty("RecoveryTargetDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryReplicaDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskId = (string) content.GetValueForProperty("RecoveryReplicaDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryOrignalTargetDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryOrignalTargetDiskId = (string) content.GetValueForProperty("RecoveryOrignalTargetDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryOrignalTargetDiskId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryReplicaDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryTargetDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryDiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryDiskEncryptionSetId = (string) content.GetValueForProperty("RecoveryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryDiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryDiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryDiskEncryptionSetId = (string) content.GetValueForProperty("PrimaryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryDiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("DiskCapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("PrimaryStagingAzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskType = (string) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskType, global::System.Convert.ToString); + } + if (content.Contains("ResyncRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).ResyncRequired = (bool?) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).ResyncRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MonitoringPercentageCompletion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringPercentageCompletion = (int?) content.GetValueForProperty("MonitoringPercentageCompletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringPercentageCompletion, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MonitoringJobType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringJobType = (string) content.GetValueForProperty("MonitoringJobType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringJobType, global::System.Convert.ToString); + } + if (content.Contains("DataPendingInStagingStorageAccountInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb = (double?) content.GetValueForProperty("DataPendingInStagingStorageAccountInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DataPendingAtSourceAgentInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DiskState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskState = (string) content.GetValueForProperty("DiskState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskState, global::System.Convert.ToString); + } + if (content.Contains("AllowedDiskLevelOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).AllowedDiskLevelOperation = (string[]) content.GetValueForProperty("AllowedDiskLevelOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).AllowedDiskLevelOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("IsDiskEncrypted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskEncrypted = (bool?) content.GetValueForProperty("IsDiskEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).SecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DekKeyVaultArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DekKeyVaultArmId = (string) content.GetValueForProperty("DekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DekKeyVaultArmId, global::System.Convert.ToString); + } + if (content.Contains("IsDiskKeyEncrypted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskKeyEncrypted = (bool?) content.GetValueForProperty("IsDiskKeyEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskKeyEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("KeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).KeyIdentifier = (string) content.GetValueForProperty("KeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).KeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KekKeyVaultArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).KekKeyVaultArmId = (string) content.GetValueForProperty("KekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).KekKeyVaultArmId, global::System.Convert.ToString); + } + if (content.Contains("FailoverDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).FailoverDiskName = (string) content.GetValueForProperty("FailoverDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).FailoverDiskName, global::System.Convert.ToString); + } + if (content.Contains("TfoDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).TfoDiskName = (string) content.GetValueForProperty("TfoDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).TfoDiskName, 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 A2AProtectedManagedDiskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryTargetDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskId = (string) content.GetValueForProperty("RecoveryTargetDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryReplicaDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskId = (string) content.GetValueForProperty("RecoveryReplicaDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryOrignalTargetDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryOrignalTargetDiskId = (string) content.GetValueForProperty("RecoveryOrignalTargetDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryOrignalTargetDiskId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryReplicaDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryTargetDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryDiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryDiskEncryptionSetId = (string) content.GetValueForProperty("RecoveryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).RecoveryDiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryDiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryDiskEncryptionSetId = (string) content.GetValueForProperty("PrimaryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryDiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("DiskCapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("PrimaryStagingAzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).PrimaryStagingAzureStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskType = (string) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskType, global::System.Convert.ToString); + } + if (content.Contains("ResyncRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).ResyncRequired = (bool?) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).ResyncRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MonitoringPercentageCompletion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringPercentageCompletion = (int?) content.GetValueForProperty("MonitoringPercentageCompletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringPercentageCompletion, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MonitoringJobType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringJobType = (string) content.GetValueForProperty("MonitoringJobType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).MonitoringJobType, global::System.Convert.ToString); + } + if (content.Contains("DataPendingInStagingStorageAccountInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb = (double?) content.GetValueForProperty("DataPendingInStagingStorageAccountInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingInStagingStorageAccountInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DataPendingAtSourceAgentInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DiskState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskState = (string) content.GetValueForProperty("DiskState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DiskState, global::System.Convert.ToString); + } + if (content.Contains("AllowedDiskLevelOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).AllowedDiskLevelOperation = (string[]) content.GetValueForProperty("AllowedDiskLevelOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).AllowedDiskLevelOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("IsDiskEncrypted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskEncrypted = (bool?) content.GetValueForProperty("IsDiskEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).SecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DekKeyVaultArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DekKeyVaultArmId = (string) content.GetValueForProperty("DekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).DekKeyVaultArmId, global::System.Convert.ToString); + } + if (content.Contains("IsDiskKeyEncrypted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskKeyEncrypted = (bool?) content.GetValueForProperty("IsDiskKeyEncrypted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).IsDiskKeyEncrypted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("KeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).KeyIdentifier = (string) content.GetValueForProperty("KeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).KeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KekKeyVaultArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).KekKeyVaultArmId = (string) content.GetValueForProperty("KekKeyVaultArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).KekKeyVaultArmId, global::System.Convert.ToString); + } + if (content.Contains("FailoverDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).FailoverDiskName = (string) content.GetValueForProperty("FailoverDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).FailoverDiskName, global::System.Convert.ToString); + } + if (content.Contains("TfoDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).TfoDiskName = (string) content.GetValueForProperty("TfoDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal)this).TfoDiskName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AProtectedManagedDiskDetails(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.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AProtectedManagedDiskDetails(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.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A protected managed disk details. + [System.ComponentModel.TypeConverter(typeof(A2AProtectedManagedDiskDetailsTypeConverter))] + public partial interface IA2AProtectedManagedDiskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedManagedDiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectedManagedDiskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AProtectedManagedDiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AProtectedManagedDiskDetails.TypeConverter.cs index 29895c36e174..a1c0f27b326f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedManagedDiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectedManagedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedManagedDiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectedManagedDiskDetails.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/A2AProtectedManagedDiskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/A2AProtectedManagedDiskDetails.cs index b4197814b0ce..4c0c21c3ff0f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedManagedDiskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectedManagedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A protected managed disk details. public partial class A2AProtectedManagedDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedManagedDiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectedManagedDiskDetails.json.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/A2AProtectedManagedDiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AProtectedManagedDiskDetails.json.cs index bb29c8b5effe..297ded054cb7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectedManagedDiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectedManagedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -97,13 +97,13 @@ internal A2AProtectedManagedDiskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migra } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AProtectedManagedDiskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AProtectionContainerMappingDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectionContainerMappingDetails.PowerShell.cs new file mode 100644 index 000000000000..f8c71dd9cbc3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectionContainerMappingDetails.PowerShell.cs @@ -0,0 +1,188 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A provider specific settings. + [System.ComponentModel.TypeConverter(typeof(A2AProtectionContainerMappingDetailsTypeConverter))] + public partial class A2AProtectionContainerMappingDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AProtectionContainerMappingDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentAutoUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); + } + if (content.Contains("AutomationAccountArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountArmId, global::System.Convert.ToString); + } + if (content.Contains("AutomationAccountAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); + } + if (content.Contains("ScheduleName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).ScheduleName = (string) content.GetValueForProperty("ScheduleName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).ScheduleName, global::System.Convert.ToString); + } + if (content.Contains("JobScheduleName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).JobScheduleName = (string) content.GetValueForProperty("JobScheduleName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).JobScheduleName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, 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 A2AProtectionContainerMappingDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentAutoUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); + } + if (content.Contains("AutomationAccountArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountArmId, global::System.Convert.ToString); + } + if (content.Contains("AutomationAccountAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); + } + if (content.Contains("ScheduleName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).ScheduleName = (string) content.GetValueForProperty("ScheduleName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).ScheduleName, global::System.Convert.ToString); + } + if (content.Contains("JobScheduleName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).JobScheduleName = (string) content.GetValueForProperty("JobScheduleName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal)this).JobScheduleName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AProtectionContainerMappingDetails(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.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AProtectionContainerMappingDetails(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.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A provider specific settings. + [System.ComponentModel.TypeConverter(typeof(A2AProtectionContainerMappingDetailsTypeConverter))] + public partial interface IA2AProtectionContainerMappingDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionContainerMappingDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectionContainerMappingDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AProtectionContainerMappingDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AProtectionContainerMappingDetails.TypeConverter.cs index ac406a1c1d81..174176baf950 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionContainerMappingDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectionContainerMappingDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionContainerMappingDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectionContainerMappingDetails.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/A2AProtectionContainerMappingDetails.cs rename to src/Migrate/generated/api/Models/Api202301/A2AProtectionContainerMappingDetails.cs index 3f0a0b5fe334..76a6b6509ed9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionContainerMappingDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectionContainerMappingDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A provider specific settings. public partial class A2AProtectionContainerMappingDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails __protectionContainerMappingProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails __protectionContainerMappingProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProviderSpecificDetails(); /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? _agentAutoUpdateStatus; @@ -42,7 +42,7 @@ public partial class A2AProtectionContainerMappingDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)__protectionContainerMappingProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)__protectionContainerMappingProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)__protectionContainerMappingProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)__protectionContainerMappingProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _jobScheduleName; @@ -79,7 +79,7 @@ public A2AProtectionContainerMappingDetails() /// A2A provider specific settings. public partial interface IA2AProtectionContainerMappingDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails { /// A value indicating whether the auto update is enabled. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -125,7 +125,7 @@ public partial interface IA2AProtectionContainerMappingDetails : } /// A2A provider specific settings. internal partial interface IA2AProtectionContainerMappingDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal { /// A value indicating whether the auto update is enabled. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionContainerMappingDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectionContainerMappingDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/A2AProtectionContainerMappingDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AProtectionContainerMappingDetails.json.cs index 1d3757ac2fe0..9c9a91a57dd1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionContainerMappingDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectionContainerMappingDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,7 +65,7 @@ internal A2AProtectionContainerMappingDetails(Microsoft.Azure.PowerShell.Cmdlets { return; } - __protectionContainerMappingProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProviderSpecificDetails(json); + __protectionContainerMappingProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProviderSpecificDetails(json); {_agentAutoUpdateStatus = If( json?.PropertyT("agentAutoUpdateStatus"), out var __jsonAgentAutoUpdateStatus) ? (string)__jsonAgentAutoUpdateStatus : (string)AgentAutoUpdateStatus;} {_automationAccountArmId = If( json?.PropertyT("automationAccountArmId"), out var __jsonAutomationAccountArmId) ? (string)__jsonAutomationAccountArmId : (string)AutomationAccountArmId;} {_automationAccountAuthenticationType = If( json?.PropertyT("automationAccountAuthenticationType"), out var __jsonAutomationAccountAuthenticationType) ? (string)__jsonAutomationAccountAuthenticationType : (string)AutomationAccountAuthenticationType;} @@ -75,13 +75,13 @@ internal A2AProtectionContainerMappingDetails(Microsoft.Azure.PowerShell.Cmdlets } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionContainerMappingDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionContainerMappingDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AProtectionContainerMappingDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentDiskInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentDiskInputDetails.PowerShell.cs new file mode 100644 index 000000000000..47f069d0475e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentDiskInputDetails.PowerShell.cs @@ -0,0 +1,180 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Azure VM unmanaged disk input details. + [System.ComponentModel.TypeConverter(typeof(A2AProtectionIntentDiskInputDetailsTypeConverter))] + public partial class A2AProtectionIntentDiskInputDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AProtectionIntentDiskInputDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryAzureStorageAccountCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails) content.GetValueForProperty("RecoveryAzureStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryStagingStorageAccountCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiskUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).DiskUri = (string) content.GetValueForProperty("DiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).DiskUri, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureStorageAccountCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("RecoveryAzureStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("PrimaryStagingStorageAccountCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType, 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 A2AProtectionIntentDiskInputDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryAzureStorageAccountCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails) content.GetValueForProperty("RecoveryAzureStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryStagingStorageAccountCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiskUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).DiskUri = (string) content.GetValueForProperty("DiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).DiskUri, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureStorageAccountCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("RecoveryAzureStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).RecoveryAzureStorageAccountCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("PrimaryStagingStorageAccountCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AProtectionIntentDiskInputDetails(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.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AProtectionIntentDiskInputDetails(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.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Azure VM unmanaged disk input details. + [System.ComponentModel.TypeConverter(typeof(A2AProtectionIntentDiskInputDetailsTypeConverter))] + public partial interface IA2AProtectionIntentDiskInputDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentDiskInputDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentDiskInputDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentDiskInputDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentDiskInputDetails.TypeConverter.cs index b32109d16a22..35e427abb81d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentDiskInputDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentDiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentDiskInputDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentDiskInputDetails.cs new file mode 100644 index 000000000000..cd4cada2e31a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentDiskInputDetails.cs @@ -0,0 +1,107 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Azure VM unmanaged disk input details. + public partial class A2AProtectionIntentDiskInputDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal + { + + /// Backing field for property. + private string _diskUri; + + /// The disk Uri. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string DiskUri { get => this._diskUri; set => this._diskUri = value; } + + /// Internal Acessors for PrimaryStagingStorageAccountCustomInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal.PrimaryStagingStorageAccountCustomInput { get => (this._primaryStagingStorageAccountCustomInput = this._primaryStagingStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails()); set { {_primaryStagingStorageAccountCustomInput = value;} } } + + /// Internal Acessors for RecoveryAzureStorageAccountCustomInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetailsInternal.RecoveryAzureStorageAccountCustomInput { get => (this._recoveryAzureStorageAccountCustomInput = this._recoveryAzureStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails()); set { {_recoveryAzureStorageAccountCustomInput = value;} } } + + /// + /// Backing field for property. + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails _primaryStagingStorageAccountCustomInput; + + /// The primary staging storage account input. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get => (this._primaryStagingStorageAccountCustomInput = this._primaryStagingStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails()); set => this._primaryStagingStorageAccountCustomInput = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryStagingStorageAccountCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccountCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccountCustomInput).ResourceType = value ?? null; } + + /// + /// Backing field for property. + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails _recoveryAzureStorageAccountCustomInput; + + /// The recovery VHD storage account input. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails RecoveryAzureStorageAccountCustomInput { get => (this._recoveryAzureStorageAccountCustomInput = this._recoveryAzureStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails()); set => this._recoveryAzureStorageAccountCustomInput = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryAzureStorageAccountCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)RecoveryAzureStorageAccountCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)RecoveryAzureStorageAccountCustomInput).ResourceType = value ?? null; } + + /// Creates an new instance. + public A2AProtectionIntentDiskInputDetails() + { + + } + } + /// Azure VM unmanaged disk input details. + public partial interface IA2AProtectionIntentDiskInputDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The disk Uri. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The disk Uri.", + SerializedName = @"diskUri", + PossibleTypes = new [] { typeof(string) })] + string DiskUri { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string PrimaryStagingStorageAccountCustomInputResourceType { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string RecoveryAzureStorageAccountCustomInputResourceType { get; set; } + + } + /// Azure VM unmanaged disk input details. + internal partial interface IA2AProtectionIntentDiskInputDetailsInternal + + { + /// The disk Uri. + string DiskUri { get; set; } + /// The primary staging storage account input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get; set; } + /// The class type. + string PrimaryStagingStorageAccountCustomInputResourceType { get; set; } + /// The recovery VHD storage account input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails RecoveryAzureStorageAccountCustomInput { get; set; } + /// The class type. + string RecoveryAzureStorageAccountCustomInputResourceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentDiskInputDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentDiskInputDetails.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentDiskInputDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentDiskInputDetails.json.cs index aa0676ca81d5..44cf44f197f7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentDiskInputDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentDiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,20 +65,20 @@ internal A2AProtectionIntentDiskInputDetails(Microsoft.Azure.PowerShell.Cmdlets. { return; } - {_recoveryAzureStorageAccountCustomInput = If( json?.PropertyT("recoveryAzureStorageAccountCustomInput"), out var __jsonRecoveryAzureStorageAccountCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails.FromJson(__jsonRecoveryAzureStorageAccountCustomInput) : RecoveryAzureStorageAccountCustomInput;} - {_primaryStagingStorageAccountCustomInput = If( json?.PropertyT("primaryStagingStorageAccountCustomInput"), out var __jsonPrimaryStagingStorageAccountCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails.FromJson(__jsonPrimaryStagingStorageAccountCustomInput) : PrimaryStagingStorageAccountCustomInput;} + {_recoveryAzureStorageAccountCustomInput = If( json?.PropertyT("recoveryAzureStorageAccountCustomInput"), out var __jsonRecoveryAzureStorageAccountCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails.FromJson(__jsonRecoveryAzureStorageAccountCustomInput) : RecoveryAzureStorageAccountCustomInput;} + {_primaryStagingStorageAccountCustomInput = If( json?.PropertyT("primaryStagingStorageAccountCustomInput"), out var __jsonPrimaryStagingStorageAccountCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails.FromJson(__jsonPrimaryStagingStorageAccountCustomInput) : PrimaryStagingStorageAccountCustomInput;} {_diskUri = If( json?.PropertyT("diskUri"), out var __jsonDiskUri) ? (string)__jsonDiskUri : (string)DiskUri;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AProtectionIntentDiskInputDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentManagedDiskInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentManagedDiskInputDetails.PowerShell.cs new file mode 100644 index 000000000000..5204749a54aa --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentManagedDiskInputDetails.PowerShell.cs @@ -0,0 +1,261 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Azure VM managed disk input details. + [System.ComponentModel.TypeConverter(typeof(A2AProtectionIntentManagedDiskInputDetailsTypeConverter))] + public partial class A2AProtectionIntentManagedDiskInputDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AProtectionIntentManagedDiskInputDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryStagingStorageAccountCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryResourceGroupCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails) content.GetValueForProperty("RecoveryResourceGroupCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryResourceGroupCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryReplicaDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryTargetDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryDiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId = (string) content.GetValueForProperty("RecoveryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryStagingStorageAccountCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryResourceGroupCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInputResourceType = (string) content.GetValueForProperty("RecoveryResourceGroupCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2AProtectionIntentManagedDiskInputDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryStagingStorageAccountCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryResourceGroupCustomInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails) content.GetValueForProperty("RecoveryResourceGroupCustomInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryResourceGroupCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryReplicaDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryTargetDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryDiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId = (string) content.GetValueForProperty("RecoveryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryStagingStorageAccountCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).PrimaryStagingStorageAccountCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryResourceGroupCustomInputResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInputResourceType = (string) content.GetValueForProperty("RecoveryResourceGroupCustomInputResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).RecoveryResourceGroupCustomInputResourceType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AProtectionIntentManagedDiskInputDetails(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.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AProtectionIntentManagedDiskInputDetails(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.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Azure VM managed disk input details. + [System.ComponentModel.TypeConverter(typeof(A2AProtectionIntentManagedDiskInputDetailsTypeConverter))] + public partial interface IA2AProtectionIntentManagedDiskInputDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentManagedDiskInputDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentManagedDiskInputDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentManagedDiskInputDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentManagedDiskInputDetails.TypeConverter.cs index ec852482b415..ef42051d3ed0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentManagedDiskInputDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentManagedDiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentManagedDiskInputDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentManagedDiskInputDetails.cs new file mode 100644 index 000000000000..3959bea6a064 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentManagedDiskInputDetails.cs @@ -0,0 +1,248 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Azure VM managed disk input details. + public partial class A2AProtectionIntentManagedDiskInputDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo _diskEncryptionInfo; + + /// The recovery disk encryption information (for one / single pass flows). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } + + /// The KeyVault resource ARM id for secret. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + + /// The secret url / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } + + /// Backing field for property. + private string _diskId; + + /// The disk Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string DiskId { get => this._diskId; set => this._diskId = value; } + + /// The key URL / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } + + /// The KeyVault resource ARM Id for key. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + + /// Internal Acessors for DiskEncryptionInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } + + /// Internal Acessors for DiskEncryptionInfoDiskEncryptionKeyInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } + + /// Internal Acessors for DiskEncryptionInfoKeyEncryptionKeyInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } + + /// Internal Acessors for PrimaryStagingStorageAccountCustomInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal.PrimaryStagingStorageAccountCustomInput { get => (this._primaryStagingStorageAccountCustomInput = this._primaryStagingStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails()); set { {_primaryStagingStorageAccountCustomInput = value;} } } + + /// Internal Acessors for RecoveryResourceGroupCustomInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetailsInternal.RecoveryResourceGroupCustomInput { get => (this._recoveryResourceGroupCustomInput = this._recoveryResourceGroupCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryResourceGroupCustomDetails()); set { {_recoveryResourceGroupCustomInput = value;} } } + + /// + /// Backing field for property. + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails _primaryStagingStorageAccountCustomInput; + + /// The primary staging storage account input. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get => (this._primaryStagingStorageAccountCustomInput = this._primaryStagingStorageAccountCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails()); set => this._primaryStagingStorageAccountCustomInput = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryStagingStorageAccountCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccountCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccountCustomInput).ResourceType = value ?? null; } + + /// Backing field for property. + private string _recoveryDiskEncryptionSetId; + + /// The recovery disk encryption set Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoveryDiskEncryptionSetId { get => this._recoveryDiskEncryptionSetId; set => this._recoveryDiskEncryptionSetId = value; } + + /// Backing field for property. + private string _recoveryReplicaDiskAccountType; + + /// + /// The replica disk type. Its an optional value and will be same as source disk type if not user provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoveryReplicaDiskAccountType { get => this._recoveryReplicaDiskAccountType; set => this._recoveryReplicaDiskAccountType = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails _recoveryResourceGroupCustomInput; + + /// The recovery resource group input. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails RecoveryResourceGroupCustomInput { get => (this._recoveryResourceGroupCustomInput = this._recoveryResourceGroupCustomInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryResourceGroupCustomDetails()); set => this._recoveryResourceGroupCustomInput = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryResourceGroupCustomInputResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetailsInternal)RecoveryResourceGroupCustomInput).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetailsInternal)RecoveryResourceGroupCustomInput).ResourceType = value ?? null; } + + /// Backing field for property. + private string _recoveryTargetDiskAccountType; + + /// + /// The target disk type after failover. Its an optional value and will be same as source disk type if not user provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoveryTargetDiskAccountType { get => this._recoveryTargetDiskAccountType; set => this._recoveryTargetDiskAccountType = value; } + + /// + /// Creates an new instance. + /// + public A2AProtectionIntentManagedDiskInputDetails() + { + + } + } + /// Azure VM managed disk input details. + public partial interface IA2AProtectionIntentManagedDiskInputDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The KeyVault resource ARM id for secret. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The KeyVault resource ARM id for secret.", + SerializedName = @"keyVaultResourceArmId", + PossibleTypes = new [] { typeof(string) })] + string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + /// The secret url / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The secret url / identifier.", + SerializedName = @"secretIdentifier", + PossibleTypes = new [] { typeof(string) })] + string DiskEncryptionKeyInfoSecretIdentifier { get; set; } + /// The disk Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The disk Id.", + SerializedName = @"diskId", + PossibleTypes = new [] { typeof(string) })] + string DiskId { get; set; } + /// The key URL / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key URL / identifier.", + SerializedName = @"keyIdentifier", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyInfoKeyIdentifier { get; set; } + /// The KeyVault resource ARM Id for key. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The KeyVault resource ARM Id for key.", + SerializedName = @"keyVaultResourceArmId", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string PrimaryStagingStorageAccountCustomInputResourceType { get; set; } + /// The recovery disk encryption set Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery disk encryption set Id.", + SerializedName = @"recoveryDiskEncryptionSetId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryDiskEncryptionSetId { get; set; } + /// + /// The replica disk type. Its an optional value and will be same as source disk type if not user provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The replica disk type. Its an optional value and will be same as source disk type if not user provided.", + SerializedName = @"recoveryReplicaDiskAccountType", + PossibleTypes = new [] { typeof(string) })] + string RecoveryReplicaDiskAccountType { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string RecoveryResourceGroupCustomInputResourceType { get; set; } + /// + /// The target disk type after failover. Its an optional value and will be same as source disk type if not user provided. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target disk type after failover. Its an optional value and will be same as source disk type if not user provided.", + SerializedName = @"recoveryTargetDiskAccountType", + PossibleTypes = new [] { typeof(string) })] + string RecoveryTargetDiskAccountType { get; set; } + + } + /// Azure VM managed disk input details. + internal partial interface IA2AProtectionIntentManagedDiskInputDetailsInternal + + { + /// The recovery disk encryption information (for one / single pass flows). + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } + /// The recovery KeyVault reference for secret. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } + /// The recovery KeyVault reference for key. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } + /// The KeyVault resource ARM id for secret. + string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + /// The secret url / identifier. + string DiskEncryptionKeyInfoSecretIdentifier { get; set; } + /// The disk Id. + string DiskId { get; set; } + /// The key URL / identifier. + string KeyEncryptionKeyInfoKeyIdentifier { get; set; } + /// The KeyVault resource ARM Id for key. + string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + /// The primary staging storage account input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails PrimaryStagingStorageAccountCustomInput { get; set; } + /// The class type. + string PrimaryStagingStorageAccountCustomInputResourceType { get; set; } + /// The recovery disk encryption set Id. + string RecoveryDiskEncryptionSetId { get; set; } + /// + /// The replica disk type. Its an optional value and will be same as source disk type if not user provided. + /// + string RecoveryReplicaDiskAccountType { get; set; } + /// The recovery resource group input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails RecoveryResourceGroupCustomInput { get; set; } + /// The class type. + string RecoveryResourceGroupCustomInputResourceType { get; set; } + /// + /// The target disk type after failover. Its an optional value and will be same as source disk type if not user provided. + /// + string RecoveryTargetDiskAccountType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentManagedDiskInputDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentManagedDiskInputDetails.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentManagedDiskInputDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentManagedDiskInputDetails.json.cs index 477ef13185f7..e6b484e0fca6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AProtectionIntentManagedDiskInputDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AProtectionIntentManagedDiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,9 +65,9 @@ internal A2AProtectionIntentManagedDiskInputDetails(Microsoft.Azure.PowerShell.C { return; } - {_primaryStagingStorageAccountCustomInput = If( json?.PropertyT("primaryStagingStorageAccountCustomInput"), out var __jsonPrimaryStagingStorageAccountCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails.FromJson(__jsonPrimaryStagingStorageAccountCustomInput) : PrimaryStagingStorageAccountCustomInput;} - {_recoveryResourceGroupCustomInput = If( json?.PropertyT("recoveryResourceGroupCustomInput"), out var __jsonRecoveryResourceGroupCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryResourceGroupCustomDetails.FromJson(__jsonRecoveryResourceGroupCustomInput) : RecoveryResourceGroupCustomInput;} - {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} + {_primaryStagingStorageAccountCustomInput = If( json?.PropertyT("primaryStagingStorageAccountCustomInput"), out var __jsonPrimaryStagingStorageAccountCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails.FromJson(__jsonPrimaryStagingStorageAccountCustomInput) : PrimaryStagingStorageAccountCustomInput;} + {_recoveryResourceGroupCustomInput = If( json?.PropertyT("recoveryResourceGroupCustomInput"), out var __jsonRecoveryResourceGroupCustomInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryResourceGroupCustomDetails.FromJson(__jsonRecoveryResourceGroupCustomInput) : RecoveryResourceGroupCustomInput;} + {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} {_diskId = If( json?.PropertyT("diskId"), out var __jsonDiskId) ? (string)__jsonDiskId : (string)DiskId;} {_recoveryReplicaDiskAccountType = If( json?.PropertyT("recoveryReplicaDiskAccountType"), out var __jsonRecoveryReplicaDiskAccountType) ? (string)__jsonRecoveryReplicaDiskAccountType : (string)RecoveryReplicaDiskAccountType;} {_recoveryTargetDiskAccountType = If( json?.PropertyT("recoveryTargetDiskAccountType"), out var __jsonRecoveryTargetDiskAccountType) ? (string)__jsonRecoveryTargetDiskAccountType : (string)RecoveryTargetDiskAccountType;} @@ -76,13 +76,13 @@ internal A2AProtectionIntentManagedDiskInputDetails(Microsoft.Azure.PowerShell.C } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AProtectionIntentManagedDiskInputDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2ARecoveryPointDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2ARecoveryPointDetails.PowerShell.cs new file mode 100644 index 000000000000..8c756e8e5079 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2ARecoveryPointDetails.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A provider specific recovery point details. + [System.ComponentModel.TypeConverter(typeof(A2ARecoveryPointDetailsTypeConverter))] + public partial class A2ARecoveryPointDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2ARecoveryPointDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointSyncType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetailsInternal)this).RecoveryPointSyncType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointSyncType?) content.GetValueForProperty("RecoveryPointSyncType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetailsInternal)this).RecoveryPointSyncType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointSyncType.CreateFrom); + } + if (content.Contains("Disk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetailsInternal)this).Disk = (string[]) content.GetValueForProperty("Disk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetailsInternal)this).Disk, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, 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 A2ARecoveryPointDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointSyncType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetailsInternal)this).RecoveryPointSyncType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointSyncType?) content.GetValueForProperty("RecoveryPointSyncType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetailsInternal)this).RecoveryPointSyncType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointSyncType.CreateFrom); + } + if (content.Contains("Disk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetailsInternal)this).Disk = (string[]) content.GetValueForProperty("Disk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetailsInternal)this).Disk, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2ARecoveryPointDetails(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.Migrate.Models.Api202301.IA2ARecoveryPointDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2ARecoveryPointDetails(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.Migrate.Models.Api202301.IA2ARecoveryPointDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A provider specific recovery point details. + [System.ComponentModel.TypeConverter(typeof(A2ARecoveryPointDetailsTypeConverter))] + public partial interface IA2ARecoveryPointDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ARecoveryPointDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2ARecoveryPointDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2ARecoveryPointDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2ARecoveryPointDetails.TypeConverter.cs index 2a0688d1d83b..a5448ceed884 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ARecoveryPointDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ARecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2ARecoveryPointDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ARecoveryPointDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2ARecoveryPointDetails.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/A2ARecoveryPointDetails.cs rename to src/Migrate/generated/api/Models/Api202301/A2ARecoveryPointDetails.cs index be314ad078aa..98493e4f9c17 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ARecoveryPointDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ARecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A provider specific recovery point details. public partial class A2ARecoveryPointDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails __providerSpecificRecoveryPointDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails __providerSpecificRecoveryPointDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetails(); /// Backing field for property. private string[] _disk; @@ -28,7 +28,7 @@ public partial class A2ARecoveryPointDetails : /// Gets the provider type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)__providerSpecificRecoveryPointDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)__providerSpecificRecoveryPointDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)__providerSpecificRecoveryPointDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)__providerSpecificRecoveryPointDetails).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointSyncType? _recoveryPointSyncType; @@ -58,7 +58,7 @@ public A2ARecoveryPointDetails() /// A2A provider specific recovery point details. public partial interface IA2ARecoveryPointDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails { /// List of disk ids representing a recovery point. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -80,7 +80,7 @@ public partial interface IA2ARecoveryPointDetails : } /// A2A provider specific recovery point details. internal partial interface IA2ARecoveryPointDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal { /// List of disk ids representing a recovery point. string[] Disk { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ARecoveryPointDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2ARecoveryPointDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/A2ARecoveryPointDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2ARecoveryPointDetails.json.cs index 0091870117d1..bf9027d644b9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ARecoveryPointDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ARecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,20 +65,20 @@ internal A2ARecoveryPointDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - __providerSpecificRecoveryPointDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetails(json); + __providerSpecificRecoveryPointDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetails(json); {_recoveryPointSyncType = If( json?.PropertyT("recoveryPointSyncType"), out var __jsonRecoveryPointSyncType) ? (string)__jsonRecoveryPointSyncType : (string)RecoveryPointSyncType;} {_disk = If( json?.PropertyT("disks"), out var __jsonDisks) ? If( __jsonDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Disk;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARecoveryPointDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARecoveryPointDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2ARecoveryPointDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2ARemoveDisksInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2ARemoveDisksInput.PowerShell.cs new file mode 100644 index 000000000000..f83a7fb1332d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2ARemoveDisksInput.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A remove disk(s) input. + [System.ComponentModel.TypeConverter(typeof(A2ARemoveDisksInputTypeConverter))] + public partial class A2ARemoveDisksInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2ARemoveDisksInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VMDisksUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInputInternal)this).VMDisksUri = (string[]) content.GetValueForProperty("VMDisksUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInputInternal)this).VMDisksUri, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("VMManagedDisksId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInputInternal)this).VMManagedDisksId = (string[]) content.GetValueForProperty("VMManagedDisksId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInputInternal)this).VMManagedDisksId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInputInternal)this).InstanceType, 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 A2ARemoveDisksInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VMDisksUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInputInternal)this).VMDisksUri = (string[]) content.GetValueForProperty("VMDisksUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInputInternal)this).VMDisksUri, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("VMManagedDisksId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInputInternal)this).VMManagedDisksId = (string[]) content.GetValueForProperty("VMManagedDisksId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInputInternal)this).VMManagedDisksId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2ARemoveDisksInput(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.Migrate.Models.Api202301.IA2ARemoveDisksInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2ARemoveDisksInput(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.Migrate.Models.Api202301.IA2ARemoveDisksInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A remove disk(s) input. + [System.ComponentModel.TypeConverter(typeof(A2ARemoveDisksInputTypeConverter))] + public partial interface IA2ARemoveDisksInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ARemoveDisksInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2ARemoveDisksInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/A2ARemoveDisksInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2ARemoveDisksInput.TypeConverter.cs index 2180051814de..aa022a21f9c9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ARemoveDisksInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ARemoveDisksInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2ARemoveDisksInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ARemoveDisksInput.cs b/src/Migrate/generated/api/Models/Api202301/A2ARemoveDisksInput.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/A2ARemoveDisksInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2ARemoveDisksInput.cs index f18cc389bc12..ae09bc216a08 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ARemoveDisksInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ARemoveDisksInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A remove disk(s) input. public partial class A2ARemoveDisksInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput __removeDisksProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput __removeDisksProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInputInternal)__removeDisksProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInputInternal)__removeDisksProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInputInternal)__removeDisksProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInputInternal)__removeDisksProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string[] _vMDisksUri; @@ -58,7 +58,7 @@ public A2ARemoveDisksInput() /// A2A remove disk(s) input. public partial interface IA2ARemoveDisksInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput { /// The list of vm disk vhd URIs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -80,7 +80,7 @@ public partial interface IA2ARemoveDisksInput : } /// A2A remove disk(s) input. internal partial interface IA2ARemoveDisksInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInputInternal { /// The list of vm disk vhd URIs. string[] VMDisksUri { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ARemoveDisksInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2ARemoveDisksInput.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/A2ARemoveDisksInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2ARemoveDisksInput.json.cs index 7f5b60914e24..b74fa26e6f04 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ARemoveDisksInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ARemoveDisksInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,20 +65,20 @@ internal A2ARemoveDisksInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime. { return; } - __removeDisksProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksProviderSpecificInput(json); + __removeDisksProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksProviderSpecificInput(json); {_vMDisksUri = If( json?.PropertyT("vmDisksUris"), out var __jsonVMDisksUris) ? If( __jsonVMDisksUris as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : VMDisksUri;} {_vMManagedDisksId = If( json?.PropertyT("vmManagedDisksIds"), out var __jsonVMManagedDisksIds) ? If( __jsonVMManagedDisksIds as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : VMManagedDisksId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ARemoveDisksInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ARemoveDisksInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2ARemoveDisksInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AReplicationDetails.PowerShell.cs new file mode 100644 index 000000000000..f369b90d244b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AReplicationDetails.PowerShell.cs @@ -0,0 +1,648 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A provider specific settings. + [System.ComponentModel.TypeConverter(typeof(A2AReplicationDetailsTypeConverter))] + public partial class A2AReplicationDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AReplicationDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InitialPrimaryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("InitialPrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("InitialRecoveryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("InitialRecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("VMSyncedConfigDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails) content.GetValueForProperty("VMSyncedConfigDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureVMSyncedConfigDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("PrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("InitialPrimaryZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryZone = (string) content.GetValueForProperty("InitialPrimaryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryZone, global::System.Convert.ToString); + } + if (content.Contains("InitialPrimaryFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryFabricLocation = (string) content.GetValueForProperty("InitialPrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("InitialRecoveryZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryZone = (string) content.GetValueForProperty("InitialRecoveryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryZone, global::System.Convert.ToString); + } + if (content.Contains("InitialRecoveryFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryFabricLocation = (string) content.GetValueForProperty("InitialRecoveryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupCreateOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MultiVMGroupCreateOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption?) content.GetValueForProperty("MultiVMGroupCreateOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MultiVMGroupCreateOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption.CreateFrom); + } + if (content.Contains("ManagementId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).ManagementId = (string) content.GetValueForProperty("ManagementId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).ManagementId, global::System.Convert.ToString); + } + if (content.Contains("ProtectedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("UnprotectedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).UnprotectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails[]) content.GetValueForProperty("UnprotectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).UnprotectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AUnprotectedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("ProtectedManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).ProtectedManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails[]) content.GetValueForProperty("ProtectedManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).ProtectedManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectedManagedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryBootDiagStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryFabricLocation = (string) content.GetValueForProperty("PrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryFabricLocation = (string) content.GetValueForProperty("RecoveryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCloudService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryCloudService = (string) content.GetValueForProperty("RecoveryCloudService",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryCloudService, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAvailabilitySet = (string) content.GetValueForProperty("RecoveryAvailabilitySet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAvailabilitySet, global::System.Convert.ToString); + } + if (content.Contains("SelectedRecoveryAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedTfoAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("MonitoringPercentageCompletion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MonitoringPercentageCompletion = (int?) content.GetValueForProperty("MonitoringPercentageCompletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MonitoringPercentageCompletion, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MonitoringJobType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MonitoringJobType = (string) content.GetValueForProperty("MonitoringJobType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MonitoringJobType, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AgentVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("IsReplicationAgentUpdateRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).IsReplicationAgentUpdateRequired = (bool?) content.GetValueForProperty("IsReplicationAgentUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).IsReplicationAgentUpdateRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("AgentCertificateExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AgentCertificateExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentCertificateExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AgentCertificateExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("IsReplicationAgentCertificateUpdateRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).IsReplicationAgentCertificateUpdateRequired = (bool?) content.GetValueForProperty("IsReplicationAgentCertificateUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).IsReplicationAgentCertificateUpdateRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("RecoveryFabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryFabricObjectId = (string) content.GetValueForProperty("RecoveryFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryFabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("LifecycleId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).LifecycleId = (string) content.GetValueForProperty("LifecycleId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).LifecycleId, global::System.Convert.ToString); + } + if (content.Contains("TestFailoverRecoveryFabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).TestFailoverRecoveryFabricObjectId = (string) content.GetValueForProperty("TestFailoverRecoveryFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).TestFailoverRecoveryFabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("RpoInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LastRpoCalculatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("PrimaryAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryAvailabilityZone = (string) content.GetValueForProperty("PrimaryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("VMEncryptionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMEncryptionType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMEncryptionType?) content.GetValueForProperty("VMEncryptionType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMEncryptionType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMEncryptionType.CreateFrom); + } + if (content.Contains("TfoAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).TfoAzureVMName = (string) content.GetValueForProperty("TfoAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).TfoAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureGeneration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureGeneration = (string) content.GetValueForProperty("RecoveryAzureGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureGeneration, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("AutoProtectionOfDataDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AutoProtectionOfDataDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("AutoProtectionOfDataDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AutoProtectionOfDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.CreateFrom); + } + if (content.Contains("RecoveryVirtualMachineScaleSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCapacityReservationGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("InitialPrimaryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationName = (string) content.GetValueForProperty("InitialPrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("InitialPrimaryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationType = (string) content.GetValueForProperty("InitialPrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationType, global::System.Convert.ToString); + } + if (content.Contains("InitialRecoveryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationName = (string) content.GetValueForProperty("InitialRecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("InitialRecoveryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationType = (string) content.GetValueForProperty("InitialRecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationType, global::System.Convert.ToString); + } + if (content.Contains("VMSyncedConfigDetailTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags) content.GetValueForProperty("VMSyncedConfigDetailTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureVMSyncedConfigDetailsTagsTypeConverter.ConvertFrom); + } + if (content.Contains("VMSyncedConfigDetailInputEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailInputEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint[]) content.GetValueForProperty("VMSyncedConfigDetailInputEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailInputEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InputEndpointTypeConverter.ConvertFrom)); + } + if (content.Contains("PrimaryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationName = (string) content.GetValueForProperty("PrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationType = (string) content.GetValueForProperty("PrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationType, 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 A2AReplicationDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InitialPrimaryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("InitialPrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("InitialRecoveryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("InitialRecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("VMSyncedConfigDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails) content.GetValueForProperty("VMSyncedConfigDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureVMSyncedConfigDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("PrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("InitialPrimaryZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryZone = (string) content.GetValueForProperty("InitialPrimaryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryZone, global::System.Convert.ToString); + } + if (content.Contains("InitialPrimaryFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryFabricLocation = (string) content.GetValueForProperty("InitialPrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("InitialRecoveryZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryZone = (string) content.GetValueForProperty("InitialRecoveryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryZone, global::System.Convert.ToString); + } + if (content.Contains("InitialRecoveryFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryFabricLocation = (string) content.GetValueForProperty("InitialRecoveryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupCreateOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MultiVMGroupCreateOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption?) content.GetValueForProperty("MultiVMGroupCreateOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MultiVMGroupCreateOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption.CreateFrom); + } + if (content.Contains("ManagementId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).ManagementId = (string) content.GetValueForProperty("ManagementId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).ManagementId, global::System.Convert.ToString); + } + if (content.Contains("ProtectedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("UnprotectedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).UnprotectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails[]) content.GetValueForProperty("UnprotectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).UnprotectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AUnprotectedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("ProtectedManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).ProtectedManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails[]) content.GetValueForProperty("ProtectedManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).ProtectedManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectedManagedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryBootDiagStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryFabricLocation = (string) content.GetValueForProperty("PrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryFabricLocation = (string) content.GetValueForProperty("RecoveryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCloudService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryCloudService = (string) content.GetValueForProperty("RecoveryCloudService",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryCloudService, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAvailabilitySet = (string) content.GetValueForProperty("RecoveryAvailabilitySet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAvailabilitySet, global::System.Convert.ToString); + } + if (content.Contains("SelectedRecoveryAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedTfoAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("MonitoringPercentageCompletion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MonitoringPercentageCompletion = (int?) content.GetValueForProperty("MonitoringPercentageCompletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MonitoringPercentageCompletion, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MonitoringJobType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MonitoringJobType = (string) content.GetValueForProperty("MonitoringJobType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).MonitoringJobType, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AgentVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("IsReplicationAgentUpdateRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).IsReplicationAgentUpdateRequired = (bool?) content.GetValueForProperty("IsReplicationAgentUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).IsReplicationAgentUpdateRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("AgentCertificateExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AgentCertificateExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentCertificateExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AgentCertificateExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("IsReplicationAgentCertificateUpdateRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).IsReplicationAgentCertificateUpdateRequired = (bool?) content.GetValueForProperty("IsReplicationAgentCertificateUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).IsReplicationAgentCertificateUpdateRequired, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("RecoveryFabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryFabricObjectId = (string) content.GetValueForProperty("RecoveryFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryFabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("LifecycleId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).LifecycleId = (string) content.GetValueForProperty("LifecycleId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).LifecycleId, global::System.Convert.ToString); + } + if (content.Contains("TestFailoverRecoveryFabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).TestFailoverRecoveryFabricObjectId = (string) content.GetValueForProperty("TestFailoverRecoveryFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).TestFailoverRecoveryFabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("RpoInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LastRpoCalculatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("PrimaryAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryAvailabilityZone = (string) content.GetValueForProperty("PrimaryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("VMEncryptionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMEncryptionType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMEncryptionType?) content.GetValueForProperty("VMEncryptionType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMEncryptionType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMEncryptionType.CreateFrom); + } + if (content.Contains("TfoAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).TfoAzureVMName = (string) content.GetValueForProperty("TfoAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).TfoAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureGeneration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureGeneration = (string) content.GetValueForProperty("RecoveryAzureGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryAzureGeneration, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("AutoProtectionOfDataDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AutoProtectionOfDataDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("AutoProtectionOfDataDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).AutoProtectionOfDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.CreateFrom); + } + if (content.Contains("RecoveryVirtualMachineScaleSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCapacityReservationGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("InitialPrimaryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationName = (string) content.GetValueForProperty("InitialPrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("InitialPrimaryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationType = (string) content.GetValueForProperty("InitialPrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialPrimaryExtendedLocationType, global::System.Convert.ToString); + } + if (content.Contains("InitialRecoveryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationName = (string) content.GetValueForProperty("InitialRecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("InitialRecoveryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationType = (string) content.GetValueForProperty("InitialRecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).InitialRecoveryExtendedLocationType, global::System.Convert.ToString); + } + if (content.Contains("VMSyncedConfigDetailTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags) content.GetValueForProperty("VMSyncedConfigDetailTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureVMSyncedConfigDetailsTagsTypeConverter.ConvertFrom); + } + if (content.Contains("VMSyncedConfigDetailInputEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailInputEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint[]) content.GetValueForProperty("VMSyncedConfigDetailInputEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).VMSyncedConfigDetailInputEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InputEndpointTypeConverter.ConvertFrom)); + } + if (content.Contains("PrimaryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationName = (string) content.GetValueForProperty("PrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationType = (string) content.GetValueForProperty("PrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).PrimaryExtendedLocationType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal)this).RecoveryExtendedLocationType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AReplicationDetails(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.Migrate.Models.Api202301.IA2AReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AReplicationDetails(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.Migrate.Models.Api202301.IA2AReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A provider specific settings. + [System.ComponentModel.TypeConverter(typeof(A2AReplicationDetailsTypeConverter))] + public partial interface IA2AReplicationDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AReplicationDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AReplicationDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AReplicationDetails.TypeConverter.cs index fcc4996e68c9..80c90346fab8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AReplicationDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2AReplicationDetails.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/A2AReplicationDetails.cs rename to src/Migrate/generated/api/Models/Api202301/A2AReplicationDetails.cs index f03b52668809..b42b0666dfb3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A provider specific settings. public partial class A2AReplicationDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(); /// Backing field for property. private global::System.DateTime? _agentCertificateExpiryDate; @@ -55,19 +55,19 @@ public partial class A2AReplicationDetails : public string FabricObjectId { get => this._fabricObjectId; set => this._fabricObjectId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation _initialPrimaryExtendedLocation; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation _initialPrimaryExtendedLocation; /// The initial primary extended location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation InitialPrimaryExtendedLocation { get => (this._initialPrimaryExtendedLocation = this._initialPrimaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation()); set => this._initialPrimaryExtendedLocation = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation InitialPrimaryExtendedLocation { get => (this._initialPrimaryExtendedLocation = this._initialPrimaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set => this._initialPrimaryExtendedLocation = value; } /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InitialPrimaryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)InitialPrimaryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)InitialPrimaryExtendedLocation).Name = value ?? null; } + public string InitialPrimaryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)InitialPrimaryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)InitialPrimaryExtendedLocation).Name = value ?? null; } /// The extended location type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InitialPrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)InitialPrimaryExtendedLocation).Type; } + public string InitialPrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)InitialPrimaryExtendedLocation).Type; } /// Backing field for property. private string _initialPrimaryFabricLocation; @@ -84,19 +84,19 @@ public partial class A2AReplicationDetails : public string InitialPrimaryZone { get => this._initialPrimaryZone; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation _initialRecoveryExtendedLocation; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation _initialRecoveryExtendedLocation; /// The initial recovery extended location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation InitialRecoveryExtendedLocation { get => (this._initialRecoveryExtendedLocation = this._initialRecoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation()); set => this._initialRecoveryExtendedLocation = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation InitialRecoveryExtendedLocation { get => (this._initialRecoveryExtendedLocation = this._initialRecoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set => this._initialRecoveryExtendedLocation = value; } /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InitialRecoveryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)InitialRecoveryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)InitialRecoveryExtendedLocation).Name = value ?? null; } + public string InitialRecoveryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)InitialRecoveryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)InitialRecoveryExtendedLocation).Name = value ?? null; } /// The extended location type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InitialRecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)InitialRecoveryExtendedLocation).Type; } + public string InitialRecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)InitialRecoveryExtendedLocation).Type; } /// Backing field for property. private string _initialRecoveryFabricLocation; @@ -114,7 +114,7 @@ public partial class A2AReplicationDetails : /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } /// /// Backing field for property. @@ -165,52 +165,52 @@ public partial class A2AReplicationDetails : public string ManagementId { get => this._managementId; set => this._managementId = value; } /// Internal Acessors for AgentCertificateExpiryDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.AgentCertificateExpiryDate { get => this._agentCertificateExpiryDate; set { {_agentCertificateExpiryDate = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.AgentCertificateExpiryDate { get => this._agentCertificateExpiryDate; set { {_agentCertificateExpiryDate = value;} } } /// Internal Acessors for InitialPrimaryExtendedLocation - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.InitialPrimaryExtendedLocation { get => (this._initialPrimaryExtendedLocation = this._initialPrimaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation()); set { {_initialPrimaryExtendedLocation = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.InitialPrimaryExtendedLocation { get => (this._initialPrimaryExtendedLocation = this._initialPrimaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set { {_initialPrimaryExtendedLocation = value;} } } /// Internal Acessors for InitialPrimaryExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.InitialPrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)InitialPrimaryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)InitialPrimaryExtendedLocation).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.InitialPrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)InitialPrimaryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)InitialPrimaryExtendedLocation).Type = value; } /// Internal Acessors for InitialPrimaryFabricLocation - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.InitialPrimaryFabricLocation { get => this._initialPrimaryFabricLocation; set { {_initialPrimaryFabricLocation = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.InitialPrimaryFabricLocation { get => this._initialPrimaryFabricLocation; set { {_initialPrimaryFabricLocation = value;} } } /// Internal Acessors for InitialPrimaryZone - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.InitialPrimaryZone { get => this._initialPrimaryZone; set { {_initialPrimaryZone = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.InitialPrimaryZone { get => this._initialPrimaryZone; set { {_initialPrimaryZone = value;} } } /// Internal Acessors for InitialRecoveryExtendedLocation - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.InitialRecoveryExtendedLocation { get => (this._initialRecoveryExtendedLocation = this._initialRecoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation()); set { {_initialRecoveryExtendedLocation = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.InitialRecoveryExtendedLocation { get => (this._initialRecoveryExtendedLocation = this._initialRecoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set { {_initialRecoveryExtendedLocation = value;} } } /// Internal Acessors for InitialRecoveryExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.InitialRecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)InitialRecoveryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)InitialRecoveryExtendedLocation).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.InitialRecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)InitialRecoveryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)InitialRecoveryExtendedLocation).Type = value; } /// Internal Acessors for InitialRecoveryFabricLocation - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.InitialRecoveryFabricLocation { get => this._initialRecoveryFabricLocation; set { {_initialRecoveryFabricLocation = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.InitialRecoveryFabricLocation { get => this._initialRecoveryFabricLocation; set { {_initialRecoveryFabricLocation = value;} } } /// Internal Acessors for InitialRecoveryZone - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.InitialRecoveryZone { get => this._initialRecoveryZone; set { {_initialRecoveryZone = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.InitialRecoveryZone { get => this._initialRecoveryZone; set { {_initialRecoveryZone = value;} } } /// Internal Acessors for PrimaryExtendedLocation - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.PrimaryExtendedLocation { get => (this._primaryExtendedLocation = this._primaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation()); set { {_primaryExtendedLocation = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.PrimaryExtendedLocation { get => (this._primaryExtendedLocation = this._primaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set { {_primaryExtendedLocation = value;} } } /// Internal Acessors for PrimaryExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.PrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)PrimaryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)PrimaryExtendedLocation).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.PrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Type = value; } /// Internal Acessors for RecoveryAzureGeneration - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.RecoveryAzureGeneration { get => this._recoveryAzureGeneration; set { {_recoveryAzureGeneration = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.RecoveryAzureGeneration { get => this._recoveryAzureGeneration; set { {_recoveryAzureGeneration = value;} } } /// Internal Acessors for RecoveryExtendedLocation - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation()); set { {_recoveryExtendedLocation = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set { {_recoveryExtendedLocation = value;} } } /// Internal Acessors for RecoveryExtendedLocationType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type = value; } /// Internal Acessors for VMEncryptionType - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMEncryptionType? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.VMEncryptionType { get => this._vMEncryptionType; set { {_vMEncryptionType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMEncryptionType? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.VMEncryptionType { get => this._vMEncryptionType; set { {_vMEncryptionType = value;} } } /// Internal Acessors for VMSyncedConfigDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetailsInternal.VMSyncedConfigDetail { get => (this._vMSyncedConfigDetail = this._vMSyncedConfigDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureVMSyncedConfigDetails()); set { {_vMSyncedConfigDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetailsInternal.VMSyncedConfigDetail { get => (this._vMSyncedConfigDetail = this._vMSyncedConfigDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureVMSyncedConfigDetails()); set { {_vMSyncedConfigDetail = value;} } } /// Backing field for property. private string _monitoringJobType; @@ -266,19 +266,19 @@ public partial class A2AReplicationDetails : public string PrimaryAvailabilityZone { get => this._primaryAvailabilityZone; set => this._primaryAvailabilityZone = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation _primaryExtendedLocation; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation _primaryExtendedLocation; /// The primary Extended Location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation PrimaryExtendedLocation { get => (this._primaryExtendedLocation = this._primaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation()); set => this._primaryExtendedLocation = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation PrimaryExtendedLocation { get => (this._primaryExtendedLocation = this._primaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set => this._primaryExtendedLocation = value; } /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)PrimaryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)PrimaryExtendedLocation).Name = value ?? null; } + public string PrimaryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Name = value ?? null; } /// The extended location type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)PrimaryExtendedLocation).Type; } + public string PrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Type; } /// Backing field for property. private string _primaryFabricLocation; @@ -288,18 +288,18 @@ public partial class A2AReplicationDetails : public string PrimaryFabricLocation { get => this._primaryFabricLocation; set => this._primaryFabricLocation = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetails[] _protectedDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetails[] _protectedDisk; /// The list of protected disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetails[] ProtectedDisk { get => this._protectedDisk; set => this._protectedDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetails[] ProtectedDisk { get => this._protectedDisk; set => this._protectedDisk = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails[] _protectedManagedDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails[] _protectedManagedDisk; /// The list of protected managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails[] ProtectedManagedDisk { get => this._protectedManagedDisk; set => this._protectedManagedDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails[] ProtectedManagedDisk { get => this._protectedManagedDisk; set => this._protectedManagedDisk = value; } /// Backing field for property. private string _recoveryAvailabilitySet; @@ -365,19 +365,19 @@ public partial class A2AReplicationDetails : public string RecoveryCloudService { get => this._recoveryCloudService; set => this._recoveryCloudService = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation _recoveryExtendedLocation; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation _recoveryExtendedLocation; /// The recovery Extended Location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation()); set => this._recoveryExtendedLocation = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set => this._recoveryExtendedLocation = value; } /// The name of the extended location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Name = value ?? null; } + public string RecoveryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Name = value ?? null; } /// The extended location type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)RecoveryExtendedLocation).Type; } + public string RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type; } /// Backing field for property. private string _recoveryFabricLocation; @@ -443,11 +443,11 @@ public partial class A2AReplicationDetails : public string TfoAzureVMName { get => this._tfoAzureVMName; set => this._tfoAzureVMName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails[] _unprotectedDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails[] _unprotectedDisk; /// The list of unprotected disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails[] UnprotectedDisk { get => this._unprotectedDisk; set => this._unprotectedDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails[] UnprotectedDisk { get => this._unprotectedDisk; set => this._unprotectedDisk = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMEncryptionType? _vMEncryptionType; @@ -457,11 +457,11 @@ public partial class A2AReplicationDetails : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMEncryptionType? VMEncryptionType { get => this._vMEncryptionType; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] _vMNic; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] _vMNic; /// The virtual machine nic details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } /// Backing field for property. private string _vMProtectionState; @@ -478,19 +478,19 @@ public partial class A2AReplicationDetails : public string VMProtectionStateDescription { get => this._vMProtectionStateDescription; set => this._vMProtectionStateDescription = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails _vMSyncedConfigDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails _vMSyncedConfigDetail; /// The synced configuration details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails VMSyncedConfigDetail { get => (this._vMSyncedConfigDetail = this._vMSyncedConfigDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureVMSyncedConfigDetails()); set => this._vMSyncedConfigDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails VMSyncedConfigDetail { get => (this._vMSyncedConfigDetail = this._vMSyncedConfigDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureVMSyncedConfigDetails()); set => this._vMSyncedConfigDetail = value; } /// The Azure VM input endpoints. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint[] VMSyncedConfigDetailInputEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsInternal)VMSyncedConfigDetail).InputEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsInternal)VMSyncedConfigDetail).InputEndpoint = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint[] VMSyncedConfigDetailInputEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsInternal)VMSyncedConfigDetail).InputEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsInternal)VMSyncedConfigDetail).InputEndpoint = value ?? null /* arrayOf */; } /// The Azure VM tags. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags VMSyncedConfigDetailTag { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsInternal)VMSyncedConfigDetail).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsInternal)VMSyncedConfigDetail).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags VMSyncedConfigDetailTag { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsInternal)VMSyncedConfigDetail).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsInternal)VMSyncedConfigDetail).Tag = value ?? null /* model class */; } /// Creates an new instance. public A2AReplicationDetails() @@ -513,7 +513,7 @@ public A2AReplicationDetails() /// A2A provider specific settings. public partial interface IA2AReplicationDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings { /// Agent certificate expiry date. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -761,16 +761,16 @@ public partial interface IA2AReplicationDetails : ReadOnly = false, Description = @"The list of protected disks.", SerializedName = @"protectedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetails[] ProtectedDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetails[] ProtectedDisk { get; set; } /// The list of protected managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The list of protected managed disks.", SerializedName = @"protectedManagedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails[] ProtectedManagedDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails[] ProtectedManagedDisk { get; set; } /// The recovery availability set. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -937,8 +937,8 @@ public partial interface IA2AReplicationDetails : ReadOnly = false, Description = @"The list of unprotected disks.", SerializedName = @"unprotectedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails[] UnprotectedDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails[] UnprotectedDisk { get; set; } /// The encryption type of the VM. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -953,8 +953,8 @@ public partial interface IA2AReplicationDetails : ReadOnly = false, Description = @"The virtual machine nic details.", SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get; set; } /// The protection state for the vm. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -977,21 +977,21 @@ public partial interface IA2AReplicationDetails : ReadOnly = false, Description = @"The Azure VM input endpoints.", SerializedName = @"inputEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint[] VMSyncedConfigDetailInputEndpoint { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint[] VMSyncedConfigDetailInputEndpoint { get; set; } /// The Azure VM tags. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The Azure VM tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags VMSyncedConfigDetailTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags VMSyncedConfigDetailTag { get; set; } } /// A2A provider specific settings. internal partial interface IA2AReplicationDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal { /// Agent certificate expiry date. global::System.DateTime? AgentCertificateExpiryDate { get; set; } @@ -1004,7 +1004,7 @@ internal partial interface IA2AReplicationDetailsInternal : /// The fabric specific object Id of the virtual machine. string FabricObjectId { get; set; } /// The initial primary extended location. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation InitialPrimaryExtendedLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation InitialPrimaryExtendedLocation { get; set; } /// The name of the extended location. string InitialPrimaryExtendedLocationName { get; set; } /// The extended location type. @@ -1014,7 +1014,7 @@ internal partial interface IA2AReplicationDetailsInternal : /// The initial primary availability zone. string InitialPrimaryZone { get; set; } /// The initial recovery extended location. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation InitialRecoveryExtendedLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation InitialRecoveryExtendedLocation { get; set; } /// The name of the extended location. string InitialRecoveryExtendedLocationName { get; set; } /// The extended location type. @@ -1058,7 +1058,7 @@ internal partial interface IA2AReplicationDetailsInternal : /// The primary availability zone. string PrimaryAvailabilityZone { get; set; } /// The primary Extended Location. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation PrimaryExtendedLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation PrimaryExtendedLocation { get; set; } /// The name of the extended location. string PrimaryExtendedLocationName { get; set; } /// The extended location type. @@ -1066,9 +1066,9 @@ internal partial interface IA2AReplicationDetailsInternal : /// Primary fabric location. string PrimaryFabricLocation { get; set; } /// The list of protected disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedDiskDetails[] ProtectedDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedDiskDetails[] ProtectedDisk { get; set; } /// The list of protected managed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails[] ProtectedManagedDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails[] ProtectedManagedDisk { get; set; } /// The recovery availability set. string RecoveryAvailabilitySet { get; set; } /// The recovery availability zone. @@ -1088,7 +1088,7 @@ internal partial interface IA2AReplicationDetailsInternal : /// The recovery cloud service. string RecoveryCloudService { get; set; } /// The recovery Extended Location. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation RecoveryExtendedLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation RecoveryExtendedLocation { get; set; } /// The name of the extended location. string RecoveryExtendedLocationName { get; set; } /// The extended location type. @@ -1112,21 +1112,21 @@ internal partial interface IA2AReplicationDetailsInternal : /// The test failover vm name. string TfoAzureVMName { get; set; } /// The list of unprotected disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails[] UnprotectedDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails[] UnprotectedDisk { get; set; } /// The encryption type of the VM. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMEncryptionType? VMEncryptionType { get; set; } /// The virtual machine nic details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get; set; } /// The protection state for the vm. string VMProtectionState { get; set; } /// The protection state description for the vm. string VMProtectionStateDescription { get; set; } /// The synced configuration details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails VMSyncedConfigDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails VMSyncedConfigDetail { get; set; } /// The Azure VM input endpoints. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint[] VMSyncedConfigDetailInputEndpoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint[] VMSyncedConfigDetailInputEndpoint { get; set; } /// The Azure VM tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags VMSyncedConfigDetailTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags VMSyncedConfigDetailTag { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AReplicationDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/A2AReplicationDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AReplicationDetails.json.cs index 4e2223cb2abd..3af1c7e5a299 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,12 +65,12 @@ internal A2AReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(json); - {_initialPrimaryExtendedLocation = If( json?.PropertyT("initialPrimaryExtendedLocation"), out var __jsonInitialPrimaryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation.FromJson(__jsonInitialPrimaryExtendedLocation) : InitialPrimaryExtendedLocation;} - {_initialRecoveryExtendedLocation = If( json?.PropertyT("initialRecoveryExtendedLocation"), out var __jsonInitialRecoveryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation.FromJson(__jsonInitialRecoveryExtendedLocation) : InitialRecoveryExtendedLocation;} - {_vMSyncedConfigDetail = If( json?.PropertyT("vmSyncedConfigDetails"), out var __jsonVMSyncedConfigDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureVMSyncedConfigDetails.FromJson(__jsonVMSyncedConfigDetails) : VMSyncedConfigDetail;} - {_primaryExtendedLocation = If( json?.PropertyT("primaryExtendedLocation"), out var __jsonPrimaryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation.FromJson(__jsonPrimaryExtendedLocation) : PrimaryExtendedLocation;} - {_recoveryExtendedLocation = If( json?.PropertyT("recoveryExtendedLocation"), out var __jsonRecoveryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation.FromJson(__jsonRecoveryExtendedLocation) : RecoveryExtendedLocation;} + __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(json); + {_initialPrimaryExtendedLocation = If( json?.PropertyT("initialPrimaryExtendedLocation"), out var __jsonInitialPrimaryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation.FromJson(__jsonInitialPrimaryExtendedLocation) : InitialPrimaryExtendedLocation;} + {_initialRecoveryExtendedLocation = If( json?.PropertyT("initialRecoveryExtendedLocation"), out var __jsonInitialRecoveryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation.FromJson(__jsonInitialRecoveryExtendedLocation) : InitialRecoveryExtendedLocation;} + {_vMSyncedConfigDetail = If( json?.PropertyT("vmSyncedConfigDetails"), out var __jsonVMSyncedConfigDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureVMSyncedConfigDetails.FromJson(__jsonVMSyncedConfigDetails) : VMSyncedConfigDetail;} + {_primaryExtendedLocation = If( json?.PropertyT("primaryExtendedLocation"), out var __jsonPrimaryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation.FromJson(__jsonPrimaryExtendedLocation) : PrimaryExtendedLocation;} + {_recoveryExtendedLocation = If( json?.PropertyT("recoveryExtendedLocation"), out var __jsonRecoveryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation.FromJson(__jsonRecoveryExtendedLocation) : RecoveryExtendedLocation;} {_fabricObjectId = If( json?.PropertyT("fabricObjectId"), out var __jsonFabricObjectId) ? (string)__jsonFabricObjectId : (string)FabricObjectId;} {_initialPrimaryZone = If( json?.PropertyT("initialPrimaryZone"), out var __jsonInitialPrimaryZone) ? (string)__jsonInitialPrimaryZone : (string)InitialPrimaryZone;} {_initialPrimaryFabricLocation = If( json?.PropertyT("initialPrimaryFabricLocation"), out var __jsonInitialPrimaryFabricLocation) ? (string)__jsonInitialPrimaryFabricLocation : (string)InitialPrimaryFabricLocation;} @@ -80,9 +80,9 @@ internal A2AReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim {_multiVMGroupName = If( json?.PropertyT("multiVmGroupName"), out var __jsonMultiVMGroupName) ? (string)__jsonMultiVMGroupName : (string)MultiVMGroupName;} {_multiVMGroupCreateOption = If( json?.PropertyT("multiVmGroupCreateOption"), out var __jsonMultiVMGroupCreateOption) ? (string)__jsonMultiVMGroupCreateOption : (string)MultiVMGroupCreateOption;} {_managementId = If( json?.PropertyT("managementId"), out var __jsonManagementId) ? (string)__jsonManagementId : (string)ManagementId;} - {_protectedDisk = If( json?.PropertyT("protectedDisks"), out var __jsonProtectedDisks) ? If( __jsonProtectedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AProtectedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectedDiskDetails.FromJson(__u) )) ))() : null : ProtectedDisk;} - {_unprotectedDisk = If( json?.PropertyT("unprotectedDisks"), out var __jsonUnprotectedDisks) ? If( __jsonUnprotectedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AUnprotectedDiskDetails.FromJson(__p) )) ))() : null : UnprotectedDisk;} - {_protectedManagedDisk = If( json?.PropertyT("protectedManagedDisks"), out var __jsonProtectedManagedDisks) ? If( __jsonProtectedManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectedManagedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectedManagedDiskDetails.FromJson(__k) )) ))() : null : ProtectedManagedDisk;} + {_protectedDisk = If( json?.PropertyT("protectedDisks"), out var __jsonProtectedDisks) ? If( __jsonProtectedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IA2AProtectedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectedDiskDetails.FromJson(__u) )) ))() : null : ProtectedDisk;} + {_unprotectedDisk = If( json?.PropertyT("unprotectedDisks"), out var __jsonUnprotectedDisks) ? If( __jsonUnprotectedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AUnprotectedDiskDetails.FromJson(__p) )) ))() : null : UnprotectedDisk;} + {_protectedManagedDisk = If( json?.PropertyT("protectedManagedDisks"), out var __jsonProtectedManagedDisks) ? If( __jsonProtectedManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectedManagedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectedManagedDiskDetails.FromJson(__k) )) ))() : null : ProtectedManagedDisk;} {_recoveryBootDiagStorageAccountId = If( json?.PropertyT("recoveryBootDiagStorageAccountId"), out var __jsonRecoveryBootDiagStorageAccountId) ? (string)__jsonRecoveryBootDiagStorageAccountId : (string)RecoveryBootDiagStorageAccountId;} {_primaryFabricLocation = If( json?.PropertyT("primaryFabricLocation"), out var __jsonPrimaryFabricLocation) ? (string)__jsonPrimaryFabricLocation : (string)PrimaryFabricLocation;} {_recoveryFabricLocation = If( json?.PropertyT("recoveryFabricLocation"), out var __jsonRecoveryFabricLocation) ? (string)__jsonRecoveryFabricLocation : (string)RecoveryFabricLocation;} @@ -94,7 +94,7 @@ internal A2AReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim {_recoveryAvailabilitySet = If( json?.PropertyT("recoveryAvailabilitySet"), out var __jsonRecoveryAvailabilitySet) ? (string)__jsonRecoveryAvailabilitySet : (string)RecoveryAvailabilitySet;} {_selectedRecoveryAzureNetworkId = If( json?.PropertyT("selectedRecoveryAzureNetworkId"), out var __jsonSelectedRecoveryAzureNetworkId) ? (string)__jsonSelectedRecoveryAzureNetworkId : (string)SelectedRecoveryAzureNetworkId;} {_selectedTfoAzureNetworkId = If( json?.PropertyT("selectedTfoAzureNetworkId"), out var __jsonSelectedTfoAzureNetworkId) ? (string)__jsonSelectedTfoAzureNetworkId : (string)SelectedTfoAzureNetworkId;} - {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetails.FromJson(__f) )) ))() : null : VMNic;} + {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetails.FromJson(__f) )) ))() : null : VMNic;} {_monitoringPercentageCompletion = If( json?.PropertyT("monitoringPercentageCompletion"), out var __jsonMonitoringPercentageCompletion) ? (int?)__jsonMonitoringPercentageCompletion : MonitoringPercentageCompletion;} {_monitoringJobType = If( json?.PropertyT("monitoringJobType"), out var __jsonMonitoringJobType) ? (string)__jsonMonitoringJobType : (string)MonitoringJobType;} {_lastHeartbeat = If( json?.PropertyT("lastHeartbeat"), out var __jsonLastHeartbeat) ? global::System.DateTime.TryParse((string)__jsonLastHeartbeat, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastHeartbeatValue) ? __jsonLastHeartbeatValue : LastHeartbeat : LastHeartbeat;} @@ -123,13 +123,13 @@ internal A2AReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AReplicationDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AReplicationIntentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AReplicationIntentDetails.PowerShell.cs new file mode 100644 index 000000000000..ebda103d0196 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AReplicationIntentDetails.PowerShell.cs @@ -0,0 +1,416 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A provider specific settings. + [System.ComponentModel.TypeConverter(typeof(A2AReplicationIntentDetailsTypeConverter))] + public partial class A2AReplicationIntentDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AReplicationIntentDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProtectionProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).ProtectionProfile = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails) content.GetValueForProperty("ProtectionProfile",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).ProtectionProfile, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryStagingStorageAccount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryAvailabilitySet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySet = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails) content.GetValueForProperty("RecoveryAvailabilitySet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryAvailabilitySetCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryVirtualNetwork")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails) content.GetValueForProperty("RecoveryVirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryProximityPlacementGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroup = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails) content.GetValueForProperty("RecoveryProximityPlacementGroup",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroup, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryProximityPlacementGroupCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryBootDiagStorageAccount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails) content.GetValueForProperty("RecoveryBootDiagStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).PrimaryLocation = (string) content.GetValueForProperty("PrimaryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).PrimaryLocation, global::System.Convert.ToString); + } + if (content.Contains("RecoveryLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryLocation = (string) content.GetValueForProperty("RecoveryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryLocation, global::System.Convert.ToString); + } + if (content.Contains("RecoverySubscriptionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoverySubscriptionId = (string) content.GetValueForProperty("RecoverySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoverySubscriptionId, global::System.Convert.ToString); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentManagedDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("AutoProtectionOfDataDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AutoProtectionOfDataDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("AutoProtectionOfDataDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AutoProtectionOfDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.CreateFrom); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityType = (string) content.GetValueForProperty("RecoveryAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityType, global::System.Convert.ToString); + } + if (content.Contains("AgentAutoUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); + } + if (content.Contains("AutomationAccountArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AutomationAccountArmId, global::System.Convert.ToString); + } + if (content.Contains("AutomationAccountAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("ProtectionProfileResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).ProtectionProfileResourceType = (string) content.GetValueForProperty("ProtectionProfileResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).ProtectionProfileResourceType, global::System.Convert.ToString); + } + if (content.Contains("PrimaryStagingStorageAccountResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccountResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccountResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySetResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySetResourceType = (string) content.GetValueForProperty("RecoveryAvailabilitySetResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySetResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVirtualNetworkResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetworkResourceType = (string) content.GetValueForProperty("RecoveryVirtualNetworkResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetworkResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProximityPlacementGroupResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroupResourceType = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroupResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryBootDiagStorageAccountResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccountResourceType = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccountResourceType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2AReplicationIntentDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProtectionProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).ProtectionProfile = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails) content.GetValueForProperty("ProtectionProfile",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).ProtectionProfile, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryStagingStorageAccount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails) content.GetValueForProperty("PrimaryStagingStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryAvailabilitySet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySet = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails) content.GetValueForProperty("RecoveryAvailabilitySet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySet, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryAvailabilitySetCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryVirtualNetwork")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails) content.GetValueForProperty("RecoveryVirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryProximityPlacementGroup")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroup = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails) content.GetValueForProperty("RecoveryProximityPlacementGroup",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroup, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryProximityPlacementGroupCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryBootDiagStorageAccount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails) content.GetValueForProperty("RecoveryBootDiagStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).PrimaryLocation = (string) content.GetValueForProperty("PrimaryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).PrimaryLocation, global::System.Convert.ToString); + } + if (content.Contains("RecoveryLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryLocation = (string) content.GetValueForProperty("RecoveryLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryLocation, global::System.Convert.ToString); + } + if (content.Contains("RecoverySubscriptionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoverySubscriptionId = (string) content.GetValueForProperty("RecoverySubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoverySubscriptionId, global::System.Convert.ToString); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentManagedDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("AutoProtectionOfDataDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AutoProtectionOfDataDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("AutoProtectionOfDataDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AutoProtectionOfDataDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.CreateFrom); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityType = (string) content.GetValueForProperty("RecoveryAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilityType, global::System.Convert.ToString); + } + if (content.Contains("AgentAutoUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); + } + if (content.Contains("AutomationAccountArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AutomationAccountArmId, global::System.Convert.ToString); + } + if (content.Contains("AutomationAccountAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("ProtectionProfileResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).ProtectionProfileResourceType = (string) content.GetValueForProperty("ProtectionProfileResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).ProtectionProfileResourceType, global::System.Convert.ToString); + } + if (content.Contains("PrimaryStagingStorageAccountResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccountResourceType = (string) content.GetValueForProperty("PrimaryStagingStorageAccountResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).PrimaryStagingStorageAccountResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySetResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySetResourceType = (string) content.GetValueForProperty("RecoveryAvailabilitySetResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryAvailabilitySetResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVirtualNetworkResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetworkResourceType = (string) content.GetValueForProperty("RecoveryVirtualNetworkResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryVirtualNetworkResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProximityPlacementGroupResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroupResourceType = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryProximityPlacementGroupResourceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryBootDiagStorageAccountResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccountResourceType = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).RecoveryBootDiagStorageAccountResourceType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AReplicationIntentDetails(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.Migrate.Models.Api202301.IA2AReplicationIntentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AReplicationIntentDetails(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.Migrate.Models.Api202301.IA2AReplicationIntentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A provider specific settings. + [System.ComponentModel.TypeConverter(typeof(A2AReplicationIntentDetailsTypeConverter))] + public partial interface IA2AReplicationIntentDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationIntentDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AReplicationIntentDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AReplicationIntentDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AReplicationIntentDetails.TypeConverter.cs index b87e611772f6..0ad80453a398 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationIntentDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AReplicationIntentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AReplicationIntentDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AReplicationIntentDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2AReplicationIntentDetails.cs new file mode 100644 index 000000000000..2102582fa2b9 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AReplicationIntentDetails.cs @@ -0,0 +1,546 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// A2A provider specific settings. + public partial class A2AReplicationIntentDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings __replicationProtectionIntentProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProviderSpecificSettings(); + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? _agentAutoUpdateStatus; + + /// A value indicating whether the auto update is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get => this._agentAutoUpdateStatus; set => this._agentAutoUpdateStatus = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? _autoProtectionOfDataDisk; + + /// A value indicating whether the auto protection is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? AutoProtectionOfDataDisk { get => this._autoProtectionOfDataDisk; set => this._autoProtectionOfDataDisk = value; } + + /// Backing field for property. + private string _automationAccountArmId; + + /// The automation account arm id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string AutomationAccountArmId { get => this._automationAccountArmId; set => this._automationAccountArmId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? _automationAccountAuthenticationType; + + /// A value indicating the type authentication to use for automation Account. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? AutomationAccountAuthenticationType { get => this._automationAccountAuthenticationType; set => this._automationAccountAuthenticationType = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo _diskEncryptionInfo; + + /// The recovery disk encryption information (for two pass flows). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } + + /// The KeyVault resource ARM id for secret. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + + /// The secret url / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } + + /// Backing field for property. + private string _fabricObjectId; + + /// The fabric specific object Id of the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string FabricObjectId { get => this._fabricObjectId; set => this._fabricObjectId = value; } + + /// Gets the Instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettingsInternal)__replicationProtectionIntentProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettingsInternal)__replicationProtectionIntentProviderSpecificSettings).InstanceType = value ; } + + /// The key URL / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } + + /// The KeyVault resource ARM Id for key. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + + /// Internal Acessors for DiskEncryptionInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } + + /// Internal Acessors for DiskEncryptionInfoDiskEncryptionKeyInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } + + /// Internal Acessors for DiskEncryptionInfoKeyEncryptionKeyInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } + + /// Internal Acessors for PrimaryStagingStorageAccount + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal.PrimaryStagingStorageAccount { get => (this._primaryStagingStorageAccount = this._primaryStagingStorageAccount ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails()); set { {_primaryStagingStorageAccount = value;} } } + + /// Internal Acessors for ProtectionProfile + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal.ProtectionProfile { get => (this._protectionProfile = this._protectionProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetails()); set { {_protectionProfile = value;} } } + + /// Internal Acessors for RecoveryAvailabilitySet + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal.RecoveryAvailabilitySet { get => (this._recoveryAvailabilitySet = this._recoveryAvailabilitySet ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryAvailabilitySetCustomDetails()); set { {_recoveryAvailabilitySet = value;} } } + + /// Internal Acessors for RecoveryBootDiagStorageAccount + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal.RecoveryBootDiagStorageAccount { get => (this._recoveryBootDiagStorageAccount = this._recoveryBootDiagStorageAccount ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails()); set { {_recoveryBootDiagStorageAccount = value;} } } + + /// Internal Acessors for RecoveryProximityPlacementGroup + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal.RecoveryProximityPlacementGroup { get => (this._recoveryProximityPlacementGroup = this._recoveryProximityPlacementGroup ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryProximityPlacementGroupCustomDetails()); set { {_recoveryProximityPlacementGroup = value;} } } + + /// Internal Acessors for RecoveryVirtualNetwork + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetailsInternal.RecoveryVirtualNetwork { get => (this._recoveryVirtualNetwork = this._recoveryVirtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetails()); set { {_recoveryVirtualNetwork = value;} } } + + /// Backing field for property. + private string _multiVMGroupId; + + /// The multi vm group id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string MultiVMGroupId { get => this._multiVMGroupId; set => this._multiVMGroupId = value; } + + /// Backing field for property. + private string _multiVMGroupName; + + /// The multi vm group name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string MultiVMGroupName { get => this._multiVMGroupName; set => this._multiVMGroupName = value; } + + /// Backing field for property. + private string _primaryLocation; + + /// The primary location for the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PrimaryLocation { get => this._primaryLocation; set => this._primaryLocation = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails _primaryStagingStorageAccount; + + /// The primary staging storage account details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails PrimaryStagingStorageAccount { get => (this._primaryStagingStorageAccount = this._primaryStagingStorageAccount ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails()); set => this._primaryStagingStorageAccount = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryStagingStorageAccountResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccount).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)PrimaryStagingStorageAccount).ResourceType = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails _protectionProfile; + + /// The protection profile custom details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails ProtectionProfile { get => (this._protectionProfile = this._protectionProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetails()); set => this._protectionProfile = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProtectionProfileResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)ProtectionProfile).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)ProtectionProfile).ResourceType = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails _recoveryAvailabilitySet; + + /// The recovery availability set details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails RecoveryAvailabilitySet { get => (this._recoveryAvailabilitySet = this._recoveryAvailabilitySet ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryAvailabilitySetCustomDetails()); set => this._recoveryAvailabilitySet = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryAvailabilitySetResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal)RecoveryAvailabilitySet).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal)RecoveryAvailabilitySet).ResourceType = value ?? null; } + + /// Backing field for property. + private string _recoveryAvailabilityType; + + /// The recovery availability type of the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoveryAvailabilityType { get => this._recoveryAvailabilityType; set => this._recoveryAvailabilityType = value; } + + /// Backing field for property. + private string _recoveryAvailabilityZone; + + /// The recovery availability zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoveryAvailabilityZone { get => this._recoveryAvailabilityZone; set => this._recoveryAvailabilityZone = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails _recoveryBootDiagStorageAccount; + + /// The boot diagnostic storage account. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails RecoveryBootDiagStorageAccount { get => (this._recoveryBootDiagStorageAccount = this._recoveryBootDiagStorageAccount ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails()); set => this._recoveryBootDiagStorageAccount = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryBootDiagStorageAccountResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)RecoveryBootDiagStorageAccount).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)RecoveryBootDiagStorageAccount).ResourceType = value ?? null; } + + /// Backing field for property. + private string _recoveryLocation; + + /// The recovery location for the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoveryLocation { get => this._recoveryLocation; set => this._recoveryLocation = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails _recoveryProximityPlacementGroup; + + /// The recovery proximity placement group custom details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails RecoveryProximityPlacementGroup { get => (this._recoveryProximityPlacementGroup = this._recoveryProximityPlacementGroup ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryProximityPlacementGroupCustomDetails()); set => this._recoveryProximityPlacementGroup = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryProximityPlacementGroupResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal)RecoveryProximityPlacementGroup).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal)RecoveryProximityPlacementGroup).ResourceType = value ?? null; } + + /// Backing field for property. + private string _recoveryResourceGroupId; + + /// The recovery resource group id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoveryResourceGroupId { get => this._recoveryResourceGroupId; set => this._recoveryResourceGroupId = value; } + + /// Backing field for property. + private string _recoverySubscriptionId; + + /// The recovery subscription Id of the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoverySubscriptionId { get => this._recoverySubscriptionId; set => this._recoverySubscriptionId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails _recoveryVirtualNetwork; + + /// The recovery virtual network details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails RecoveryVirtualNetwork { get => (this._recoveryVirtualNetwork = this._recoveryVirtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetails()); set => this._recoveryVirtualNetwork = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryVirtualNetworkResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)RecoveryVirtualNetwork).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)RecoveryVirtualNetwork).ResourceType = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails[] _vMDisk; + + /// The list of vm disk details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails[] _vMManagedDisk; + + /// The list of vm managed disk details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails[] VMManagedDisk { get => this._vMManagedDisk; set => this._vMManagedDisk = value; } + + /// Creates an new instance. + public A2AReplicationIntentDetails() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__replicationProtectionIntentProviderSpecificSettings), __replicationProtectionIntentProviderSpecificSettings); + await eventListener.AssertObjectIsValid(nameof(__replicationProtectionIntentProviderSpecificSettings), __replicationProtectionIntentProviderSpecificSettings); + } + } + /// A2A provider specific settings. + public partial interface IA2AReplicationIntentDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings + { + /// A value indicating whether the auto update is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether the auto update is enabled.", + SerializedName = @"agentAutoUpdateStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get; set; } + /// A value indicating whether the auto protection is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether the auto protection is enabled.", + SerializedName = @"autoProtectionOfDataDisk", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? AutoProtectionOfDataDisk { get; set; } + /// The automation account arm id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The automation account arm id.", + SerializedName = @"automationAccountArmId", + PossibleTypes = new [] { typeof(string) })] + string AutomationAccountArmId { get; set; } + /// A value indicating the type authentication to use for automation Account. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating the type authentication to use for automation Account.", + SerializedName = @"automationAccountAuthenticationType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? AutomationAccountAuthenticationType { get; set; } + /// The KeyVault resource ARM id for secret. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The KeyVault resource ARM id for secret.", + SerializedName = @"keyVaultResourceArmId", + PossibleTypes = new [] { typeof(string) })] + string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + /// The secret url / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The secret url / identifier.", + SerializedName = @"secretIdentifier", + PossibleTypes = new [] { typeof(string) })] + string DiskEncryptionKeyInfoSecretIdentifier { get; set; } + /// The fabric specific object Id of the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fabric specific object Id of the virtual machine.", + SerializedName = @"fabricObjectId", + PossibleTypes = new [] { typeof(string) })] + string FabricObjectId { get; set; } + /// The key URL / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key URL / identifier.", + SerializedName = @"keyIdentifier", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyInfoKeyIdentifier { get; set; } + /// The KeyVault resource ARM Id for key. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The KeyVault resource ARM Id for key.", + SerializedName = @"keyVaultResourceArmId", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + /// The multi vm group id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The multi vm group id.", + SerializedName = @"multiVmGroupId", + PossibleTypes = new [] { typeof(string) })] + string MultiVMGroupId { get; set; } + /// The multi vm group name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The multi vm group name.", + SerializedName = @"multiVmGroupName", + PossibleTypes = new [] { typeof(string) })] + string MultiVMGroupName { get; set; } + /// The primary location for the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The primary location for the virtual machine.", + SerializedName = @"primaryLocation", + PossibleTypes = new [] { typeof(string) })] + string PrimaryLocation { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string PrimaryStagingStorageAccountResourceType { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string ProtectionProfileResourceType { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string RecoveryAvailabilitySetResourceType { get; set; } + /// The recovery availability type of the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The recovery availability type of the virtual machine.", + SerializedName = @"recoveryAvailabilityType", + PossibleTypes = new [] { typeof(string) })] + string RecoveryAvailabilityType { get; set; } + /// The recovery availability zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery availability zone.", + SerializedName = @"recoveryAvailabilityZone", + PossibleTypes = new [] { typeof(string) })] + string RecoveryAvailabilityZone { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string RecoveryBootDiagStorageAccountResourceType { get; set; } + /// The recovery location for the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery location for the virtual machine.", + SerializedName = @"recoveryLocation", + PossibleTypes = new [] { typeof(string) })] + string RecoveryLocation { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string RecoveryProximityPlacementGroupResourceType { get; set; } + /// The recovery resource group id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery resource group id.", + SerializedName = @"recoveryResourceGroupId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryResourceGroupId { get; set; } + /// The recovery subscription Id of the virtual machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery subscription Id of the virtual machine.", + SerializedName = @"recoverySubscriptionId", + PossibleTypes = new [] { typeof(string) })] + string RecoverySubscriptionId { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"resourceType", + PossibleTypes = new [] { typeof(string) })] + string RecoveryVirtualNetworkResourceType { get; set; } + /// The list of vm disk details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of vm disk details.", + SerializedName = @"vmDisks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails[] VMDisk { get; set; } + /// The list of vm managed disk details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of vm managed disk details.", + SerializedName = @"vmManagedDisks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails[] VMManagedDisk { get; set; } + + } + /// A2A provider specific settings. + internal partial interface IA2AReplicationIntentDetailsInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettingsInternal + { + /// A value indicating whether the auto update is enabled. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get; set; } + /// A value indicating whether the auto protection is enabled. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk? AutoProtectionOfDataDisk { get; set; } + /// The automation account arm id. + string AutomationAccountArmId { get; set; } + /// A value indicating the type authentication to use for automation Account. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType? AutomationAccountAuthenticationType { get; set; } + /// The recovery disk encryption information (for two pass flows). + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } + /// The recovery KeyVault reference for secret. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } + /// The recovery KeyVault reference for key. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } + /// The KeyVault resource ARM id for secret. + string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + /// The secret url / identifier. + string DiskEncryptionKeyInfoSecretIdentifier { get; set; } + /// The fabric specific object Id of the virtual machine. + string FabricObjectId { get; set; } + /// The key URL / identifier. + string KeyEncryptionKeyInfoKeyIdentifier { get; set; } + /// The KeyVault resource ARM Id for key. + string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + /// The multi vm group id. + string MultiVMGroupId { get; set; } + /// The multi vm group name. + string MultiVMGroupName { get; set; } + /// The primary location for the virtual machine. + string PrimaryLocation { get; set; } + /// The primary staging storage account details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails PrimaryStagingStorageAccount { get; set; } + /// The class type. + string PrimaryStagingStorageAccountResourceType { get; set; } + /// The protection profile custom details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails ProtectionProfile { get; set; } + /// The class type. + string ProtectionProfileResourceType { get; set; } + /// The recovery availability set details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails RecoveryAvailabilitySet { get; set; } + /// The class type. + string RecoveryAvailabilitySetResourceType { get; set; } + /// The recovery availability type of the virtual machine. + string RecoveryAvailabilityType { get; set; } + /// The recovery availability zone. + string RecoveryAvailabilityZone { get; set; } + /// The boot diagnostic storage account. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails RecoveryBootDiagStorageAccount { get; set; } + /// The class type. + string RecoveryBootDiagStorageAccountResourceType { get; set; } + /// The recovery location for the virtual machine. + string RecoveryLocation { get; set; } + /// The recovery proximity placement group custom details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails RecoveryProximityPlacementGroup { get; set; } + /// The class type. + string RecoveryProximityPlacementGroupResourceType { get; set; } + /// The recovery resource group id. + string RecoveryResourceGroupId { get; set; } + /// The recovery subscription Id of the virtual machine. + string RecoverySubscriptionId { get; set; } + /// The recovery virtual network details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails RecoveryVirtualNetwork { get; set; } + /// The class type. + string RecoveryVirtualNetworkResourceType { get; set; } + /// The list of vm disk details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails[] VMDisk { get; set; } + /// The list of vm managed disk details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails[] VMManagedDisk { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationIntentDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AReplicationIntentDetails.json.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/A2AReplicationIntentDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AReplicationIntentDetails.json.cs index b6bf63ff8506..9ce3b01b072e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AReplicationIntentDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AReplicationIntentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,20 +65,20 @@ internal A2AReplicationIntentDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - __replicationProtectionIntentProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProviderSpecificSettings(json); - {_protectionProfile = If( json?.PropertyT("protectionProfile"), out var __jsonProtectionProfile) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetails.FromJson(__jsonProtectionProfile) : ProtectionProfile;} - {_primaryStagingStorageAccount = If( json?.PropertyT("primaryStagingStorageAccount"), out var __jsonPrimaryStagingStorageAccount) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails.FromJson(__jsonPrimaryStagingStorageAccount) : PrimaryStagingStorageAccount;} - {_recoveryAvailabilitySet = If( json?.PropertyT("recoveryAvailabilitySet"), out var __jsonRecoveryAvailabilitySet) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryAvailabilitySetCustomDetails.FromJson(__jsonRecoveryAvailabilitySet) : RecoveryAvailabilitySet;} - {_recoveryVirtualNetwork = If( json?.PropertyT("recoveryVirtualNetwork"), out var __jsonRecoveryVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetails.FromJson(__jsonRecoveryVirtualNetwork) : RecoveryVirtualNetwork;} - {_recoveryProximityPlacementGroup = If( json?.PropertyT("recoveryProximityPlacementGroup"), out var __jsonRecoveryProximityPlacementGroup) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryProximityPlacementGroupCustomDetails.FromJson(__jsonRecoveryProximityPlacementGroup) : RecoveryProximityPlacementGroup;} - {_recoveryBootDiagStorageAccount = If( json?.PropertyT("recoveryBootDiagStorageAccount"), out var __jsonRecoveryBootDiagStorageAccount) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails.FromJson(__jsonRecoveryBootDiagStorageAccount) : RecoveryBootDiagStorageAccount;} - {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} + __replicationProtectionIntentProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProviderSpecificSettings(json); + {_protectionProfile = If( json?.PropertyT("protectionProfile"), out var __jsonProtectionProfile) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetails.FromJson(__jsonProtectionProfile) : ProtectionProfile;} + {_primaryStagingStorageAccount = If( json?.PropertyT("primaryStagingStorageAccount"), out var __jsonPrimaryStagingStorageAccount) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails.FromJson(__jsonPrimaryStagingStorageAccount) : PrimaryStagingStorageAccount;} + {_recoveryAvailabilitySet = If( json?.PropertyT("recoveryAvailabilitySet"), out var __jsonRecoveryAvailabilitySet) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryAvailabilitySetCustomDetails.FromJson(__jsonRecoveryAvailabilitySet) : RecoveryAvailabilitySet;} + {_recoveryVirtualNetwork = If( json?.PropertyT("recoveryVirtualNetwork"), out var __jsonRecoveryVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetails.FromJson(__jsonRecoveryVirtualNetwork) : RecoveryVirtualNetwork;} + {_recoveryProximityPlacementGroup = If( json?.PropertyT("recoveryProximityPlacementGroup"), out var __jsonRecoveryProximityPlacementGroup) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryProximityPlacementGroupCustomDetails.FromJson(__jsonRecoveryProximityPlacementGroup) : RecoveryProximityPlacementGroup;} + {_recoveryBootDiagStorageAccount = If( json?.PropertyT("recoveryBootDiagStorageAccount"), out var __jsonRecoveryBootDiagStorageAccount) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails.FromJson(__jsonRecoveryBootDiagStorageAccount) : RecoveryBootDiagStorageAccount;} + {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} {_fabricObjectId = If( json?.PropertyT("fabricObjectId"), out var __jsonFabricObjectId) ? (string)__jsonFabricObjectId : (string)FabricObjectId;} {_primaryLocation = If( json?.PropertyT("primaryLocation"), out var __jsonPrimaryLocation) ? (string)__jsonPrimaryLocation : (string)PrimaryLocation;} {_recoveryLocation = If( json?.PropertyT("recoveryLocation"), out var __jsonRecoveryLocation) ? (string)__jsonRecoveryLocation : (string)RecoveryLocation;} {_recoverySubscriptionId = If( json?.PropertyT("recoverySubscriptionId"), out var __jsonRecoverySubscriptionId) ? (string)__jsonRecoverySubscriptionId : (string)RecoverySubscriptionId;} - {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AProtectionIntentDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentDiskInputDetails.FromJson(__u) )) ))() : null : VMDisk;} - {_vMManagedDisk = If( json?.PropertyT("vmManagedDisks"), out var __jsonVMManagedDisks) ? If( __jsonVMManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AProtectionIntentManagedDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AProtectionIntentManagedDiskInputDetails.FromJson(__p) )) ))() : null : VMManagedDisk;} + {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IA2AProtectionIntentDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentDiskInputDetails.FromJson(__u) )) ))() : null : VMDisk;} + {_vMManagedDisk = If( json?.PropertyT("vmManagedDisks"), out var __jsonVMManagedDisks) ? If( __jsonVMManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AProtectionIntentManagedDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AProtectionIntentManagedDiskInputDetails.FromJson(__p) )) ))() : null : VMManagedDisk;} {_recoveryResourceGroupId = If( json?.PropertyT("recoveryResourceGroupId"), out var __jsonRecoveryResourceGroupId) ? (string)__jsonRecoveryResourceGroupId : (string)RecoveryResourceGroupId;} {_autoProtectionOfDataDisk = If( json?.PropertyT("autoProtectionOfDataDisk"), out var __jsonAutoProtectionOfDataDisk) ? (string)__jsonAutoProtectionOfDataDisk : (string)AutoProtectionOfDataDisk;} {_multiVMGroupName = If( json?.PropertyT("multiVmGroupName"), out var __jsonMultiVMGroupName) ? (string)__jsonMultiVMGroupName : (string)MultiVMGroupName;} @@ -92,13 +92,13 @@ internal A2AReplicationIntentDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReplicationIntentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReplicationIntentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AReplicationIntentDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AReprotectInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AReprotectInput.PowerShell.cs new file mode 100644 index 000000000000..c8d5b01ab3a3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AReprotectInput.PowerShell.cs @@ -0,0 +1,192 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Azure specific reprotect input. + [System.ComponentModel.TypeConverter(typeof(A2AReprotectInputTypeConverter))] + public partial class A2AReprotectInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AReprotectInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCloudServiceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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 A2AReprotectInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCloudServiceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AReprotectInput(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.Migrate.Models.Api202301.IA2AReprotectInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AReprotectInput(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.Migrate.Models.Api202301.IA2AReprotectInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Azure specific reprotect input. + [System.ComponentModel.TypeConverter(typeof(A2AReprotectInputTypeConverter))] + public partial interface IA2AReprotectInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AReprotectInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AReprotectInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/A2AReprotectInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AReprotectInput.TypeConverter.cs index 06b10ea15625..c31b3893716d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AReprotectInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AReprotectInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AReprotectInput.cs b/src/Migrate/generated/api/Models/Api202301/A2AReprotectInput.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/A2AReprotectInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2AReprotectInput.cs index df4b663078fd..c1a5c0f33ba0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AReprotectInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Azure specific reprotect input. public partial class A2AReprotectInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _policyId; @@ -59,11 +59,11 @@ public partial class A2AReprotectInput : public string RecoveryResourceGroupId { get => this._recoveryResourceGroupId; set => this._recoveryResourceGroupId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] _vMDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] _vMDisk; /// The list of vm disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } /// Creates an new instance. public A2AReprotectInput() @@ -86,7 +86,7 @@ public A2AReprotectInput() /// Azure specific reprotect input. public partial interface IA2AReprotectInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput { /// The Policy Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -134,13 +134,13 @@ public partial interface IA2AReprotectInput : ReadOnly = false, Description = @"The list of vm disk details.", SerializedName = @"vmDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] VMDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] VMDisk { get; set; } } /// Azure specific reprotect input. internal partial interface IA2AReprotectInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal { /// The Policy Id. string PolicyId { get; set; } @@ -153,7 +153,7 @@ internal partial interface IA2AReprotectInputInternal : /// The recovery resource group Id. Valid for V2 scenarios. string RecoveryResourceGroupId { get; set; } /// The list of vm disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] VMDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] VMDisk { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AReprotectInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AReprotectInput.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/A2AReprotectInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AReprotectInput.json.cs index 9744e659b1f7..e84a4448c903 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AReprotectInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,9 +65,9 @@ internal A2AReprotectInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js { return; } - __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput(json); + __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput(json); {_recoveryContainerId = If( json?.PropertyT("recoveryContainerId"), out var __jsonRecoveryContainerId) ? (string)__jsonRecoveryContainerId : (string)RecoveryContainerId;} - {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AvmDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmDiskInputDetails.FromJson(__u) )) ))() : null : VMDisk;} + {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IA2AvmDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmDiskInputDetails.FromJson(__u) )) ))() : null : VMDisk;} {_recoveryResourceGroupId = If( json?.PropertyT("recoveryResourceGroupId"), out var __jsonRecoveryResourceGroupId) ? (string)__jsonRecoveryResourceGroupId : (string)RecoveryResourceGroupId;} {_recoveryCloudServiceId = If( json?.PropertyT("recoveryCloudServiceId"), out var __jsonRecoveryCloudServiceId) ? (string)__jsonRecoveryCloudServiceId : (string)RecoveryCloudServiceId;} {_recoveryAvailabilitySetId = If( json?.PropertyT("recoveryAvailabilitySetId"), out var __jsonRecoveryAvailabilitySetId) ? (string)__jsonRecoveryAvailabilitySetId : (string)RecoveryAvailabilitySetId;} @@ -76,13 +76,13 @@ internal A2AReprotectInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AReprotectInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AReprotectInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AReprotectInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2ASwitchProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2ASwitchProtectionInput.PowerShell.cs new file mode 100644 index 000000000000..53f8683e0f60 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2ASwitchProtectionInput.PowerShell.cs @@ -0,0 +1,296 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A specific switch protection input. + [System.ComponentModel.TypeConverter(typeof(A2ASwitchProtectionInputTypeConverter))] + public partial class A2ASwitchProtectionInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2ASwitchProtectionInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCloudServiceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryBootDiagStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVirtualMachineScaleSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCapacityReservationGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2ASwitchProtectionInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryContainerId, global::System.Convert.ToString); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).VMManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[]) content.GetValueForProperty("VMManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).VMManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCloudServiceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryBootDiagStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilityZone = (string) content.GetValueForProperty("RecoveryAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVirtualMachineScaleSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCapacityReservationGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2ASwitchProtectionInput(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.Migrate.Models.Api202301.IA2ASwitchProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2ASwitchProtectionInput(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.Migrate.Models.Api202301.IA2ASwitchProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A specific switch protection input. + [System.ComponentModel.TypeConverter(typeof(A2ASwitchProtectionInputTypeConverter))] + public partial interface IA2ASwitchProtectionInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ASwitchProtectionInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2ASwitchProtectionInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2ASwitchProtectionInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2ASwitchProtectionInput.TypeConverter.cs index dacb01dab424..3d51811cda3d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ASwitchProtectionInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ASwitchProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2ASwitchProtectionInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ASwitchProtectionInput.cs b/src/Migrate/generated/api/Models/Api202301/A2ASwitchProtectionInput.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/A2ASwitchProtectionInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2ASwitchProtectionInput.cs index 30948d797345..e25da48edeb3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ASwitchProtectionInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ASwitchProtectionInput.cs @@ -3,57 +3,57 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A specific switch protection input. public partial class A2ASwitchProtectionInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput __switchProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput __switchProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionProviderSpecificInput(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo _diskEncryptionInfo; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo _diskEncryptionInfo; /// The recovery disk encryption information. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } /// The KeyVault resource ARM id for secret. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } /// The secret url / identifier. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } + public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInputInternal)__switchProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInputInternal)__switchProtectionProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInputInternal)__switchProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInputInternal)__switchProtectionProviderSpecificInput).InstanceType = value ; } /// The key URL / identifier. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } + public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } /// The KeyVault resource ARM Id for key. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } /// Internal Acessors for DiskEncryptionInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } /// Internal Acessors for DiskEncryptionInfoDiskEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } /// Internal Acessors for DiskEncryptionInfoKeyEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInputInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInputInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } /// Backing field for property. private string _policyId; @@ -126,18 +126,18 @@ public partial class A2ASwitchProtectionInput : public string RecoveryVirtualMachineScaleSetId { get => this._recoveryVirtualMachineScaleSetId; set => this._recoveryVirtualMachineScaleSetId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] _vMDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] _vMDisk; /// The list of vm disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[] _vMManagedDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[] _vMManagedDisk; /// The list of vm managed disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get => this._vMManagedDisk; set => this._vMManagedDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get => this._vMManagedDisk; set => this._vMManagedDisk = value; } /// Creates an new instance. public A2ASwitchProtectionInput() @@ -160,7 +160,7 @@ public A2ASwitchProtectionInput() /// A2A specific switch protection input. public partial interface IA2ASwitchProtectionInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput { /// The KeyVault resource ARM id for secret. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -280,28 +280,28 @@ public partial interface IA2ASwitchProtectionInput : ReadOnly = false, Description = @"The list of vm disk details.", SerializedName = @"vmDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] VMDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] VMDisk { get; set; } /// The list of vm managed disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The list of vm managed disk details.", SerializedName = @"vmManagedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get; set; } } /// A2A specific switch protection input. internal partial interface IA2ASwitchProtectionInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInputInternal { /// The recovery disk encryption information. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } /// The recovery KeyVault reference for secret. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } /// The recovery KeyVault reference for key. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } /// The KeyVault resource ARM id for secret. string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } /// The secret url / identifier. @@ -331,9 +331,9 @@ internal partial interface IA2ASwitchProtectionInputInternal : /// The virtual machine scale set id. string RecoveryVirtualMachineScaleSetId { get; set; } /// The list of vm disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails[] VMDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails[] VMDisk { get; set; } /// The list of vm managed disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails[] VMManagedDisk { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ASwitchProtectionInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2ASwitchProtectionInput.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/A2ASwitchProtectionInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2ASwitchProtectionInput.json.cs index fa1382108b4a..e15054ed643a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ASwitchProtectionInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ASwitchProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,11 +65,11 @@ internal A2ASwitchProtectionInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - __switchProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionProviderSpecificInput(json); - {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} + __switchProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionProviderSpecificInput(json); + {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} {_recoveryContainerId = If( json?.PropertyT("recoveryContainerId"), out var __jsonRecoveryContainerId) ? (string)__jsonRecoveryContainerId : (string)RecoveryContainerId;} - {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AvmDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmDiskInputDetails.FromJson(__u) )) ))() : null : VMDisk;} - {_vMManagedDisk = If( json?.PropertyT("vmManagedDisks"), out var __jsonVMManagedDisks) ? If( __jsonVMManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskInputDetails.FromJson(__p) )) ))() : null : VMManagedDisk;} + {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IA2AvmDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmDiskInputDetails.FromJson(__u) )) ))() : null : VMDisk;} + {_vMManagedDisk = If( json?.PropertyT("vmManagedDisks"), out var __jsonVMManagedDisks) ? If( __jsonVMManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskInputDetails.FromJson(__p) )) ))() : null : VMManagedDisk;} {_recoveryResourceGroupId = If( json?.PropertyT("recoveryResourceGroupId"), out var __jsonRecoveryResourceGroupId) ? (string)__jsonRecoveryResourceGroupId : (string)RecoveryResourceGroupId;} {_recoveryCloudServiceId = If( json?.PropertyT("recoveryCloudServiceId"), out var __jsonRecoveryCloudServiceId) ? (string)__jsonRecoveryCloudServiceId : (string)RecoveryCloudServiceId;} {_recoveryAvailabilitySetId = If( json?.PropertyT("recoveryAvailabilitySetId"), out var __jsonRecoveryAvailabilitySetId) ? (string)__jsonRecoveryAvailabilitySetId : (string)RecoveryAvailabilitySetId;} @@ -83,13 +83,13 @@ internal A2ASwitchProtectionInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ASwitchProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ASwitchProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2ASwitchProtectionInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2ATestFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2ATestFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..aa5059f51703 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2ATestFailoverInput.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A provider specific input for test failover. + [System.ComponentModel.TypeConverter(typeof(A2ATestFailoverInputTypeConverter))] + public partial class A2ATestFailoverInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2ATestFailoverInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("CloudServiceCreationOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInputInternal)this).CloudServiceCreationOption = (string) content.GetValueForProperty("CloudServiceCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInputInternal)this).CloudServiceCreationOption, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType, 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 A2ATestFailoverInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("CloudServiceCreationOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInputInternal)this).CloudServiceCreationOption = (string) content.GetValueForProperty("CloudServiceCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInputInternal)this).CloudServiceCreationOption, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2ATestFailoverInput(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.Migrate.Models.Api202301.IA2ATestFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2ATestFailoverInput(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.Migrate.Models.Api202301.IA2ATestFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A provider specific input for test failover. + [System.ComponentModel.TypeConverter(typeof(A2ATestFailoverInputTypeConverter))] + public partial interface IA2ATestFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ATestFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2ATestFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2ATestFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2ATestFailoverInput.TypeConverter.cs index ba593f175065..5712636c4b44 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ATestFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ATestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2ATestFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ATestFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/A2ATestFailoverInput.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/A2ATestFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2ATestFailoverInput.cs index 143234fec72a..49f7247f02a2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ATestFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ATestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A provider specific input for test failover. public partial class A2ATestFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput(); /// Backing field for property. private string _cloudServiceCreationOption; @@ -28,7 +28,7 @@ public partial class A2ATestFailoverInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _recoveryPointId; @@ -61,7 +61,7 @@ public A2ATestFailoverInput() /// A2A provider specific input for test failover. public partial interface IA2ATestFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput { /// A value indicating whether to use recovery cloud service for TFO or not. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -86,7 +86,7 @@ public partial interface IA2ATestFailoverInput : } /// A2A provider specific input for test failover. internal partial interface IA2ATestFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal { /// A value indicating whether to use recovery cloud service for TFO or not. string CloudServiceCreationOption { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2ATestFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2ATestFailoverInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/A2ATestFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2ATestFailoverInput.json.cs index 507701197139..ab7c3e9437eb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2ATestFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2ATestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,20 +65,20 @@ internal A2ATestFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime { return; } - __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput(json); + __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput(json); {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} {_cloudServiceCreationOption = If( json?.PropertyT("cloudServiceCreationOption"), out var __jsonCloudServiceCreationOption) ? (string)__jsonCloudServiceCreationOption : (string)CloudServiceCreationOption;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2ATestFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2ATestFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2ATestFailoverInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AUnplannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AUnplannedFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..b5b3383e1907 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AUnplannedFailoverInput.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A provider specific input for unplanned failover. + [System.ComponentModel.TypeConverter(typeof(A2AUnplannedFailoverInputTypeConverter))] + public partial class A2AUnplannedFailoverInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AUnplannedFailoverInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("CloudServiceCreationOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInputInternal)this).CloudServiceCreationOption = (string) content.GetValueForProperty("CloudServiceCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInputInternal)this).CloudServiceCreationOption, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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 A2AUnplannedFailoverInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("CloudServiceCreationOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInputInternal)this).CloudServiceCreationOption = (string) content.GetValueForProperty("CloudServiceCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInputInternal)this).CloudServiceCreationOption, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AUnplannedFailoverInput(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.Migrate.Models.Api202301.IA2AUnplannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AUnplannedFailoverInput(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.Migrate.Models.Api202301.IA2AUnplannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A provider specific input for unplanned failover. + [System.ComponentModel.TypeConverter(typeof(A2AUnplannedFailoverInputTypeConverter))] + public partial interface IA2AUnplannedFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUnplannedFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AUnplannedFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AUnplannedFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AUnplannedFailoverInput.TypeConverter.cs index 646ac995be05..c885e02e1838 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUnplannedFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AUnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AUnplannedFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUnplannedFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/A2AUnplannedFailoverInput.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/A2AUnplannedFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2AUnplannedFailoverInput.cs index 84aab1b85d40..4d1bdee54433 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUnplannedFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AUnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A provider specific input for unplanned failover. public partial class A2AUnplannedFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput(); /// Backing field for property. private string _cloudServiceCreationOption; @@ -28,7 +28,7 @@ public partial class A2AUnplannedFailoverInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _recoveryPointId; @@ -61,7 +61,7 @@ public A2AUnplannedFailoverInput() /// A2A provider specific input for unplanned failover. public partial interface IA2AUnplannedFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput { /// A value indicating whether to use recovery cloud service for failover or not. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -86,7 +86,7 @@ public partial interface IA2AUnplannedFailoverInput : } /// A2A provider specific input for unplanned failover. internal partial interface IA2AUnplannedFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal { /// A value indicating whether to use recovery cloud service for failover or not. string CloudServiceCreationOption { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUnplannedFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AUnplannedFailoverInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/A2AUnplannedFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AUnplannedFailoverInput.json.cs index 311c8ea979e6..f98d9227d59d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUnplannedFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AUnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,20 +65,20 @@ internal A2AUnplannedFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput(json); + __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput(json); {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} {_cloudServiceCreationOption = If( json?.PropertyT("cloudServiceCreationOption"), out var __jsonCloudServiceCreationOption) ? (string)__jsonCloudServiceCreationOption : (string)CloudServiceCreationOption;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnplannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnplannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AUnplannedFailoverInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUnprotectedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AUnprotectedDiskDetails.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/A2AUnprotectedDiskDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/A2AUnprotectedDiskDetails.PowerShell.cs index d829592d8cf2..e2af918c8ab8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUnprotectedDiskDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AUnprotectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class A2AUnprotectedDiskDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,17 +70,17 @@ internal A2AUnprotectedDiskDetails(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("DiskLunId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetailsInternal)this).DiskLunId = (int?) content.GetValueForProperty("DiskLunId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetailsInternal)this).DiskLunId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetailsInternal)this).DiskLunId = (int?) content.GetValueForProperty("DiskLunId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetailsInternal)this).DiskLunId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("DiskAutoProtectionStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetailsInternal)this).DiskAutoProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("DiskAutoProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetailsInternal)this).DiskAutoProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetailsInternal)this).DiskAutoProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("DiskAutoProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetailsInternal)this).DiskAutoProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.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. @@ -95,37 +95,37 @@ internal A2AUnprotectedDiskDetails(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("DiskLunId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetailsInternal)this).DiskLunId = (int?) content.GetValueForProperty("DiskLunId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetailsInternal)this).DiskLunId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetailsInternal)this).DiskLunId = (int?) content.GetValueForProperty("DiskLunId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetailsInternal)this).DiskLunId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("DiskAutoProtectionStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetailsInternal)this).DiskAutoProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("DiskAutoProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetailsInternal)this).DiskAutoProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetailsInternal)this).DiskAutoProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk?) content.GetValueForProperty("DiskAutoProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetailsInternal)this).DiskAutoProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutoProtectionOfDataDisk.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.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new A2AUnprotectedDiskDetails(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.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new A2AUnprotectedDiskDetails(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2A /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUnprotectedDiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AUnprotectedDiskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AUnprotectedDiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AUnprotectedDiskDetails.TypeConverter.cs index a04c536b4f66..a36c5bf3debe 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUnprotectedDiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AUnprotectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUnprotectedDiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2AUnprotectedDiskDetails.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AUnprotectedDiskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/A2AUnprotectedDiskDetails.cs index 4235ce185826..45eaf62e3740 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUnprotectedDiskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AUnprotectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A unprotected disk details. public partial class A2AUnprotectedDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUnprotectedDiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AUnprotectedDiskDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/A2AUnprotectedDiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AUnprotectedDiskDetails.json.cs index 2f45b8e75c96..b5900688b543 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUnprotectedDiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AUnprotectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -71,13 +71,13 @@ internal A2AUnprotectedDiskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUnprotectedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUnprotectedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AUnprotectedDiskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AUpdateContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AUpdateContainerMappingInput.PowerShell.cs new file mode 100644 index 000000000000..390d582ac6a5 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AUpdateContainerMappingInput.PowerShell.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A update protection container mapping. + [System.ComponentModel.TypeConverter(typeof(A2AUpdateContainerMappingInputTypeConverter))] + public partial class A2AUpdateContainerMappingInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AUpdateContainerMappingInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentAutoUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInputInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInputInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); + } + if (content.Contains("AutomationAccountArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountArmId, global::System.Convert.ToString); + } + if (content.Contains("AutomationAccountAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType, 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 A2AUpdateContainerMappingInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentAutoUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInputInternal)this).AgentAutoUpdateStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus?) content.GetValueForProperty("AgentAutoUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInputInternal)this).AgentAutoUpdateStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus.CreateFrom); + } + if (content.Contains("AutomationAccountArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountArmId = (string) content.GetValueForProperty("AutomationAccountArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountArmId, global::System.Convert.ToString); + } + if (content.Contains("AutomationAccountAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountAuthenticationType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType?) content.GetValueForProperty("AutomationAccountAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInputInternal)this).AutomationAccountAuthenticationType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AutomationAccountAuthenticationType.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AUpdateContainerMappingInput(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.Migrate.Models.Api202301.IA2AUpdateContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AUpdateContainerMappingInput(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.Migrate.Models.Api202301.IA2AUpdateContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A update protection container mapping. + [System.ComponentModel.TypeConverter(typeof(A2AUpdateContainerMappingInputTypeConverter))] + public partial interface IA2AUpdateContainerMappingInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateContainerMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AUpdateContainerMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AUpdateContainerMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AUpdateContainerMappingInput.TypeConverter.cs index c9c477281a6e..5af7126093b4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateContainerMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AUpdateContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateContainerMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/A2AUpdateContainerMappingInput.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/A2AUpdateContainerMappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2AUpdateContainerMappingInput.cs index bf4522698bfe..4c0b81fe0e8f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateContainerMappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AUpdateContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A update protection container mapping. public partial class A2AUpdateContainerMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput __replicationProviderSpecificUpdateContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificUpdateContainerMappingInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput __replicationProviderSpecificUpdateContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificUpdateContainerMappingInput(); /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? _agentAutoUpdateStatus; @@ -42,7 +42,7 @@ public partial class A2AUpdateContainerMappingInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)__replicationProviderSpecificUpdateContainerMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)__replicationProviderSpecificUpdateContainerMappingInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)__replicationProviderSpecificUpdateContainerMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)__replicationProviderSpecificUpdateContainerMappingInput).InstanceType = value ; } /// Creates an new instance. public A2AUpdateContainerMappingInput() @@ -65,7 +65,7 @@ public A2AUpdateContainerMappingInput() /// A2A update protection container mapping. public partial interface IA2AUpdateContainerMappingInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput { /// A value indicating whether the auto update is enabled. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -95,7 +95,7 @@ public partial interface IA2AUpdateContainerMappingInput : } /// A2A update protection container mapping. internal partial interface IA2AUpdateContainerMappingInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal { /// A value indicating whether the auto update is enabled. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentAutoUpdateStatus? AgentAutoUpdateStatus { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateContainerMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AUpdateContainerMappingInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/A2AUpdateContainerMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AUpdateContainerMappingInput.json.cs index d3271a580537..81e8079c3719 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateContainerMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AUpdateContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,7 +65,7 @@ internal A2AUpdateContainerMappingInput(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - __replicationProviderSpecificUpdateContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificUpdateContainerMappingInput(json); + __replicationProviderSpecificUpdateContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificUpdateContainerMappingInput(json); {_agentAutoUpdateStatus = If( json?.PropertyT("agentAutoUpdateStatus"), out var __jsonAgentAutoUpdateStatus) ? (string)__jsonAgentAutoUpdateStatus : (string)AgentAutoUpdateStatus;} {_automationAccountArmId = If( json?.PropertyT("automationAccountArmId"), out var __jsonAutomationAccountArmId) ? (string)__jsonAutomationAccountArmId : (string)AutomationAccountArmId;} {_automationAccountAuthenticationType = If( json?.PropertyT("automationAccountAuthenticationType"), out var __jsonAutomationAccountAuthenticationType) ? (string)__jsonAutomationAccountAuthenticationType : (string)AutomationAccountAuthenticationType;} @@ -73,13 +73,13 @@ internal A2AUpdateContainerMappingInput(Microsoft.Azure.PowerShell.Cmdlets.Migra } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AUpdateContainerMappingInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AUpdateReplicationProtectedItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AUpdateReplicationProtectedItemInput.PowerShell.cs new file mode 100644 index 000000000000..a72b2ce8f970 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AUpdateReplicationProtectedItemInput.PowerShell.cs @@ -0,0 +1,269 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMage Azure V2 input to update replication protected item. + [System.ComponentModel.TypeConverter(typeof(A2AUpdateReplicationProtectedItemInputTypeConverter))] + public partial class A2AUpdateReplicationProtectedItemInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AUpdateReplicationProtectedItemInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryCloudServiceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("ManagedDiskUpdateDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).ManagedDiskUpdateDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails[]) content.GetValueForProperty("ManagedDiskUpdateDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).ManagedDiskUpdateDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskUpdateDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryBootDiagStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TfoAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).TfoAzureVMName = (string) content.GetValueForProperty("TfoAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).TfoAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVirtualMachineScaleSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCapacityReservationGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2AUpdateReplicationProtectedItemInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryCloudServiceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCloudServiceId = (string) content.GetValueForProperty("RecoveryCloudServiceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCloudServiceId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("ManagedDiskUpdateDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).ManagedDiskUpdateDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails[]) content.GetValueForProperty("ManagedDiskUpdateDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).ManagedDiskUpdateDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskUpdateDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryBootDiagStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryBootDiagStorageAccountId = (string) content.GetValueForProperty("RecoveryBootDiagStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryBootDiagStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TfoAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).TfoAzureVMName = (string) content.GetValueForProperty("TfoAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).TfoAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVirtualMachineScaleSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryVirtualMachineScaleSetId = (string) content.GetValueForProperty("RecoveryVirtualMachineScaleSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryVirtualMachineScaleSetId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryCapacityReservationGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCapacityReservationGroupId = (string) content.GetValueForProperty("RecoveryCapacityReservationGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).RecoveryCapacityReservationGroupId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AUpdateReplicationProtectedItemInput(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.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AUpdateReplicationProtectedItemInput(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.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMage Azure V2 input to update replication protected item. + [System.ComponentModel.TypeConverter(typeof(A2AUpdateReplicationProtectedItemInputTypeConverter))] + public partial interface IA2AUpdateReplicationProtectedItemInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateReplicationProtectedItemInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AUpdateReplicationProtectedItemInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AUpdateReplicationProtectedItemInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AUpdateReplicationProtectedItemInput.TypeConverter.cs index fdeaf3002e0a..53502b11604e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateReplicationProtectedItemInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AUpdateReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateReplicationProtectedItemInput.cs b/src/Migrate/generated/api/Models/Api202301/A2AUpdateReplicationProtectedItemInput.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/A2AUpdateReplicationProtectedItemInput.cs rename to src/Migrate/generated/api/Models/Api202301/A2AUpdateReplicationProtectedItemInput.cs index fa0ad5f0b32e..8d8abba6971c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateReplicationProtectedItemInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AUpdateReplicationProtectedItemInput.cs @@ -3,64 +3,64 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMage Azure V2 input to update replication protected item. public partial class A2AUpdateReplicationProtectedItemInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInput(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo _diskEncryptionInfo; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo _diskEncryptionInfo; /// The recovery os disk encryption information. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } /// The KeyVault resource ARM id for secret. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } /// The secret url / identifier. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } + public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType = value ; } /// The key URL / identifier. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } + public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } /// The KeyVault resource ARM Id for key. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails[] _managedDiskUpdateDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails[] _managedDiskUpdateDetail; /// Managed disk update details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails[] ManagedDiskUpdateDetail { get => this._managedDiskUpdateDetail; set => this._managedDiskUpdateDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails[] ManagedDiskUpdateDetail { get => this._managedDiskUpdateDetail; set => this._managedDiskUpdateDetail = value; } /// Internal Acessors for DiskEncryptionInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } /// Internal Acessors for DiskEncryptionInfoDiskEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } /// Internal Acessors for DiskEncryptionInfoKeyEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInputInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInputInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } /// Backing field for property. private string _recoveryBootDiagStorageAccountId; @@ -132,7 +132,7 @@ public A2AUpdateReplicationProtectedItemInput() /// InMage Azure V2 input to update replication protected item. public partial interface IA2AUpdateReplicationProtectedItemInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput { /// The KeyVault resource ARM id for secret. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -172,8 +172,8 @@ public partial interface IA2AUpdateReplicationProtectedItemInput : ReadOnly = false, Description = @"Managed disk update details.", SerializedName = @"managedDiskUpdateDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails[] ManagedDiskUpdateDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails[] ManagedDiskUpdateDetail { get; set; } /// The boot diagnostic storage account. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -234,14 +234,14 @@ public partial interface IA2AUpdateReplicationProtectedItemInput : } /// InMage Azure V2 input to update replication protected item. internal partial interface IA2AUpdateReplicationProtectedItemInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal { /// The recovery os disk encryption information. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } /// The recovery KeyVault reference for secret. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } /// The recovery KeyVault reference for key. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } /// The KeyVault resource ARM id for secret. string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } /// The secret url / identifier. @@ -251,7 +251,7 @@ internal partial interface IA2AUpdateReplicationProtectedItemInputInternal : /// The KeyVault resource ARM Id for key. string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } /// Managed disk update details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails[] ManagedDiskUpdateDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails[] ManagedDiskUpdateDetail { get; set; } /// The boot diagnostic storage account. string RecoveryBootDiagStorageAccountId { get; set; } /// The recovery capacity reservation group Id. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateReplicationProtectedItemInput.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AUpdateReplicationProtectedItemInput.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/A2AUpdateReplicationProtectedItemInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AUpdateReplicationProtectedItemInput.json.cs index 1c8d8913cc93..6d07d835648c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AUpdateReplicationProtectedItemInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AUpdateReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,11 +65,11 @@ internal A2AUpdateReplicationProtectedItemInput(Microsoft.Azure.PowerShell.Cmdle { return; } - __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInput(json); - {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} + __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInput(json); + {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} {_recoveryCloudServiceId = If( json?.PropertyT("recoveryCloudServiceId"), out var __jsonRecoveryCloudServiceId) ? (string)__jsonRecoveryCloudServiceId : (string)RecoveryCloudServiceId;} {_recoveryResourceGroupId = If( json?.PropertyT("recoveryResourceGroupId"), out var __jsonRecoveryResourceGroupId) ? (string)__jsonRecoveryResourceGroupId : (string)RecoveryResourceGroupId;} - {_managedDiskUpdateDetail = If( json?.PropertyT("managedDiskUpdateDetails"), out var __jsonManagedDiskUpdateDetails) ? If( __jsonManagedDiskUpdateDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AvmManagedDiskUpdateDetails.FromJson(__u) )) ))() : null : ManagedDiskUpdateDetail;} + {_managedDiskUpdateDetail = If( json?.PropertyT("managedDiskUpdateDetails"), out var __jsonManagedDiskUpdateDetails) ? If( __jsonManagedDiskUpdateDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AvmManagedDiskUpdateDetails.FromJson(__u) )) ))() : null : ManagedDiskUpdateDetail;} {_recoveryBootDiagStorageAccountId = If( json?.PropertyT("recoveryBootDiagStorageAccountId"), out var __jsonRecoveryBootDiagStorageAccountId) ? (string)__jsonRecoveryBootDiagStorageAccountId : (string)RecoveryBootDiagStorageAccountId;} {_tfoAzureVMName = If( json?.PropertyT("tfoAzureVMName"), out var __jsonTfoAzureVMName) ? (string)__jsonTfoAzureVMName : (string)TfoAzureVMName;} {_recoveryProximityPlacementGroupId = If( json?.PropertyT("recoveryProximityPlacementGroupId"), out var __jsonRecoveryProximityPlacementGroupId) ? (string)__jsonRecoveryProximityPlacementGroupId : (string)RecoveryProximityPlacementGroupId;} @@ -79,13 +79,13 @@ internal A2AUpdateReplicationProtectedItemInput(Microsoft.Azure.PowerShell.Cmdle } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AUpdateReplicationProtectedItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AUpdateReplicationProtectedItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AUpdateReplicationProtectedItemInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AZoneDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AZoneDetails.PowerShell.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/A2AZoneDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/A2AZoneDetails.PowerShell.cs index ac8bd1ed1dd2..d6c9e222c7e6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AZoneDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AZoneDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class A2AZoneDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,17 +70,17 @@ internal A2AZoneDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Source")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetailsInternal)this).Source = (string) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetailsInternal)this).Source, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetailsInternal)this).Source = (string) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetailsInternal)this).Source, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetailsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetailsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetailsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetailsInternal)this).Target, 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. @@ -95,37 +95,37 @@ internal A2AZoneDetails(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Source")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetailsInternal)this).Source = (string) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetailsInternal)this).Source, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetailsInternal)this).Source = (string) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetailsInternal)this).Source, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetailsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetailsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetailsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetailsInternal)this).Target, 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.Migrate.Models.Api20220501.IA2AZoneDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new A2AZoneDetails(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.Migrate.Models.Api20220501.IA2AZoneDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new A2AZoneDetails(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2A /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AZoneDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AZoneDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/A2AZoneDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AZoneDetails.TypeConverter.cs index 9c1de8d397b3..ffed9e5f407b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AZoneDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AZoneDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AZoneDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AZoneDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2AZoneDetails.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AZoneDetails.cs rename to src/Migrate/generated/api/Models/Api202301/A2AZoneDetails.cs index f3763e6187dd..45783d2e60d3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AZoneDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AZoneDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Zone details data. public partial class A2AZoneDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AZoneDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AZoneDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/A2AZoneDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AZoneDetails.json.cs index 36ab31964531..515ce438362d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AZoneDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AZoneDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -71,13 +71,13 @@ internal A2AZoneDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AZoneDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AvmDiskInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AvmDiskInputDetails.PowerShell.cs new file mode 100644 index 000000000000..768f76695cee --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AvmDiskInputDetails.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A disk input details. + [System.ComponentModel.TypeConverter(typeof(A2AvmDiskInputDetailsTypeConverter))] + public partial class A2AvmDiskInputDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AvmDiskInputDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetailsInternal)this).DiskUri = (string) content.GetValueForProperty("DiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetailsInternal)this).DiskUri, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetailsInternal)this).RecoveryAzureStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetailsInternal)this).RecoveryAzureStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryStagingAzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId, 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 A2AvmDiskInputDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetailsInternal)this).DiskUri = (string) content.GetValueForProperty("DiskUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetailsInternal)this).DiskUri, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetailsInternal)this).RecoveryAzureStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetailsInternal)this).RecoveryAzureStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryStagingAzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AvmDiskInputDetails(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.Migrate.Models.Api202301.IA2AvmDiskInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AvmDiskInputDetails(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.Migrate.Models.Api202301.IA2AvmDiskInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A disk input details. + [System.ComponentModel.TypeConverter(typeof(A2AvmDiskInputDetailsTypeConverter))] + public partial interface IA2AvmDiskInputDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AvmDiskInputDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AvmDiskInputDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AvmDiskInputDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AvmDiskInputDetails.TypeConverter.cs index 174f8c0a6863..89f6176247c3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AvmDiskInputDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AvmDiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AvmDiskInputDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AvmDiskInputDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2AvmDiskInputDetails.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/A2AvmDiskInputDetails.cs rename to src/Migrate/generated/api/Models/Api202301/A2AvmDiskInputDetails.cs index a3fce2988787..adaf649b4be1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AvmDiskInputDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AvmDiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A disk input details. public partial class A2AvmDiskInputDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AvmDiskInputDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AvmDiskInputDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/A2AvmDiskInputDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AvmDiskInputDetails.json.cs index 4eb4caac21f7..bffacbf055aa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AvmDiskInputDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AvmDiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -72,13 +72,13 @@ internal A2AvmDiskInputDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmDiskInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmDiskInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AvmDiskInputDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskInputDetails.PowerShell.cs new file mode 100644 index 000000000000..b38476bf449b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskInputDetails.PowerShell.cs @@ -0,0 +1,240 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A managed disk input details. + [System.ComponentModel.TypeConverter(typeof(A2AvmManagedDiskInputDetailsTypeConverter))] + public partial class A2AvmManagedDiskInputDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AvmManagedDiskInputDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryStagingAzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryReplicaDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryTargetDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryDiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId = (string) content.GetValueForProperty("RecoveryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2AvmManagedDiskInputDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryStagingAzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId = (string) content.GetValueForProperty("PrimaryStagingAzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).PrimaryStagingAzureStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryReplicaDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryTargetDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryDiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId = (string) content.GetValueForProperty("RecoveryDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).RecoveryDiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AvmManagedDiskInputDetails(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.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AvmManagedDiskInputDetails(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.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A managed disk input details. + [System.ComponentModel.TypeConverter(typeof(A2AvmManagedDiskInputDetailsTypeConverter))] + public partial interface IA2AvmManagedDiskInputDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskInputDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskInputDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskInputDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskInputDetails.TypeConverter.cs index 69c09d3075c0..951ca9f805be 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskInputDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskInputDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskInputDetails.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskInputDetails.cs rename to src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskInputDetails.cs index 55febbb82c4c..8415e4bab6a1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskInputDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskInputDetails.cs @@ -3,30 +3,30 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A managed disk input details. public partial class A2AvmManagedDiskInputDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo _diskEncryptionInfo; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo _diskEncryptionInfo; /// The recovery disk encryption information (for one / single pass flows). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } /// The KeyVault resource ARM id for secret. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } /// The secret url / identifier. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } + public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } /// Backing field for property. private string _diskId; @@ -37,20 +37,20 @@ public partial class A2AvmManagedDiskInputDetails : /// The key URL / identifier. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } + public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } /// The KeyVault resource ARM Id for key. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } /// Internal Acessors for DiskEncryptionInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } /// Internal Acessors for DiskEncryptionInfoDiskEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } /// Internal Acessors for DiskEncryptionInfoKeyEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetailsInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetailsInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } /// Backing field for property. private string _primaryStagingAzureStorageAccountId; @@ -192,11 +192,11 @@ internal partial interface IA2AvmManagedDiskInputDetailsInternal { /// The recovery disk encryption information (for one / single pass flows). - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } /// The recovery KeyVault reference for secret. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } /// The recovery KeyVault reference for key. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } /// The KeyVault resource ARM id for secret. string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } /// The secret url / identifier. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskInputDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskInputDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskInputDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskInputDetails.json.cs index 87f0232245f5..3ea673a94411 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskInputDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,7 +65,7 @@ internal A2AvmManagedDiskInputDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} + {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} {_diskId = If( json?.PropertyT("diskId"), out var __jsonDiskId) ? (string)__jsonDiskId : (string)DiskId;} {_primaryStagingAzureStorageAccountId = If( json?.PropertyT("primaryStagingAzureStorageAccountId"), out var __jsonPrimaryStagingAzureStorageAccountId) ? (string)__jsonPrimaryStagingAzureStorageAccountId : (string)PrimaryStagingAzureStorageAccountId;} {_recoveryResourceGroupId = If( json?.PropertyT("recoveryResourceGroupId"), out var __jsonRecoveryResourceGroupId) ? (string)__jsonRecoveryResourceGroupId : (string)RecoveryResourceGroupId;} @@ -76,13 +76,13 @@ internal A2AvmManagedDiskInputDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AvmManagedDiskInputDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskUpdateDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskUpdateDetails.PowerShell.cs new file mode 100644 index 000000000000..9b3cf0121091 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskUpdateDetails.PowerShell.cs @@ -0,0 +1,234 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A Vm managed disk update details. + [System.ComponentModel.TypeConverter(typeof(A2AvmManagedDiskUpdateDetailsTypeConverter))] + public partial class A2AvmManagedDiskUpdateDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal A2AvmManagedDiskUpdateDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryTargetDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryReplicaDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("FailoverDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).FailoverDiskName = (string) content.GetValueForProperty("FailoverDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).FailoverDiskName, global::System.Convert.ToString); + } + if (content.Contains("TfoDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).TfoDiskName = (string) content.GetValueForProperty("TfoDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).TfoDiskName, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 A2AvmManagedDiskUpdateDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskEncryptionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo) content.GetValueForProperty("DiskEncryptionInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryTargetDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryTargetDiskAccountType = (string) content.GetValueForProperty("RecoveryTargetDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryTargetDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryReplicaDiskAccountType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryReplicaDiskAccountType = (string) content.GetValueForProperty("RecoveryReplicaDiskAccountType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).RecoveryReplicaDiskAccountType, global::System.Convert.ToString); + } + if (content.Contains("FailoverDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).FailoverDiskName = (string) content.GetValueForProperty("FailoverDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).FailoverDiskName, global::System.Convert.ToString); + } + if (content.Contains("TfoDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).TfoDiskName = (string) content.GetValueForProperty("TfoDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).TfoDiskName, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionInfoDiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoDiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoDiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionInfoKeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionInfoKeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionInfoKeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new A2AvmManagedDiskUpdateDetails(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.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new A2AvmManagedDiskUpdateDetails(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.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A Vm managed disk update details. + [System.ComponentModel.TypeConverter(typeof(A2AvmManagedDiskUpdateDetailsTypeConverter))] + public partial interface IA2AvmManagedDiskUpdateDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskUpdateDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskUpdateDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskUpdateDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskUpdateDetails.TypeConverter.cs index 2df8a3c7a483..dd292f2f24d6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskUpdateDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskUpdateDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskUpdateDetails.cs b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskUpdateDetails.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskUpdateDetails.cs rename to src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskUpdateDetails.cs index 33d7010239ab..cd4dca64ca30 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskUpdateDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskUpdateDetails.cs @@ -3,30 +3,30 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A Vm managed disk update details. public partial class A2AvmManagedDiskUpdateDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo _diskEncryptionInfo; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo _diskEncryptionInfo; /// The recovery os disk encryption information. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set => this._diskEncryptionInfo = value; } /// The KeyVault resource ARM id for secret. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } /// The secret url / identifier. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } + public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfoSecretIdentifier = value ?? null; } /// Backing field for property. private string _diskId; @@ -44,20 +44,20 @@ public partial class A2AvmManagedDiskUpdateDetails : /// The key URL / identifier. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } + public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyIdentifier = value ?? null; } /// The KeyVault resource ARM Id for key. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } + public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfoKeyVaultResourceArmId = value ?? null; } /// Internal Acessors for DiskEncryptionInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal.DiskEncryptionInfo { get => (this._diskEncryptionInfo = this._diskEncryptionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo()); set { {_diskEncryptionInfo = value;} } } /// Internal Acessors for DiskEncryptionInfoDiskEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal.DiskEncryptionInfoDiskEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).DiskEncryptionKeyInfo = value; } /// Internal Acessors for DiskEncryptionInfoKeyEncryptionKeyInfo - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetailsInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetailsInternal.DiskEncryptionInfoKeyEncryptionKeyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)DiskEncryptionInfo).KeyEncryptionKeyInfo = value; } /// Backing field for property. private string _recoveryReplicaDiskAccountType; @@ -169,11 +169,11 @@ internal partial interface IA2AvmManagedDiskUpdateDetailsInternal { /// The recovery os disk encryption information. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo DiskEncryptionInfo { get; set; } /// The recovery KeyVault reference for secret. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo DiskEncryptionInfoDiskEncryptionKeyInfo { get; set; } /// The recovery KeyVault reference for key. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo DiskEncryptionInfoKeyEncryptionKeyInfo { get; set; } /// The KeyVault resource ARM id for secret. string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } /// The secret url / identifier. diff --git a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskUpdateDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskUpdateDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskUpdateDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskUpdateDetails.json.cs index 260838d6f2cf..cbf8e6eb046b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/A2AvmManagedDiskUpdateDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/A2AvmManagedDiskUpdateDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,7 +65,7 @@ internal A2AvmManagedDiskUpdateDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} + {_diskEncryptionInfo = If( json?.PropertyT("diskEncryptionInfo"), out var __jsonDiskEncryptionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionInfo.FromJson(__jsonDiskEncryptionInfo) : DiskEncryptionInfo;} {_diskId = If( json?.PropertyT("diskId"), out var __jsonDiskId) ? (string)__jsonDiskId : (string)DiskId;} {_recoveryTargetDiskAccountType = If( json?.PropertyT("recoveryTargetDiskAccountType"), out var __jsonRecoveryTargetDiskAccountType) ? (string)__jsonRecoveryTargetDiskAccountType : (string)RecoveryTargetDiskAccountType;} {_recoveryReplicaDiskAccountType = If( json?.PropertyT("recoveryReplicaDiskAccountType"), out var __jsonRecoveryReplicaDiskAccountType) ? (string)__jsonRecoveryReplicaDiskAccountType : (string)RecoveryReplicaDiskAccountType;} @@ -75,13 +75,13 @@ internal A2AvmManagedDiskUpdateDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrat } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AvmManagedDiskUpdateDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AvmManagedDiskUpdateDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new A2AvmManagedDiskUpdateDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/AddDisksInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AddDisksInput.PowerShell.cs new file mode 100644 index 000000000000..1d8e6e70b265 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AddDisksInput.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input for add disk(s) operation. + [System.ComponentModel.TypeConverter(typeof(AddDisksInputTypeConverter))] + public partial class AddDisksInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AddDisksInput(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.Migrate.Models.Api202301.IAddDisksInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputInternal)this).ProviderSpecificDetailInstanceType, 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 AddDisksInput(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.Migrate.Models.Api202301.IAddDisksInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AddDisksInput(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.Migrate.Models.Api202301.IAddDisksInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AddDisksInput(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.Migrate.Models.Api202301.IAddDisksInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input for add disk(s) operation. + [System.ComponentModel.TypeConverter(typeof(AddDisksInputTypeConverter))] + public partial interface IAddDisksInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddDisksInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AddDisksInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/AddDisksInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AddDisksInput.TypeConverter.cs index 53eba2530d7e..f8a245845d8f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddDisksInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddDisksInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAddDisksInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/AddDisksInput.cs b/src/Migrate/generated/api/Models/Api202301/AddDisksInput.cs new file mode 100644 index 000000000000..9e022c3384cd --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AddDisksInput.cs @@ -0,0 +1,68 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input for add disk(s) operation. + public partial class AddDisksInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties _property; + + /// Add disks input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksInputProperties()); set => this._property = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// Creates an new instance. + public AddDisksInput() + { + + } + } + /// Input for add disk(s) operation. + public partial interface IAddDisksInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Input for add disk(s) operation. + internal partial interface IAddDisksInputInternal + + { + /// Add disks input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties Property { get; set; } + /// + /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, + /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. + /// + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddDisksInput.json.cs b/src/Migrate/generated/api/Models/Api202301/AddDisksInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/AddDisksInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/AddDisksInput.json.cs index c3e8561f8b68..1c4acfa00238 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddDisksInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddDisksInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal AddDisksInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.J { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AddDisksInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AddDisksInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AddDisksInputProperties.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/AddDisksInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/AddDisksInputProperties.PowerShell.cs index b66ed55c1fa9..cd4a550ca8a5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddDisksInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddDisksInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AddDisksInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,17 +70,17 @@ internal AddDisksInputProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ProviderSpecificDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksProviderSpecificInputTypeConverter.ConvertFrom); } if (content.Contains("ProviderSpecificDetailInstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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. @@ -95,37 +95,37 @@ internal AddDisksInputProperties(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("ProviderSpecificDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksProviderSpecificInputTypeConverter.ConvertFrom); } if (content.Contains("ProviderSpecificDetailInstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Models.Api20220501.IAddDisksInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AddDisksInputProperties(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.Migrate.Models.Api20220501.IAddDisksInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AddDisksInputProperties(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAdd /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/AddDisksInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AddDisksInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AddDisksInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AddDisksInputProperties.TypeConverter.cs index 0b99642a9af8..0cd0819ddf59 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddDisksInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddDisksInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAddDisksInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/AddDisksInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/AddDisksInputProperties.cs new file mode 100644 index 000000000000..478eafbbc773 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AddDisksInputProperties.cs @@ -0,0 +1,66 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Add Disks input properties. + public partial class AddDisksInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputPropertiesInternal + { + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput _providerSpecificDetail; + + /// + /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, + /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksProviderSpecificInput()); set => this._providerSpecificDetail = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ; } + + /// Creates an new instance. + public AddDisksInputProperties() + { + + } + } + /// Add Disks input properties. + public partial interface IAddDisksInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Add Disks input properties. + internal partial interface IAddDisksInputPropertiesInternal + + { + /// + /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, + /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. + /// + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddDisksInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/AddDisksInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/AddDisksInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/AddDisksInputProperties.json.cs index aa82cd0844be..34f0fc906bb9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddDisksInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddDisksInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal AddDisksInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddDisksProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddDisksProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AddDisksInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AddDisksProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AddDisksProviderSpecificInput.PowerShell.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/AddDisksProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/AddDisksProviderSpecificInput.PowerShell.cs index d1b852e4779a..11f3c6051542 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddDisksProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddDisksProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AddDisksProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,13 +70,13 @@ internal AddDisksProviderSpecificInput(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInputInternal)this).InstanceType, 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. @@ -91,35 +91,35 @@ internal AddDisksProviderSpecificInput(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AddDisksProviderSpecificInput(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.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AddDisksProviderSpecificInput(content); } @@ -129,7 +129,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAdd /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/AddDisksProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AddDisksProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AddDisksProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AddDisksProviderSpecificInput.TypeConverter.cs index 1fc7780a77ad..7fe066d0e596 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddDisksProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddDisksProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AddDisksProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/AddDisksProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/AddDisksProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/AddDisksProviderSpecificInput.cs index 1142e337d97d..227c85323d26 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddDisksProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddDisksProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Add Disks provider specific input. public partial class AddDisksProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/AddDisksProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/AddDisksProviderSpecificInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/AddDisksProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/AddDisksProviderSpecificInput.json.cs index e7e7119587a4..06b934d8af73 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddDisksProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddDisksProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,15 +70,15 @@ internal AddDisksProviderSpecificInput(Microsoft.Azure.PowerShell.Cmdlets.Migrat } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput 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.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddDisksProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddDisksProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInput.PowerShell.cs new file mode 100644 index 000000000000..75ffbedaf365 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInput.PowerShell.cs @@ -0,0 +1,314 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input required to add a provider. + [System.ComponentModel.TypeConverter(typeof(AddRecoveryServicesProviderInputTypeConverter))] + public partial class AddRecoveryServicesProviderInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AddRecoveryServicesProviderInput(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.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddRecoveryServicesProviderInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("AuthenticationIdentityInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput) content.GetValueForProperty("AuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceAccessIdentityInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput) content.GetValueForProperty("ResourceAccessIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("DataPlaneAuthenticationIdentityInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput) content.GetValueForProperty("DataPlaneAuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("MachineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).MachineName, global::System.Convert.ToString); + } + if (content.Contains("MachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).MachineId, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("AuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputTenantId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputApplicationId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("AuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputObjectId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAudience = (string) content.GetValueForProperty("AuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAudience, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputTenantId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputApplicationId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputObjectId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAudience = (string) content.GetValueForProperty("ResourceAccessIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAudience, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputTenantId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputApplicationId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputObjectId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAudience, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority, 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 AddRecoveryServicesProviderInput(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.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddRecoveryServicesProviderInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("AuthenticationIdentityInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput) content.GetValueForProperty("AuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceAccessIdentityInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput) content.GetValueForProperty("ResourceAccessIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("DataPlaneAuthenticationIdentityInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput) content.GetValueForProperty("DataPlaneAuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("MachineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).MachineName, global::System.Convert.ToString); + } + if (content.Contains("MachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).MachineId, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("AuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputTenantId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputApplicationId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("AuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputObjectId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAudience = (string) content.GetValueForProperty("AuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAudience, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).AuthenticationIdentityInputAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputTenantId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputApplicationId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputObjectId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAudience = (string) content.GetValueForProperty("ResourceAccessIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAudience, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).ResourceAccessIdentityInputAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputTenantId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputApplicationId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputObjectId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAudience, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AddRecoveryServicesProviderInput(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.Migrate.Models.Api202301.IAddRecoveryServicesProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AddRecoveryServicesProviderInput(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.Migrate.Models.Api202301.IAddRecoveryServicesProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input required to add a provider. + [System.ComponentModel.TypeConverter(typeof(AddRecoveryServicesProviderInputTypeConverter))] + public partial interface IAddRecoveryServicesProviderInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInput.TypeConverter.cs index eabf216ae5be..257fa09559dc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInput.cs b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInput.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInput.cs rename to src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInput.cs index 9e7390ed7eb0..a73c447b208f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInput.cs @@ -3,142 +3,142 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Input required to add a provider. public partial class AddRecoveryServicesProviderInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal { /// The base authority for Azure Active Directory authentication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityInputAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputAadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputAadAuthority = value ; } + public string AuthenticationIdentityInputAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputAadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputAadAuthority = value ; } /// /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityInputApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputApplicationId = value ; } + public string AuthenticationIdentityInputApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputApplicationId = value ; } /// /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityInputAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputAudience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputAudience = value ; } + public string AuthenticationIdentityInputAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputAudience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputAudience = value ; } /// /// The object Id of the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityInputObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputObjectId = value ; } + public string AuthenticationIdentityInputObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputObjectId = value ; } /// /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityInputTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputTenantId = value ; } + public string AuthenticationIdentityInputTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInputTenantId = value ; } /// The Bios Id of the machine. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string BiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).BiosId = value ?? null; } + public string BiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).BiosId = value ?? null; } /// The base authority for Azure Active Directory authentication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityInputAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputAadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputAadAuthority = value ?? null; } + public string DataPlaneAuthenticationIdentityInputAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputAadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputAadAuthority = value ?? null; } /// /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityInputApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputApplicationId = value ?? null; } + public string DataPlaneAuthenticationIdentityInputApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputApplicationId = value ?? null; } /// /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityInputAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputAudience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputAudience = value ?? null; } + public string DataPlaneAuthenticationIdentityInputAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputAudience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputAudience = value ?? null; } /// /// The object Id of the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityInputObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputObjectId = value ?? null; } + public string DataPlaneAuthenticationIdentityInputObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputObjectId = value ?? null; } /// /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityInputTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputTenantId = value ?? null; } + public string DataPlaneAuthenticationIdentityInputTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInputTenantId = value ?? null; } /// The Id of the machine where the provider is getting added. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MachineId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).MachineId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).MachineId = value ?? null; } + public string MachineId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).MachineId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).MachineId = value ?? null; } /// The name of the machine where the provider is getting added. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MachineName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).MachineName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).MachineName = value ; } + public string MachineName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).MachineName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).MachineName = value ; } /// Internal Acessors for AuthenticationIdentityInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal.AuthenticationIdentityInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInput = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal.AuthenticationIdentityInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).AuthenticationIdentityInput = value; } /// Internal Acessors for DataPlaneAuthenticationIdentityInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal.DataPlaneAuthenticationIdentityInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInput = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal.DataPlaneAuthenticationIdentityInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).DataPlaneAuthenticationIdentityInput = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddRecoveryServicesProviderInputProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddRecoveryServicesProviderInputProperties()); set { {_property = value;} } } /// Internal Acessors for ResourceAccessIdentityInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputInternal.ResourceAccessIdentityInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInput = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputInternal.ResourceAccessIdentityInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInput = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties _property; /// The properties of an add provider request. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddRecoveryServicesProviderInputProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddRecoveryServicesProviderInputProperties()); set => this._property = value; } /// The base authority for Azure Active Directory authentication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityInputAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputAadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputAadAuthority = value ; } + public string ResourceAccessIdentityInputAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputAadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputAadAuthority = value ; } /// /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityInputApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputApplicationId = value ; } + public string ResourceAccessIdentityInputApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputApplicationId = value ; } /// /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityInputAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputAudience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputAudience = value ; } + public string ResourceAccessIdentityInputAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputAudience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputAudience = value ; } /// /// The object Id of the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityInputObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputObjectId = value ; } + public string ResourceAccessIdentityInputObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputObjectId = value ; } /// /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityInputTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputTenantId = value ; } + public string ResourceAccessIdentityInputTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)Property).ResourceAccessIdentityInputTenantId = value ; } /// Creates an new instance. public AddRecoveryServicesProviderInput() @@ -337,7 +337,7 @@ internal partial interface IAddRecoveryServicesProviderInputInternal { /// The identity provider input for DRA authentication. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput AuthenticationIdentityInput { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput AuthenticationIdentityInput { get; set; } /// The base authority for Azure Active Directory authentication. string AuthenticationIdentityInputAadAuthority { get; set; } /// @@ -363,7 +363,7 @@ internal partial interface IAddRecoveryServicesProviderInputInternal /// The Bios Id of the machine. string BiosId { get; set; } /// The identity provider input for data plane authentication. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput DataPlaneAuthenticationIdentityInput { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput DataPlaneAuthenticationIdentityInput { get; set; } /// The base authority for Azure Active Directory authentication. string DataPlaneAuthenticationIdentityInputAadAuthority { get; set; } /// @@ -391,9 +391,9 @@ internal partial interface IAddRecoveryServicesProviderInputInternal /// The name of the machine where the provider is getting added. string MachineName { get; set; } /// The properties of an add provider request. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties Property { get; set; } /// The identity provider input for resource access. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput ResourceAccessIdentityInput { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput ResourceAccessIdentityInput { get; set; } /// The base authority for Azure Active Directory authentication. string ResourceAccessIdentityInputAadAuthority { get; set; } /// diff --git a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInput.json.cs b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInput.json.cs index 695223d7c8f4..e14791ee6edf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal AddRecoveryServicesProviderInput(Microsoft.Azure.PowerShell.Cmdlets.Mig { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddRecoveryServicesProviderInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddRecoveryServicesProviderInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AddRecoveryServicesProviderInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInputProperties.PowerShell.cs new file mode 100644 index 000000000000..488d0a62c450 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInputProperties.PowerShell.cs @@ -0,0 +1,309 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// The properties of an add provider request. + [System.ComponentModel.TypeConverter(typeof(AddRecoveryServicesProviderInputPropertiesTypeConverter))] + public partial class AddRecoveryServicesProviderInputProperties + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AddRecoveryServicesProviderInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AuthenticationIdentityInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput) content.GetValueForProperty("AuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceAccessIdentityInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput) content.GetValueForProperty("ResourceAccessIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("DataPlaneAuthenticationIdentityInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput) content.GetValueForProperty("DataPlaneAuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("MachineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineName, global::System.Convert.ToString); + } + if (content.Contains("MachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineId, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("AuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputTenantId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputApplicationId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("AuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputObjectId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAudience = (string) content.GetValueForProperty("AuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAudience, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputTenantId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputApplicationId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputObjectId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAudience = (string) content.GetValueForProperty("ResourceAccessIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAudience, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputTenantId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputApplicationId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputObjectId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAudience, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority, 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 AddRecoveryServicesProviderInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AuthenticationIdentityInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput) content.GetValueForProperty("AuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceAccessIdentityInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput) content.GetValueForProperty("ResourceAccessIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("DataPlaneAuthenticationIdentityInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput) content.GetValueForProperty("DataPlaneAuthenticationIdentityInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("MachineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineName, global::System.Convert.ToString); + } + if (content.Contains("MachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).MachineId, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("AuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputTenantId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputApplicationId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("AuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputObjectId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAudience = (string) content.GetValueForProperty("AuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAudience, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityInputAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).AuthenticationIdentityInputAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputTenantId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputApplicationId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputObjectId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAudience = (string) content.GetValueForProperty("ResourceAccessIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAudience, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityInputAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).ResourceAccessIdentityInputAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputTenantId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputApplicationId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputObjectId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAudience, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityInputAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityInputAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal)this).DataPlaneAuthenticationIdentityInputAadAuthority, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AddRecoveryServicesProviderInputProperties(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.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AddRecoveryServicesProviderInputProperties(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.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The properties of an add provider request. + [System.ComponentModel.TypeConverter(typeof(AddRecoveryServicesProviderInputPropertiesTypeConverter))] + public partial interface IAddRecoveryServicesProviderInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInputProperties.TypeConverter.cs index 4e066e09fa76..0700ae44534f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInputProperties.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInputProperties.cs index 6a04de303d90..e8865c503e46 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInputProperties.cs @@ -3,54 +3,54 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The properties of an add provider request. public partial class AddRecoveryServicesProviderInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput _authenticationIdentityInput; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput _authenticationIdentityInput; /// The identity provider input for DRA authentication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput AuthenticationIdentityInput { get => (this._authenticationIdentityInput = this._authenticationIdentityInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInput()); set => this._authenticationIdentityInput = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput AuthenticationIdentityInput { get => (this._authenticationIdentityInput = this._authenticationIdentityInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInput()); set => this._authenticationIdentityInput = value; } /// The base authority for Azure Active Directory authentication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityInputAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)AuthenticationIdentityInput).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)AuthenticationIdentityInput).AadAuthority = value ; } + public string AuthenticationIdentityInputAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)AuthenticationIdentityInput).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)AuthenticationIdentityInput).AadAuthority = value ; } /// /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityInputApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)AuthenticationIdentityInput).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)AuthenticationIdentityInput).ApplicationId = value ; } + public string AuthenticationIdentityInputApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)AuthenticationIdentityInput).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)AuthenticationIdentityInput).ApplicationId = value ; } /// /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityInputAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)AuthenticationIdentityInput).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)AuthenticationIdentityInput).Audience = value ; } + public string AuthenticationIdentityInputAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)AuthenticationIdentityInput).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)AuthenticationIdentityInput).Audience = value ; } /// /// The object Id of the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityInputObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)AuthenticationIdentityInput).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)AuthenticationIdentityInput).ObjectId = value ; } + public string AuthenticationIdentityInputObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)AuthenticationIdentityInput).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)AuthenticationIdentityInput).ObjectId = value ; } /// /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityInputTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)AuthenticationIdentityInput).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)AuthenticationIdentityInput).TenantId = value ; } + public string AuthenticationIdentityInputTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)AuthenticationIdentityInput).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)AuthenticationIdentityInput).TenantId = value ; } /// Backing field for property. private string _biosId; @@ -60,43 +60,43 @@ public partial class AddRecoveryServicesProviderInputProperties : public string BiosId { get => this._biosId; set => this._biosId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput _dataPlaneAuthenticationIdentityInput; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput _dataPlaneAuthenticationIdentityInput; /// The identity provider input for data plane authentication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput DataPlaneAuthenticationIdentityInput { get => (this._dataPlaneAuthenticationIdentityInput = this._dataPlaneAuthenticationIdentityInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInput()); set => this._dataPlaneAuthenticationIdentityInput = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput DataPlaneAuthenticationIdentityInput { get => (this._dataPlaneAuthenticationIdentityInput = this._dataPlaneAuthenticationIdentityInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInput()); set => this._dataPlaneAuthenticationIdentityInput = value; } /// The base authority for Azure Active Directory authentication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityInputAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).AadAuthority = value ?? null; } + public string DataPlaneAuthenticationIdentityInputAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).AadAuthority = value ?? null; } /// /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityInputApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).ApplicationId = value ?? null; } + public string DataPlaneAuthenticationIdentityInputApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).ApplicationId = value ?? null; } /// /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityInputAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).Audience = value ?? null; } + public string DataPlaneAuthenticationIdentityInputAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).Audience = value ?? null; } /// /// The object Id of the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityInputObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).ObjectId = value ?? null; } + public string DataPlaneAuthenticationIdentityInputObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).ObjectId = value ?? null; } /// /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityInputTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).TenantId = value ?? null; } + public string DataPlaneAuthenticationIdentityInputTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)DataPlaneAuthenticationIdentityInput).TenantId = value ?? null; } /// Backing field for property. private string _machineId; @@ -113,52 +113,52 @@ public partial class AddRecoveryServicesProviderInputProperties : public string MachineName { get => this._machineName; set => this._machineName = value; } /// Internal Acessors for AuthenticationIdentityInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal.AuthenticationIdentityInput { get => (this._authenticationIdentityInput = this._authenticationIdentityInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInput()); set { {_authenticationIdentityInput = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal.AuthenticationIdentityInput { get => (this._authenticationIdentityInput = this._authenticationIdentityInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInput()); set { {_authenticationIdentityInput = value;} } } /// Internal Acessors for DataPlaneAuthenticationIdentityInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal.DataPlaneAuthenticationIdentityInput { get => (this._dataPlaneAuthenticationIdentityInput = this._dataPlaneAuthenticationIdentityInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInput()); set { {_dataPlaneAuthenticationIdentityInput = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal.DataPlaneAuthenticationIdentityInput { get => (this._dataPlaneAuthenticationIdentityInput = this._dataPlaneAuthenticationIdentityInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInput()); set { {_dataPlaneAuthenticationIdentityInput = value;} } } /// Internal Acessors for ResourceAccessIdentityInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputPropertiesInternal.ResourceAccessIdentityInput { get => (this._resourceAccessIdentityInput = this._resourceAccessIdentityInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInput()); set { {_resourceAccessIdentityInput = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputPropertiesInternal.ResourceAccessIdentityInput { get => (this._resourceAccessIdentityInput = this._resourceAccessIdentityInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInput()); set { {_resourceAccessIdentityInput = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput _resourceAccessIdentityInput; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput _resourceAccessIdentityInput; /// The identity provider input for resource access. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput ResourceAccessIdentityInput { get => (this._resourceAccessIdentityInput = this._resourceAccessIdentityInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInput()); set => this._resourceAccessIdentityInput = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput ResourceAccessIdentityInput { get => (this._resourceAccessIdentityInput = this._resourceAccessIdentityInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInput()); set => this._resourceAccessIdentityInput = value; } /// The base authority for Azure Active Directory authentication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityInputAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)ResourceAccessIdentityInput).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)ResourceAccessIdentityInput).AadAuthority = value ; } + public string ResourceAccessIdentityInputAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)ResourceAccessIdentityInput).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)ResourceAccessIdentityInput).AadAuthority = value ; } /// /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityInputApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)ResourceAccessIdentityInput).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)ResourceAccessIdentityInput).ApplicationId = value ; } + public string ResourceAccessIdentityInputApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)ResourceAccessIdentityInput).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)ResourceAccessIdentityInput).ApplicationId = value ; } /// /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityInputAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)ResourceAccessIdentityInput).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)ResourceAccessIdentityInput).Audience = value ; } + public string ResourceAccessIdentityInputAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)ResourceAccessIdentityInput).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)ResourceAccessIdentityInput).Audience = value ; } /// /// The object Id of the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityInputObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)ResourceAccessIdentityInput).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)ResourceAccessIdentityInput).ObjectId = value ; } + public string ResourceAccessIdentityInputObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)ResourceAccessIdentityInput).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)ResourceAccessIdentityInput).ObjectId = value ; } /// /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityInputTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)ResourceAccessIdentityInput).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)ResourceAccessIdentityInput).TenantId = value ; } + public string ResourceAccessIdentityInputTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)ResourceAccessIdentityInput).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)ResourceAccessIdentityInput).TenantId = value ; } /// /// Creates an new instance. @@ -359,7 +359,7 @@ internal partial interface IAddRecoveryServicesProviderInputPropertiesInternal { /// The identity provider input for DRA authentication. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput AuthenticationIdentityInput { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput AuthenticationIdentityInput { get; set; } /// The base authority for Azure Active Directory authentication. string AuthenticationIdentityInputAadAuthority { get; set; } /// @@ -385,7 +385,7 @@ internal partial interface IAddRecoveryServicesProviderInputPropertiesInternal /// The Bios Id of the machine. string BiosId { get; set; } /// The identity provider input for data plane authentication. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput DataPlaneAuthenticationIdentityInput { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput DataPlaneAuthenticationIdentityInput { get; set; } /// The base authority for Azure Active Directory authentication. string DataPlaneAuthenticationIdentityInputAadAuthority { get; set; } /// @@ -413,7 +413,7 @@ internal partial interface IAddRecoveryServicesProviderInputPropertiesInternal /// The name of the machine where the provider is getting added. string MachineName { get; set; } /// The identity provider input for resource access. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput ResourceAccessIdentityInput { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput ResourceAccessIdentityInput { get; set; } /// The base authority for Azure Active Directory authentication. string ResourceAccessIdentityInputAadAuthority { get; set; } /// diff --git a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInputProperties.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInputProperties.json.cs index e4c89cd442c5..c504eedfc1e5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddRecoveryServicesProviderInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddRecoveryServicesProviderInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,9 +65,9 @@ internal AddRecoveryServicesProviderInputProperties(Microsoft.Azure.PowerShell.C { return; } - {_authenticationIdentityInput = If( json?.PropertyT("authenticationIdentityInput"), out var __jsonAuthenticationIdentityInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInput.FromJson(__jsonAuthenticationIdentityInput) : AuthenticationIdentityInput;} - {_resourceAccessIdentityInput = If( json?.PropertyT("resourceAccessIdentityInput"), out var __jsonResourceAccessIdentityInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInput.FromJson(__jsonResourceAccessIdentityInput) : ResourceAccessIdentityInput;} - {_dataPlaneAuthenticationIdentityInput = If( json?.PropertyT("dataPlaneAuthenticationIdentityInput"), out var __jsonDataPlaneAuthenticationIdentityInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInput.FromJson(__jsonDataPlaneAuthenticationIdentityInput) : DataPlaneAuthenticationIdentityInput;} + {_authenticationIdentityInput = If( json?.PropertyT("authenticationIdentityInput"), out var __jsonAuthenticationIdentityInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInput.FromJson(__jsonAuthenticationIdentityInput) : AuthenticationIdentityInput;} + {_resourceAccessIdentityInput = If( json?.PropertyT("resourceAccessIdentityInput"), out var __jsonResourceAccessIdentityInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInput.FromJson(__jsonResourceAccessIdentityInput) : ResourceAccessIdentityInput;} + {_dataPlaneAuthenticationIdentityInput = If( json?.PropertyT("dataPlaneAuthenticationIdentityInput"), out var __jsonDataPlaneAuthenticationIdentityInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInput.FromJson(__jsonDataPlaneAuthenticationIdentityInput) : DataPlaneAuthenticationIdentityInput;} {_machineName = If( json?.PropertyT("machineName"), out var __jsonMachineName) ? (string)__jsonMachineName : (string)MachineName;} {_machineId = If( json?.PropertyT("machineId"), out var __jsonMachineId) ? (string)__jsonMachineId : (string)MachineId;} {_biosId = If( json?.PropertyT("biosId"), out var __jsonBiosId) ? (string)__jsonBiosId : (string)BiosId;} @@ -75,13 +75,13 @@ internal AddRecoveryServicesProviderInputProperties(Microsoft.Azure.PowerShell.C } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddRecoveryServicesProviderInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddRecoveryServicesProviderInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AddRecoveryServicesProviderInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/AddVCenterRequest.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequest.PowerShell.cs new file mode 100644 index 000000000000..694e3f6a3373 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequest.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input required to add vCenter. + [System.ComponentModel.TypeConverter(typeof(AddVCenterRequestTypeConverter))] + public partial class AddVCenterRequest + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AddVCenterRequest(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.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddVCenterRequestPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("Port")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).Port, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).RunAsAccountId, 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 AddVCenterRequest(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.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddVCenterRequestPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("Port")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).Port, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AddVCenterRequest(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.Migrate.Models.Api202301.IAddVCenterRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AddVCenterRequest(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.Migrate.Models.Api202301.IAddVCenterRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input required to add vCenter. + [System.ComponentModel.TypeConverter(typeof(AddVCenterRequestTypeConverter))] + public partial interface IAddVCenterRequest + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequest.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequest.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/AddVCenterRequest.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AddVCenterRequest.TypeConverter.cs index 312985ac6c94..97c48ef54abc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequest.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequest.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAddVCenterRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/AddVCenterRequest.cs b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequest.cs new file mode 100644 index 000000000000..98dbfb8d83da --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequest.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input required to add vCenter. + public partial class AddVCenterRequest : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequest, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal + { + + /// The friendly name of the vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)Property).FriendlyName = value ?? null; } + + /// The IP address of the vCenter to be discovered. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)Property).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)Property).IPAddress = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddVCenterRequestProperties()); set { {_property = value;} } } + + /// The port number for discovery. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Port { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)Property).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)Property).Port = value ?? null; } + + /// The process server Id from where the discovery is orchestrated. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProcessServerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)Property).ProcessServerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)Property).ProcessServerId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestProperties _property; + + /// The properties of an add vCenter request. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddVCenterRequestProperties()); set => this._property = value; } + + /// The account Id which has privileges to discover the vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RunAsAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)Property).RunAsAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)Property).RunAsAccountId = value ?? null; } + + /// Creates an new instance. + public AddVCenterRequest() + { + + } + } + /// Input required to add vCenter. + public partial interface IAddVCenterRequest : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The friendly name of the vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The friendly name of the vCenter.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// The IP address of the vCenter to be discovered. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The IP address of the vCenter to be discovered.", + SerializedName = @"ipAddress", + PossibleTypes = new [] { typeof(string) })] + string IPAddress { get; set; } + /// The port number for discovery. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The port number for discovery.", + SerializedName = @"port", + PossibleTypes = new [] { typeof(string) })] + string Port { get; set; } + /// The process server Id from where the discovery is orchestrated. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The process server Id from where the discovery is orchestrated.", + SerializedName = @"processServerId", + PossibleTypes = new [] { typeof(string) })] + string ProcessServerId { get; set; } + /// The account Id which has privileges to discover the vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The account Id which has privileges to discover the vCenter.", + SerializedName = @"runAsAccountId", + PossibleTypes = new [] { typeof(string) })] + string RunAsAccountId { get; set; } + + } + /// Input required to add vCenter. + internal partial interface IAddVCenterRequestInternal + + { + /// The friendly name of the vCenter. + string FriendlyName { get; set; } + /// The IP address of the vCenter to be discovered. + string IPAddress { get; set; } + /// The port number for discovery. + string Port { get; set; } + /// The process server Id from where the discovery is orchestrated. + string ProcessServerId { get; set; } + /// The properties of an add vCenter request. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestProperties Property { get; set; } + /// The account Id which has privileges to discover the vCenter. + string RunAsAccountId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequest.json.cs b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequest.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/AddVCenterRequest.json.cs rename to src/Migrate/generated/api/Models/Api202301/AddVCenterRequest.json.cs index 20b5d9ae43eb..30817aaedee9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequest.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequest.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal AddVCenterRequest(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AddVCenterRequestProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AddVCenterRequestProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AddVCenterRequest(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/AddVCenterRequestProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequestProperties.PowerShell.cs new file mode 100644 index 000000000000..fdbed0787f95 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequestProperties.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// The properties of an add vCenter request. + [System.ComponentModel.TypeConverter(typeof(AddVCenterRequestPropertiesTypeConverter))] + public partial class AddVCenterRequestProperties + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AddVCenterRequestProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("Port")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).Port, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).RunAsAccountId, 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 AddVCenterRequestProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("Port")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).Port, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AddVCenterRequestProperties(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.Migrate.Models.Api202301.IAddVCenterRequestProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AddVCenterRequestProperties(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.Migrate.Models.Api202301.IAddVCenterRequestProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The properties of an add vCenter request. + [System.ComponentModel.TypeConverter(typeof(AddVCenterRequestPropertiesTypeConverter))] + public partial interface IAddVCenterRequestProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequestProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequestProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AddVCenterRequestProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AddVCenterRequestProperties.TypeConverter.cs index 540aa844899d..621943db04d3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequestProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAddVCenterRequestProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequestProperties.cs b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequestProperties.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/AddVCenterRequestProperties.cs rename to src/Migrate/generated/api/Models/Api202301/AddVCenterRequestProperties.cs index 6e1471e047c7..5a5a340fda47 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequestProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The properties of an add vCenter request. public partial class AddVCenterRequestProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequestProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequestProperties.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/AddVCenterRequestProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/AddVCenterRequestProperties.json.cs index fd101508e7f1..2ea5d3e65ecc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AddVCenterRequestProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AddVCenterRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -74,13 +74,13 @@ internal AddVCenterRequestProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAddVCenterRequestProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAddVCenterRequestProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AddVCenterRequestProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/AgentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AgentDetails.PowerShell.cs new file mode 100644 index 000000000000..7c40e0341cd7 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AgentDetails.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Agent details. + [System.ComponentModel.TypeConverter(typeof(AgentDetailsTypeConverter))] + public partial class AgentDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AgentDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).AgentId = (string) content.GetValueForProperty("AgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).AgentId, global::System.Convert.ToString); + } + if (content.Contains("MachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).MachineId, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("Disk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).Disk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetails[]) content.GetValueForProperty("Disk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).Disk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AgentDiskDetailsTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AgentDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).AgentId = (string) content.GetValueForProperty("AgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).AgentId, global::System.Convert.ToString); + } + if (content.Contains("MachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).MachineId, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("Disk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).Disk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetails[]) content.GetValueForProperty("Disk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal)this).Disk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AgentDiskDetailsTypeConverter.ConvertFrom)); + } + 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.Migrate.Models.Api202301.IAgentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AgentDetails(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.Migrate.Models.Api202301.IAgentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AgentDetails(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.Migrate.Models.Api202301.IAgentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Agent details. + [System.ComponentModel.TypeConverter(typeof(AgentDetailsTypeConverter))] + public partial interface IAgentDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AgentDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AgentDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/AgentDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AgentDetails.TypeConverter.cs index b19c00a1c7bc..eb9600700d2a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AgentDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAgentDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AgentDetails.cs b/src/Migrate/generated/api/Models/Api202301/AgentDetails.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/AgentDetails.cs rename to src/Migrate/generated/api/Models/Api202301/AgentDetails.cs index 7c7044ec8fc0..4ef6ee55e765 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AgentDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/AgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Agent details. public partial class AgentDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal { /// Backing field for property. @@ -28,11 +28,11 @@ public partial class AgentDetails : public string BiosId { get => this._biosId; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetails[] _disk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetails[] _disk; /// The disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetails[] Disk { get => this._disk; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetails[] Disk { get => this._disk; } /// Backing field for property. private string _fqdn; @@ -49,19 +49,19 @@ public partial class AgentDetails : public string MachineId { get => this._machineId; } /// Internal Acessors for AgentId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal.AgentId { get => this._agentId; set { {_agentId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal.AgentId { get => this._agentId; set { {_agentId = value;} } } /// Internal Acessors for BiosId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } /// Internal Acessors for Disk - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal.Disk { get => this._disk; set { {_disk = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal.Disk { get => this._disk; set { {_disk = value;} } } /// Internal Acessors for Fqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } /// Internal Acessors for MachineId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetailsInternal.MachineId { get => this._machineId; set { {_machineId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetailsInternal.MachineId { get => this._machineId; set { {_machineId = value;} } } /// Creates an new instance. public AgentDetails() @@ -95,8 +95,8 @@ public partial interface IAgentDetails : ReadOnly = true, Description = @"The disks.", SerializedName = @"disks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetails[] Disk { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetails[] Disk { get; } /// The machine FQDN. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -124,7 +124,7 @@ internal partial interface IAgentDetailsInternal /// The machine BIOS Id. string BiosId { get; set; } /// The disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetails[] Disk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetails[] Disk { get; set; } /// The machine FQDN. string Fqdn { get; set; } /// The Id of the machine to which the agent is registered. diff --git a/src/Migrate/generated/api/Models/Api20220501/AgentDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/AgentDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/AgentDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/AgentDetails.json.cs index e80857b405a4..05f9ace958a6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AgentDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -69,18 +69,18 @@ internal AgentDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.Js {_machineId = If( json?.PropertyT("machineId"), out var __jsonMachineId) ? (string)__jsonMachineId : (string)MachineId;} {_biosId = If( json?.PropertyT("biosId"), out var __jsonBiosId) ? (string)__jsonBiosId : (string)BiosId;} {_fqdn = If( json?.PropertyT("fqdn"), out var __jsonFqdn) ? (string)__jsonFqdn : (string)Fqdn;} - {_disk = If( json?.PropertyT("disks"), out var __jsonDisks) ? If( __jsonDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAgentDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AgentDiskDetails.FromJson(__u) )) ))() : null : Disk;} + {_disk = If( json?.PropertyT("disks"), out var __jsonDisks) ? If( __jsonDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IAgentDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AgentDiskDetails.FromJson(__u) )) ))() : null : Disk;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AgentDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/AgentDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AgentDiskDetails.PowerShell.cs new file mode 100644 index 000000000000..1c994f182ab7 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AgentDiskDetails.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Agent disk details. + [System.ComponentModel.TypeConverter(typeof(AgentDiskDetailsTypeConverter))] + public partial class AgentDiskDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AgentDiskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("IsOSDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); + } + if (content.Contains("CapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LunId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).LunId = (int?) content.GetValueForProperty("LunId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).LunId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AgentDiskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("IsOSDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); + } + if (content.Contains("CapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LunId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).LunId = (int?) content.GetValueForProperty("LunId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal)this).LunId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.Migrate.Models.Api202301.IAgentDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AgentDiskDetails(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.Migrate.Models.Api202301.IAgentDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AgentDiskDetails(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.Migrate.Models.Api202301.IAgentDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Agent disk details. + [System.ComponentModel.TypeConverter(typeof(AgentDiskDetailsTypeConverter))] + public partial interface IAgentDiskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AgentDiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AgentDiskDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/AgentDiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AgentDiskDetails.TypeConverter.cs index ac156e2694ff..9e1c86f3b093 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AgentDiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AgentDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAgentDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AgentDiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/AgentDiskDetails.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/AgentDiskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/AgentDiskDetails.cs index 0e595a3eff44..c126e39afe21 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AgentDiskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/AgentDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Agent disk details. public partial class AgentDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal { /// Backing field for property. @@ -49,19 +49,19 @@ public partial class AgentDiskDetails : public int? LunId { get => this._lunId; } /// Internal Acessors for CapacityInByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal.CapacityInByte { get => this._capacityInByte; set { {_capacityInByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal.CapacityInByte { get => this._capacityInByte; set { {_capacityInByte = value;} } } /// Internal Acessors for DiskId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal.DiskId { get => this._diskId; set { {_diskId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal.DiskId { get => this._diskId; set { {_diskId = value;} } } /// Internal Acessors for DiskName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal.DiskName { get => this._diskName; set { {_diskName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal.DiskName { get => this._diskName; set { {_diskName = value;} } } /// Internal Acessors for IsOSDisk - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal.IsOSDisk { get => this._isOSDisk; set { {_isOSDisk = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal.IsOSDisk { get => this._isOSDisk; set { {_isOSDisk = value;} } } /// Internal Acessors for LunId - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetailsInternal.LunId { get => this._lunId; set { {_lunId = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetailsInternal.LunId { get => this._lunId; set { {_lunId = value;} } } /// Creates an new instance. public AgentDiskDetails() diff --git a/src/Migrate/generated/api/Models/Api20220501/AgentDiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/AgentDiskDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AgentDiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/AgentDiskDetails.json.cs index 8205db17512a..a8993fdde045 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AgentDiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AgentDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -74,13 +74,13 @@ internal AgentDiskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Jso } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AgentDiskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/Alert.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/Alert.PowerShell.cs new file mode 100644 index 000000000000..138fbddd13a0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/Alert.PowerShell.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Implements the Alert class. + [System.ComponentModel.TypeConverter(typeof(AlertTypeConverter))] + public partial class Alert + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Alert(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.Migrate.Models.Api202301.IAlertInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AlertPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SendToOwner")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal)this).SendToOwner, global::System.Convert.ToString); + } + if (content.Contains("CustomEmailAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("Locale")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal)this).Locale, 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 Alert(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.Migrate.Models.Api202301.IAlertInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AlertPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SendToOwner")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal)this).SendToOwner, global::System.Convert.ToString); + } + if (content.Contains("CustomEmailAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("Locale")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal)this).Locale, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlert DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Alert(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.Migrate.Models.Api202301.IAlert DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Alert(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.Migrate.Models.Api202301.IAlert FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Implements the Alert class. + [System.ComponentModel.TypeConverter(typeof(AlertTypeConverter))] + public partial interface IAlert + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Alert.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/Alert.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/Alert.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/Alert.TypeConverter.cs index 4479f5dc84c5..91ce5d7f45a7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Alert.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/Alert.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAlert ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlert ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlert).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlert).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/Alert.cs b/src/Migrate/generated/api/Models/Api202301/Alert.cs new file mode 100644 index 000000000000..d0d8c8120567 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/Alert.cs @@ -0,0 +1,131 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Implements the Alert class. + public partial class Alert : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlert, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// The custom email address for sending emails. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string[] CustomEmailAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)Property).CustomEmailAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)Property).CustomEmailAddress = value ?? null /* arrayOf */; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// The locale for the email notification. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Locale { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)Property).Locale; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)Property).Locale = value ?? null; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AlertProperties()); set { {_property = value;} } } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties _property; + + /// Alert related data. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AlertProperties()); set => this._property = value; } + + /// A value indicating whether to send email to subscription administrator. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SendToOwner { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)Property).SendToOwner; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)Property).SendToOwner = value ?? null; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public Alert() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Implements the Alert class. + public partial interface IAlert : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// The custom email address for sending emails. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The custom email address for sending emails.", + SerializedName = @"customEmailAddresses", + PossibleTypes = new [] { typeof(string) })] + string[] CustomEmailAddress { get; set; } + /// The locale for the email notification. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The locale for the email notification.", + SerializedName = @"locale", + PossibleTypes = new [] { typeof(string) })] + string Locale { get; set; } + /// A value indicating whether to send email to subscription administrator. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether to send email to subscription administrator.", + SerializedName = @"sendToOwners", + PossibleTypes = new [] { typeof(string) })] + string SendToOwner { get; set; } + + } + /// Implements the Alert class. + internal partial interface IAlertInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The custom email address for sending emails. + string[] CustomEmailAddress { get; set; } + /// The locale for the email notification. + string Locale { get; set; } + /// Alert related data. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties Property { get; set; } + /// A value indicating whether to send email to subscription administrator. + string SendToOwner { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Alert.json.cs b/src/Migrate/generated/api/Models/Api202301/Alert.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/Alert.json.cs rename to src/Migrate/generated/api/Models/Api202301/Alert.json.cs index c492d304c631..126b2cdc90fa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Alert.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/Alert.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal Alert(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObjec { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AlertProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AlertProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlert. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlert. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlert. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlert. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlert FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlert FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new Alert(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AlertCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AlertCollection.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/AlertCollection.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/AlertCollection.PowerShell.cs index e45b9baadce7..526f328e504a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AlertCollection.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/AlertCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AlertCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,17 +70,17 @@ internal AlertCollection(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlert[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AlertTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlert[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AlertTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollectionInternal)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. @@ -95,37 +95,37 @@ internal AlertCollection(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlert[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AlertTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlert[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AlertTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollectionInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AlertCollection(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.Migrate.Models.Api20220501.IAlertCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AlertCollection(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAle /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/AlertCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AlertCollection.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/AlertCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AlertCollection.TypeConverter.cs index fa6f62579961..a43ffcc46e37 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AlertCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AlertCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAlertCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AlertCollection.cs b/src/Migrate/generated/api/Models/Api202301/AlertCollection.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/AlertCollection.cs rename to src/Migrate/generated/api/Models/Api202301/AlertCollection.cs index 8674529780d2..c29c405a1f4a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AlertCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/AlertCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Collection of alerts. public partial class AlertCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class AlertCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlert[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlert[] _value; /// The list of alerts. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlert[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlert[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public AlertCollection() @@ -51,8 +51,8 @@ public partial interface IAlertCollection : ReadOnly = false, Description = @"The list of alerts.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlert) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlert[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlert) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlert[] Value { get; set; } } /// Collection of alerts. @@ -62,7 +62,7 @@ internal partial interface IAlertCollectionInternal /// The value of next link. string NextLink { get; set; } /// The list of alerts. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlert[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlert[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AlertCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/AlertCollection.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/AlertCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/AlertCollection.json.cs index 93ba465b2ec2..c9b197f11dc3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AlertCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AlertCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AlertCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAlert) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Alert.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IAlert) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Alert.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AlertCollection(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AlertProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AlertProperties.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/AlertProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/AlertProperties.PowerShell.cs index 692c43e1e1e2..a44d2ab9e023 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AlertProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/AlertProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AlertProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,21 +70,21 @@ internal AlertProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("SendToOwner")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)this).SendToOwner, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)this).SendToOwner, global::System.Convert.ToString); } if (content.Contains("CustomEmailAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Locale")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)this).Locale, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)this).Locale, 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. @@ -99,41 +99,41 @@ internal AlertProperties(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("SendToOwner")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)this).SendToOwner, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)this).SendToOwner, global::System.Convert.ToString); } if (content.Contains("CustomEmailAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Locale")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal)this).Locale, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal)this).Locale, 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.Migrate.Models.Api20220501.IAlertProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AlertProperties(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.Migrate.Models.Api20220501.IAlertProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AlertProperties(content); } @@ -143,7 +143,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAle /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/AlertProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AlertProperties.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/AlertProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AlertProperties.TypeConverter.cs index 08f266802c02..90b5fd727cfa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AlertProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AlertProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAlertProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AlertProperties.cs b/src/Migrate/generated/api/Models/Api202301/AlertProperties.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/AlertProperties.cs rename to src/Migrate/generated/api/Models/Api202301/AlertProperties.cs index 6ac024d2a65f..a69bad46ba1e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AlertProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/AlertProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The properties of an alert. public partial class AlertProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/AlertProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/AlertProperties.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AlertProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/AlertProperties.json.cs index da8bd81c0b6b..b5deddf035a9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AlertProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AlertProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -72,13 +72,13 @@ internal AlertProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAlertProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAlertProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AlertProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplianceCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ApplianceCollection.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/ApplianceCollection.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ApplianceCollection.PowerShell.cs index 12fe1323a71b..34d774c00b4a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplianceCollection.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplianceCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class ApplianceCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,17 +70,17 @@ internal ApplianceCollection(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationApplianceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationApplianceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollectionInternal)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. @@ -95,37 +95,37 @@ internal ApplianceCollection(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationApplianceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationApplianceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollectionInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ApplianceCollection(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.Migrate.Models.Api20220501.IApplianceCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ApplianceCollection(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApp /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplianceCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ApplianceCollection.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/ApplianceCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ApplianceCollection.TypeConverter.cs index e1b6854982f3..5037ca7a1a21 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplianceCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplianceCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IApplianceCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplianceCollection.cs b/src/Migrate/generated/api/Models/Api202301/ApplianceCollection.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/ApplianceCollection.cs rename to src/Migrate/generated/api/Models/Api202301/ApplianceCollection.cs index ab8f05b55052..54b2bcacfdab 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplianceCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplianceCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Collection of appliance details. public partial class ApplianceCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class ApplianceCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliance[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliance[] _value; /// The appliance details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliance[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliance[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ApplianceCollection() @@ -51,8 +51,8 @@ public partial interface IApplianceCollection : ReadOnly = false, Description = @"The appliance details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliance) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliance[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliance) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliance[] Value { get; set; } } /// Collection of appliance details. @@ -62,7 +62,7 @@ internal partial interface IApplianceCollectionInternal /// The value of next link. string NextLink { get; set; } /// The appliance details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliance[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliance[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplianceCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/ApplianceCollection.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/ApplianceCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/ApplianceCollection.json.cs index 89b5b7b42edc..ed607d8b2e17 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplianceCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplianceCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ApplianceCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime. { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationAppliance) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationAppliance.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IReplicationAppliance) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationAppliance.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ApplianceCollection(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplianceQueryParameter.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ApplianceQueryParameter.PowerShell.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/ApplianceQueryParameter.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ApplianceQueryParameter.PowerShell.cs index 4ba5245a8cb0..7f4f9e5b812a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplianceQueryParameter.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplianceQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class ApplianceQueryParameter partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,13 +70,13 @@ internal ApplianceQueryParameter(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ProviderType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceQueryParameterInternal)this).ProviderType = (string) content.GetValueForProperty("ProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceQueryParameterInternal)this).ProviderType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceQueryParameterInternal)this).ProviderType = (string) content.GetValueForProperty("ProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceQueryParameterInternal)this).ProviderType, 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. @@ -91,33 +91,33 @@ internal ApplianceQueryParameter(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("ProviderType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceQueryParameterInternal)this).ProviderType = (string) content.GetValueForProperty("ProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceQueryParameterInternal)this).ProviderType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceQueryParameterInternal)this).ProviderType = (string) content.GetValueForProperty("ProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceQueryParameterInternal)this).ProviderType, 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.Migrate.Models.Api20220501.IApplianceQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ApplianceQueryParameter(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.Migrate.Models.Api20220501.IApplianceQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ApplianceQueryParameter(content); } @@ -127,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApp /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplianceQueryParameter.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ApplianceQueryParameter.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ApplianceQueryParameter.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ApplianceQueryParameter.TypeConverter.cs index fb2c07284b78..e6fbdc5579a5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplianceQueryParameter.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplianceQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IApplianceQueryParameter ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceQueryParameter ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceQueryParameter).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceQueryParameter).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplianceQueryParameter.cs b/src/Migrate/generated/api/Models/Api202301/ApplianceQueryParameter.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ApplianceQueryParameter.cs rename to src/Migrate/generated/api/Models/Api202301/ApplianceQueryParameter.cs index 7016c48c4a32..0f71e3c2284b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplianceQueryParameter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplianceQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Query parameter to get appliance. public partial class ApplianceQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceQueryParameter, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceQueryParameterInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceQueryParameter, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceQueryParameterInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplianceQueryParameter.json.cs b/src/Migrate/generated/api/Models/Api202301/ApplianceQueryParameter.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ApplianceQueryParameter.json.cs rename to src/Migrate/generated/api/Models/Api202301/ApplianceQueryParameter.json.cs index fec0e42037fb..8af460b8e337 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplianceQueryParameter.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplianceQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,13 +70,13 @@ internal ApplianceQueryParameter(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceQueryParameter. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceQueryParameter. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceQueryParameter. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceQueryParameter. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ApplianceQueryParameter(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplianceSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ApplianceSpecificDetails.PowerShell.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/ApplianceSpecificDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ApplianceSpecificDetails.PowerShell.cs index c5f229b349b1..263c30adb88c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplianceSpecificDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplianceSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class ApplianceSpecificDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,13 +70,13 @@ internal ApplianceSpecificDetails(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetailsInternal)this).InstanceType, 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. @@ -91,33 +91,33 @@ internal ApplianceSpecificDetails(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetailsInternal)this).InstanceType, 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.Migrate.Models.Api20220501.IApplianceSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ApplianceSpecificDetails(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.Migrate.Models.Api20220501.IApplianceSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ApplianceSpecificDetails(content); } @@ -127,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApp /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplianceSpecificDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ApplianceSpecificDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ApplianceSpecificDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ApplianceSpecificDetails.TypeConverter.cs index edca28986832..eedeb1239bd6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplianceSpecificDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplianceSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IApplianceSpecificDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplianceSpecificDetails.cs b/src/Migrate/generated/api/Models/Api202301/ApplianceSpecificDetails.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ApplianceSpecificDetails.cs rename to src/Migrate/generated/api/Models/Api202301/ApplianceSpecificDetails.cs index f62215a4093f..fe47203e83cb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplianceSpecificDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplianceSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Appliance specific details. public partial class ApplianceSpecificDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplianceSpecificDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/ApplianceSpecificDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ApplianceSpecificDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/ApplianceSpecificDetails.json.cs index b7ceb3d401e5..df9fea38923d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplianceSpecificDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplianceSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,15 +70,15 @@ internal ApplianceSpecificDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails 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.Migrate.Models.Api20220501.IApplianceSpecificDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInput.PowerShell.cs new file mode 100644 index 000000000000..dba1bbc88e7f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInput.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input to apply recovery point. + [System.ComponentModel.TypeConverter(typeof(ApplyRecoveryPointInputTypeConverter))] + public partial class ApplyRecoveryPointInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ApplyRecoveryPointInput(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.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetailInstanceType, 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 ApplyRecoveryPointInput(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.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ApplyRecoveryPointInput(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.Migrate.Models.Api202301.IApplyRecoveryPointInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ApplyRecoveryPointInput(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.Migrate.Models.Api202301.IApplyRecoveryPointInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input to apply recovery point. + [System.ComponentModel.TypeConverter(typeof(ApplyRecoveryPointInputTypeConverter))] + public partial interface IApplyRecoveryPointInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInput.TypeConverter.cs index b50007729e75..386421f2f1ff 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IApplyRecoveryPointInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInput.cs b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInput.cs new file mode 100644 index 000000000000..b4160c9774e6 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInput.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input to apply recovery point. + public partial class ApplyRecoveryPointInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties _property; + + /// The input properties to apply recovery point. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointInputProperties()); set => this._property = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ; } + + /// The recovery point Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)Property).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)Property).RecoveryPointId = value ?? null; } + + /// Creates an new instance. + public ApplyRecoveryPointInput() + { + + } + } + /// Input to apply recovery point. + public partial interface IApplyRecoveryPointInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + /// The recovery point Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery point Id.", + SerializedName = @"recoveryPointId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryPointId { get; set; } + + } + /// Input to apply recovery point. + internal partial interface IApplyRecoveryPointInputInternal + + { + /// The input properties to apply recovery point. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties Property { get; set; } + /// Provider specific input for applying recovery point. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + /// The recovery point Id. + string RecoveryPointId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInput.json.cs b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInput.json.cs index 645da829e5c5..2b789d2b8709 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal ApplyRecoveryPointInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ApplyRecoveryPointInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInputProperties.PowerShell.cs new file mode 100644 index 000000000000..bd3e53838a9b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInputProperties.PowerShell.cs @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input properties to apply recovery point. + [System.ComponentModel.TypeConverter(typeof(ApplyRecoveryPointInputPropertiesTypeConverter))] + public partial class ApplyRecoveryPointInputProperties + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ApplyRecoveryPointInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 ApplyRecoveryPointInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ApplyRecoveryPointInputProperties(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.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ApplyRecoveryPointInputProperties(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.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input properties to apply recovery point. + [System.ComponentModel.TypeConverter(typeof(ApplyRecoveryPointInputPropertiesTypeConverter))] + public partial interface IApplyRecoveryPointInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInputProperties.TypeConverter.cs index 9addf1aa275a..bd4e0863983d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInputProperties.cs new file mode 100644 index 000000000000..f0acdcad9852 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInputProperties.cs @@ -0,0 +1,77 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input properties to apply recovery point. + public partial class ApplyRecoveryPointInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal + { + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput _providerSpecificDetail; + + /// Provider specific input for applying recovery point. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput()); set => this._providerSpecificDetail = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ; } + + /// Backing field for property. + private string _recoveryPointId; + + /// The recovery point Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoveryPointId { get => this._recoveryPointId; set => this._recoveryPointId = value; } + + /// Creates an new instance. + public ApplyRecoveryPointInputProperties() + { + + } + } + /// Input properties to apply recovery point. + public partial interface IApplyRecoveryPointInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + /// The recovery point Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery point Id.", + SerializedName = @"recoveryPointId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryPointId { get; set; } + + } + /// Input properties to apply recovery point. + internal partial interface IApplyRecoveryPointInputPropertiesInternal + + { + /// Provider specific input for applying recovery point. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + /// The recovery point Id. + string RecoveryPointId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInputProperties.json.cs index ec8f9eeb3075..fa812eab8998 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ApplyRecoveryPointInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Mi { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ApplyRecoveryPointInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointProviderSpecificInput.PowerShell.cs index 90dc7a5b9a66..2103a520e296 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class ApplyRecoveryPointProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,13 +70,13 @@ internal ApplyRecoveryPointProviderSpecificInput(global::System.Collections.IDic // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, 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. @@ -91,35 +91,35 @@ internal ApplyRecoveryPointProviderSpecificInput(global::System.Management.Autom // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ApplyRecoveryPointProviderSpecificInput(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.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ApplyRecoveryPointProviderSpecificInput(content); } @@ -132,7 +132,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApp /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointProviderSpecificInput.TypeConverter.cs index d8ddfab52690..8edf285028e4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointProviderSpecificInput.cs index cd0bc43eb768..ddaecf72c317 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific input for apply recovery point. public partial class ApplyRecoveryPointProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointProviderSpecificInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointProviderSpecificInput.json.cs index f0c595fb9395..16f941290cc2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ApplyRecoveryPointProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ApplyRecoveryPointProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,15 +70,15 @@ internal ApplyRecoveryPointProviderSpecificInput(Microsoft.Azure.PowerShell.Cmdl } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput 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.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/AsrJobDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AsrJobDetails.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/AsrJobDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/AsrJobDetails.PowerShell.cs index d5b1a70e14bd..fc730bd3b3a7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AsrJobDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/AsrJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AsrJobDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,17 +70,17 @@ internal AsrJobDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); } if (content.Contains("AffectedObjectDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.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. @@ -95,37 +95,37 @@ internal AsrJobDetails(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); } if (content.Contains("AffectedObjectDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.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.Migrate.Models.Api20220501.IAsrJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AsrJobDetails(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.Migrate.Models.Api20220501.IAsrJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AsrJobDetails(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsr /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/AsrJobDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AsrJobDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/AsrJobDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AsrJobDetails.TypeConverter.cs index 5912c411ecfe..86d5cd3ce016 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AsrJobDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AsrJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAsrJobDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrJobDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrJobDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrJobDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AsrJobDetails.cs b/src/Migrate/generated/api/Models/Api202301/AsrJobDetails.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/AsrJobDetails.cs rename to src/Migrate/generated/api/Models/Api202301/AsrJobDetails.cs index 96e79120377f..0d59be8c63d3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AsrJobDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/AsrJobDetails.cs @@ -3,32 +3,32 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// This class represents job details based on specific job type. public partial class AsrJobDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrJobDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrJobDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrJobDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrJobDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails(); /// /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow /// object details. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).AffectedObjectDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).AffectedObjectDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).AffectedObjectDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).AffectedObjectDetail = value ?? null /* model class */; } /// Gets the type of job details (see JobDetailsTypes enum for possible values). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).InstanceType = value ; } /// Creates an new instance. public AsrJobDetails() @@ -51,13 +51,13 @@ public AsrJobDetails() /// This class represents job details based on specific job type. public partial interface IAsrJobDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails { } /// This class represents job details based on specific job type. internal partial interface IAsrJobDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal { } diff --git a/src/Migrate/generated/api/Models/Api20220501/AsrJobDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/AsrJobDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/AsrJobDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/AsrJobDetails.json.cs index 7103ec9efd53..c5746c6875ed 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AsrJobDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AsrJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal AsrJobDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.J { return; } - __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails(json); + __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrJobDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrJobDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrJobDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrJobDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AsrJobDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/AsrTask.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AsrTask.PowerShell.cs new file mode 100644 index 000000000000..7c312505895a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AsrTask.PowerShell.cs @@ -0,0 +1,256 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Task of the Job. + [System.ComponentModel.TypeConverter(typeof(AsrTaskTypeConverter))] + public partial class AsrTask + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AsrTask(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("GroupTaskCustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).GroupTaskCustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails) content.GetValueForProperty("GroupTaskCustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).GroupTaskCustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.GroupTaskDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("TaskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).TaskId = (string) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).TaskId, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AllowedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).AllowedAction = (string[]) content.GetValueForProperty("AllowedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).AllowedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("StateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).StateDescription = (string) content.GetValueForProperty("StateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).StateDescription, global::System.Convert.ToString); + } + if (content.Contains("TaskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).TaskType = (string) content.GetValueForProperty("TaskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).TaskType, global::System.Convert.ToString); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("CustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); + } + if (content.Contains("GroupTaskCustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).GroupTaskCustomDetailInstanceType = (string) content.GetValueForProperty("GroupTaskCustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).GroupTaskCustomDetailInstanceType, global::System.Convert.ToString); + } + if (content.Contains("GroupTaskCustomDetailChildTask")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).GroupTaskCustomDetailChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[]) content.GetValueForProperty("GroupTaskCustomDetailChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).GroupTaskCustomDetailChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTaskTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AsrTask(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("GroupTaskCustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).GroupTaskCustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails) content.GetValueForProperty("GroupTaskCustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).GroupTaskCustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.GroupTaskDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("TaskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).TaskId = (string) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).TaskId, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AllowedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).AllowedAction = (string[]) content.GetValueForProperty("AllowedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).AllowedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("StateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).StateDescription = (string) content.GetValueForProperty("StateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).StateDescription, global::System.Convert.ToString); + } + if (content.Contains("TaskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).TaskType = (string) content.GetValueForProperty("TaskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).TaskType, global::System.Convert.ToString); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("CustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); + } + if (content.Contains("GroupTaskCustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).GroupTaskCustomDetailInstanceType = (string) content.GetValueForProperty("GroupTaskCustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).GroupTaskCustomDetailInstanceType, global::System.Convert.ToString); + } + if (content.Contains("GroupTaskCustomDetailChildTask")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).GroupTaskCustomDetailChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[]) content.GetValueForProperty("GroupTaskCustomDetailChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal)this).GroupTaskCustomDetailChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTaskTypeConverter.ConvertFrom)); + } + 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.Migrate.Models.Api202301.IAsrTask DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AsrTask(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.Migrate.Models.Api202301.IAsrTask DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AsrTask(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.Migrate.Models.Api202301.IAsrTask FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Task of the Job. + [System.ComponentModel.TypeConverter(typeof(AsrTaskTypeConverter))] + public partial interface IAsrTask + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AsrTask.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AsrTask.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/AsrTask.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AsrTask.TypeConverter.cs index be63a954d9f9..43c256f791bf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AsrTask.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AsrTask.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAsrTask ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AsrTask.cs b/src/Migrate/generated/api/Models/Api202301/AsrTask.cs similarity index 84% rename from src/Migrate/generated/api/Models/Api20220501/AsrTask.cs rename to src/Migrate/generated/api/Models/Api202301/AsrTask.cs index 26bd60107065..5835abf178b6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AsrTask.cs +++ b/src/Migrate/generated/api/Models/Api202301/AsrTask.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Task of the Job. public partial class AsrTask : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal { /// Backing field for property. @@ -21,15 +21,15 @@ public partial class AsrTask : public string[] AllowedAction { get => this._allowedAction; set => this._allowedAction = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails _customDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails _customDetail; /// The custom task details based on the task type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails()); set => this._customDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails()); set => this._customDetail = value; } /// The type of task details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)CustomDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)CustomDetail).InstanceType = value ?? null; } + public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)CustomDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)CustomDetail).InstanceType = value ?? null; } /// Backing field for property. private global::System.DateTime? _endTime; @@ -39,11 +39,11 @@ public partial class AsrTask : public global::System.DateTime? EndTime { get => this._endTime; set => this._endTime = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[] _error; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[] _error; /// The task error details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[] Error { get => this._error; set => this._error = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[] Error { get => this._error; set => this._error = value; } /// Backing field for property. private string _friendlyName; @@ -53,28 +53,28 @@ public partial class AsrTask : public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails _groupTaskCustomDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails _groupTaskCustomDetail; /// /// The custom task details based on the task type, if the task type is GroupTaskDetails or one of the types derived from /// it. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails GroupTaskCustomDetail { get => (this._groupTaskCustomDetail = this._groupTaskCustomDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.GroupTaskDetails()); set => this._groupTaskCustomDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails GroupTaskCustomDetail { get => (this._groupTaskCustomDetail = this._groupTaskCustomDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.GroupTaskDetails()); set => this._groupTaskCustomDetail = value; } /// The child tasks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] GroupTaskCustomDetailChildTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)GroupTaskCustomDetail).ChildTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)GroupTaskCustomDetail).ChildTask = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] GroupTaskCustomDetailChildTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)GroupTaskCustomDetail).ChildTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)GroupTaskCustomDetail).ChildTask = value ?? null /* arrayOf */; } /// The type of task details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string GroupTaskCustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)GroupTaskCustomDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)GroupTaskCustomDetail).InstanceType = value ?? null; } + public string GroupTaskCustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)GroupTaskCustomDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)GroupTaskCustomDetail).InstanceType = value ?? null; } /// Internal Acessors for CustomDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal.CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails()); set { {_customDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal.CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails()); set { {_customDetail = value;} } } /// Internal Acessors for GroupTaskCustomDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTaskInternal.GroupTaskCustomDetail { get => (this._groupTaskCustomDetail = this._groupTaskCustomDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.GroupTaskDetails()); set { {_groupTaskCustomDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTaskInternal.GroupTaskCustomDetail { get => (this._groupTaskCustomDetail = this._groupTaskCustomDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.GroupTaskDetails()); set { {_groupTaskCustomDetail = value;} } } /// Backing field for property. private string _name; @@ -163,8 +163,8 @@ public partial interface IAsrTask : ReadOnly = false, Description = @"The task error details.", SerializedName = @"errors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[] Error { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[] Error { get; set; } /// The name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -179,8 +179,8 @@ public partial interface IAsrTask : ReadOnly = false, Description = @"The child tasks.", SerializedName = @"childTasks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] GroupTaskCustomDetailChildTask { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] GroupTaskCustomDetailChildTask { get; set; } /// The type of task details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -251,22 +251,22 @@ internal partial interface IAsrTaskInternal /// The state/actions applicable on this task. string[] AllowedAction { get; set; } /// The custom task details based on the task type. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails CustomDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails CustomDetail { get; set; } /// The type of task details. string CustomDetailInstanceType { get; set; } /// The end time. global::System.DateTime? EndTime { get; set; } /// The task error details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[] Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[] Error { get; set; } /// The name. string FriendlyName { get; set; } /// /// The custom task details based on the task type, if the task type is GroupTaskDetails or one of the types derived from /// it. /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails GroupTaskCustomDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails GroupTaskCustomDetail { get; set; } /// The child tasks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] GroupTaskCustomDetailChildTask { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] GroupTaskCustomDetailChildTask { get; set; } /// The type of task details. string GroupTaskCustomDetailInstanceType { get; set; } /// The unique Task name. diff --git a/src/Migrate/generated/api/Models/Api20220501/AsrTask.json.cs b/src/Migrate/generated/api/Models/Api202301/AsrTask.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/AsrTask.json.cs rename to src/Migrate/generated/api/Models/Api202301/AsrTask.json.cs index 0d86ed56a014..3424325267dc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AsrTask.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AsrTask.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,8 +65,8 @@ internal AsrTask(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObj { return; } - {_customDetail = If( json?.PropertyT("customDetails"), out var __jsonCustomDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails.FromJson(__jsonCustomDetails) : CustomDetail;} - {_groupTaskCustomDetail = If( json?.PropertyT("groupTaskCustomDetails"), out var __jsonGroupTaskCustomDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.GroupTaskDetails.FromJson(__jsonGroupTaskCustomDetails) : GroupTaskCustomDetail;} + {_customDetail = If( json?.PropertyT("customDetails"), out var __jsonCustomDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails.FromJson(__jsonCustomDetails) : CustomDetail;} + {_groupTaskCustomDetail = If( json?.PropertyT("groupTaskCustomDetails"), out var __jsonGroupTaskCustomDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.GroupTaskDetails.FromJson(__jsonGroupTaskCustomDetails) : GroupTaskCustomDetail;} {_taskId = If( json?.PropertyT("taskId"), out var __jsonTaskId) ? (string)__jsonTaskId : (string)TaskId;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : StartTime : StartTime;} @@ -76,18 +76,18 @@ internal AsrTask(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObj {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)State;} {_stateDescription = If( json?.PropertyT("stateDescription"), out var __jsonStateDescription) ? (string)__jsonStateDescription : (string)StateDescription;} {_taskType = If( json?.PropertyT("taskType"), out var __jsonTaskType) ? (string)__jsonTaskType : (string)TaskType;} - {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? If( __jsonErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobErrorDetails.FromJson(__p) )) ))() : null : Error;} + {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? If( __jsonErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobErrorDetails.FromJson(__p) )) ))() : null : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AsrTask(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/AutomationRunbookTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AutomationRunbookTaskDetails.PowerShell.cs new file mode 100644 index 000000000000..d5f6f4c80c1e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AutomationRunbookTaskDetails.PowerShell.cs @@ -0,0 +1,216 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class represents the task details for an automation runbook. + [System.ComponentModel.TypeConverter(typeof(AutomationRunbookTaskDetailsTypeConverter))] + public partial class AutomationRunbookTaskDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AutomationRunbookTaskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("CloudServiceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).CloudServiceName = (string) content.GetValueForProperty("CloudServiceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).CloudServiceName, global::System.Convert.ToString); + } + if (content.Contains("SubscriptionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).SubscriptionId, global::System.Convert.ToString); + } + if (content.Contains("AccountName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).AccountName, global::System.Convert.ToString); + } + if (content.Contains("RunbookId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).RunbookId = (string) content.GetValueForProperty("RunbookId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).RunbookId, global::System.Convert.ToString); + } + if (content.Contains("RunbookName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).RunbookName = (string) content.GetValueForProperty("RunbookName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).RunbookName, global::System.Convert.ToString); + } + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("JobOutput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).JobOutput = (string) content.GetValueForProperty("JobOutput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).JobOutput, global::System.Convert.ToString); + } + if (content.Contains("IsPrimarySideScript")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).IsPrimarySideScript = (bool?) content.GetValueForProperty("IsPrimarySideScript",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).IsPrimarySideScript, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, 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 AutomationRunbookTaskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("CloudServiceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).CloudServiceName = (string) content.GetValueForProperty("CloudServiceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).CloudServiceName, global::System.Convert.ToString); + } + if (content.Contains("SubscriptionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).SubscriptionId, global::System.Convert.ToString); + } + if (content.Contains("AccountName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).AccountName, global::System.Convert.ToString); + } + if (content.Contains("RunbookId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).RunbookId = (string) content.GetValueForProperty("RunbookId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).RunbookId, global::System.Convert.ToString); + } + if (content.Contains("RunbookName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).RunbookName = (string) content.GetValueForProperty("RunbookName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).RunbookName, global::System.Convert.ToString); + } + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("JobOutput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).JobOutput = (string) content.GetValueForProperty("JobOutput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).JobOutput, global::System.Convert.ToString); + } + if (content.Contains("IsPrimarySideScript")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).IsPrimarySideScript = (bool?) content.GetValueForProperty("IsPrimarySideScript",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal)this).IsPrimarySideScript, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AutomationRunbookTaskDetails(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.Migrate.Models.Api202301.IAutomationRunbookTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AutomationRunbookTaskDetails(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.Migrate.Models.Api202301.IAutomationRunbookTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class represents the task details for an automation runbook. + [System.ComponentModel.TypeConverter(typeof(AutomationRunbookTaskDetailsTypeConverter))] + public partial interface IAutomationRunbookTaskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AutomationRunbookTaskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AutomationRunbookTaskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AutomationRunbookTaskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AutomationRunbookTaskDetails.TypeConverter.cs index 704880c6eae0..92707cc4a676 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AutomationRunbookTaskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AutomationRunbookTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAutomationRunbookTaskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AutomationRunbookTaskDetails.cs b/src/Migrate/generated/api/Models/Api202301/AutomationRunbookTaskDetails.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/AutomationRunbookTaskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/AutomationRunbookTaskDetails.cs index 09c2b09a34c7..7205057e2246 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AutomationRunbookTaskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/AutomationRunbookTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// This class represents the task details for an automation runbook. public partial class AutomationRunbookTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails(); /// Backing field for property. private string _accountName; @@ -35,7 +35,7 @@ public partial class AutomationRunbookTaskDetails : /// The type of task details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType = value ; } /// Backing field for property. private bool? _isPrimarySideScript; @@ -107,7 +107,7 @@ public AutomationRunbookTaskDetails() /// This class represents the task details for an automation runbook. public partial interface IAutomationRunbookTaskDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails { /// The automation account name of the runbook. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -185,7 +185,7 @@ public partial interface IAutomationRunbookTaskDetails : } /// This class represents the task details for an automation runbook. internal partial interface IAutomationRunbookTaskDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal { /// The automation account name of the runbook. string AccountName { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AutomationRunbookTaskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/AutomationRunbookTaskDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/AutomationRunbookTaskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/AutomationRunbookTaskDetails.json.cs index 5395196fbe8a..010054857a9c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AutomationRunbookTaskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AutomationRunbookTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,7 +65,7 @@ internal AutomationRunbookTaskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails(json); + __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails(json); {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_cloudServiceName = If( json?.PropertyT("cloudServiceName"), out var __jsonCloudServiceName) ? (string)__jsonCloudServiceName : (string)CloudServiceName;} {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} @@ -79,13 +79,13 @@ internal AutomationRunbookTaskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAutomationRunbookTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAutomationRunbookTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AutomationRunbookTaskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureFabricCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AzureFabricCreationInput.PowerShell.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/AzureFabricCreationInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/AzureFabricCreationInput.PowerShell.cs index fda2ef80a18f..246dc42fd1a2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureFabricCreationInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureFabricCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AzureFabricCreationInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,17 +70,17 @@ internal AzureFabricCreationInput(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricCreationInputInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricCreationInputInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricCreationInputInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricCreationInputInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType, 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. @@ -95,37 +95,37 @@ internal AzureFabricCreationInput(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricCreationInputInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricCreationInputInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricCreationInputInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricCreationInputInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType, 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.Migrate.Models.Api20220501.IAzureFabricCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureFabricCreationInput(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.Migrate.Models.Api20220501.IAzureFabricCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureFabricCreationInput(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzu /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureFabricCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AzureFabricCreationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AzureFabricCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AzureFabricCreationInput.TypeConverter.cs index 929f6a3ec13a..de46ec7cfb1b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureFabricCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureFabricCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAzureFabricCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureFabricCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/AzureFabricCreationInput.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/AzureFabricCreationInput.cs rename to src/Migrate/generated/api/Models/Api202301/AzureFabricCreationInput.cs index 763c32bc5ff0..e96f94d3f9a3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureFabricCreationInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureFabricCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Fabric provider specific settings. public partial class AzureFabricCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricCreationInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricCreationInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput __fabricSpecificCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput __fabricSpecificCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInput(); /// Gets the class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)__fabricSpecificCreationInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)__fabricSpecificCreationInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)__fabricSpecificCreationInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)__fabricSpecificCreationInput).InstanceType = value ; } /// Backing field for property. private string _location; @@ -51,7 +51,7 @@ public AzureFabricCreationInput() /// Fabric provider specific settings. public partial interface IAzureFabricCreationInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput { /// The Location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IAzureFabricCreationInput : } /// Fabric provider specific settings. internal partial interface IAzureFabricCreationInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal { /// The Location. string Location { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureFabricCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/AzureFabricCreationInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/AzureFabricCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/AzureFabricCreationInput.json.cs index 04e6bf182993..1701d4507374 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureFabricCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureFabricCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AzureFabricCreationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - __fabricSpecificCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInput(json); + __fabricSpecificCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInput(json); {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricCreationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricCreationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AzureFabricCreationInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/AzureFabricSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AzureFabricSpecificDetails.PowerShell.cs new file mode 100644 index 000000000000..f8a4b4f32a1c --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AzureFabricSpecificDetails.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Azure Fabric Specific Details. + [System.ComponentModel.TypeConverter(typeof(AzureFabricSpecificDetailsTypeConverter))] + public partial class AzureFabricSpecificDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureFabricSpecificDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).ContainerId = (string[]) content.GetValueForProperty("ContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).ContainerId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("Zone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).Zone = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AZoneDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("ExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).ExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetails[]) content.GetValueForProperty("ExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).ExtendedLocation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AExtendedLocationDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType, 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 AzureFabricSpecificDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).ContainerId = (string[]) content.GetValueForProperty("ContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).ContainerId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("Zone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).Zone = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails[]) content.GetValueForProperty("Zone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).Zone, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AZoneDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("ExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).ExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetails[]) content.GetValueForProperty("ExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal)this).ExtendedLocation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AExtendedLocationDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureFabricSpecificDetails(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.Migrate.Models.Api202301.IAzureFabricSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureFabricSpecificDetails(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.Migrate.Models.Api202301.IAzureFabricSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Azure Fabric Specific Details. + [System.ComponentModel.TypeConverter(typeof(AzureFabricSpecificDetailsTypeConverter))] + public partial interface IAzureFabricSpecificDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureFabricSpecificDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AzureFabricSpecificDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AzureFabricSpecificDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AzureFabricSpecificDetails.TypeConverter.cs index 0ea37e93c8f6..48af59210137 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureFabricSpecificDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureFabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAzureFabricSpecificDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/AzureFabricSpecificDetails.cs b/src/Migrate/generated/api/Models/Api202301/AzureFabricSpecificDetails.cs new file mode 100644 index 000000000000..16930407c80d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AzureFabricSpecificDetails.cs @@ -0,0 +1,125 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Azure Fabric Specific Details. + public partial class AzureFabricSpecificDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails(); + + /// Backing field for property. + private string[] _containerId; + + /// The container Ids for the Azure fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string[] ContainerId { get => this._containerId; set => this._containerId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetails[] _extendedLocation; + + /// The ExtendedLocations. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetails[] ExtendedLocation { get => this._extendedLocation; set => this._extendedLocation = value; } + + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType = value ; } + + /// Backing field for property. + private string _location; + + /// The Location for the Azure fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails[] _zone; + + /// The zones. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails[] Zone { get => this._zone; set => this._zone = value; } + + /// Creates an new instance. + public AzureFabricSpecificDetails() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__fabricSpecificDetails), __fabricSpecificDetails); + await eventListener.AssertObjectIsValid(nameof(__fabricSpecificDetails), __fabricSpecificDetails); + } + } + /// Azure Fabric Specific Details. + public partial interface IAzureFabricSpecificDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails + { + /// The container Ids for the Azure fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The container Ids for the Azure fabric.", + SerializedName = @"containerIds", + PossibleTypes = new [] { typeof(string) })] + string[] ContainerId { get; set; } + /// The ExtendedLocations. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The ExtendedLocations.", + SerializedName = @"extendedLocations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetails[] ExtendedLocation { get; set; } + /// The Location for the Azure fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Location for the Azure fabric.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + /// The zones. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The zones.", + SerializedName = @"zones", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails[] Zone { get; set; } + + } + /// Azure Fabric Specific Details. + internal partial interface IAzureFabricSpecificDetailsInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal + { + /// The container Ids for the Azure fabric. + string[] ContainerId { get; set; } + /// The ExtendedLocations. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetails[] ExtendedLocation { get; set; } + /// The Location for the Azure fabric. + string Location { get; set; } + /// The zones. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails[] Zone { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureFabricSpecificDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/AzureFabricSpecificDetails.json.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/AzureFabricSpecificDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/AzureFabricSpecificDetails.json.cs index c8cfc549d701..d151ffdfd7e9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureFabricSpecificDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureFabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,21 +65,22 @@ internal AzureFabricSpecificDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.R { return; } - __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails(json); + __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails(json); {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} {_containerId = If( json?.PropertyT("containerIds"), out var __jsonContainerIds) ? If( __jsonContainerIds as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : ContainerId;} - {_zone = If( json?.PropertyT("zones"), out var __jsonZones) ? If( __jsonZones as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IA2AZoneDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.A2AZoneDetails.FromJson(__p) )) ))() : null : Zone;} + {_zone = If( json?.PropertyT("zones"), out var __jsonZones) ? If( __jsonZones as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AZoneDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AZoneDetails.FromJson(__p) )) ))() : null : Zone;} + {_extendedLocation = If( json?.PropertyT("extendedLocations"), out var __jsonExtendedLocations) ? If( __jsonExtendedLocations as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IA2AExtendedLocationDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.A2AExtendedLocationDetails.FromJson(__k) )) ))() : null : ExtendedLocation;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureFabricSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureFabricSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AzureFabricSpecificDetails(json) : null; } @@ -123,6 +124,15 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M } container.Add("zones",__r); } + if (null != this._extendedLocation) + { + var __m = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.XNodeArray(); + foreach( var __n in this._extendedLocation ) + { + AddIf(__n?.ToJson(null, serializationMode) ,__m.Add); + } + container.Add("extendedLocations",__m); + } AfterToJson(ref container); return container; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureCreateNetworkMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureCreateNetworkMappingInput.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureCreateNetworkMappingInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureCreateNetworkMappingInput.PowerShell.cs index 106ff185b53c..e105d78cc3d2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureCreateNetworkMappingInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -57,7 +57,7 @@ public partial class AzureToAzureCreateNetworkMappingInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -72,17 +72,17 @@ internal AzureToAzureCreateNetworkMappingInput(global::System.Collections.IDicti // actually deserialize if (content.Contains("PrimaryNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureCreateNetworkMappingInputInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureCreateNetworkMappingInputInternal)this).PrimaryNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureCreateNetworkMappingInputInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureCreateNetworkMappingInputInternal)this).PrimaryNetworkId, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, 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. @@ -97,39 +97,39 @@ internal AzureToAzureCreateNetworkMappingInput(global::System.Management.Automat // actually deserialize if (content.Contains("PrimaryNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureCreateNetworkMappingInputInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureCreateNetworkMappingInputInternal)this).PrimaryNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureCreateNetworkMappingInputInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureCreateNetworkMappingInputInternal)this).PrimaryNetworkId, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, 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.Migrate.Models.Api20220501.IAzureToAzureCreateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureCreateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureToAzureCreateNetworkMappingInput(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.Migrate.Models.Api20220501.IAzureToAzureCreateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureCreateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureToAzureCreateNetworkMappingInput(content); } @@ -142,7 +142,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzu /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureCreateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureCreateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureCreateNetworkMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureCreateNetworkMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureCreateNetworkMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureCreateNetworkMappingInput.TypeConverter.cs index 781b9e8d2ac7..1db099d88e0a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureCreateNetworkMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAzureToAzureCreateNetworkMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureCreateNetworkMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureCreateNetworkMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureCreateNetworkMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureCreateNetworkMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureCreateNetworkMappingInput.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureCreateNetworkMappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureCreateNetworkMappingInput.cs index c4237592ae21..0a9466467862 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureCreateNetworkMappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,19 +11,19 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// Create network mappings input properties/behavior specific to Azure to Azure Network mapping. /// public partial class AzureToAzureCreateNetworkMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureCreateNetworkMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureCreateNetworkMappingInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureCreateNetworkMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureCreateNetworkMappingInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput __fabricSpecificCreateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput __fabricSpecificCreateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInput(); /// The instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)__fabricSpecificCreateNetworkMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)__fabricSpecificCreateNetworkMappingInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)__fabricSpecificCreateNetworkMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)__fabricSpecificCreateNetworkMappingInput).InstanceType = value ; } /// Backing field for property. private string _primaryNetworkId; @@ -53,7 +53,7 @@ public AzureToAzureCreateNetworkMappingInput() /// Create network mappings input properties/behavior specific to Azure to Azure Network mapping. public partial interface IAzureToAzureCreateNetworkMappingInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput { /// The primary azure vnet Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -67,7 +67,7 @@ public partial interface IAzureToAzureCreateNetworkMappingInput : } /// Create network mappings input properties/behavior specific to Azure to Azure Network mapping. internal partial interface IAzureToAzureCreateNetworkMappingInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal { /// The primary azure vnet Id. string PrimaryNetworkId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureCreateNetworkMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureCreateNetworkMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureCreateNetworkMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureCreateNetworkMappingInput.json.cs index 444660c983ab..255dda7a79bc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureCreateNetworkMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -67,19 +67,19 @@ internal AzureToAzureCreateNetworkMappingInput(Microsoft.Azure.PowerShell.Cmdlet { return; } - __fabricSpecificCreateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInput(json); + __fabricSpecificCreateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInput(json); {_primaryNetworkId = If( json?.PropertyT("primaryNetworkId"), out var __jsonPrimaryNetworkId) ? (string)__jsonPrimaryNetworkId : (string)PrimaryNetworkId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureCreateNetworkMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureCreateNetworkMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureCreateNetworkMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureCreateNetworkMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureCreateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureCreateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AzureToAzureCreateNetworkMappingInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/AzureToAzureNetworkMappingSettings.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureNetworkMappingSettings.PowerShell.cs new file mode 100644 index 000000000000..0134e0a4cddc --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureNetworkMappingSettings.PowerShell.cs @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// A2A Network Mapping fabric specific settings. + [System.ComponentModel.TypeConverter(typeof(AzureToAzureNetworkMappingSettingsTypeConverter))] + public partial class AzureToAzureNetworkMappingSettings + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureToAzureNetworkMappingSettings(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettingsInternal)this).PrimaryFabricLocation = (string) content.GetValueForProperty("PrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettingsInternal)this).PrimaryFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettingsInternal)this).RecoveryFabricLocation = (string) content.GetValueForProperty("RecoveryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettingsInternal)this).RecoveryFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, 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 AzureToAzureNetworkMappingSettings(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettingsInternal)this).PrimaryFabricLocation = (string) content.GetValueForProperty("PrimaryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettingsInternal)this).PrimaryFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettingsInternal)this).RecoveryFabricLocation = (string) content.GetValueForProperty("RecoveryFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettingsInternal)this).RecoveryFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureToAzureNetworkMappingSettings(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.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureToAzureNetworkMappingSettings(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.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A2A Network Mapping fabric specific settings. + [System.ComponentModel.TypeConverter(typeof(AzureToAzureNetworkMappingSettingsTypeConverter))] + public partial interface IAzureToAzureNetworkMappingSettings + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureNetworkMappingSettings.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureNetworkMappingSettings.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureNetworkMappingSettings.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureNetworkMappingSettings.TypeConverter.cs index e0cf5d24b665..17e3d47648e9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureNetworkMappingSettings.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureNetworkMappingSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettings ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettings ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettings).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettings).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureNetworkMappingSettings.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureNetworkMappingSettings.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureNetworkMappingSettings.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureNetworkMappingSettings.cs index 6d00e800cad0..40c6644602b8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureNetworkMappingSettings.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureNetworkMappingSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// A2A Network Mapping fabric specific settings. public partial class AzureToAzureNetworkMappingSettings : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettings, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettingsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettings, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettingsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings __networkMappingFabricSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings __networkMappingFabricSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettings(); /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)__networkMappingFabricSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)__networkMappingFabricSpecificSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)__networkMappingFabricSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)__networkMappingFabricSpecificSettings).InstanceType = value ; } /// Backing field for property. private string _primaryFabricLocation; @@ -58,7 +58,7 @@ public AzureToAzureNetworkMappingSettings() /// A2A Network Mapping fabric specific settings. public partial interface IAzureToAzureNetworkMappingSettings : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings { /// The primary fabric location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -80,7 +80,7 @@ public partial interface IAzureToAzureNetworkMappingSettings : } /// A2A Network Mapping fabric specific settings. internal partial interface IAzureToAzureNetworkMappingSettingsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal { /// The primary fabric location. string PrimaryFabricLocation { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureNetworkMappingSettings.json.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureNetworkMappingSettings.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureNetworkMappingSettings.json.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureNetworkMappingSettings.json.cs index 4eaca7371adf..166cc62dbf7a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureNetworkMappingSettings.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureNetworkMappingSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,20 +65,20 @@ internal AzureToAzureNetworkMappingSettings(Microsoft.Azure.PowerShell.Cmdlets.M { return; } - __networkMappingFabricSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettings(json); + __networkMappingFabricSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettings(json); {_primaryFabricLocation = If( json?.PropertyT("primaryFabricLocation"), out var __jsonPrimaryFabricLocation) ? (string)__jsonPrimaryFabricLocation : (string)PrimaryFabricLocation;} {_recoveryFabricLocation = If( json?.PropertyT("recoveryFabricLocation"), out var __jsonRecoveryFabricLocation) ? (string)__jsonRecoveryFabricLocation : (string)RecoveryFabricLocation;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettings. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettings. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettings. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettings. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureNetworkMappingSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureNetworkMappingSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AzureToAzureNetworkMappingSettings(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureUpdateNetworkMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureUpdateNetworkMappingInput.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureUpdateNetworkMappingInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureUpdateNetworkMappingInput.PowerShell.cs index 5e8174f96520..17114ea926aa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureUpdateNetworkMappingInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AzureToAzureUpdateNetworkMappingInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,17 +70,17 @@ internal AzureToAzureUpdateNetworkMappingInput(global::System.Collections.IDicti // actually deserialize if (content.Contains("PrimaryNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureUpdateNetworkMappingInputInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureUpdateNetworkMappingInputInternal)this).PrimaryNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureUpdateNetworkMappingInputInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureUpdateNetworkMappingInputInternal)this).PrimaryNetworkId, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, 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. @@ -95,39 +95,39 @@ internal AzureToAzureUpdateNetworkMappingInput(global::System.Management.Automat // actually deserialize if (content.Contains("PrimaryNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureUpdateNetworkMappingInputInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureUpdateNetworkMappingInputInternal)this).PrimaryNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureUpdateNetworkMappingInputInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureUpdateNetworkMappingInputInternal)this).PrimaryNetworkId, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, 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.Migrate.Models.Api20220501.IAzureToAzureUpdateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureUpdateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureToAzureUpdateNetworkMappingInput(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.Migrate.Models.Api20220501.IAzureToAzureUpdateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureUpdateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureToAzureUpdateNetworkMappingInput(content); } @@ -140,7 +140,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzu /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureUpdateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureUpdateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureUpdateNetworkMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureUpdateNetworkMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureUpdateNetworkMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureUpdateNetworkMappingInput.TypeConverter.cs index 0147cbbfceb8..3fc370a47ee5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureUpdateNetworkMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAzureToAzureUpdateNetworkMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureUpdateNetworkMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureUpdateNetworkMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureUpdateNetworkMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureUpdateNetworkMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureUpdateNetworkMappingInput.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureUpdateNetworkMappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureUpdateNetworkMappingInput.cs index a7bcba645730..694f2706a456 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureUpdateNetworkMappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Updates network mappings input. public partial class AzureToAzureUpdateNetworkMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureUpdateNetworkMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureUpdateNetworkMappingInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureUpdateNetworkMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureUpdateNetworkMappingInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput __fabricSpecificUpdateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput __fabricSpecificUpdateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInput(); /// The instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)__fabricSpecificUpdateNetworkMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)__fabricSpecificUpdateNetworkMappingInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)__fabricSpecificUpdateNetworkMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)__fabricSpecificUpdateNetworkMappingInput).InstanceType = value ; } /// Backing field for property. private string _primaryNetworkId; @@ -51,7 +51,7 @@ public AzureToAzureUpdateNetworkMappingInput() /// Updates network mappings input. public partial interface IAzureToAzureUpdateNetworkMappingInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput { /// The primary azure vnet Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IAzureToAzureUpdateNetworkMappingInput : } /// Updates network mappings input. internal partial interface IAzureToAzureUpdateNetworkMappingInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal { /// The primary azure vnet Id. string PrimaryNetworkId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureUpdateNetworkMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureUpdateNetworkMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureUpdateNetworkMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureUpdateNetworkMappingInput.json.cs index 61bd362b5569..27a705fbec42 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureUpdateNetworkMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AzureToAzureUpdateNetworkMappingInput(Microsoft.Azure.PowerShell.Cmdlet { return; } - __fabricSpecificUpdateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInput(json); + __fabricSpecificUpdateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInput(json); {_primaryNetworkId = If( json?.PropertyT("primaryNetworkId"), out var __jsonPrimaryNetworkId) ? (string)__jsonPrimaryNetworkId : (string)PrimaryNetworkId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureUpdateNetworkMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureUpdateNetworkMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureUpdateNetworkMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureUpdateNetworkMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureUpdateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureUpdateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AzureToAzureUpdateNetworkMappingInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetails.PowerShell.cs new file mode 100644 index 000000000000..f411886c3d9a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetails.PowerShell.cs @@ -0,0 +1,156 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Azure to Azure VM synced configuration details. + [System.ComponentModel.TypeConverter(typeof(AzureToAzureVMSyncedConfigDetailsTypeConverter))] + public partial class AzureToAzureVMSyncedConfigDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureToAzureVMSyncedConfigDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureVMSyncedConfigDetailsTagsTypeConverter.ConvertFrom); + } + if (content.Contains("InputEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsInternal)this).InputEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint[]) content.GetValueForProperty("InputEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsInternal)this).InputEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InputEndpointTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AzureToAzureVMSyncedConfigDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureVMSyncedConfigDetailsTagsTypeConverter.ConvertFrom); + } + if (content.Contains("InputEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsInternal)this).InputEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint[]) content.GetValueForProperty("InputEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsInternal)this).InputEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InputEndpointTypeConverter.ConvertFrom)); + } + 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.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureToAzureVMSyncedConfigDetails(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.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureToAzureVMSyncedConfigDetails(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.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Azure to Azure VM synced configuration details. + [System.ComponentModel.TypeConverter(typeof(AzureToAzureVMSyncedConfigDetailsTypeConverter))] + public partial interface IAzureToAzureVMSyncedConfigDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetails.TypeConverter.cs index 03365fc364c1..c18aa61b0425 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetails.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetails.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetails.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetails.cs index 5de59063f2e5..483f31d3d590 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Azure to Azure VM synced configuration details. public partial class AzureToAzureVMSyncedConfigDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint[] _inputEndpoint; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint[] _inputEndpoint; /// The Azure VM input endpoints. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint[] InputEndpoint { get => this._inputEndpoint; set => this._inputEndpoint = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint[] InputEndpoint { get => this._inputEndpoint; set => this._inputEndpoint = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags _tag; /// The Azure VM tags. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureVMSyncedConfigDetailsTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureVMSyncedConfigDetailsTags()); set => this._tag = value; } /// Creates an new instance. public AzureToAzureVMSyncedConfigDetails() @@ -43,16 +43,16 @@ public partial interface IAzureToAzureVMSyncedConfigDetails : ReadOnly = false, Description = @"The Azure VM input endpoints.", SerializedName = @"inputEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint[] InputEndpoint { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint[] InputEndpoint { get; set; } /// The Azure VM tags. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The Azure VM tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags Tag { get; set; } } /// Azure to Azure VM synced configuration details. @@ -60,9 +60,9 @@ internal partial interface IAzureToAzureVMSyncedConfigDetailsInternal { /// The Azure VM input endpoints. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint[] InputEndpoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint[] InputEndpoint { get; set; } /// The Azure VM tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetails.json.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetails.json.cs index 14b30b46f212..3fd0ccfd3276 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AzureToAzureVMSyncedConfigDetails(Microsoft.Azure.PowerShell.Cmdlets.Mi { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureVMSyncedConfigDetailsTags.FromJson(__jsonTags) : Tag;} - {_inputEndpoint = If( json?.PropertyT("inputEndpoints"), out var __jsonInputEndpoints) ? If( __jsonInputEndpoints as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInputEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InputEndpoint.FromJson(__u) )) ))() : null : InputEndpoint;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureVMSyncedConfigDetailsTags.FromJson(__jsonTags) : Tag;} + {_inputEndpoint = If( json?.PropertyT("inputEndpoints"), out var __jsonInputEndpoints) ? If( __jsonInputEndpoints as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IInputEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InputEndpoint.FromJson(__u) )) ))() : null : InputEndpoint;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AzureToAzureVMSyncedConfigDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.PowerShell.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.PowerShell.cs index e0ffc5492861..797ac8bc0fea 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AzureToAzureVMSyncedConfigDetailsTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -74,7 +74,7 @@ internal AzureToAzureVMSyncedConfigDetailsTags(global::System.Collections.IDicti } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -93,29 +93,29 @@ internal AzureToAzureVMSyncedConfigDetailsTags(global::System.Management.Automat } /// - /// 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.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureToAzureVMSyncedConfigDetailsTags(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.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureToAzureVMSyncedConfigDetailsTags(content); } @@ -128,7 +128,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzu /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.TypeConverter.cs index 2acb0d052d80..c1bc9933d34a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.cs index 3d71fb902e37..0a22934b93f2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The Azure VM tags. public partial class AzureToAzureVMSyncedConfigDetailsTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTagsInternal { /// Creates an new instance. diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.dictionary.cs index 92425423f9be..4e175062d26e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureToAzureVMSyncedConfigDetailsTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureToAzureVMSyncedConfigDetailsTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.json.cs b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.json.cs index 820c9a3ed16e..ff55fa5315bd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureToAzureVMSyncedConfigDetailsTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureToAzureVMSyncedConfigDetailsTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -71,13 +71,13 @@ internal AzureToAzureVMSyncedConfigDetailsTags(Microsoft.Azure.PowerShell.Cmdlet } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureToAzureVMSyncedConfigDetailsTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureToAzureVMSyncedConfigDetailsTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AzureToAzureVMSyncedConfigDetailsTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/AzureVMDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/AzureVMDiskDetails.PowerShell.cs new file mode 100644 index 000000000000..7329fffc2e69 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/AzureVMDiskDetails.PowerShell.cs @@ -0,0 +1,216 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Disk details for E2A provider. + [System.ComponentModel.TypeConverter(typeof(AzureVMDiskDetailsTypeConverter))] + public partial class AzureVMDiskDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AzureVMDiskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VhdType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).VhdType = (string) content.GetValueForProperty("VhdType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).VhdType, global::System.Convert.ToString); + } + if (content.Contains("VhdId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).VhdId = (string) content.GetValueForProperty("VhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).VhdId, global::System.Convert.ToString); + } + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("VhdName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).VhdName, global::System.Convert.ToString); + } + if (content.Contains("MaxSizeMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).MaxSizeMb = (string) content.GetValueForProperty("MaxSizeMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).MaxSizeMb, global::System.Convert.ToString); + } + if (content.Contains("TargetDiskLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).TargetDiskLocation = (string) content.GetValueForProperty("TargetDiskLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).TargetDiskLocation, global::System.Convert.ToString); + } + if (content.Contains("TargetDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).TargetDiskName, global::System.Convert.ToString); + } + if (content.Contains("LunId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).LunId = (string) content.GetValueForProperty("LunId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).LunId, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("CustomTargetDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).CustomTargetDiskName = (string) content.GetValueForProperty("CustomTargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).CustomTargetDiskName, 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 AzureVMDiskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VhdType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).VhdType = (string) content.GetValueForProperty("VhdType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).VhdType, global::System.Convert.ToString); + } + if (content.Contains("VhdId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).VhdId = (string) content.GetValueForProperty("VhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).VhdId, global::System.Convert.ToString); + } + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("VhdName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).VhdName, global::System.Convert.ToString); + } + if (content.Contains("MaxSizeMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).MaxSizeMb = (string) content.GetValueForProperty("MaxSizeMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).MaxSizeMb, global::System.Convert.ToString); + } + if (content.Contains("TargetDiskLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).TargetDiskLocation = (string) content.GetValueForProperty("TargetDiskLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).TargetDiskLocation, global::System.Convert.ToString); + } + if (content.Contains("TargetDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).TargetDiskName, global::System.Convert.ToString); + } + if (content.Contains("LunId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).LunId = (string) content.GetValueForProperty("LunId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).LunId, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("CustomTargetDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).CustomTargetDiskName = (string) content.GetValueForProperty("CustomTargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal)this).CustomTargetDiskName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AzureVMDiskDetails(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.Migrate.Models.Api202301.IAzureVMDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AzureVMDiskDetails(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.Migrate.Models.Api202301.IAzureVMDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Disk details for E2A provider. + [System.ComponentModel.TypeConverter(typeof(AzureVMDiskDetailsTypeConverter))] + public partial interface IAzureVMDiskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureVMDiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/AzureVMDiskDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/AzureVMDiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/AzureVMDiskDetails.TypeConverter.cs index 642762279fb9..99ee2887150b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureVMDiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureVMDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAzureVMDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureVMDiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/AzureVMDiskDetails.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/AzureVMDiskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/AzureVMDiskDetails.cs index 9a27e1283f0d..13c7995ffffb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureVMDiskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureVMDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Disk details for E2A provider. public partial class AzureVMDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/AzureVMDiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/AzureVMDiskDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/AzureVMDiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/AzureVMDiskDetails.json.cs index c34d05a4a19d..9d992335dfba 100644 --- a/src/Migrate/generated/api/Models/Api20220501/AzureVMDiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/AzureVMDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -79,13 +79,13 @@ internal AzureVMDiskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.J } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new AzureVMDiskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ComputeSizeErrorDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ComputeSizeErrorDetails.PowerShell.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/ComputeSizeErrorDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ComputeSizeErrorDetails.PowerShell.cs index b30d5b5d49d1..476b5873d7df 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ComputeSizeErrorDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ComputeSizeErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -57,7 +57,7 @@ public partial class ComputeSizeErrorDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -72,17 +72,17 @@ internal ComputeSizeErrorDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetailsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetailsInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Severity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetailsInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetailsInternal)this).Severity, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetailsInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetailsInternal)this).Severity, 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. @@ -97,37 +97,37 @@ internal ComputeSizeErrorDetails(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetailsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetailsInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Severity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetailsInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetailsInternal)this).Severity, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetailsInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetailsInternal)this).Severity, 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.Migrate.Models.Api20220501.IComputeSizeErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ComputeSizeErrorDetails(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.Migrate.Models.Api20220501.IComputeSizeErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ComputeSizeErrorDetails(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICom /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/ComputeSizeErrorDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ComputeSizeErrorDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ComputeSizeErrorDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ComputeSizeErrorDetails.TypeConverter.cs index 954a00ec6732..042e2dc051df 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ComputeSizeErrorDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ComputeSizeErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IComputeSizeErrorDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ComputeSizeErrorDetails.cs b/src/Migrate/generated/api/Models/Api202301/ComputeSizeErrorDetails.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ComputeSizeErrorDetails.cs rename to src/Migrate/generated/api/Models/Api202301/ComputeSizeErrorDetails.cs index f8e9a6fc8177..4d33a104a0bd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ComputeSizeErrorDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/ComputeSizeErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// Represents the error used to indicate why the target compute size is not applicable. /// public partial class ComputeSizeErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ComputeSizeErrorDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/ComputeSizeErrorDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ComputeSizeErrorDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/ComputeSizeErrorDetails.json.cs index 2de14cc5c287..99ea69f45e0a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ComputeSizeErrorDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ComputeSizeErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -73,13 +73,13 @@ internal ComputeSizeErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ComputeSizeErrorDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ConfigurationSettings.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ConfigurationSettings.PowerShell.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/ConfigurationSettings.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ConfigurationSettings.PowerShell.cs index d499166fb44d..142faad1045b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ConfigurationSettings.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ConfigurationSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class ConfigurationSettings partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,13 +70,13 @@ internal ConfigurationSettings(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType, 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. @@ -91,33 +91,33 @@ internal ConfigurationSettings(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType, 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.Migrate.Models.Api20220501.IConfigurationSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ConfigurationSettings(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.Migrate.Models.Api20220501.IConfigurationSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ConfigurationSettings(content); } @@ -127,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICon /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/ConfigurationSettings.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ConfigurationSettings.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ConfigurationSettings.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ConfigurationSettings.TypeConverter.cs index 22dfd359ae1f..e6debdcf720f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ConfigurationSettings.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ConfigurationSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IConfigurationSettings ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ConfigurationSettings.cs b/src/Migrate/generated/api/Models/Api202301/ConfigurationSettings.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ConfigurationSettings.cs rename to src/Migrate/generated/api/Models/Api202301/ConfigurationSettings.cs index c34aa30b348d..7351edc295a5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ConfigurationSettings.cs +++ b/src/Migrate/generated/api/Models/Api202301/ConfigurationSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Replication provider specific settings. public partial class ConfigurationSettings : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ConfigurationSettings.json.cs b/src/Migrate/generated/api/Models/Api202301/ConfigurationSettings.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ConfigurationSettings.json.cs rename to src/Migrate/generated/api/Models/Api202301/ConfigurationSettings.json.cs index 2e34758e202b..a0044f6d7a56 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ConfigurationSettings.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ConfigurationSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,15 +70,15 @@ internal ConfigurationSettings(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings 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.Migrate.Models.Api20220501.IConfigurationSettings. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequest.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequest.PowerShell.cs new file mode 100644 index 000000000000..2b6cb46f2e29 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequest.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Request to configure alerts for the system. + [System.ComponentModel.TypeConverter(typeof(ConfigureAlertRequestTypeConverter))] + public partial class ConfigureAlertRequest + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ConfigureAlertRequest(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.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigureAlertRequestPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SendToOwner")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).SendToOwner, global::System.Convert.ToString); + } + if (content.Contains("CustomEmailAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("Locale")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).Locale, 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 ConfigureAlertRequest(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.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigureAlertRequestPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SendToOwner")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).SendToOwner, global::System.Convert.ToString); + } + if (content.Contains("CustomEmailAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("Locale")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal)this).Locale, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigureAlertRequest(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.Migrate.Models.Api202301.IConfigureAlertRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigureAlertRequest(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.Migrate.Models.Api202301.IConfigureAlertRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Request to configure alerts for the system. + [System.ComponentModel.TypeConverter(typeof(ConfigureAlertRequestTypeConverter))] + public partial interface IConfigureAlertRequest + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequest.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequest.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequest.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequest.TypeConverter.cs index 8099b87f3374..6f1c7581e81a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequest.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequest.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IConfigureAlertRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequest.cs b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequest.cs new file mode 100644 index 000000000000..5200f23b60a0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequest.cs @@ -0,0 +1,88 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Request to configure alerts for the system. + public partial class ConfigureAlertRequest : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequest, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal + { + + /// The custom email address for sending emails. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string[] CustomEmailAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)Property).CustomEmailAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)Property).CustomEmailAddress = value ?? null /* arrayOf */; } + + /// The locale for the email notification. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Locale { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)Property).Locale; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)Property).Locale = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigureAlertRequestProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestProperties _property; + + /// The properties of a configure alert request. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigureAlertRequestProperties()); set => this._property = value; } + + /// A value indicating whether to send email to subscription administrator. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SendToOwner { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)Property).SendToOwner; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)Property).SendToOwner = value ?? null; } + + /// Creates an new instance. + public ConfigureAlertRequest() + { + + } + } + /// Request to configure alerts for the system. + public partial interface IConfigureAlertRequest : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The custom email address for sending emails. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The custom email address for sending emails.", + SerializedName = @"customEmailAddresses", + PossibleTypes = new [] { typeof(string) })] + string[] CustomEmailAddress { get; set; } + /// The locale for the email notification. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The locale for the email notification.", + SerializedName = @"locale", + PossibleTypes = new [] { typeof(string) })] + string Locale { get; set; } + /// A value indicating whether to send email to subscription administrator. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether to send email to subscription administrator.", + SerializedName = @"sendToOwners", + PossibleTypes = new [] { typeof(string) })] + string SendToOwner { get; set; } + + } + /// Request to configure alerts for the system. + internal partial interface IConfigureAlertRequestInternal + + { + /// The custom email address for sending emails. + string[] CustomEmailAddress { get; set; } + /// The locale for the email notification. + string Locale { get; set; } + /// The properties of a configure alert request. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestProperties Property { get; set; } + /// A value indicating whether to send email to subscription administrator. + string SendToOwner { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequest.json.cs b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequest.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequest.json.cs rename to src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequest.json.cs index ea42362b4431..007787f8228e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequest.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequest.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal ConfigureAlertRequest(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigureAlertRequestProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigureAlertRequestProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ConfigureAlertRequest(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequestProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequestProperties.PowerShell.cs new file mode 100644 index 000000000000..5cf1a2c6af35 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequestProperties.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Properties of a configure alert request. + [System.ComponentModel.TypeConverter(typeof(ConfigureAlertRequestPropertiesTypeConverter))] + public partial class ConfigureAlertRequestProperties + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ConfigureAlertRequestProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SendToOwner")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)this).SendToOwner, global::System.Convert.ToString); + } + if (content.Contains("CustomEmailAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("Locale")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)this).Locale, 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 ConfigureAlertRequestProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SendToOwner")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)this).SendToOwner = (string) content.GetValueForProperty("SendToOwner",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)this).SendToOwner, global::System.Convert.ToString); + } + if (content.Contains("CustomEmailAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)this).CustomEmailAddress = (string[]) content.GetValueForProperty("CustomEmailAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)this).CustomEmailAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("Locale")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)this).Locale = (string) content.GetValueForProperty("Locale",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal)this).Locale, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConfigureAlertRequestProperties(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.Migrate.Models.Api202301.IConfigureAlertRequestProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConfigureAlertRequestProperties(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.Migrate.Models.Api202301.IConfigureAlertRequestProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of a configure alert request. + [System.ComponentModel.TypeConverter(typeof(ConfigureAlertRequestPropertiesTypeConverter))] + public partial interface IConfigureAlertRequestProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequestProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequestProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequestProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequestProperties.TypeConverter.cs index b2dcbb8a1010..c7e92bfa7369 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequestProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IConfigureAlertRequestProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequestProperties.cs b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequestProperties.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequestProperties.cs rename to src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequestProperties.cs index 5cf49387d665..3d7cb1f512ea 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequestProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Properties of a configure alert request. public partial class ConfigureAlertRequestProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequestProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequestProperties.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequestProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequestProperties.json.cs index b564be3fe293..de4378079209 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ConfigureAlertRequestProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ConfigureAlertRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -72,13 +72,13 @@ internal ConfigureAlertRequestProperties(Microsoft.Azure.PowerShell.Cmdlets.Migr } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigureAlertRequestProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigureAlertRequestProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ConfigureAlertRequestProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ConsistencyCheckTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ConsistencyCheckTaskDetails.PowerShell.cs new file mode 100644 index 000000000000..f7572e97522c --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ConsistencyCheckTaskDetails.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// + /// This class contains monitoring details of all the inconsistent Protected Entities in Vmm. + /// + [System.ComponentModel.TypeConverter(typeof(ConsistencyCheckTaskDetailsTypeConverter))] + public partial class ConsistencyCheckTaskDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ConsistencyCheckTaskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VMDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConsistencyCheckTaskDetailsInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConsistencyCheckTaskDetailsInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InconsistentVMDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, 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 ConsistencyCheckTaskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VMDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConsistencyCheckTaskDetailsInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConsistencyCheckTaskDetailsInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InconsistentVMDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConsistencyCheckTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ConsistencyCheckTaskDetails(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.Migrate.Models.Api202301.IConsistencyCheckTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ConsistencyCheckTaskDetails(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.Migrate.Models.Api202301.IConsistencyCheckTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class contains monitoring details of all the inconsistent Protected Entities in Vmm. + [System.ComponentModel.TypeConverter(typeof(ConsistencyCheckTaskDetailsTypeConverter))] + public partial interface IConsistencyCheckTaskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ConsistencyCheckTaskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ConsistencyCheckTaskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ConsistencyCheckTaskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ConsistencyCheckTaskDetails.TypeConverter.cs index 18bac959947a..d106ff606ecf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ConsistencyCheckTaskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ConsistencyCheckTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IConsistencyCheckTaskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConsistencyCheckTaskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConsistencyCheckTaskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConsistencyCheckTaskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ConsistencyCheckTaskDetails.cs b/src/Migrate/generated/api/Models/Api202301/ConsistencyCheckTaskDetails.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/ConsistencyCheckTaskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/ConsistencyCheckTaskDetails.cs index 920f6d700c25..be72d5659fa0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ConsistencyCheckTaskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/ConsistencyCheckTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,26 +11,26 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// This class contains monitoring details of all the inconsistent Protected Entities in Vmm. /// public partial class ConsistencyCheckTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConsistencyCheckTaskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConsistencyCheckTaskDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConsistencyCheckTaskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConsistencyCheckTaskDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails(); /// The type of task details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetails[] _vMDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetails[] _vMDetail; /// The list of inconsistent Vm details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetails[] VMDetail { get => this._vMDetail; set => this._vMDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetails[] VMDetail { get => this._vMDetail; set => this._vMDetail = value; } /// Creates an new instance. public ConsistencyCheckTaskDetails() @@ -53,7 +53,7 @@ public ConsistencyCheckTaskDetails() /// This class contains monitoring details of all the inconsistent Protected Entities in Vmm. public partial interface IConsistencyCheckTaskDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails { /// The list of inconsistent Vm details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -61,16 +61,16 @@ public partial interface IConsistencyCheckTaskDetails : ReadOnly = false, Description = @"The list of inconsistent Vm details.", SerializedName = @"vmDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetails[] VMDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetails[] VMDetail { get; set; } } /// This class contains monitoring details of all the inconsistent Protected Entities in Vmm. internal partial interface IConsistencyCheckTaskDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal { /// The list of inconsistent Vm details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetails[] VMDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetails[] VMDetail { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ConsistencyCheckTaskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/ConsistencyCheckTaskDetails.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/ConsistencyCheckTaskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/ConsistencyCheckTaskDetails.json.cs index 17e8be214dea..a6efbf86cdf6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ConsistencyCheckTaskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ConsistencyCheckTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -67,19 +67,19 @@ internal ConsistencyCheckTaskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails(json); - {_vMDetail = If( json?.PropertyT("vmDetails"), out var __jsonVMDetails) ? If( __jsonVMDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInconsistentVMDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InconsistentVMDetails.FromJson(__u) )) ))() : null : VMDetail;} + __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails(json); + {_vMDetail = If( json?.PropertyT("vmDetails"), out var __jsonVMDetails) ? If( __jsonVMDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IInconsistentVMDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InconsistentVMDetails.FromJson(__u) )) ))() : null : VMDetail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConsistencyCheckTaskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConsistencyCheckTaskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConsistencyCheckTaskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConsistencyCheckTaskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConsistencyCheckTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConsistencyCheckTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ConsistencyCheckTaskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInput.PowerShell.cs new file mode 100644 index 000000000000..e59482794cb4 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInput.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Create network mappings input. + [System.ComponentModel.TypeConverter(typeof(CreateNetworkMappingInputTypeConverter))] + public partial class CreateNetworkMappingInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CreateNetworkMappingInput(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.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateNetworkMappingInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FabricSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).RecoveryFabricName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).RecoveryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType, 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 CreateNetworkMappingInput(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.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateNetworkMappingInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FabricSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).RecoveryFabricName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).RecoveryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CreateNetworkMappingInput(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.Migrate.Models.Api202301.ICreateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CreateNetworkMappingInput(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.Migrate.Models.Api202301.ICreateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Create network mappings input. + [System.ComponentModel.TypeConverter(typeof(CreateNetworkMappingInputTypeConverter))] + public partial interface ICreateNetworkMappingInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInput.TypeConverter.cs index b963120db49e..6333ab67a071 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICreateNetworkMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInput.cs new file mode 100644 index 000000000000..84fdbc4a8e24 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInput.cs @@ -0,0 +1,93 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Create network mappings input. + public partial class CreateNetworkMappingInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal + { + + /// The instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetailInstanceType = value ?? null; } + + /// Internal Acessors for FabricSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal.FabricSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetail = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateNetworkMappingInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties _property; + + /// Input properties for creating network mapping. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateNetworkMappingInputProperties()); set => this._property = value; } + + /// Recovery fabric Name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryFabricName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)Property).RecoveryFabricName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)Property).RecoveryFabricName = value ?? null; } + + /// Recovery network Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)Property).RecoveryNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)Property).RecoveryNetworkId = value ; } + + /// Creates an new instance. + public CreateNetworkMappingInput() + { + + } + } + /// Create network mappings input. + public partial interface ICreateNetworkMappingInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The instance type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string FabricSpecificDetailInstanceType { get; set; } + /// Recovery fabric Name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Recovery fabric Name.", + SerializedName = @"recoveryFabricName", + PossibleTypes = new [] { typeof(string) })] + string RecoveryFabricName { get; set; } + /// Recovery network Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Recovery network Id.", + SerializedName = @"recoveryNetworkId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryNetworkId { get; set; } + + } + /// Create network mappings input. + internal partial interface ICreateNetworkMappingInputInternal + + { + /// Fabric specific input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput FabricSpecificDetail { get; set; } + /// The instance type. + string FabricSpecificDetailInstanceType { get; set; } + /// Input properties for creating network mapping. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties Property { get; set; } + /// Recovery fabric Name. + string RecoveryFabricName { get; set; } + /// Recovery network Id. + string RecoveryNetworkId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInput.json.cs index 913cc26d7659..b5cc6a201d8e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CreateNetworkMappingInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateNetworkMappingInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateNetworkMappingInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CreateNetworkMappingInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInputProperties.PowerShell.cs new file mode 100644 index 000000000000..fc36a6503b61 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInputProperties.PowerShell.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Common input details for network mapping operation. + [System.ComponentModel.TypeConverter(typeof(CreateNetworkMappingInputPropertiesTypeConverter))] + public partial class CreateNetworkMappingInputProperties + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CreateNetworkMappingInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FabricSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType, 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 CreateNetworkMappingInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FabricSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CreateNetworkMappingInputProperties(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.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CreateNetworkMappingInputProperties(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.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Common input details for network mapping operation. + [System.ComponentModel.TypeConverter(typeof(CreateNetworkMappingInputPropertiesTypeConverter))] + public partial interface ICreateNetworkMappingInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInputProperties.TypeConverter.cs index be9dc655e549..8dad1d0fe0ef 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInputProperties.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInputProperties.cs index 0cd0c5a6c4bf..81b07ecafd90 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Common input details for network mapping operation. public partial class CreateNetworkMappingInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput _fabricSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput _fabricSpecificDetail; /// Fabric specific input properties. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput FabricSpecificDetail { get => (this._fabricSpecificDetail = this._fabricSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInput()); set => this._fabricSpecificDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput FabricSpecificDetail { get => (this._fabricSpecificDetail = this._fabricSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInput()); set => this._fabricSpecificDetail = value; } /// The instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)FabricSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)FabricSpecificDetail).InstanceType = value ?? null; } + public string FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)FabricSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)FabricSpecificDetail).InstanceType = value ?? null; } /// Internal Acessors for FabricSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputPropertiesInternal.FabricSpecificDetail { get => (this._fabricSpecificDetail = this._fabricSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInput()); set { {_fabricSpecificDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputPropertiesInternal.FabricSpecificDetail { get => (this._fabricSpecificDetail = this._fabricSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInput()); set { {_fabricSpecificDetail = value;} } } /// Backing field for property. private string _recoveryFabricName; @@ -82,7 +82,7 @@ internal partial interface ICreateNetworkMappingInputPropertiesInternal { /// Fabric specific input properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput FabricSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput FabricSpecificDetail { get; set; } /// The instance type. string FabricSpecificDetailInstanceType { get; set; } /// Recovery fabric Name. diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInputProperties.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInputProperties.json.cs index 2330e8888713..9624d3daf61a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateNetworkMappingInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateNetworkMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,20 +65,20 @@ internal CreateNetworkMappingInputProperties(Microsoft.Azure.PowerShell.Cmdlets. { return; } - {_fabricSpecificDetail = If( json?.PropertyT("fabricSpecificDetails"), out var __jsonFabricSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInput.FromJson(__jsonFabricSpecificDetails) : FabricSpecificDetail;} + {_fabricSpecificDetail = If( json?.PropertyT("fabricSpecificDetails"), out var __jsonFabricSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInput.FromJson(__jsonFabricSpecificDetails) : FabricSpecificDetail;} {_recoveryFabricName = If( json?.PropertyT("recoveryFabricName"), out var __jsonRecoveryFabricName) ? (string)__jsonRecoveryFabricName : (string)RecoveryFabricName;} {_recoveryNetworkId = If( json?.PropertyT("recoveryNetworkId"), out var __jsonRecoveryNetworkId) ? (string)__jsonRecoveryNetworkId : (string)RecoveryNetworkId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateNetworkMappingInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateNetworkMappingInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CreateNetworkMappingInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreatePolicyInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInput.PowerShell.cs new file mode 100644 index 000000000000..32dec9aaeaeb --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInput.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Protection Policy input. + [System.ComponentModel.TypeConverter(typeof(CreatePolicyInputTypeConverter))] + public partial class CreatePolicyInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CreatePolicyInput(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.Migrate.Models.Api202301.ICreatePolicyInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreatePolicyInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInputTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CreatePolicyInput(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.Migrate.Models.Api202301.ICreatePolicyInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreatePolicyInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInputTypeConverter.ConvertFrom); + } + 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.Migrate.Models.Api202301.ICreatePolicyInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CreatePolicyInput(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.Migrate.Models.Api202301.ICreatePolicyInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CreatePolicyInput(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.Migrate.Models.Api202301.ICreatePolicyInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Protection Policy input. + [System.ComponentModel.TypeConverter(typeof(CreatePolicyInputTypeConverter))] + public partial interface ICreatePolicyInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/CreatePolicyInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CreatePolicyInput.TypeConverter.cs index 360e7896199f..e62d88c7f8c6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICreatePolicyInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreatePolicyInput.cs b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInput.cs new file mode 100644 index 000000000000..65e5bf6aa3d1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Protection Policy input. + public partial class CreatePolicyInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreatePolicyInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties _property; + + /// Policy creation properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreatePolicyInputProperties()); set => this._property = value; } + + /// The ReplicationProviderSettings. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput ProviderSpecificInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputPropertiesInternal)Property).ProviderSpecificInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputPropertiesInternal)Property).ProviderSpecificInput = value ?? null /* model class */; } + + /// Creates an new instance. + public CreatePolicyInput() + { + + } + } + /// Protection Policy input. + public partial interface ICreatePolicyInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The ReplicationProviderSettings. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The ReplicationProviderSettings.", + SerializedName = @"providerSpecificInput", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput ProviderSpecificInput { get; set; } + + } + /// Protection Policy input. + internal partial interface ICreatePolicyInputInternal + + { + /// Policy creation properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties Property { get; set; } + /// The ReplicationProviderSettings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput ProviderSpecificInput { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInput.json.cs b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/CreatePolicyInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/CreatePolicyInput.json.cs index 760ee0a73f6a..4e39fb0b2867 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CreatePolicyInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreatePolicyInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreatePolicyInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CreatePolicyInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInputProperties.PowerShell.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/CreatePolicyInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/CreatePolicyInputProperties.PowerShell.cs index ea6f85980142..76bf9eb08ec8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CreatePolicyInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,13 +70,13 @@ internal CreatePolicyInputProperties(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("ProviderSpecificInput")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInputTypeConverter.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. @@ -91,35 +91,33 @@ internal CreatePolicyInputProperties(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("ProviderSpecificInput")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInputTypeConverter.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.Migrate.Models.Api20220501.ICreatePolicyInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CreatePolicyInputProperties(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.Migrate.Models.Api20220501.ICreatePolicyInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CreatePolicyInputProperties(content); } @@ -129,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICre /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CreatePolicyInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CreatePolicyInputProperties.TypeConverter.cs index 3d64ac8d6264..bbbe86a31312 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICreatePolicyInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInputProperties.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/CreatePolicyInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/CreatePolicyInputProperties.cs index f932f63e4ed9..9c03d644e135 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInputProperties.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Policy creation properties. public partial class CreatePolicyInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput _providerSpecificInput; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput _providerSpecificInput; /// The ReplicationProviderSettings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput ProviderSpecificInput { get => (this._providerSpecificInput = this._providerSpecificInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput()); set => this._providerSpecificInput = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput ProviderSpecificInput { get => (this._providerSpecificInput = this._providerSpecificInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput()); set => this._providerSpecificInput = value; } /// Creates an new instance. public CreatePolicyInputProperties() @@ -36,8 +36,8 @@ public partial interface ICreatePolicyInputProperties : ReadOnly = false, Description = @"The ReplicationProviderSettings.", SerializedName = @"providerSpecificInput", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput ProviderSpecificInput { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput ProviderSpecificInput { get; set; } } /// Policy creation properties. @@ -45,7 +45,7 @@ internal partial interface ICreatePolicyInputPropertiesInternal { /// The ReplicationProviderSettings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput ProviderSpecificInput { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput ProviderSpecificInput { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/CreatePolicyInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/CreatePolicyInputProperties.json.cs index c70f9ebd6707..907e10c41b67 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreatePolicyInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreatePolicyInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CreatePolicyInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - {_providerSpecificInput = If( json?.PropertyT("providerSpecificInput"), out var __jsonProviderSpecificInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput.FromJson(__jsonProviderSpecificInput) : ProviderSpecificInput;} + {_providerSpecificInput = If( json?.PropertyT("providerSpecificInput"), out var __jsonProviderSpecificInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput.FromJson(__jsonProviderSpecificInput) : ProviderSpecificInput;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CreatePolicyInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInput.PowerShell.cs new file mode 100644 index 000000000000..f873c1bceb6e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInput.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Create protection container input. + [System.ComponentModel.TypeConverter(typeof(CreateProtectionContainerInputTypeConverter))] + public partial class CreateProtectionContainerInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CreateProtectionContainerInput(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.Migrate.Models.Api202301.ICreateProtectionContainerInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionContainerInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerCreationInputTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CreateProtectionContainerInput(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.Migrate.Models.Api202301.ICreateProtectionContainerInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionContainerInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerCreationInputTypeConverter.ConvertFrom)); + } + 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.Migrate.Models.Api202301.ICreateProtectionContainerInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CreateProtectionContainerInput(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.Migrate.Models.Api202301.ICreateProtectionContainerInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CreateProtectionContainerInput(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.Migrate.Models.Api202301.ICreateProtectionContainerInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Create protection container input. + [System.ComponentModel.TypeConverter(typeof(CreateProtectionContainerInputTypeConverter))] + public partial interface ICreateProtectionContainerInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInput.TypeConverter.cs index 25882f93a09b..921f1601436f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICreateProtectionContainerInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInput.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInput.cs new file mode 100644 index 000000000000..0498140055ce --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Create protection container input. + public partial class CreateProtectionContainerInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionContainerInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties _property; + + /// Create protection container input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionContainerInputProperties()); set => this._property = value; } + + /// Provider specific inputs for container creation. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput[] ProviderSpecificInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputPropertiesInternal)Property).ProviderSpecificInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputPropertiesInternal)Property).ProviderSpecificInput = value ?? null /* arrayOf */; } + + /// Creates an new instance. + public CreateProtectionContainerInput() + { + + } + } + /// Create protection container input. + public partial interface ICreateProtectionContainerInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Provider specific inputs for container creation. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Provider specific inputs for container creation.", + SerializedName = @"providerSpecificInput", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput[] ProviderSpecificInput { get; set; } + + } + /// Create protection container input. + internal partial interface ICreateProtectionContainerInputInternal + + { + /// Create protection container input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties Property { get; set; } + /// Provider specific inputs for container creation. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput[] ProviderSpecificInput { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInput.json.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInput.json.cs index 9184ab9c364e..a77676cffe77 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CreateProtectionContainerInput(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionContainerInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionContainerInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CreateProtectionContainerInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInputProperties.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInputProperties.PowerShell.cs index 3466b09610c8..30c07e72f974 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CreateProtectionContainerInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,13 +70,13 @@ internal CreateProtectionContainerInputProperties(global::System.Collections.IDi // actually deserialize if (content.Contains("ProviderSpecificInput")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputPropertiesInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerCreationInputTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputPropertiesInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerCreationInputTypeConverter.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. @@ -91,35 +91,35 @@ internal CreateProtectionContainerInputProperties(global::System.Management.Auto // actually deserialize if (content.Contains("ProviderSpecificInput")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputPropertiesInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerCreationInputTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputPropertiesInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerCreationInputTypeConverter.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.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CreateProtectionContainerInputProperties(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.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CreateProtectionContainerInputProperties(content); } @@ -132,7 +132,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICre /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInputProperties.TypeConverter.cs index 4bd91dbdc715..648511c9f125 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInputProperties.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInputProperties.cs index ceeab0999278..1c2bb0a3eed0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInputProperties.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Create protection container input properties. public partial class CreateProtectionContainerInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput[] _providerSpecificInput; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput[] _providerSpecificInput; /// Provider specific inputs for container creation. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput[] ProviderSpecificInput { get => this._providerSpecificInput; set => this._providerSpecificInput = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput[] ProviderSpecificInput { get => this._providerSpecificInput; set => this._providerSpecificInput = value; } /// /// Creates an new instance. @@ -38,8 +38,8 @@ public partial interface ICreateProtectionContainerInputProperties : ReadOnly = false, Description = @"Provider specific inputs for container creation.", SerializedName = @"providerSpecificInput", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput[] ProviderSpecificInput { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput[] ProviderSpecificInput { get; set; } } /// Create protection container input properties. @@ -47,7 +47,7 @@ internal partial interface ICreateProtectionContainerInputPropertiesInternal { /// Provider specific inputs for container creation. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput[] ProviderSpecificInput { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput[] ProviderSpecificInput { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInputProperties.json.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInputProperties.json.cs index ba75ee126660..d7a474fc574b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CreateProtectionContainerInputProperties(Microsoft.Azure.PowerShell.Cmd { return; } - {_providerSpecificInput = If( json?.PropertyT("providerSpecificInput"), out var __jsonProviderSpecificInput) ? If( __jsonProviderSpecificInput as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerCreationInput.FromJson(__u) )) ))() : null : ProviderSpecificInput;} + {_providerSpecificInput = If( json?.PropertyT("providerSpecificInput"), out var __jsonProviderSpecificInput) ? If( __jsonProviderSpecificInput as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerCreationInput.FromJson(__u) )) ))() : null : ProviderSpecificInput;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CreateProtectionContainerInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInput.PowerShell.cs new file mode 100644 index 000000000000..a29c0894708b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInput.PowerShell.cs @@ -0,0 +1,173 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Configure pairing input. + [System.ComponentModel.TypeConverter(typeof(CreateProtectionContainerMappingInputTypeConverter))] + public partial class CreateProtectionContainerMappingInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CreateProtectionContainerMappingInput(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.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionContainerMappingInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("TargetProtectionContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerMappingInputTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CreateProtectionContainerMappingInput(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.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionContainerMappingInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("TargetProtectionContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerMappingInputTypeConverter.ConvertFrom); + } + 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.Migrate.Models.Api202301.ICreateProtectionContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CreateProtectionContainerMappingInput(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.Migrate.Models.Api202301.ICreateProtectionContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CreateProtectionContainerMappingInput(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.Migrate.Models.Api202301.ICreateProtectionContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Configure pairing input. + [System.ComponentModel.TypeConverter(typeof(CreateProtectionContainerMappingInputTypeConverter))] + public partial interface ICreateProtectionContainerMappingInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInput.TypeConverter.cs index 2bce8df7f1b7..c53cdbe4ef7f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInput.cs new file mode 100644 index 000000000000..87e62f7ae03c --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInput.cs @@ -0,0 +1,88 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Configure pairing input. + public partial class CreateProtectionContainerMappingInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionContainerMappingInputProperties()); set { {_property = value;} } } + + /// Applicable policy. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)Property).PolicyId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties _property; + + /// Configure protection input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionContainerMappingInputProperties()); set => this._property = value; } + + /// Provider specific input for pairing. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput ProviderSpecificInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInput = value ?? null /* model class */; } + + /// The target unique protection container name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetProtectionContainerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)Property).TargetProtectionContainerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)Property).TargetProtectionContainerId = value ?? null; } + + /// Creates an new instance. + public CreateProtectionContainerMappingInput() + { + + } + } + /// Configure pairing input. + public partial interface ICreateProtectionContainerMappingInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Applicable policy. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Applicable policy.", + SerializedName = @"policyId", + PossibleTypes = new [] { typeof(string) })] + string PolicyId { get; set; } + /// Provider specific input for pairing. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Provider specific input for pairing.", + SerializedName = @"providerSpecificInput", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput ProviderSpecificInput { get; set; } + /// The target unique protection container name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target unique protection container name.", + SerializedName = @"targetProtectionContainerId", + PossibleTypes = new [] { typeof(string) })] + string TargetProtectionContainerId { get; set; } + + } + /// Configure pairing input. + internal partial interface ICreateProtectionContainerMappingInputInternal + + { + /// Applicable policy. + string PolicyId { get; set; } + /// Configure protection input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties Property { get; set; } + /// Provider specific input for pairing. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput ProviderSpecificInput { get; set; } + /// The target unique protection container name. + string TargetProtectionContainerId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInput.json.cs index 76e74dfce52a..665e46497611 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CreateProtectionContainerMappingInput(Microsoft.Azure.PowerShell.Cmdlet { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionContainerMappingInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionContainerMappingInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CreateProtectionContainerMappingInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInputProperties.PowerShell.cs new file mode 100644 index 000000000000..a1863f87cc9e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInputProperties.PowerShell.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Configure pairing input properties. + [System.ComponentModel.TypeConverter(typeof(CreateProtectionContainerMappingInputPropertiesTypeConverter))] + public partial class CreateProtectionContainerMappingInputProperties + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CreateProtectionContainerMappingInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetProtectionContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerMappingInputTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CreateProtectionContainerMappingInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetProtectionContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerMappingInputTypeConverter.ConvertFrom); + } + 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.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CreateProtectionContainerMappingInputProperties(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.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CreateProtectionContainerMappingInputProperties(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.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Configure pairing input properties. + [System.ComponentModel.TypeConverter(typeof(CreateProtectionContainerMappingInputPropertiesTypeConverter))] + public partial interface ICreateProtectionContainerMappingInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInputProperties.TypeConverter.cs index 715e290c6e07..469f2a187f87 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInputProperties.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInputProperties.cs index 7b1e1e15b8e1..9df04a24d019 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Configure pairing input properties. public partial class CreateProtectionContainerMappingInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputPropertiesInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class CreateProtectionContainerMappingInputProperties : public string PolicyId { get => this._policyId; set => this._policyId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput _providerSpecificInput; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput _providerSpecificInput; /// Provider specific input for pairing. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput ProviderSpecificInput { get => (this._providerSpecificInput = this._providerSpecificInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerMappingInput()); set => this._providerSpecificInput = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput ProviderSpecificInput { get => (this._providerSpecificInput = this._providerSpecificInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerMappingInput()); set => this._providerSpecificInput = value; } /// Backing field for property. private string _targetProtectionContainerId; @@ -60,8 +60,8 @@ public partial interface ICreateProtectionContainerMappingInputProperties : ReadOnly = false, Description = @"Provider specific input for pairing.", SerializedName = @"providerSpecificInput", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput ProviderSpecificInput { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput ProviderSpecificInput { get; set; } /// The target unique protection container name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -79,7 +79,7 @@ internal partial interface ICreateProtectionContainerMappingInputPropertiesInter /// Applicable policy. string PolicyId { get; set; } /// Provider specific input for pairing. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput ProviderSpecificInput { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput ProviderSpecificInput { get; set; } /// The target unique protection container name. string TargetProtectionContainerId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInputProperties.json.cs index ec7891e19291..2eab8f814739 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionContainerMappingInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionContainerMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -68,18 +68,18 @@ internal CreateProtectionContainerMappingInputProperties(Microsoft.Azure.PowerSh } {_targetProtectionContainerId = If( json?.PropertyT("targetProtectionContainerId"), out var __jsonTargetProtectionContainerId) ? (string)__jsonTargetProtectionContainerId : (string)TargetProtectionContainerId;} {_policyId = If( json?.PropertyT("policyId"), out var __jsonPolicyId) ? (string)__jsonPolicyId : (string)PolicyId;} - {_providerSpecificInput = If( json?.PropertyT("providerSpecificInput"), out var __jsonProviderSpecificInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerMappingInput.FromJson(__jsonProviderSpecificInput) : ProviderSpecificInput;} + {_providerSpecificInput = If( json?.PropertyT("providerSpecificInput"), out var __jsonProviderSpecificInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerMappingInput.FromJson(__jsonProviderSpecificInput) : ProviderSpecificInput;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CreateProtectionContainerMappingInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentInput.PowerShell.cs new file mode 100644 index 000000000000..655530be58a0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentInput.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Create protection intent input. + [System.ComponentModel.TypeConverter(typeof(CreateProtectionIntentInputTypeConverter))] + public partial class CreateProtectionIntentInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CreateProtectionIntentInput(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.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetailInstanceType, 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 CreateProtectionIntentInput(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.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CreateProtectionIntentInput(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.Migrate.Models.Api202301.ICreateProtectionIntentInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CreateProtectionIntentInput(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.Migrate.Models.Api202301.ICreateProtectionIntentInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Create protection intent input. + [System.ComponentModel.TypeConverter(typeof(CreateProtectionIntentInputTypeConverter))] + public partial interface ICreateProtectionIntentInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentInput.TypeConverter.cs index 58296482ea7d..e9c41cb558bf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICreateProtectionIntentInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentInput.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentInput.cs new file mode 100644 index 000000000000..f41f4e922051 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentInput.cs @@ -0,0 +1,67 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Create protection intent input. + public partial class CreateProtectionIntentInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProperties _property; + + /// Create protection intent input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentProperties()); set => this._property = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// Creates an new instance. + public CreateProtectionIntentInput() + { + + } + } + /// Create protection intent input. + public partial interface ICreateProtectionIntentInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Create protection intent input. + internal partial interface ICreateProtectionIntentInputInternal + + { + /// Create protection intent input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProperties Property { get; set; } + /// + /// The ReplicationProviderInput. For A2A provider, it will be A2ACreateProtectionIntentInput object. + /// + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentInput.json.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentInput.json.cs index 8902b0a6eab5..7d24ea7ba77f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CreateProtectionIntentInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CreateProtectionIntentInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProperties.PowerShell.cs new file mode 100644 index 000000000000..2834fa0f23d7 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProperties.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Create protection intent input properties. + [System.ComponentModel.TypeConverter(typeof(CreateProtectionIntentPropertiesTypeConverter))] + public partial class CreateProtectionIntentProperties + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CreateProtectionIntentProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 CreateProtectionIntentProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CreateProtectionIntentProperties(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.Migrate.Models.Api202301.ICreateProtectionIntentProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CreateProtectionIntentProperties(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.Migrate.Models.Api202301.ICreateProtectionIntentProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Create protection intent input properties. + [System.ComponentModel.TypeConverter(typeof(CreateProtectionIntentPropertiesTypeConverter))] + public partial interface ICreateProtectionIntentProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProperties.TypeConverter.cs index 562471831e14..02626f92d4b4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICreateProtectionIntentProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProperties.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProperties.cs new file mode 100644 index 000000000000..90559b790c4f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProperties.cs @@ -0,0 +1,64 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Create protection intent input properties. + public partial class CreateProtectionIntentProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentPropertiesInternal + { + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentProviderSpecificDetails()); set { {_providerSpecificDetail = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails _providerSpecificDetail; + + /// + /// The ReplicationProviderInput. For A2A provider, it will be A2ACreateProtectionIntentInput object. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentProviderSpecificDetails()); set => this._providerSpecificDetail = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetailsInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetailsInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + + /// Creates an new instance. + public CreateProtectionIntentProperties() + { + + } + } + /// Create protection intent input properties. + public partial interface ICreateProtectionIntentProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Create protection intent input properties. + internal partial interface ICreateProtectionIntentPropertiesInternal + + { + /// + /// The ReplicationProviderInput. For A2A provider, it will be A2ACreateProtectionIntentInput object. + /// + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProperties.json.cs index 3d5606ed3360..3d229d04f10a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CreateProtectionIntentProperties(Microsoft.Azure.PowerShell.Cmdlets.Mig { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionIntentProviderSpecificDetails.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionIntentProviderSpecificDetails.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CreateProtectionIntentProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProviderSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProviderSpecificDetails.PowerShell.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProviderSpecificDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProviderSpecificDetails.PowerShell.cs index 3c75db707704..43c9ccf5fbcd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProviderSpecificDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CreateProtectionIntentProviderSpecificDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,13 +70,13 @@ internal CreateProtectionIntentProviderSpecificDetails(global::System.Collection // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType, 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. @@ -91,35 +91,35 @@ internal CreateProtectionIntentProviderSpecificDetails(global::System.Management // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CreateProtectionIntentProviderSpecificDetails(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.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CreateProtectionIntentProviderSpecificDetails(content); } @@ -132,7 +132,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICre /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProviderSpecificDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProviderSpecificDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProviderSpecificDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProviderSpecificDetails.TypeConverter.cs index b9e758a28ff5..d549cb8a4042 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProviderSpecificDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProviderSpecificDetails.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProviderSpecificDetails.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProviderSpecificDetails.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProviderSpecificDetails.cs index b67bc414e2a8..4fb9eefbf210 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProviderSpecificDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Create protection intent provider specific input. public partial class CreateProtectionIntentProviderSpecificDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProviderSpecificDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProviderSpecificDetails.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProviderSpecificDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProviderSpecificDetails.json.cs index 29aeb43f299e..29f3c801a61f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateProtectionIntentProviderSpecificDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateProtectionIntentProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -71,16 +71,15 @@ internal CreateProtectionIntentProviderSpecificDetails(Microsoft.Azure.PowerShel } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails - /// 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.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails 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.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionIntentProviderSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionIntentProviderSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInput.PowerShell.cs new file mode 100644 index 000000000000..b6b891da5739 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInput.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Create recovery plan input class. + [System.ComponentModel.TypeConverter(typeof(CreateRecoveryPlanInputTypeConverter))] + public partial class CreateRecoveryPlanInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CreateRecoveryPlanInput(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.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateRecoveryPlanInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).PrimaryFabricId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).RecoveryFabricId, global::System.Convert.ToString); + } + if (content.Contains("FailoverDeploymentModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).FailoverDeploymentModel = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel?) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).FailoverDeploymentModel, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel.CreateFrom); + } + if (content.Contains("Group")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTypeConverter.ConvertFrom)); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificInputTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CreateRecoveryPlanInput(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.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateRecoveryPlanInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).PrimaryFabricId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).RecoveryFabricId, global::System.Convert.ToString); + } + if (content.Contains("FailoverDeploymentModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).FailoverDeploymentModel = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel?) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).FailoverDeploymentModel, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel.CreateFrom); + } + if (content.Contains("Group")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTypeConverter.ConvertFrom)); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificInputTypeConverter.ConvertFrom)); + } + 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.Migrate.Models.Api202301.ICreateRecoveryPlanInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CreateRecoveryPlanInput(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.Migrate.Models.Api202301.ICreateRecoveryPlanInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CreateRecoveryPlanInput(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.Migrate.Models.Api202301.ICreateRecoveryPlanInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Create recovery plan input class. + [System.ComponentModel.TypeConverter(typeof(CreateRecoveryPlanInputTypeConverter))] + public partial interface ICreateRecoveryPlanInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInput.TypeConverter.cs index b82065678bea..24ffa05e92b7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICreateRecoveryPlanInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInput.cs b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInput.cs new file mode 100644 index 000000000000..f73cb52c9d1d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInput.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Create recovery plan input class. + public partial class CreateRecoveryPlanInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal + { + + /// The failover deployment model. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel? FailoverDeploymentModel { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)Property).FailoverDeploymentModel; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)Property).FailoverDeploymentModel = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel)""); } + + /// The recovery plan groups. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)Property).Group; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)Property).Group = value ; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateRecoveryPlanInputProperties()); set { {_property = value;} } } + + /// The primary fabric Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)Property).PrimaryFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)Property).PrimaryFabricId = value ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties _property; + + /// Recovery plan creation properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateRecoveryPlanInputProperties()); set => this._property = value; } + + /// The provider specific input. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput[] ProviderSpecificInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)Property).ProviderSpecificInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)Property).ProviderSpecificInput = value ?? null /* arrayOf */; } + + /// The recovery fabric Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)Property).RecoveryFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)Property).RecoveryFabricId = value ; } + + /// Creates an new instance. + public CreateRecoveryPlanInput() + { + + } + } + /// Create recovery plan input class. + public partial interface ICreateRecoveryPlanInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The failover deployment model. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The failover deployment model.", + SerializedName = @"failoverDeploymentModel", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel? FailoverDeploymentModel { get; set; } + /// The recovery plan groups. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The recovery plan groups.", + SerializedName = @"groups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get; set; } + /// The primary fabric Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The primary fabric Id.", + SerializedName = @"primaryFabricId", + PossibleTypes = new [] { typeof(string) })] + string PrimaryFabricId { get; set; } + /// The provider specific input. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The provider specific input.", + SerializedName = @"providerSpecificInput", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput[] ProviderSpecificInput { get; set; } + /// The recovery fabric Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The recovery fabric Id.", + SerializedName = @"recoveryFabricId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryFabricId { get; set; } + + } + /// Create recovery plan input class. + internal partial interface ICreateRecoveryPlanInputInternal + + { + /// The failover deployment model. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel? FailoverDeploymentModel { get; set; } + /// The recovery plan groups. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get; set; } + /// The primary fabric Id. + string PrimaryFabricId { get; set; } + /// Recovery plan creation properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties Property { get; set; } + /// The provider specific input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput[] ProviderSpecificInput { get; set; } + /// The recovery fabric Id. + string RecoveryFabricId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInput.json.cs b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInput.json.cs index bd5c3aa0be6e..b2cd3c7b55be 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CreateRecoveryPlanInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateRecoveryPlanInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateRecoveryPlanInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CreateRecoveryPlanInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInputProperties.PowerShell.cs new file mode 100644 index 000000000000..25489162aba3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInputProperties.PowerShell.cs @@ -0,0 +1,180 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan creation properties. + [System.ComponentModel.TypeConverter(typeof(CreateRecoveryPlanInputPropertiesTypeConverter))] + public partial class CreateRecoveryPlanInputProperties + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CreateRecoveryPlanInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).PrimaryFabricId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).RecoveryFabricId, global::System.Convert.ToString); + } + if (content.Contains("FailoverDeploymentModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).FailoverDeploymentModel = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel?) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).FailoverDeploymentModel, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel.CreateFrom); + } + if (content.Contains("Group")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTypeConverter.ConvertFrom)); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificInputTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CreateRecoveryPlanInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).PrimaryFabricId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).RecoveryFabricId, global::System.Convert.ToString); + } + if (content.Contains("FailoverDeploymentModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).FailoverDeploymentModel = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel?) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).FailoverDeploymentModel, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel.CreateFrom); + } + if (content.Contains("Group")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTypeConverter.ConvertFrom)); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput[]) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal)this).ProviderSpecificInput, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificInputTypeConverter.ConvertFrom)); + } + 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.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CreateRecoveryPlanInputProperties(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.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CreateRecoveryPlanInputProperties(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.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan creation properties. + [System.ComponentModel.TypeConverter(typeof(CreateRecoveryPlanInputPropertiesTypeConverter))] + public partial interface ICreateRecoveryPlanInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInputProperties.TypeConverter.cs index 55d2892a5a63..599dd3e09ff7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInputProperties.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInputProperties.cs index 6a7dd311d233..ff0308b3f574 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan creation properties. public partial class CreateRecoveryPlanInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputPropertiesInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class CreateRecoveryPlanInputProperties : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel? FailoverDeploymentModel { get => this._failoverDeploymentModel; set => this._failoverDeploymentModel = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] _group; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] _group; /// The recovery plan groups. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get => this._group; set => this._group = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get => this._group; set => this._group = value; } /// Backing field for property. private string _primaryFabricId; @@ -35,11 +35,11 @@ public partial class CreateRecoveryPlanInputProperties : public string PrimaryFabricId { get => this._primaryFabricId; set => this._primaryFabricId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput[] _providerSpecificInput; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput[] _providerSpecificInput; /// The provider specific input. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput[] ProviderSpecificInput { get => this._providerSpecificInput; set => this._providerSpecificInput = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput[] ProviderSpecificInput { get => this._providerSpecificInput; set => this._providerSpecificInput = value; } /// Backing field for property. private string _recoveryFabricId; @@ -72,8 +72,8 @@ public partial interface ICreateRecoveryPlanInputProperties : ReadOnly = false, Description = @"The recovery plan groups.", SerializedName = @"groups", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get; set; } /// The primary fabric Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, @@ -88,8 +88,8 @@ public partial interface ICreateRecoveryPlanInputProperties : ReadOnly = false, Description = @"The provider specific input.", SerializedName = @"providerSpecificInput", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput[] ProviderSpecificInput { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput[] ProviderSpecificInput { get; set; } /// The recovery fabric Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, @@ -107,11 +107,11 @@ internal partial interface ICreateRecoveryPlanInputPropertiesInternal /// The failover deployment model. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.FailoverDeploymentModel? FailoverDeploymentModel { get; set; } /// The recovery plan groups. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get; set; } /// The primary fabric Id. string PrimaryFabricId { get; set; } /// The provider specific input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput[] ProviderSpecificInput { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput[] ProviderSpecificInput { get; set; } /// The recovery fabric Id. string RecoveryFabricId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInputProperties.json.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInputProperties.json.cs index 8249b210123f..ecd7950ed46d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CreateRecoveryPlanInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CreateRecoveryPlanInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -68,19 +68,19 @@ internal CreateRecoveryPlanInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Mi {_primaryFabricId = If( json?.PropertyT("primaryFabricId"), out var __jsonPrimaryFabricId) ? (string)__jsonPrimaryFabricId : (string)PrimaryFabricId;} {_recoveryFabricId = If( json?.PropertyT("recoveryFabricId"), out var __jsonRecoveryFabricId) ? (string)__jsonRecoveryFabricId : (string)RecoveryFabricId;} {_failoverDeploymentModel = If( json?.PropertyT("failoverDeploymentModel"), out var __jsonFailoverDeploymentModel) ? (string)__jsonFailoverDeploymentModel : (string)FailoverDeploymentModel;} - {_group = If( json?.PropertyT("groups"), out var __jsonGroups) ? If( __jsonGroups as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanGroup) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroup.FromJson(__u) )) ))() : null : Group;} - {_providerSpecificInput = If( json?.PropertyT("providerSpecificInput"), out var __jsonProviderSpecificInput) ? If( __jsonProviderSpecificInput as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificInput.FromJson(__p) )) ))() : null : ProviderSpecificInput;} + {_group = If( json?.PropertyT("groups"), out var __jsonGroups) ? If( __jsonGroups as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IRecoveryPlanGroup) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroup.FromJson(__u) )) ))() : null : Group;} + {_providerSpecificInput = If( json?.PropertyT("providerSpecificInput"), out var __jsonProviderSpecificInput) ? If( __jsonProviderSpecificInput as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificInput.FromJson(__p) )) ))() : null : ProviderSpecificInput;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateRecoveryPlanInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateRecoveryPlanInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CreateRecoveryPlanInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/CriticalJobHistoryDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CriticalJobHistoryDetails.PowerShell.cs new file mode 100644 index 000000000000..5584a51be290 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CriticalJobHistoryDetails.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Critical past job details of the migration item. + [System.ComponentModel.TypeConverter(typeof(CriticalJobHistoryDetailsTypeConverter))] + public partial class CriticalJobHistoryDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CriticalJobHistoryDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("JobName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).JobName, global::System.Convert.ToString); + } + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("JobStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).JobStatus = (string) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).JobStatus, 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 CriticalJobHistoryDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("JobName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).JobName, global::System.Convert.ToString); + } + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("JobStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).JobStatus = (string) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal)this).JobStatus, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CriticalJobHistoryDetails(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.Migrate.Models.Api202301.ICriticalJobHistoryDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CriticalJobHistoryDetails(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.Migrate.Models.Api202301.ICriticalJobHistoryDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Critical past job details of the migration item. + [System.ComponentModel.TypeConverter(typeof(CriticalJobHistoryDetailsTypeConverter))] + public partial interface ICriticalJobHistoryDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CriticalJobHistoryDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CriticalJobHistoryDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CriticalJobHistoryDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CriticalJobHistoryDetails.TypeConverter.cs index 045b1efd99ca..e50ee5054c81 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CriticalJobHistoryDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CriticalJobHistoryDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICriticalJobHistoryDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/CriticalJobHistoryDetails.cs b/src/Migrate/generated/api/Models/Api202301/CriticalJobHistoryDetails.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/CriticalJobHistoryDetails.cs rename to src/Migrate/generated/api/Models/Api202301/CriticalJobHistoryDetails.cs index 8ede8f006c09..4e8407303d42 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CriticalJobHistoryDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/CriticalJobHistoryDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Critical past job details of the migration item. public partial class CriticalJobHistoryDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal { /// Backing field for property. @@ -35,16 +35,16 @@ public partial class CriticalJobHistoryDetails : public string JobStatus { get => this._jobStatus; } /// Internal Acessors for JobId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal.JobId { get => this._jobId; set { {_jobId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal.JobId { get => this._jobId; set { {_jobId = value;} } } /// Internal Acessors for JobName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal.JobName { get => this._jobName; set { {_jobName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal.JobName { get => this._jobName; set { {_jobName = value;} } } /// Internal Acessors for JobStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal.JobStatus { get => this._jobStatus; set { {_jobStatus = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal.JobStatus { get => this._jobStatus; set { {_jobStatus = value;} } } /// Internal Acessors for StartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetailsInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetailsInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } /// Backing field for property. private global::System.DateTime? _startTime; diff --git a/src/Migrate/generated/api/Models/Api20220501/CriticalJobHistoryDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/CriticalJobHistoryDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CriticalJobHistoryDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/CriticalJobHistoryDetails.json.cs index 1ebfea9aa2d2..9055299f4491 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CriticalJobHistoryDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CriticalJobHistoryDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -73,13 +73,13 @@ internal CriticalJobHistoryDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CriticalJobHistoryDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/CurrentJobDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CurrentJobDetails.PowerShell.cs new file mode 100644 index 000000000000..a3e4ad0b44a2 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CurrentJobDetails.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Current job details of the migration item. + [System.ComponentModel.TypeConverter(typeof(CurrentJobDetailsTypeConverter))] + public partial class CurrentJobDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CurrentJobDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("JobName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)this).JobName, global::System.Convert.ToString); + } + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CurrentJobDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("JobName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)this).JobName, global::System.Convert.ToString); + } + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.Migrate.Models.Api202301.ICurrentJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CurrentJobDetails(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.Migrate.Models.Api202301.ICurrentJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CurrentJobDetails(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.Migrate.Models.Api202301.ICurrentJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Current job details of the migration item. + [System.ComponentModel.TypeConverter(typeof(CurrentJobDetailsTypeConverter))] + public partial interface ICurrentJobDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CurrentJobDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CurrentJobDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/CurrentJobDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CurrentJobDetails.TypeConverter.cs index 6a2370d297f8..a76ce0aeebe0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CurrentJobDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CurrentJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICurrentJobDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/CurrentJobDetails.cs b/src/Migrate/generated/api/Models/Api202301/CurrentJobDetails.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/CurrentJobDetails.cs rename to src/Migrate/generated/api/Models/Api202301/CurrentJobDetails.cs index 65065b0af79d..11aea39627fa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CurrentJobDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/CurrentJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Current job details of the migration item. public partial class CurrentJobDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal { /// Backing field for property. @@ -28,13 +28,13 @@ public partial class CurrentJobDetails : public string JobName { get => this._jobName; } /// Internal Acessors for JobId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal.JobId { get => this._jobId; set { {_jobId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal.JobId { get => this._jobId; set { {_jobId = value;} } } /// Internal Acessors for JobName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal.JobName { get => this._jobName; set { {_jobName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal.JobName { get => this._jobName; set { {_jobName = value;} } } /// Internal Acessors for StartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } /// Backing field for property. private global::System.DateTime? _startTime; diff --git a/src/Migrate/generated/api/Models/Api20220501/CurrentJobDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/CurrentJobDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CurrentJobDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/CurrentJobDetails.json.cs index 1b3c686d3942..e45cc52b1822 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CurrentJobDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CurrentJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -72,13 +72,13 @@ internal CurrentJobDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CurrentJobDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/CurrentScenarioDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/CurrentScenarioDetails.PowerShell.cs new file mode 100644 index 000000000000..ffcfd96cb0fb --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/CurrentScenarioDetails.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Current scenario details of the protected entity. + [System.ComponentModel.TypeConverter(typeof(CurrentScenarioDetailsTypeConverter))] + public partial class CurrentScenarioDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CurrentScenarioDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)this).ScenarioName = (string) content.GetValueForProperty("ScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)this).ScenarioName, global::System.Convert.ToString); + } + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CurrentScenarioDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)this).ScenarioName = (string) content.GetValueForProperty("ScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)this).ScenarioName, global::System.Convert.ToString); + } + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.Migrate.Models.Api202301.ICurrentScenarioDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CurrentScenarioDetails(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.Migrate.Models.Api202301.ICurrentScenarioDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CurrentScenarioDetails(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.Migrate.Models.Api202301.ICurrentScenarioDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Current scenario details of the protected entity. + [System.ComponentModel.TypeConverter(typeof(CurrentScenarioDetailsTypeConverter))] + public partial interface ICurrentScenarioDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/CurrentScenarioDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/CurrentScenarioDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/CurrentScenarioDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/CurrentScenarioDetails.TypeConverter.cs index 6c152186e478..c90b3702c037 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CurrentScenarioDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/CurrentScenarioDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ICurrentScenarioDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/CurrentScenarioDetails.cs b/src/Migrate/generated/api/Models/Api202301/CurrentScenarioDetails.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/CurrentScenarioDetails.cs rename to src/Migrate/generated/api/Models/Api202301/CurrentScenarioDetails.cs index ad3b2d8ef01b..6993e61052a1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CurrentScenarioDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/CurrentScenarioDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Current scenario details of the protected entity. public partial class CurrentScenarioDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/CurrentScenarioDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/CurrentScenarioDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/CurrentScenarioDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/CurrentScenarioDetails.json.cs index 9a194e4b875a..34e2a5f78a2c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/CurrentScenarioDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/CurrentScenarioDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -72,13 +72,13 @@ internal CurrentScenarioDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new CurrentScenarioDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/DataStore.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/DataStore.PowerShell.cs new file mode 100644 index 000000000000..f7867b03add7 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/DataStore.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// The datastore details of the MT. + [System.ComponentModel.TypeConverter(typeof(DataStoreTypeConverter))] + public partial class DataStore + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DataStore(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SymbolicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).SymbolicName = (string) content.GetValueForProperty("SymbolicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).SymbolicName, global::System.Convert.ToString); + } + if (content.Contains("Uuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).Uuid = (string) content.GetValueForProperty("Uuid",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).Uuid, global::System.Convert.ToString); + } + if (content.Contains("Capacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).Capacity = (string) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).Capacity, global::System.Convert.ToString); + } + if (content.Contains("FreeSpace")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).FreeSpace = (string) content.GetValueForProperty("FreeSpace",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).FreeSpace, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).Type, 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 DataStore(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SymbolicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).SymbolicName = (string) content.GetValueForProperty("SymbolicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).SymbolicName, global::System.Convert.ToString); + } + if (content.Contains("Uuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).Uuid = (string) content.GetValueForProperty("Uuid",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).Uuid, global::System.Convert.ToString); + } + if (content.Contains("Capacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).Capacity = (string) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).Capacity, global::System.Convert.ToString); + } + if (content.Contains("FreeSpace")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).FreeSpace = (string) content.GetValueForProperty("FreeSpace",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).FreeSpace, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DataStore(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.Migrate.Models.Api202301.IDataStore DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DataStore(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.Migrate.Models.Api202301.IDataStore FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The datastore details of the MT. + [System.ComponentModel.TypeConverter(typeof(DataStoreTypeConverter))] + public partial interface IDataStore + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DataStore.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/DataStore.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/DataStore.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/DataStore.TypeConverter.cs index 770a315646cd..c273c4df2310 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DataStore.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/DataStore.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IDataStore ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStore).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/DataStore.cs b/src/Migrate/generated/api/Models/Api202301/DataStore.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/DataStore.cs rename to src/Migrate/generated/api/Models/Api202301/DataStore.cs index 9cbf9db5f653..6caf422bf0a2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DataStore.cs +++ b/src/Migrate/generated/api/Models/Api202301/DataStore.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The datastore details of the MT. public partial class DataStore : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStore, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStoreInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStoreInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/DataStore.json.cs b/src/Migrate/generated/api/Models/Api202301/DataStore.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/DataStore.json.cs rename to src/Migrate/generated/api/Models/Api202301/DataStore.json.cs index f881374e72c3..d0ae5ce1087b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DataStore.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/DataStore.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -74,13 +74,13 @@ internal DataStore(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonO } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStore. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStore. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStore FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new DataStore(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/DisableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInput.PowerShell.cs new file mode 100644 index 000000000000..6188c7088912 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInput.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Disable protection input. + [System.ComponentModel.TypeConverter(typeof(DisableProtectionInputTypeConverter))] + public partial class DisableProtectionInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IDisableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DisableProtectionInput(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.Migrate.Models.Api202301.IDisableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DisableProtectionInput(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DisableProtectionInput(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.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ReplicationProviderInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).ReplicationProviderInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput) content.GetValueForProperty("ReplicationProviderInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).ReplicationProviderInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("DisableProtectionReason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).DisableProtectionReason = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason?) content.GetValueForProperty("DisableProtectionReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).DisableProtectionReason, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason.CreateFrom); + } + if (content.Contains("ReplicationProviderInputInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).ReplicationProviderInputInstanceType = (string) content.GetValueForProperty("ReplicationProviderInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).ReplicationProviderInputInstanceType, 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 DisableProtectionInput(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.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ReplicationProviderInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).ReplicationProviderInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput) content.GetValueForProperty("ReplicationProviderInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).ReplicationProviderInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("DisableProtectionReason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).DisableProtectionReason = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason?) content.GetValueForProperty("DisableProtectionReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).DisableProtectionReason, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason.CreateFrom); + } + if (content.Contains("ReplicationProviderInputInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).ReplicationProviderInputInstanceType = (string) content.GetValueForProperty("ReplicationProviderInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal)this).ReplicationProviderInputInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Disable protection input. + [System.ComponentModel.TypeConverter(typeof(DisableProtectionInputTypeConverter))] + public partial interface IDisableProtectionInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/DisableProtectionInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/DisableProtectionInput.TypeConverter.cs index 49c5b7e69e1c..b06c886d450f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IDisableProtectionInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/DisableProtectionInput.cs b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInput.cs new file mode 100644 index 000000000000..3a92b658d538 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInput.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Disable protection input. + public partial class DisableProtectionInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal + { + + /// Disable protection reason. It can have values NotSpecified/MigrationComplete. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason? DisableProtectionReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)Property).DisableProtectionReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)Property).DisableProtectionReason = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason)""); } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ReplicationProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputInternal.ReplicationProviderInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)Property).ReplicationProviderInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)Property).ReplicationProviderInput = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputProperties _property; + + /// Disable protection input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionInputProperties()); set => this._property = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReplicationProviderInputInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)Property).ReplicationProviderInputInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)Property).ReplicationProviderInputInstanceType = value ?? null; } + + /// Creates an new instance. + public DisableProtectionInput() + { + + } + } + /// Disable protection input. + public partial interface IDisableProtectionInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Disable protection reason. It can have values NotSpecified/MigrationComplete. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Disable protection reason. It can have values NotSpecified/MigrationComplete.", + SerializedName = @"disableProtectionReason", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason? DisableProtectionReason { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ReplicationProviderInputInstanceType { get; set; } + + } + /// Disable protection input. + internal partial interface IDisableProtectionInputInternal + + { + /// Disable protection reason. It can have values NotSpecified/MigrationComplete. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason? DisableProtectionReason { get; set; } + /// Disable protection input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputProperties Property { get; set; } + /// Replication provider specific input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput ReplicationProviderInput { get; set; } + /// The class type. + string ReplicationProviderInputInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInput.json.cs b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/DisableProtectionInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/DisableProtectionInput.json.cs index f426f5bb8dc7..10f8463caa4b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal DisableProtectionInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new DisableProtectionInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/DisableProtectionInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInputProperties.PowerShell.cs new file mode 100644 index 000000000000..8b240d4d417d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInputProperties.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Disable protection input properties. + [System.ComponentModel.TypeConverter(typeof(DisableProtectionInputPropertiesTypeConverter))] + public partial class DisableProtectionInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IDisableProtectionInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DisableProtectionInputProperties(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.Migrate.Models.Api202301.IDisableProtectionInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DisableProtectionInputProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DisableProtectionInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ReplicationProviderInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput) content.GetValueForProperty("ReplicationProviderInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("DisableProtectionReason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)this).DisableProtectionReason = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason?) content.GetValueForProperty("DisableProtectionReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)this).DisableProtectionReason, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason.CreateFrom); + } + if (content.Contains("ReplicationProviderInputInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInputInstanceType = (string) content.GetValueForProperty("ReplicationProviderInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInputInstanceType, 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 DisableProtectionInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ReplicationProviderInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput) content.GetValueForProperty("ReplicationProviderInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("DisableProtectionReason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)this).DisableProtectionReason = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason?) content.GetValueForProperty("DisableProtectionReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)this).DisableProtectionReason, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason.CreateFrom); + } + if (content.Contains("ReplicationProviderInputInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInputInstanceType = (string) content.GetValueForProperty("ReplicationProviderInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal)this).ReplicationProviderInputInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Disable protection input properties. + [System.ComponentModel.TypeConverter(typeof(DisableProtectionInputPropertiesTypeConverter))] + public partial interface IDisableProtectionInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/DisableProtectionInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/DisableProtectionInputProperties.TypeConverter.cs index 98d7424ba50d..19dd665a981b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IDisableProtectionInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInputProperties.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/DisableProtectionInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/DisableProtectionInputProperties.cs index b16ebdac8890..74830a6ed201 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Disable protection input properties. public partial class DisableProtectionInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal { /// Backing field for property. @@ -21,18 +21,18 @@ public partial class DisableProtectionInputProperties : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason? DisableProtectionReason { get => this._disableProtectionReason; set => this._disableProtectionReason = value; } /// Internal Acessors for ReplicationProviderInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputPropertiesInternal.ReplicationProviderInput { get => (this._replicationProviderInput = this._replicationProviderInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionProviderSpecificInput()); set { {_replicationProviderInput = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputPropertiesInternal.ReplicationProviderInput { get => (this._replicationProviderInput = this._replicationProviderInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionProviderSpecificInput()); set { {_replicationProviderInput = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput _replicationProviderInput; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput _replicationProviderInput; /// Replication provider specific input. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput ReplicationProviderInput { get => (this._replicationProviderInput = this._replicationProviderInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionProviderSpecificInput()); set => this._replicationProviderInput = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput ReplicationProviderInput { get => (this._replicationProviderInput = this._replicationProviderInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionProviderSpecificInput()); set => this._replicationProviderInput = value; } /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ReplicationProviderInputInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInputInternal)ReplicationProviderInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInputInternal)ReplicationProviderInput).InstanceType = value ?? null; } + public string ReplicationProviderInputInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInputInternal)ReplicationProviderInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInputInternal)ReplicationProviderInput).InstanceType = value ?? null; } /// Creates an new instance. public DisableProtectionInputProperties() @@ -69,7 +69,7 @@ internal partial interface IDisableProtectionInputPropertiesInternal /// Disable protection reason. It can have values NotSpecified/MigrationComplete. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DisableProtectionReason? DisableProtectionReason { get; set; } /// Replication provider specific input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput ReplicationProviderInput { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput ReplicationProviderInput { get; set; } /// The class type. string ReplicationProviderInputInstanceType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInputProperties.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/DisableProtectionInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/DisableProtectionInputProperties.json.cs index 8df2a868415d..d6134e12f8c1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/DisableProtectionInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DisableProtectionInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Mig { return; } - {_replicationProviderInput = If( json?.PropertyT("replicationProviderInput"), out var __jsonReplicationProviderInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionProviderSpecificInput.FromJson(__jsonReplicationProviderInput) : ReplicationProviderInput;} + {_replicationProviderInput = If( json?.PropertyT("replicationProviderInput"), out var __jsonReplicationProviderInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionProviderSpecificInput.FromJson(__jsonReplicationProviderInput) : ReplicationProviderInput;} {_disableProtectionReason = If( json?.PropertyT("disableProtectionReason"), out var __jsonDisableProtectionReason) ? (string)__jsonDisableProtectionReason : (string)DisableProtectionReason;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new DisableProtectionInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/DisableProtectionProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/DisableProtectionProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/DisableProtectionProviderSpecificInput.PowerShell.cs index 396629e8486e..4d6f78085dab 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/DisableProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DisableProtectionProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DisableProtectionProviderSpecificInput(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.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DisableProtectionProviderSpecificInput(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,13 +98,13 @@ internal DisableProtectionProviderSpecificInput(global::System.Collections.IDict // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInputInternal)this).InstanceType, 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. @@ -119,7 +119,7 @@ internal DisableProtectionProviderSpecificInput(global::System.Management.Automa // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -132,7 +132,7 @@ internal DisableProtectionProviderSpecificInput(global::System.Management.Automa /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/DisableProtectionProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/DisableProtectionProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/DisableProtectionProviderSpecificInput.TypeConverter.cs index 72a16af83ff3..713fcfac1d4f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/DisableProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/DisableProtectionProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/DisableProtectionProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/DisableProtectionProviderSpecificInput.cs index fb646c8f70ec..13a0f8176921 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/DisableProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Disable protection provider specific input. public partial class DisableProtectionProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/DisableProtectionProviderSpecificInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/DisableProtectionProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/DisableProtectionProviderSpecificInput.json.cs index 98e9019f133d..b5541c5fb3d0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DisableProtectionProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/DisableProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,15 +70,15 @@ internal DisableProtectionProviderSpecificInput(Microsoft.Azure.PowerShell.Cmdle } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput 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.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequest.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequest.PowerShell.cs new file mode 100644 index 000000000000..d1cee0100173 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequest.PowerShell.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Request to add a physical machine as a protectable item in a container. + [System.ComponentModel.TypeConverter(typeof(DiscoverProtectableItemRequestTypeConverter))] + public partial class DiscoverProtectableItemRequest + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IDiscoverProtectableItemRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DiscoverProtectableItemRequest(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.Migrate.Models.Api202301.IDiscoverProtectableItemRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DiscoverProtectableItemRequest(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DiscoverProtectableItemRequest(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.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiscoverProtectableItemRequestPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).OSType, 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 DiscoverProtectableItemRequest(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.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiscoverProtectableItemRequestPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal)this).OSType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Request to add a physical machine as a protectable item in a container. + [System.ComponentModel.TypeConverter(typeof(DiscoverProtectableItemRequestTypeConverter))] + public partial interface IDiscoverProtectableItemRequest + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequest.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequest.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequest.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequest.TypeConverter.cs index caaacd55ec26..8b271a9bf28d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequest.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequest.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IDiscoverProtectableItemRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequest.cs b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequest.cs new file mode 100644 index 000000000000..4098349d6456 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequest.cs @@ -0,0 +1,88 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Request to add a physical machine as a protectable item in a container. + public partial class DiscoverProtectableItemRequest : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequest, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal + { + + /// The friendly name of the physical machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)Property).FriendlyName = value ?? null; } + + /// The IP address of the physical machine to be discovered. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)Property).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)Property).IPAddress = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiscoverProtectableItemRequestProperties()); set { {_property = value;} } } + + /// The OS type on the physical machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string OSType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)Property).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)Property).OSType = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties _property; + + /// The properties of a discover protectable item request. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiscoverProtectableItemRequestProperties()); set => this._property = value; } + + /// Creates an new instance. + public DiscoverProtectableItemRequest() + { + + } + } + /// Request to add a physical machine as a protectable item in a container. + public partial interface IDiscoverProtectableItemRequest : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The friendly name of the physical machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The friendly name of the physical machine.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// The IP address of the physical machine to be discovered. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The IP address of the physical machine to be discovered.", + SerializedName = @"ipAddress", + PossibleTypes = new [] { typeof(string) })] + string IPAddress { get; set; } + /// The OS type on the physical machine. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The OS type on the physical machine.", + SerializedName = @"osType", + PossibleTypes = new [] { typeof(string) })] + string OSType { get; set; } + + } + /// Request to add a physical machine as a protectable item in a container. + internal partial interface IDiscoverProtectableItemRequestInternal + + { + /// The friendly name of the physical machine. + string FriendlyName { get; set; } + /// The IP address of the physical machine to be discovered. + string IPAddress { get; set; } + /// The OS type on the physical machine. + string OSType { get; set; } + /// The properties of a discover protectable item request. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequest.json.cs b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequest.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequest.json.cs rename to src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequest.json.cs index 6f5709297c37..d5715e202e16 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequest.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequest.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal DiscoverProtectableItemRequest(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiscoverProtectableItemRequestProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiscoverProtectableItemRequestProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new DiscoverProtectableItemRequest(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequestProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequestProperties.PowerShell.cs new file mode 100644 index 000000000000..619e46577027 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequestProperties.PowerShell.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Discover protectable item properties. + [System.ComponentModel.TypeConverter(typeof(DiscoverProtectableItemRequestPropertiesTypeConverter))] + public partial class DiscoverProtectableItemRequestProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DiscoverProtectableItemRequestProperties(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.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DiscoverProtectableItemRequestProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DiscoverProtectableItemRequestProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)this).OSType, 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 DiscoverProtectableItemRequestProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal)this).OSType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Discover protectable item properties. + [System.ComponentModel.TypeConverter(typeof(DiscoverProtectableItemRequestPropertiesTypeConverter))] + public partial interface IDiscoverProtectableItemRequestProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequestProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequestProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequestProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequestProperties.TypeConverter.cs index 056405922374..be8a3d9ebaca 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequestProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequestProperties.cs b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequestProperties.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequestProperties.cs rename to src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequestProperties.cs index 51da67cd25e6..df74061824b4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequestProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Discover protectable item properties. public partial class DiscoverProtectableItemRequestProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequestProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequestProperties.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequestProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequestProperties.json.cs index fa3e7e04fbde..f3d008a091d6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiscoverProtectableItemRequestProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiscoverProtectableItemRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -72,13 +72,13 @@ internal DiscoverProtectableItemRequestProperties(Microsoft.Azure.PowerShell.Cmd } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiscoverProtectableItemRequestProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiscoverProtectableItemRequestProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new DiscoverProtectableItemRequestProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/DiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/DiskDetails.PowerShell.cs new file mode 100644 index 000000000000..417c7991fe4b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/DiskDetails.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Onprem disk details data. + [System.ComponentModel.TypeConverter(typeof(DiskDetailsTypeConverter))] + public partial class DiskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DiskDetails(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.Migrate.Models.Api202301.IDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DiskDetails(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DiskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MaxSizeMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).MaxSizeMb = (long?) content.GetValueForProperty("MaxSizeMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).MaxSizeMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("VhdType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).VhdType = (string) content.GetValueForProperty("VhdType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).VhdType, global::System.Convert.ToString); + } + if (content.Contains("VhdId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).VhdId = (string) content.GetValueForProperty("VhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).VhdId, global::System.Convert.ToString); + } + if (content.Contains("VhdName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).VhdName, 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 DiskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MaxSizeMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).MaxSizeMb = (long?) content.GetValueForProperty("MaxSizeMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).MaxSizeMb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("VhdType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).VhdType = (string) content.GetValueForProperty("VhdType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).VhdType, global::System.Convert.ToString); + } + if (content.Contains("VhdId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).VhdId = (string) content.GetValueForProperty("VhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).VhdId, global::System.Convert.ToString); + } + if (content.Contains("VhdName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal)this).VhdName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Onprem disk details data. + [System.ComponentModel.TypeConverter(typeof(DiskDetailsTypeConverter))] + public partial interface IDiskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/DiskDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/DiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/DiskDetails.TypeConverter.cs index 0130d12fec44..f434f3f773da 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/DiskDetails.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/DiskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/DiskDetails.cs index 5dd584003ff9..78e34120ede4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Onprem disk details data. public partial class DiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/DiskDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/DiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/DiskDetails.json.cs index ddefd53fa5b9..9781d29160c7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -73,13 +73,13 @@ internal DiskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.Jso } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new DiskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/DiskEncryptionInfo.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionInfo.PowerShell.cs new file mode 100644 index 000000000000..30413ac56194 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionInfo.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery disk encryption info (BEK and KEK). + [System.ComponentModel.TypeConverter(typeof(DiskEncryptionInfoTypeConverter))] + public partial class DiskEncryptionInfo + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IDiskEncryptionInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DiskEncryptionInfo(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.Migrate.Models.Api202301.IDiskEncryptionInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DiskEncryptionInfo(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DiskEncryptionInfo(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("KeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("KeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, 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 DiskEncryptionInfo(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo) content.GetValueForProperty("DiskEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("KeyEncryptionKeyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfo = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo) content.GetValueForProperty("KeyEncryptionKeyInfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfo, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("DiskEncryptionKeyInfoSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoSecretIdentifier = (string) content.GetValueForProperty("DiskEncryptionKeyInfoSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyIdentifier = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyIdentifier, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("DiskEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).DiskEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyInfoKeyVaultResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId = (string) content.GetValueForProperty("KeyEncryptionKeyInfoKeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal)this).KeyEncryptionKeyInfoKeyVaultResourceArmId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery disk encryption info (BEK and KEK). + [System.ComponentModel.TypeConverter(typeof(DiskEncryptionInfoTypeConverter))] + public partial interface IDiskEncryptionInfo + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionInfo.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionInfo.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/DiskEncryptionInfo.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/DiskEncryptionInfo.TypeConverter.cs index 61fd940518dd..60380fad2824 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionInfo.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionInfo.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IDiskEncryptionInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/DiskEncryptionInfo.cs b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionInfo.cs new file mode 100644 index 000000000000..05a9b3bd297a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionInfo.cs @@ -0,0 +1,114 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Recovery disk encryption info (BEK and KEK). + public partial class DiskEncryptionInfo : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo _diskEncryptionKeyInfo; + + /// The recovery KeyVault reference for secret. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo DiskEncryptionKeyInfo { get => (this._diskEncryptionKeyInfo = this._diskEncryptionKeyInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfo()); set => this._diskEncryptionKeyInfo = value; } + + /// The KeyVault resource ARM id for secret. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DiskEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfoInternal)DiskEncryptionKeyInfo).KeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfoInternal)DiskEncryptionKeyInfo).KeyVaultResourceArmId = value ?? null; } + + /// The secret url / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DiskEncryptionKeyInfoSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfoInternal)DiskEncryptionKeyInfo).SecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfoInternal)DiskEncryptionKeyInfo).SecretIdentifier = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo _keyEncryptionKeyInfo; + + /// The recovery KeyVault reference for key. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo KeyEncryptionKeyInfo { get => (this._keyEncryptionKeyInfo = this._keyEncryptionKeyInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfo()); set => this._keyEncryptionKeyInfo = value; } + + /// The key URL / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyInfoKeyIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfoInternal)KeyEncryptionKeyInfo).KeyIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfoInternal)KeyEncryptionKeyInfo).KeyIdentifier = value ?? null; } + + /// The KeyVault resource ARM Id for key. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyInfoKeyVaultResourceArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfoInternal)KeyEncryptionKeyInfo).KeyVaultResourceArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfoInternal)KeyEncryptionKeyInfo).KeyVaultResourceArmId = value ?? null; } + + /// Internal Acessors for DiskEncryptionKeyInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal.DiskEncryptionKeyInfo { get => (this._diskEncryptionKeyInfo = this._diskEncryptionKeyInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfo()); set { {_diskEncryptionKeyInfo = value;} } } + + /// Internal Acessors for KeyEncryptionKeyInfo + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfoInternal.KeyEncryptionKeyInfo { get => (this._keyEncryptionKeyInfo = this._keyEncryptionKeyInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfo()); set { {_keyEncryptionKeyInfo = value;} } } + + /// Creates an new instance. + public DiskEncryptionInfo() + { + + } + } + /// Recovery disk encryption info (BEK and KEK). + public partial interface IDiskEncryptionInfo : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The KeyVault resource ARM id for secret. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The KeyVault resource ARM id for secret.", + SerializedName = @"keyVaultResourceArmId", + PossibleTypes = new [] { typeof(string) })] + string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + /// The secret url / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The secret url / identifier.", + SerializedName = @"secretIdentifier", + PossibleTypes = new [] { typeof(string) })] + string DiskEncryptionKeyInfoSecretIdentifier { get; set; } + /// The key URL / identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The key URL / identifier.", + SerializedName = @"keyIdentifier", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyInfoKeyIdentifier { get; set; } + /// The KeyVault resource ARM Id for key. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The KeyVault resource ARM Id for key.", + SerializedName = @"keyVaultResourceArmId", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + + } + /// Recovery disk encryption info (BEK and KEK). + internal partial interface IDiskEncryptionInfoInternal + + { + /// The recovery KeyVault reference for secret. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo DiskEncryptionKeyInfo { get; set; } + /// The KeyVault resource ARM id for secret. + string DiskEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + /// The secret url / identifier. + string DiskEncryptionKeyInfoSecretIdentifier { get; set; } + /// The recovery KeyVault reference for key. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo KeyEncryptionKeyInfo { get; set; } + /// The key URL / identifier. + string KeyEncryptionKeyInfoKeyIdentifier { get; set; } + /// The KeyVault resource ARM Id for key. + string KeyEncryptionKeyInfoKeyVaultResourceArmId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionInfo.json.cs b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionInfo.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/DiskEncryptionInfo.json.cs rename to src/Migrate/generated/api/Models/Api202301/DiskEncryptionInfo.json.cs index c8ce876c13ac..d4a745c37361 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionInfo.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionInfo.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DiskEncryptionInfo(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.J { return; } - {_diskEncryptionKeyInfo = If( json?.PropertyT("diskEncryptionKeyInfo"), out var __jsonDiskEncryptionKeyInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskEncryptionKeyInfo.FromJson(__jsonDiskEncryptionKeyInfo) : DiskEncryptionKeyInfo;} - {_keyEncryptionKeyInfo = If( json?.PropertyT("keyEncryptionKeyInfo"), out var __jsonKeyEncryptionKeyInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.KeyEncryptionKeyInfo.FromJson(__jsonKeyEncryptionKeyInfo) : KeyEncryptionKeyInfo;} + {_diskEncryptionKeyInfo = If( json?.PropertyT("diskEncryptionKeyInfo"), out var __jsonDiskEncryptionKeyInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskEncryptionKeyInfo.FromJson(__jsonDiskEncryptionKeyInfo) : DiskEncryptionKeyInfo;} + {_keyEncryptionKeyInfo = If( json?.PropertyT("keyEncryptionKeyInfo"), out var __jsonKeyEncryptionKeyInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.KeyEncryptionKeyInfo.FromJson(__jsonKeyEncryptionKeyInfo) : KeyEncryptionKeyInfo;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new DiskEncryptionInfo(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionKeyInfo.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionKeyInfo.PowerShell.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/DiskEncryptionKeyInfo.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/DiskEncryptionKeyInfo.PowerShell.cs index ae9ca5cd8489..7cd0c66ddc46 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionKeyInfo.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionKeyInfo.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class DiskEncryptionKeyInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DiskEncryptionKeyInfo(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.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DiskEncryptionKeyInfo(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,17 +96,17 @@ internal DiskEncryptionKeyInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("SecretIdentifier")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfoInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfoInternal)this).SecretIdentifier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfoInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfoInternal)this).SecretIdentifier, global::System.Convert.ToString); } if (content.Contains("KeyVaultResourceArmId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfoInternal)this).KeyVaultResourceArmId = (string) content.GetValueForProperty("KeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfoInternal)this).KeyVaultResourceArmId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfoInternal)this).KeyVaultResourceArmId = (string) content.GetValueForProperty("KeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfoInternal)this).KeyVaultResourceArmId, 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. @@ -121,11 +121,11 @@ internal DiskEncryptionKeyInfo(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("SecretIdentifier")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfoInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfoInternal)this).SecretIdentifier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfoInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfoInternal)this).SecretIdentifier, global::System.Convert.ToString); } if (content.Contains("KeyVaultResourceArmId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfoInternal)this).KeyVaultResourceArmId = (string) content.GetValueForProperty("KeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfoInternal)this).KeyVaultResourceArmId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfoInternal)this).KeyVaultResourceArmId = (string) content.GetValueForProperty("KeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfoInternal)this).KeyVaultResourceArmId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -135,7 +135,7 @@ internal DiskEncryptionKeyInfo(global::System.Management.Automation.PSObject con /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionKeyInfo.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionKeyInfo.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/DiskEncryptionKeyInfo.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/DiskEncryptionKeyInfo.TypeConverter.cs index 1823a59c7a64..10f13a3245d9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionKeyInfo.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionKeyInfo.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionKeyInfo.cs b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionKeyInfo.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/DiskEncryptionKeyInfo.cs rename to src/Migrate/generated/api/Models/Api202301/DiskEncryptionKeyInfo.cs index 4a681a64d6c7..667313448e46 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionKeyInfo.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionKeyInfo.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Disk Encryption Key Information (BitLocker Encryption Key (BEK) on Windows). public partial class DiskEncryptionKeyInfo : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfoInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionKeyInfo.json.cs b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionKeyInfo.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/DiskEncryptionKeyInfo.json.cs rename to src/Migrate/generated/api/Models/Api202301/DiskEncryptionKeyInfo.json.cs index 72faf51a0e27..938a5f50ae52 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiskEncryptionKeyInfo.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiskEncryptionKeyInfo.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DiskEncryptionKeyInfo(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskEncryptionKeyInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskEncryptionKeyInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new DiskEncryptionKeyInfo(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskVolumeDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/DiskVolumeDetails.PowerShell.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/DiskVolumeDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/DiskVolumeDetails.PowerShell.cs index 831ab88698ab..7d8b3d671652 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiskVolumeDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiskVolumeDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class DiskVolumeDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IDiskVolumeDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DiskVolumeDetails(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.Migrate.Models.Api20220501.IDiskVolumeDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DiskVolumeDetails(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,17 +96,17 @@ internal DiskVolumeDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Label")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetailsInternal)this).Label = (string) content.GetValueForProperty("Label",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetailsInternal)this).Label, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetailsInternal)this).Label = (string) content.GetValueForProperty("Label",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetailsInternal)this).Label, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetailsInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetailsInternal)this).Name, 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. @@ -121,11 +121,11 @@ internal DiskVolumeDetails(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Label")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetailsInternal)this).Label = (string) content.GetValueForProperty("Label",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetailsInternal)this).Label, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetailsInternal)this).Label = (string) content.GetValueForProperty("Label",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetailsInternal)this).Label, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetailsInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetailsInternal)this).Name, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -135,7 +135,7 @@ internal DiskVolumeDetails(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.Migrate.Models.Api20220501.IDiskVolumeDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskVolumeDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/DiskVolumeDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/DiskVolumeDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/DiskVolumeDetails.TypeConverter.cs index 3df57335a7ac..14de0cf3474f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiskVolumeDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiskVolumeDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IDiskVolumeDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskVolumeDetails.cs b/src/Migrate/generated/api/Models/Api202301/DiskVolumeDetails.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/DiskVolumeDetails.cs rename to src/Migrate/generated/api/Models/Api202301/DiskVolumeDetails.cs index 290350bef012..a40f0cbc9cbf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiskVolumeDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiskVolumeDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Volume details. public partial class DiskVolumeDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/DiskVolumeDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/DiskVolumeDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/DiskVolumeDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/DiskVolumeDetails.json.cs index d427fc67c1df..422015c74bce 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DiskVolumeDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/DiskVolumeDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DiskVolumeDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new DiskVolumeDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/Display.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/Display.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/Display.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/Display.PowerShell.cs index 33844bb6488c..a5819faa0c09 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Display.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/Display.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -59,33 +59,33 @@ public partial class Display partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Display(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.Migrate.Models.Api20220501.IDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Display(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -100,25 +100,25 @@ internal Display(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Description, 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. @@ -133,19 +133,19 @@ internal Display(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -155,7 +155,7 @@ internal Display(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.Migrate.Models.Api20220501.IDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/Display.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/Display.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/Display.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/Display.TypeConverter.cs index cc7a4f6cad8e..eba9244a01ea 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Display.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/Display.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IDisplay ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplay).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/Display.cs b/src/Migrate/generated/api/Models/Api202301/Display.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/Display.cs rename to src/Migrate/generated/api/Models/Api202301/Display.cs index 6cc8b8a397c3..b318cd0d3795 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Display.cs +++ b/src/Migrate/generated/api/Models/Api202301/Display.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -13,8 +13,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// / records for management operations. /// public partial class Display : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplay, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/Display.json.cs b/src/Migrate/generated/api/Models/Api202301/Display.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/Display.json.cs rename to src/Migrate/generated/api/Models/Api202301/Display.json.cs index 3299ccfa4760..f08811037083 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Display.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/Display.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -77,13 +77,13 @@ internal Display(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObj } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplay. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplay. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new Display(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/DraDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/DraDetails.PowerShell.cs new file mode 100644 index 000000000000..68babc769d8e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/DraDetails.PowerShell.cs @@ -0,0 +1,208 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// DRA details. + [System.ComponentModel.TypeConverter(typeof(DraDetailsTypeConverter))] + public partial class DraDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IDraDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DraDetails(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.Migrate.Models.Api202301.IDraDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DraDetails(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DraDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ForwardProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).ForwardProtectedItemCount = (int?) content.GetValueForProperty("ForwardProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).ForwardProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReverseProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).ReverseProtectedItemCount = (int?) content.GetValueForProperty("ReverseProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).ReverseProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DraDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ForwardProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).ForwardProtectedItemCount = (int?) content.GetValueForProperty("ForwardProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).ForwardProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReverseProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).ReverseProtectedItemCount = (int?) content.GetValueForProperty("ReverseProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)this).ReverseProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// DRA details. + [System.ComponentModel.TypeConverter(typeof(DraDetailsTypeConverter))] + public partial interface IDraDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/DraDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/DraDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/DraDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/DraDetails.TypeConverter.cs index b1548c2eb5d0..3ec982c080f7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DraDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/DraDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IDraDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/DraDetails.cs b/src/Migrate/generated/api/Models/Api202301/DraDetails.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/DraDetails.cs rename to src/Migrate/generated/api/Models/Api202301/DraDetails.cs index fb5a775bd1ce..e25e496f4119 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DraDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/DraDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// DRA details. public partial class DraDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal { /// Backing field for property. @@ -35,11 +35,11 @@ public partial class DraDetails : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get => this._health; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthError; /// The health errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => this._healthError; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => this._healthError; } /// Backing field for property. private string _id; @@ -56,31 +56,31 @@ public partial class DraDetails : public global::System.DateTime? LastHeartbeatUtc { get => this._lastHeartbeatUtc; } /// Internal Acessors for BiosId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } /// Internal Acessors for ForwardProtectedItemCount - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal.ForwardProtectedItemCount { get => this._forwardProtectedItemCount; set { {_forwardProtectedItemCount = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal.ForwardProtectedItemCount { get => this._forwardProtectedItemCount; set { {_forwardProtectedItemCount = value;} } } /// Internal Acessors for Health - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal.Health { get => this._health; set { {_health = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal.Health { get => this._health; set { {_health = value;} } } /// Internal Acessors for HealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for LastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for ReverseProtectedItemCount - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal.ReverseProtectedItemCount { get => this._reverseProtectedItemCount; set { {_reverseProtectedItemCount = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal.ReverseProtectedItemCount { get => this._reverseProtectedItemCount; set { {_reverseProtectedItemCount = value;} } } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetailsInternal.Version { get => this._version; set { {_version = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal.Version { get => this._version; set { {_version = value;} } } /// Backing field for property. private string _name; @@ -143,8 +143,8 @@ public partial interface IDraDetails : ReadOnly = true, Description = @"The health errors.", SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; } /// The DRA Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -198,7 +198,7 @@ internal partial interface IDraDetailsInternal /// The health. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get; set; } /// The health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The DRA Id. string Id { get; set; } /// The last heartbeat received from the DRA. diff --git a/src/Migrate/generated/api/Models/Api20220501/DraDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/DraDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/DraDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/DraDetails.json.cs index 26ad379cecd2..eeef50da0aa3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/DraDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/DraDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -71,20 +71,20 @@ internal DraDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.Json {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} {_lastHeartbeatUtc = If( json?.PropertyT("lastHeartbeatUtc"), out var __jsonLastHeartbeatUtc) ? global::System.DateTime.TryParse((string)__jsonLastHeartbeatUtc, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastHeartbeatUtcValue) ? __jsonLastHeartbeatUtcValue : LastHeartbeatUtc : LastHeartbeatUtc;} {_health = If( json?.PropertyT("health"), out var __jsonHealth) ? (string)__jsonHealth : (string)Health;} - {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__u) )) ))() : null : HealthError;} + {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__u) )) ))() : null : HealthError;} {_forwardProtectedItemCount = If( json?.PropertyT("forwardProtectedItemCount"), out var __jsonForwardProtectedItemCount) ? (int?)__jsonForwardProtectedItemCount : ForwardProtectedItemCount;} {_reverseProtectedItemCount = If( json?.PropertyT("reverseProtectedItemCount"), out var __jsonReverseProtectedItemCount) ? (int?)__jsonReverseProtectedItemCount : ReverseProtectedItemCount;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new DraDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/EnableMigrationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInput.PowerShell.cs new file mode 100644 index 000000000000..68508dc42bff --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInput.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Enable migration input. + [System.ComponentModel.TypeConverter(typeof(EnableMigrationInputTypeConverter))] + public partial class EnableMigrationInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IEnableMigrationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnableMigrationInput(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.Migrate.Models.Api202301.IEnableMigrationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnableMigrationInput(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnableMigrationInput(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.Migrate.Models.Api202301.IEnableMigrationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationProviderSpecificInputTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EnableMigrationInput(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.Migrate.Models.Api202301.IEnableMigrationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationProviderSpecificInputTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Enable migration input. + [System.ComponentModel.TypeConverter(typeof(EnableMigrationInputTypeConverter))] + public partial interface IEnableMigrationInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/EnableMigrationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/EnableMigrationInput.TypeConverter.cs index 836d69c39cac..bfa8bf0b6698 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IEnableMigrationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/EnableMigrationInput.cs b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInput.cs new file mode 100644 index 000000000000..c6d561fd3c8d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInput.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Enable migration input. + public partial class EnableMigrationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationInputProperties()); set { {_property = value;} } } + + /// The policy Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputPropertiesInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputPropertiesInternal)Property).PolicyId = value ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties _property; + + /// Enable migration input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationInputProperties()); set => this._property = value; } + + /// The provider specific details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputPropertiesInternal)Property).ProviderSpecificDetail = value ; } + + /// Creates an new instance. + public EnableMigrationInput() + { + + } + } + /// Enable migration input. + public partial interface IEnableMigrationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The policy Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The policy Id.", + SerializedName = @"policyId", + PossibleTypes = new [] { typeof(string) })] + string PolicyId { get; set; } + /// The provider specific details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The provider specific details.", + SerializedName = @"providerSpecificDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput ProviderSpecificDetail { get; set; } + + } + /// Enable migration input. + internal partial interface IEnableMigrationInputInternal + + { + /// The policy Id. + string PolicyId { get; set; } + /// Enable migration input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties Property { get; set; } + /// The provider specific details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput ProviderSpecificDetail { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/EnableMigrationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/EnableMigrationInput.json.cs index 6995f89739a7..a8453dac9014 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal EnableMigrationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new EnableMigrationInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInputProperties.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/EnableMigrationInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/EnableMigrationInputProperties.PowerShell.cs index b330720d2873..3105ebb10188 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class EnableMigrationInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IEnableMigrationInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EnableMigrationInputProperties(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.Migrate.Models.Api20220501.IEnableMigrationInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EnableMigrationInputProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal EnableMigrationInputProperties(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("PolicyId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputPropertiesInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputPropertiesInternal)this).PolicyId, global::System.Convert.ToString); } if (content.Contains("ProviderSpecificDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationProviderSpecificInputTypeConverter.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. @@ -123,11 +123,11 @@ internal EnableMigrationInputProperties(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("PolicyId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputPropertiesInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputPropertiesInternal)this).PolicyId, global::System.Convert.ToString); } if (content.Contains("ProviderSpecificDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationProviderSpecificInputTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -137,7 +137,7 @@ internal EnableMigrationInputProperties(global::System.Management.Automation.PSO /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/EnableMigrationInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/EnableMigrationInputProperties.TypeConverter.cs index 0c90f9e246e2..408a5f843301 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IEnableMigrationInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInputProperties.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/EnableMigrationInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/EnableMigrationInputProperties.cs index 00b0989f2efb..9e53894c6052 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Enable migration input properties. public partial class EnableMigrationInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputPropertiesInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class EnableMigrationInputProperties : public string PolicyId { get => this._policyId; set => this._policyId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput _providerSpecificDetail; /// The provider specific details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationProviderSpecificInput()); set => this._providerSpecificDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationProviderSpecificInput()); set => this._providerSpecificDetail = value; } /// Creates an new instance. public EnableMigrationInputProperties() @@ -51,8 +51,8 @@ public partial interface IEnableMigrationInputProperties : ReadOnly = false, Description = @"The provider specific details.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput ProviderSpecificDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput ProviderSpecificDetail { get; set; } } /// Enable migration input properties. @@ -62,7 +62,7 @@ internal partial interface IEnableMigrationInputPropertiesInternal /// The policy Id. string PolicyId { get; set; } /// The provider specific details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput ProviderSpecificDetail { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/EnableMigrationInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/EnableMigrationInputProperties.json.cs index 1af037adafef..5d013db0a224 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableMigrationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -66,18 +66,18 @@ internal EnableMigrationInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migra return; } {_policyId = If( json?.PropertyT("policyId"), out var __jsonPolicyId) ? (string)__jsonPolicyId : (string)PolicyId;} - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new EnableMigrationInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/EnableMigrationProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/EnableMigrationProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/EnableMigrationProviderSpecificInput.PowerShell.cs index 986db5aa177d..e49057f5aebb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableMigrationProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class EnableMigrationProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EnableMigrationProviderSpecificInput(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.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EnableMigrationProviderSpecificInput(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,13 +98,13 @@ internal EnableMigrationProviderSpecificInput(global::System.Collections.IDictio // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInputInternal)this).InstanceType, 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. @@ -119,7 +119,7 @@ internal EnableMigrationProviderSpecificInput(global::System.Management.Automati // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -131,7 +131,7 @@ internal EnableMigrationProviderSpecificInput(global::System.Management.Automati /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/EnableMigrationProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/EnableMigrationProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/EnableMigrationProviderSpecificInput.TypeConverter.cs index 3cea52499bb2..666295ae9e4d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableMigrationProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/EnableMigrationProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/EnableMigrationProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/EnableMigrationProviderSpecificInput.cs index 91f460a4744a..ecc70fbab554 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableMigrationProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Enable migration provider specific input. public partial class EnableMigrationProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/EnableMigrationProviderSpecificInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/EnableMigrationProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/EnableMigrationProviderSpecificInput.json.cs index b9d4a996764e..d2fc9112aa80 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableMigrationProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableMigrationProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,15 +70,15 @@ internal EnableMigrationProviderSpecificInput(Microsoft.Azure.PowerShell.Cmdlets } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput 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.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/EnableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInput.PowerShell.cs new file mode 100644 index 000000000000..fe46d7cd56c9 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInput.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Enable protection input. + [System.ComponentModel.TypeConverter(typeof(EnableProtectionInputTypeConverter))] + public partial class EnableProtectionInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IEnableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnableProtectionInput(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.Migrate.Models.Api202301.IEnableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnableProtectionInput(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnableProtectionInput(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.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("ProtectableItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).ProtectableItemId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).ProviderSpecificDetailInstanceType, 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 EnableProtectionInput(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.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("ProtectableItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).ProtectableItemId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Enable protection input. + [System.ComponentModel.TypeConverter(typeof(EnableProtectionInputTypeConverter))] + public partial interface IEnableProtectionInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/EnableProtectionInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/EnableProtectionInput.TypeConverter.cs index 797237d8d49f..c4a4c874b71f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IEnableProtectionInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/EnableProtectionInput.cs b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInput.cs new file mode 100644 index 000000000000..a669458a7907 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInput.cs @@ -0,0 +1,96 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Enable protection input. + public partial class EnableProtectionInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// The Policy Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)Property).PolicyId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputProperties _property; + + /// Enable protection input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionInputProperties()); set => this._property = value; } + + /// The protectable item Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProtectableItemId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)Property).ProtectableItemId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)Property).ProtectableItemId = value ?? null; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// Creates an new instance. + public EnableProtectionInput() + { + + } + } + /// Enable protection input. + public partial interface IEnableProtectionInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The Policy Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Policy Id.", + SerializedName = @"policyId", + PossibleTypes = new [] { typeof(string) })] + string PolicyId { get; set; } + /// The protectable item Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The protectable item Id.", + SerializedName = @"protectableItemId", + PossibleTypes = new [] { typeof(string) })] + string ProtectableItemId { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Enable protection input. + internal partial interface IEnableProtectionInputInternal + + { + /// The Policy Id. + string PolicyId { get; set; } + /// Enable protection input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputProperties Property { get; set; } + /// The protectable item Id. + string ProtectableItemId { get; set; } + /// + /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, + /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. + /// + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInput.json.cs b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/EnableProtectionInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/EnableProtectionInput.json.cs index 9b14737bd166..809df8adb9ac 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal EnableProtectionInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new EnableProtectionInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/EnableProtectionInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInputProperties.PowerShell.cs new file mode 100644 index 000000000000..31c72a75a99b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInputProperties.PowerShell.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Enable protection input properties. + [System.ComponentModel.TypeConverter(typeof(EnableProtectionInputPropertiesTypeConverter))] + public partial class EnableProtectionInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IEnableProtectionInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnableProtectionInputProperties(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.Migrate.Models.Api202301.IEnableProtectionInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnableProtectionInputProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnableProtectionInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("ProtectableItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).ProtectableItemId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 EnableProtectionInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("ProtectableItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).ProtectableItemId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Enable protection input properties. + [System.ComponentModel.TypeConverter(typeof(EnableProtectionInputPropertiesTypeConverter))] + public partial interface IEnableProtectionInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/EnableProtectionInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/EnableProtectionInputProperties.TypeConverter.cs index 586c070e49ca..1ffbac996310 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IEnableProtectionInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInputProperties.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/EnableProtectionInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/EnableProtectionInputProperties.cs index f4fbea964e30..8058b7125a8c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInputProperties.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Enable protection input properties. public partial class EnableProtectionInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal { /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } /// Backing field for property. private string _policyId; @@ -31,18 +31,18 @@ public partial class EnableProtectionInputProperties : public string ProtectableItemId { get => this._protectableItemId; set => this._protectableItemId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput _providerSpecificDetail; /// /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput()); set => this._providerSpecificDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput()); set => this._providerSpecificDetail = value; } /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } /// Creates an new instance. public EnableProtectionInputProperties() @@ -92,7 +92,7 @@ internal partial interface IEnableProtectionInputPropertiesInternal /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput ProviderSpecificDetail { get; set; } /// The class type. string ProviderSpecificDetailInstanceType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInputProperties.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/EnableProtectionInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/EnableProtectionInputProperties.json.cs index 8484556041ff..bbd2e2860ca4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableProtectionInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,20 +65,20 @@ internal EnableProtectionInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_policyId = If( json?.PropertyT("policyId"), out var __jsonPolicyId) ? (string)__jsonPolicyId : (string)PolicyId;} {_protectableItemId = If( json?.PropertyT("protectableItemId"), out var __jsonProtectableItemId) ? (string)__jsonProtectableItemId : (string)ProtectableItemId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new EnableProtectionInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/EnableProtectionProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/EnableProtectionProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/EnableProtectionProviderSpecificInput.PowerShell.cs index aa81db3af582..eee7e98ecc29 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class EnableProtectionProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EnableProtectionProviderSpecificInput(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.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EnableProtectionProviderSpecificInput(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,13 +98,13 @@ internal EnableProtectionProviderSpecificInput(global::System.Collections.IDicti // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, 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. @@ -119,7 +119,7 @@ internal EnableProtectionProviderSpecificInput(global::System.Management.Automat // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -132,7 +132,7 @@ internal EnableProtectionProviderSpecificInput(global::System.Management.Automat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/EnableProtectionProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/EnableProtectionProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/EnableProtectionProviderSpecificInput.TypeConverter.cs index 0307d0c89c62..965501ecfdd2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/EnableProtectionProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/EnableProtectionProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/EnableProtectionProviderSpecificInput.cs index 229ac838c6e4..4a24be7f2994 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Enable protection provider specific input. public partial class EnableProtectionProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/EnableProtectionProviderSpecificInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/EnableProtectionProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/EnableProtectionProviderSpecificInput.json.cs index 4ef14d5c93c4..b6bcbe1358fe 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EnableProtectionProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/EnableProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,15 +70,15 @@ internal EnableProtectionProviderSpecificInput(Microsoft.Azure.PowerShell.Cmdlet } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput 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.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/EncryptionDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/EncryptionDetails.PowerShell.cs new file mode 100644 index 000000000000..3a34ff84c3b1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/EncryptionDetails.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Encryption details for the fabric. + [System.ComponentModel.TypeConverter(typeof(EncryptionDetailsTypeConverter))] + public partial class EncryptionDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IEncryptionDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EncryptionDetails(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.Migrate.Models.Api202301.IEncryptionDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EncryptionDetails(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EncryptionDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("KekState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetailsInternal)this).KekState = (string) content.GetValueForProperty("KekState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetailsInternal)this).KekState, global::System.Convert.ToString); + } + if (content.Contains("KekCertThumbprint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetailsInternal)this).KekCertThumbprint = (string) content.GetValueForProperty("KekCertThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetailsInternal)this).KekCertThumbprint, global::System.Convert.ToString); + } + if (content.Contains("KekCertExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetailsInternal)this).KekCertExpiryDate = (global::System.DateTime?) content.GetValueForProperty("KekCertExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetailsInternal)this).KekCertExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EncryptionDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("KekState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetailsInternal)this).KekState = (string) content.GetValueForProperty("KekState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetailsInternal)this).KekState, global::System.Convert.ToString); + } + if (content.Contains("KekCertThumbprint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetailsInternal)this).KekCertThumbprint = (string) content.GetValueForProperty("KekCertThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetailsInternal)this).KekCertThumbprint, global::System.Convert.ToString); + } + if (content.Contains("KekCertExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetailsInternal)this).KekCertExpiryDate = (global::System.DateTime?) content.GetValueForProperty("KekCertExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetailsInternal)this).KekCertExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Encryption details for the fabric. + [System.ComponentModel.TypeConverter(typeof(EncryptionDetailsTypeConverter))] + public partial interface IEncryptionDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EncryptionDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/EncryptionDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/EncryptionDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/EncryptionDetails.TypeConverter.cs index 0fb545c43923..59c77b0eea9f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EncryptionDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/EncryptionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IEncryptionDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EncryptionDetails.cs b/src/Migrate/generated/api/Models/Api202301/EncryptionDetails.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/EncryptionDetails.cs rename to src/Migrate/generated/api/Models/Api202301/EncryptionDetails.cs index 513c998e7b52..bb51706c3a5c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EncryptionDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/EncryptionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Encryption details for the fabric. public partial class EncryptionDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/EncryptionDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/EncryptionDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/EncryptionDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/EncryptionDetails.json.cs index 9c68dfe3f469..e4d12afd05f4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EncryptionDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/EncryptionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -72,13 +72,13 @@ internal EncryptionDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new EncryptionDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/Event.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/Event.PowerShell.cs new file mode 100644 index 000000000000..bb42f9c5a252 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/Event.PowerShell.cs @@ -0,0 +1,280 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Implements the Event class. + [System.ComponentModel.TypeConverter(typeof(EventTypeConverter))] + public partial class Event + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IEvent DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Event(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.Migrate.Models.Api202301.IEvent DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Event(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Event(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.Migrate.Models.Api202301.IEventInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("SpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).SpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails) content.GetValueForProperty("SpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).SpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("EventType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).EventType, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).AffectedObjectFriendlyName = (string) content.GetValueForProperty("AffectedObjectFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).AffectedObjectFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).AffectedObjectCorrelationId = (string) content.GetValueForProperty("AffectedObjectCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).AffectedObjectCorrelationId, global::System.Convert.ToString); + } + if (content.Contains("Severity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).Severity, global::System.Convert.ToString); + } + if (content.Contains("TimeOfOccurrence")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).TimeOfOccurrence = (global::System.DateTime?) content.GetValueForProperty("TimeOfOccurrence",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).TimeOfOccurrence, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).FabricId = (string) content.GetValueForProperty("FabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).FabricId, global::System.Convert.ToString); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("SpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).SpecificDetailInstanceType = (string) content.GetValueForProperty("SpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).SpecificDetailInstanceType, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).ProviderSpecificDetailInstanceType, 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 Event(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.Migrate.Models.Api202301.IEventInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("SpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).SpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails) content.GetValueForProperty("SpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).SpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("EventType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).EventType, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).AffectedObjectFriendlyName = (string) content.GetValueForProperty("AffectedObjectFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).AffectedObjectFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).AffectedObjectCorrelationId = (string) content.GetValueForProperty("AffectedObjectCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).AffectedObjectCorrelationId, global::System.Convert.ToString); + } + if (content.Contains("Severity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).Severity, global::System.Convert.ToString); + } + if (content.Contains("TimeOfOccurrence")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).TimeOfOccurrence = (global::System.DateTime?) content.GetValueForProperty("TimeOfOccurrence",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).TimeOfOccurrence, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).FabricId = (string) content.GetValueForProperty("FabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).FabricId, global::System.Convert.ToString); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("SpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).SpecificDetailInstanceType = (string) content.GetValueForProperty("SpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).SpecificDetailInstanceType, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEvent FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Implements the Event class. + [System.ComponentModel.TypeConverter(typeof(EventTypeConverter))] + public partial interface IEvent + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Event.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/Event.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/Event.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/Event.TypeConverter.cs index 20ae98c18151..98c7e7c575c4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Event.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/Event.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IEvent ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEvent ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEvent).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEvent).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/Event.cs b/src/Migrate/generated/api/Models/Api202301/Event.cs new file mode 100644 index 000000000000..e105645ea66b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/Event.cs @@ -0,0 +1,259 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Implements the Event class. + public partial class Event : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEvent, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// The affected object correlationId for the event. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string AffectedObjectCorrelationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).AffectedObjectCorrelationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).AffectedObjectCorrelationId = value ?? null; } + + /// + /// The friendly name of the source of the event on which it is raised (for example, VM, VMM etc). + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string AffectedObjectFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).AffectedObjectFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).AffectedObjectFriendlyName = value ?? null; } + + /// The Id of the monitoring event. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).EventCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).EventCode = value ?? null; } + + /// The event name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).Description = value ?? null; } + + /// The type of the event. for example: VM Health, Server Health, Job Failure etc. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string EventType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).EventType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).EventType = value ?? null; } + + /// The ARM ID of the fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).FabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).FabricId = value ?? null; } + + /// The list of errors / warnings capturing details associated with the issue(s). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).HealthError = value ?? null /* arrayOf */; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Internal Acessors for SpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventInternal.SpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).EventSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).EventSpecificDetail = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProperties _property; + + /// Event related data. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProperties()); set => this._property = value; } + + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// The severity of the event. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Severity { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).Severity; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).Severity = value ?? null; } + + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).EventSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).EventSpecificDetailInstanceType = value ?? null; } + + /// The time of occurrence of the event. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? TimeOfOccurrence { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).TimeOfOccurrence; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)Property).TimeOfOccurrence = value ?? default(global::System.DateTime); } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public Event() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Implements the Event class. + public partial interface IEvent : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// The affected object correlationId for the event. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The affected object correlationId for the event.", + SerializedName = @"affectedObjectCorrelationId", + PossibleTypes = new [] { typeof(string) })] + string AffectedObjectCorrelationId { get; set; } + /// + /// The friendly name of the source of the event on which it is raised (for example, VM, VMM etc). + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The friendly name of the source of the event on which it is raised (for example, VM, VMM etc).", + SerializedName = @"affectedObjectFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string AffectedObjectFriendlyName { get; set; } + /// The Id of the monitoring event. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Id of the monitoring event.", + SerializedName = @"eventCode", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// The event name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The event name.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } + /// The type of the event. for example: VM Health, Server Health, Job Failure etc. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of the event. for example: VM Health, Server Health, Job Failure etc.", + SerializedName = @"eventType", + PossibleTypes = new [] { typeof(string) })] + string EventType { get; set; } + /// The ARM ID of the fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The ARM ID of the fabric.", + SerializedName = @"fabricId", + PossibleTypes = new [] { typeof(string) })] + string FabricId { get; set; } + /// The list of errors / warnings capturing details associated with the issue(s). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of errors / warnings capturing details associated with the issue(s).", + SerializedName = @"healthErrors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the class type. Overridden in derived classes.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + /// The severity of the event. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The severity of the event.", + SerializedName = @"severity", + PossibleTypes = new [] { typeof(string) })] + string Severity { get; set; } + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the class type. Overridden in derived classes.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string SpecificDetailInstanceType { get; set; } + /// The time of occurrence of the event. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time of occurrence of the event.", + SerializedName = @"timeOfOccurrence", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? TimeOfOccurrence { get; set; } + + } + /// Implements the Event class. + internal partial interface IEventInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The affected object correlationId for the event. + string AffectedObjectCorrelationId { get; set; } + /// + /// The friendly name of the source of the event on which it is raised (for example, VM, VMM etc). + /// + string AffectedObjectFriendlyName { get; set; } + /// The Id of the monitoring event. + string Code { get; set; } + /// The event name. + string Description { get; set; } + /// The type of the event. for example: VM Health, Server Health, Job Failure etc. + string EventType { get; set; } + /// The ARM ID of the fabric. + string FabricId { get; set; } + /// The list of errors / warnings capturing details associated with the issue(s). + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } + /// Event related data. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProperties Property { get; set; } + /// The provider specific settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails ProviderSpecificDetail { get; set; } + /// Gets the class type. Overridden in derived classes. + string ProviderSpecificDetailInstanceType { get; set; } + /// The severity of the event. + string Severity { get; set; } + /// The event specific settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails SpecificDetail { get; set; } + /// Gets the class type. Overridden in derived classes. + string SpecificDetailInstanceType { get; set; } + /// The time of occurrence of the event. + global::System.DateTime? TimeOfOccurrence { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Event.json.cs b/src/Migrate/generated/api/Models/Api202301/Event.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/Event.json.cs rename to src/Migrate/generated/api/Models/Api202301/Event.json.cs index 210b4ee6fd5d..591b6be27916 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Event.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/Event.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal Event(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObjec { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEvent. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEvent. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEvent. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEvent. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEvent FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEvent FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new Event(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/EventCollectionAutoGenerated.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/EventCollectionAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..53d3844c6e90 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/EventCollectionAutoGenerated.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Collection of fabric details. + [System.ComponentModel.TypeConverter(typeof(EventCollectionAutoGeneratedTypeConverter))] + public partial class EventCollectionAutoGenerated + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IEventCollectionAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EventCollectionAutoGenerated(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.Migrate.Models.Api202301.IEventCollectionAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EventCollectionAutoGenerated(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EventCollectionAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEvent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EventCollectionAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEvent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Collection of fabric details. + [System.ComponentModel.TypeConverter(typeof(EventCollectionAutoGeneratedTypeConverter))] + public partial interface IEventCollectionAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EventCollectionAutoGenerated.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/EventCollectionAutoGenerated.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/EventCollectionAutoGenerated.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/EventCollectionAutoGenerated.TypeConverter.cs index cd34962eb1d1..08a72c532673 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventCollectionAutoGenerated.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventCollectionAutoGenerated.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IEventCollectionAutoGenerated ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGenerated ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGenerated).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGenerated).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EventCollectionAutoGenerated.cs b/src/Migrate/generated/api/Models/Api202301/EventCollectionAutoGenerated.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/EventCollectionAutoGenerated.cs rename to src/Migrate/generated/api/Models/Api202301/EventCollectionAutoGenerated.cs index 05c7dd4e49ef..915ee3bd4562 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventCollectionAutoGenerated.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventCollectionAutoGenerated.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Collection of fabric details. public partial class EventCollectionAutoGenerated : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGenerated, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGeneratedInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGeneratedInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class EventCollectionAutoGenerated : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEvent[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEvent[] _value; /// The list of events. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEvent[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEvent[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public EventCollectionAutoGenerated() @@ -51,8 +51,8 @@ public partial interface IEventCollectionAutoGenerated : ReadOnly = false, Description = @"The list of events.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEvent) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEvent[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEvent) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEvent[] Value { get; set; } } /// Collection of fabric details. @@ -62,7 +62,7 @@ internal partial interface IEventCollectionAutoGeneratedInternal /// The value of next link. string NextLink { get; set; } /// The list of events. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEvent[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEvent[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EventCollectionAutoGenerated.json.cs b/src/Migrate/generated/api/Models/Api202301/EventCollectionAutoGenerated.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/EventCollectionAutoGenerated.json.cs rename to src/Migrate/generated/api/Models/Api202301/EventCollectionAutoGenerated.json.cs index cd054857fd46..8568516d46b7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventCollectionAutoGenerated.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventCollectionAutoGenerated.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal EventCollectionAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IEvent) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Event.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IEvent) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Event.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGenerated. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGenerated. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGenerated. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGenerated. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventCollectionAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventCollectionAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new EventCollectionAutoGenerated(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/EventProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/EventProperties.PowerShell.cs new file mode 100644 index 000000000000..098ad2039e17 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/EventProperties.PowerShell.cs @@ -0,0 +1,240 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// The properties of a monitoring event. + [System.ComponentModel.TypeConverter(typeof(EventPropertiesTypeConverter))] + public partial class EventProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IEventProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EventProperties(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.Migrate.Models.Api202301.IEventProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EventProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EventProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("EventSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails) content.GetValueForProperty("EventSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("EventCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventCode = (string) content.GetValueForProperty("EventCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventCode, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("EventType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventType, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).AffectedObjectFriendlyName = (string) content.GetValueForProperty("AffectedObjectFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).AffectedObjectFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).AffectedObjectCorrelationId = (string) content.GetValueForProperty("AffectedObjectCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).AffectedObjectCorrelationId, global::System.Convert.ToString); + } + if (content.Contains("Severity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).Severity, global::System.Convert.ToString); + } + if (content.Contains("TimeOfOccurrence")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).TimeOfOccurrence = (global::System.DateTime?) content.GetValueForProperty("TimeOfOccurrence",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).TimeOfOccurrence, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).FabricId = (string) content.GetValueForProperty("FabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).FabricId, global::System.Convert.ToString); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("EventSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventSpecificDetailInstanceType = (string) content.GetValueForProperty("EventSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventSpecificDetailInstanceType, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 EventProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("EventSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails) content.GetValueForProperty("EventSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("EventCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventCode = (string) content.GetValueForProperty("EventCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventCode, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("EventType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventType, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).AffectedObjectFriendlyName = (string) content.GetValueForProperty("AffectedObjectFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).AffectedObjectFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).AffectedObjectCorrelationId = (string) content.GetValueForProperty("AffectedObjectCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).AffectedObjectCorrelationId, global::System.Convert.ToString); + } + if (content.Contains("Severity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).Severity, global::System.Convert.ToString); + } + if (content.Contains("TimeOfOccurrence")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).TimeOfOccurrence = (global::System.DateTime?) content.GetValueForProperty("TimeOfOccurrence",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).TimeOfOccurrence, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).FabricId = (string) content.GetValueForProperty("FabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).FabricId, global::System.Convert.ToString); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("EventSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventSpecificDetailInstanceType = (string) content.GetValueForProperty("EventSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).EventSpecificDetailInstanceType, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The properties of a monitoring event. + [System.ComponentModel.TypeConverter(typeof(EventPropertiesTypeConverter))] + public partial interface IEventProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EventProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/EventProperties.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/EventProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/EventProperties.TypeConverter.cs index d05cb2ebd3ae..fe0c83abcb55 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IEventProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EventProperties.cs b/src/Migrate/generated/api/Models/Api202301/EventProperties.cs similarity index 84% rename from src/Migrate/generated/api/Models/Api20220501/EventProperties.cs rename to src/Migrate/generated/api/Models/Api202301/EventProperties.cs index 9ab3ee345836..f5b2898c047b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The properties of a monitoring event. public partial class EventProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal { /// Backing field for property. @@ -44,15 +44,15 @@ public partial class EventProperties : public string EventCode { get => this._eventCode; set => this._eventCode = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails _eventSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails _eventSpecificDetail; /// The event specific settings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails EventSpecificDetail { get => (this._eventSpecificDetail = this._eventSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventSpecificDetails()); set => this._eventSpecificDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails EventSpecificDetail { get => (this._eventSpecificDetail = this._eventSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventSpecificDetails()); set => this._eventSpecificDetail = value; } /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string EventSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetailsInternal)EventSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetailsInternal)EventSpecificDetail).InstanceType = value ?? null; } + public string EventSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetailsInternal)EventSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetailsInternal)EventSpecificDetail).InstanceType = value ?? null; } /// Backing field for property. private string _eventType; @@ -69,28 +69,28 @@ public partial class EventProperties : public string FabricId { get => this._fabricId; set => this._fabricId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthError; /// The list of errors / warnings capturing details associated with the issue(s). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => this._healthError; set => this._healthError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => this._healthError; set => this._healthError = value; } /// Internal Acessors for EventSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal.EventSpecificDetail { get => (this._eventSpecificDetail = this._eventSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventSpecificDetails()); set { {_eventSpecificDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal.EventSpecificDetail { get => (this._eventSpecificDetail = this._eventSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventSpecificDetails()); set { {_eventSpecificDetail = value;} } } /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails()); set { {_providerSpecificDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails()); set { {_providerSpecificDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails _providerSpecificDetail; /// The provider specific settings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails()); set => this._providerSpecificDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails()); set => this._providerSpecificDetail = value; } /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)ProviderSpecificDetail).InstanceType = value ?? null; } /// Backing field for property. private string _severity; @@ -180,8 +180,8 @@ public partial interface IEventProperties : ReadOnly = false, Description = @"The list of errors / warnings capturing details associated with the issue(s).", SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -223,7 +223,7 @@ internal partial interface IEventPropertiesInternal /// The Id of the monitoring event. string EventCode { get; set; } /// The event specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails EventSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails EventSpecificDetail { get; set; } /// Gets the class type. Overridden in derived classes. string EventSpecificDetailInstanceType { get; set; } /// The type of the event. for example: VM Health, Server Health, Job Failure etc. @@ -231,9 +231,9 @@ internal partial interface IEventPropertiesInternal /// The ARM ID of the fabric. string FabricId { get; set; } /// The list of errors / warnings capturing details associated with the issue(s). - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The provider specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails ProviderSpecificDetail { get; set; } /// Gets the class type. Overridden in derived classes. string ProviderSpecificDetailInstanceType { get; set; } /// The severity of the event. diff --git a/src/Migrate/generated/api/Models/Api20220501/EventProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/EventProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/EventProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/EventProperties.json.cs index b9eda8583d95..7342eb00acd1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,8 +65,8 @@ internal EventProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} - {_eventSpecificDetail = If( json?.PropertyT("eventSpecificDetails"), out var __jsonEventSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventSpecificDetails.FromJson(__jsonEventSpecificDetails) : EventSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_eventSpecificDetail = If( json?.PropertyT("eventSpecificDetails"), out var __jsonEventSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventSpecificDetails.FromJson(__jsonEventSpecificDetails) : EventSpecificDetail;} {_eventCode = If( json?.PropertyT("eventCode"), out var __jsonEventCode) ? (string)__jsonEventCode : (string)EventCode;} {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} {_eventType = If( json?.PropertyT("eventType"), out var __jsonEventType) ? (string)__jsonEventType : (string)EventType;} @@ -75,18 +75,18 @@ internal EventProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json {_severity = If( json?.PropertyT("severity"), out var __jsonSeverity) ? (string)__jsonSeverity : (string)Severity;} {_timeOfOccurrence = If( json?.PropertyT("timeOfOccurrence"), out var __jsonTimeOfOccurrence) ? global::System.DateTime.TryParse((string)__jsonTimeOfOccurrence, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonTimeOfOccurrenceValue) ? __jsonTimeOfOccurrenceValue : TimeOfOccurrence : TimeOfOccurrence;} {_fabricId = If( json?.PropertyT("fabricId"), out var __jsonFabricId) ? (string)__jsonFabricId : (string)FabricId;} - {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__u) )) ))() : null : HealthError;} + {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__u) )) ))() : null : HealthError;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new EventProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EventProviderSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/EventProviderSpecificDetails.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/EventProviderSpecificDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/EventProviderSpecificDetails.PowerShell.cs index b337f212f7dc..398b62f5bb3c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventProviderSpecificDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,35 +55,33 @@ public partial class EventProviderSpecificDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IEventProviderSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EventProviderSpecificDetails(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.Migrate.Models.Api20220501.IEventProviderSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EventProviderSpecificDetails(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,13 +96,13 @@ internal EventProviderSpecificDetails(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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. @@ -119,7 +117,7 @@ internal EventProviderSpecificDetails(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -129,7 +127,7 @@ internal EventProviderSpecificDetails(global::System.Management.Automation.PSObj /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/EventProviderSpecificDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/EventProviderSpecificDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/EventProviderSpecificDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/EventProviderSpecificDetails.TypeConverter.cs index 46bed73eee58..f8ecabdc0d62 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventProviderSpecificDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IEventProviderSpecificDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EventProviderSpecificDetails.cs b/src/Migrate/generated/api/Models/Api202301/EventProviderSpecificDetails.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/EventProviderSpecificDetails.cs rename to src/Migrate/generated/api/Models/Api202301/EventProviderSpecificDetails.cs index 1eed5eec05be..8564764135e2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventProviderSpecificDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Model class for provider specific details for an event. public partial class EventProviderSpecificDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/EventProviderSpecificDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/EventProviderSpecificDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/EventProviderSpecificDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/EventProviderSpecificDetails.json.cs index dd2718bcb33c..7929c7c7f12f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventProviderSpecificDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,15 +70,15 @@ internal EventProviderSpecificDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails 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.Migrate.Models.Api20220501.IEventProviderSpecificDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/EventQueryParameter.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/EventQueryParameter.PowerShell.cs new file mode 100644 index 000000000000..7b36fbedf7a1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/EventQueryParameter.PowerShell.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Implements the event query parameter. + [System.ComponentModel.TypeConverter(typeof(EventQueryParameterTypeConverter))] + public partial class EventQueryParameter + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IEventQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EventQueryParameter(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.Migrate.Models.Api202301.IEventQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EventQueryParameter(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EventQueryParameter(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("EventCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).EventCode = (string) content.GetValueForProperty("EventCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).EventCode, global::System.Convert.ToString); + } + if (content.Contains("Severity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).Severity, global::System.Convert.ToString); + } + if (content.Contains("EventType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).EventType, global::System.Convert.ToString); + } + if (content.Contains("FabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).FabricName, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).AffectedObjectFriendlyName = (string) content.GetValueForProperty("AffectedObjectFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).AffectedObjectFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).AffectedObjectCorrelationId = (string) content.GetValueForProperty("AffectedObjectCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).AffectedObjectCorrelationId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EventQueryParameter(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("EventCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).EventCode = (string) content.GetValueForProperty("EventCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).EventCode, global::System.Convert.ToString); + } + if (content.Contains("Severity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).Severity, global::System.Convert.ToString); + } + if (content.Contains("EventType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).EventType, global::System.Convert.ToString); + } + if (content.Contains("FabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).FabricName, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).AffectedObjectFriendlyName = (string) content.GetValueForProperty("AffectedObjectFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).AffectedObjectFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).AffectedObjectCorrelationId = (string) content.GetValueForProperty("AffectedObjectCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).AffectedObjectCorrelationId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Implements the event query parameter. + [System.ComponentModel.TypeConverter(typeof(EventQueryParameterTypeConverter))] + public partial interface IEventQueryParameter + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/EventQueryParameter.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/EventQueryParameter.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/EventQueryParameter.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/EventQueryParameter.TypeConverter.cs index 6b85d2455fde..421314743fd9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventQueryParameter.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IEventQueryParameter ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameter ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameter).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameter).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EventQueryParameter.cs b/src/Migrate/generated/api/Models/Api202301/EventQueryParameter.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/EventQueryParameter.cs rename to src/Migrate/generated/api/Models/Api202301/EventQueryParameter.cs index de63310dadb5..a631a40cad85 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventQueryParameter.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Implements the event query parameter. public partial class EventQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameter, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameterInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameter, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameterInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/EventQueryParameter.json.cs b/src/Migrate/generated/api/Models/Api202301/EventQueryParameter.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/EventQueryParameter.json.cs rename to src/Migrate/generated/api/Models/Api202301/EventQueryParameter.json.cs index 452b961641e7..dd1f6d7b1c10 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventQueryParameter.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -77,13 +77,13 @@ internal EventQueryParameter(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameter. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameter. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameter. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameter. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new EventQueryParameter(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EventSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/EventSpecificDetails.PowerShell.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/EventSpecificDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/EventSpecificDetails.PowerShell.cs index ae157e89fb20..7af806d092bf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventSpecificDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class EventSpecificDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IEventSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EventSpecificDetails(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.Migrate.Models.Api20220501.IEventSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EventSpecificDetails(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,13 +96,13 @@ internal EventSpecificDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetailsInternal)this).InstanceType, 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. @@ -117,7 +117,7 @@ internal EventSpecificDetails(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -127,7 +127,7 @@ internal EventSpecificDetails(global::System.Management.Automation.PSObject cont /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/EventSpecificDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/EventSpecificDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/EventSpecificDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/EventSpecificDetails.TypeConverter.cs index 36922c9504fd..8a604230b56a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventSpecificDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IEventSpecificDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/EventSpecificDetails.cs b/src/Migrate/generated/api/Models/Api202301/EventSpecificDetails.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/EventSpecificDetails.cs rename to src/Migrate/generated/api/Models/Api202301/EventSpecificDetails.cs index 6933966051a4..87a38e2f2fa5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventSpecificDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Model class for event specific details for an event. public partial class EventSpecificDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/EventSpecificDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/EventSpecificDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/EventSpecificDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/EventSpecificDetails.json.cs index 12a27e36b579..a1bef73847f7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/EventSpecificDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/EventSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,15 +70,15 @@ internal EventSpecificDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails 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.Migrate.Models.Api20220501.IEventSpecificDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingProtectionProfile.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ExistingProtectionProfile.PowerShell.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/ExistingProtectionProfile.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingProtectionProfile.PowerShell.cs index aa214f343202..fc1586e002d4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingProtectionProfile.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingProtectionProfile.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class ExistingProtectionProfile partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IExistingProtectionProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingProtectionProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ExistingProtectionProfile(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.Migrate.Models.Api20220501.IExistingProtectionProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingProtectionProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ExistingProtectionProfile(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,17 +96,17 @@ internal ExistingProtectionProfile(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("ProtectionProfileId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingProtectionProfileInternal)this).ProtectionProfileId = (string) content.GetValueForProperty("ProtectionProfileId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingProtectionProfileInternal)this).ProtectionProfileId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingProtectionProfileInternal)this).ProtectionProfileId = (string) content.GetValueForProperty("ProtectionProfileId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingProtectionProfileInternal)this).ProtectionProfileId, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)this).ResourceType, 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. @@ -121,11 +121,11 @@ internal ExistingProtectionProfile(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("ProtectionProfileId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingProtectionProfileInternal)this).ProtectionProfileId = (string) content.GetValueForProperty("ProtectionProfileId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingProtectionProfileInternal)this).ProtectionProfileId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingProtectionProfileInternal)this).ProtectionProfileId = (string) content.GetValueForProperty("ProtectionProfileId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingProtectionProfileInternal)this).ProtectionProfileId, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -135,7 +135,7 @@ internal ExistingProtectionProfile(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingProtectionProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingProtectionProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingProtectionProfile.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ExistingProtectionProfile.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ExistingProtectionProfile.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingProtectionProfile.TypeConverter.cs index 921649874653..1568f77c5147 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingProtectionProfile.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingProtectionProfile.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IExistingProtectionProfile ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingProtectionProfile ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingProtectionProfile).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingProtectionProfile).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingProtectionProfile.cs b/src/Migrate/generated/api/Models/Api202301/ExistingProtectionProfile.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/ExistingProtectionProfile.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingProtectionProfile.cs index 1c1b3be08325..8471e79a9b23 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingProtectionProfile.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingProtectionProfile.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Existing storage account input. public partial class ExistingProtectionProfile : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingProtectionProfile, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingProtectionProfileInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingProtectionProfile, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingProtectionProfileInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails __protectionProfileCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails __protectionProfileCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetails(); /// Backing field for property. private string _protectionProfileId; @@ -28,7 +28,7 @@ public partial class ExistingProtectionProfile : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)__protectionProfileCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)__protectionProfileCustomDetails).ResourceType = value ; } + public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)__protectionProfileCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)__protectionProfileCustomDetails).ResourceType = value ; } /// Creates an new instance. public ExistingProtectionProfile() @@ -51,7 +51,7 @@ public ExistingProtectionProfile() /// Existing storage account input. public partial interface IExistingProtectionProfile : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails { /// The protection profile Arm Id. Throw error, if resource does not exists. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IExistingProtectionProfile : } /// Existing storage account input. internal partial interface IExistingProtectionProfileInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal { /// The protection profile Arm Id. Throw error, if resource does not exists. string ProtectionProfileId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingProtectionProfile.json.cs b/src/Migrate/generated/api/Models/Api202301/ExistingProtectionProfile.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ExistingProtectionProfile.json.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingProtectionProfile.json.cs index 74db5e4d4535..aa980e48878e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingProtectionProfile.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingProtectionProfile.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ExistingProtectionProfile(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - __protectionProfileCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetails(json); + __protectionProfileCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetails(json); {_protectionProfileId = If( json?.PropertyT("protectionProfileId"), out var __jsonProtectionProfileId) ? (string)__jsonProtectionProfileId : (string)ProtectionProfileId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingProtectionProfile. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingProtectionProfile. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingProtectionProfile. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingProtectionProfile. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingProtectionProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingProtectionProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ExistingProtectionProfile(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryAvailabilitySet.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryAvailabilitySet.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryAvailabilitySet.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryAvailabilitySet.PowerShell.cs index 8ffa0a1450b9..72451866337d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryAvailabilitySet.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryAvailabilitySet.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class ExistingRecoveryAvailabilitySet partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IExistingRecoveryAvailabilitySet DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryAvailabilitySet DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ExistingRecoveryAvailabilitySet(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.Migrate.Models.Api20220501.IExistingRecoveryAvailabilitySet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryAvailabilitySet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ExistingRecoveryAvailabilitySet(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal ExistingRecoveryAvailabilitySet(global::System.Collections.IDictionary // actually deserialize if (content.Contains("RecoveryAvailabilitySetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryAvailabilitySetInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryAvailabilitySetInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryAvailabilitySetInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryAvailabilitySetInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType, 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,11 +123,11 @@ internal ExistingRecoveryAvailabilitySet(global::System.Management.Automation.PS // actually deserialize if (content.Contains("RecoveryAvailabilitySetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryAvailabilitySetInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryAvailabilitySetInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryAvailabilitySetInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryAvailabilitySetInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -137,7 +137,7 @@ internal ExistingRecoveryAvailabilitySet(global::System.Management.Automation.PS /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryAvailabilitySet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryAvailabilitySet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryAvailabilitySet.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryAvailabilitySet.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryAvailabilitySet.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryAvailabilitySet.TypeConverter.cs index 697511dd388b..9b4003301124 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryAvailabilitySet.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryAvailabilitySet.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IExistingRecoveryAvailabilitySet ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryAvailabilitySet ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryAvailabilitySet).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryAvailabilitySet).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryAvailabilitySet.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryAvailabilitySet.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryAvailabilitySet.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryAvailabilitySet.cs index 88e91b61b973..90fefce0720f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryAvailabilitySet.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryAvailabilitySet.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Existing recovery availability set input. public partial class ExistingRecoveryAvailabilitySet : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryAvailabilitySet, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryAvailabilitySetInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryAvailabilitySet, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryAvailabilitySetInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails __recoveryAvailabilitySetCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryAvailabilitySetCustomDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails __recoveryAvailabilitySetCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryAvailabilitySetCustomDetails(); /// Backing field for property. private string _recoveryAvailabilitySetId; @@ -28,7 +28,7 @@ public partial class ExistingRecoveryAvailabilitySet : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal)__recoveryAvailabilitySetCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal)__recoveryAvailabilitySetCustomDetails).ResourceType = value ; } + public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal)__recoveryAvailabilitySetCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal)__recoveryAvailabilitySetCustomDetails).ResourceType = value ; } /// Creates an new instance. public ExistingRecoveryAvailabilitySet() @@ -51,7 +51,7 @@ public ExistingRecoveryAvailabilitySet() /// Existing recovery availability set input. public partial interface IExistingRecoveryAvailabilitySet : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails { /// The recovery availability set Id. Will throw error, if resource does not exist. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IExistingRecoveryAvailabilitySet : } /// Existing recovery availability set input. internal partial interface IExistingRecoveryAvailabilitySetInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal { /// The recovery availability set Id. Will throw error, if resource does not exist. string RecoveryAvailabilitySetId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryAvailabilitySet.json.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryAvailabilitySet.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryAvailabilitySet.json.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryAvailabilitySet.json.cs index e0d47c11189e..bd6b293f2587 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryAvailabilitySet.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryAvailabilitySet.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ExistingRecoveryAvailabilitySet(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - __recoveryAvailabilitySetCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryAvailabilitySetCustomDetails(json); + __recoveryAvailabilitySetCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryAvailabilitySetCustomDetails(json); {_recoveryAvailabilitySetId = If( json?.PropertyT("recoveryAvailabilitySetId"), out var __jsonRecoveryAvailabilitySetId) ? (string)__jsonRecoveryAvailabilitySetId : (string)RecoveryAvailabilitySetId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryAvailabilitySet. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryAvailabilitySet. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryAvailabilitySet. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryAvailabilitySet. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryAvailabilitySet FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryAvailabilitySet FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ExistingRecoveryAvailabilitySet(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryProximityPlacementGroup.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryProximityPlacementGroup.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryProximityPlacementGroup.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryProximityPlacementGroup.PowerShell.cs index 2f37025705c8..2d3f9c9cfb80 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryProximityPlacementGroup.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryProximityPlacementGroup.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class ExistingRecoveryProximityPlacementGroup partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IExistingRecoveryProximityPlacementGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryProximityPlacementGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ExistingRecoveryProximityPlacementGroup(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.Migrate.Models.Api20220501.IExistingRecoveryProximityPlacementGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryProximityPlacementGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ExistingRecoveryProximityPlacementGroup(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal ExistingRecoveryProximityPlacementGroup(global::System.Collections.IDic // actually deserialize if (content.Contains("RecoveryProximityPlacementGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryProximityPlacementGroupInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryProximityPlacementGroupInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryProximityPlacementGroupInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryProximityPlacementGroupInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType, 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,11 +123,11 @@ internal ExistingRecoveryProximityPlacementGroup(global::System.Management.Autom // actually deserialize if (content.Contains("RecoveryProximityPlacementGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryProximityPlacementGroupInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryProximityPlacementGroupInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryProximityPlacementGroupInternal)this).RecoveryProximityPlacementGroupId = (string) content.GetValueForProperty("RecoveryProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryProximityPlacementGroupInternal)this).RecoveryProximityPlacementGroupId, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -140,7 +140,7 @@ internal ExistingRecoveryProximityPlacementGroup(global::System.Management.Autom /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryProximityPlacementGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryProximityPlacementGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryProximityPlacementGroup.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryProximityPlacementGroup.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryProximityPlacementGroup.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryProximityPlacementGroup.TypeConverter.cs index 4e40c39d5231..3689fe1da362 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryProximityPlacementGroup.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryProximityPlacementGroup.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IExistingRecoveryProximityPlacementGroup ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryProximityPlacementGroup ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryProximityPlacementGroup).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryProximityPlacementGroup).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryProximityPlacementGroup.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryProximityPlacementGroup.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryProximityPlacementGroup.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryProximityPlacementGroup.cs index f3d804e300d1..0c1db1d96aba 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryProximityPlacementGroup.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryProximityPlacementGroup.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Existing recovery proximity placement group input. public partial class ExistingRecoveryProximityPlacementGroup : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryProximityPlacementGroup, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryProximityPlacementGroupInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryProximityPlacementGroup, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryProximityPlacementGroupInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails __recoveryProximityPlacementGroupCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryProximityPlacementGroupCustomDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails __recoveryProximityPlacementGroupCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryProximityPlacementGroupCustomDetails(); /// Backing field for property. private string _recoveryProximityPlacementGroupId; @@ -30,7 +30,7 @@ public partial class ExistingRecoveryProximityPlacementGroup : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal)__recoveryProximityPlacementGroupCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal)__recoveryProximityPlacementGroupCustomDetails).ResourceType = value ; } + public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal)__recoveryProximityPlacementGroupCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal)__recoveryProximityPlacementGroupCustomDetails).ResourceType = value ; } /// Creates an new instance. public ExistingRecoveryProximityPlacementGroup() @@ -53,7 +53,7 @@ public ExistingRecoveryProximityPlacementGroup() /// Existing recovery proximity placement group input. public partial interface IExistingRecoveryProximityPlacementGroup : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails { /// /// The recovery proximity placement group Id. Will throw error, if resource does not exist. @@ -69,7 +69,7 @@ public partial interface IExistingRecoveryProximityPlacementGroup : } /// Existing recovery proximity placement group input. internal partial interface IExistingRecoveryProximityPlacementGroupInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal { /// /// The recovery proximity placement group Id. Will throw error, if resource does not exist. diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryProximityPlacementGroup.json.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryProximityPlacementGroup.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryProximityPlacementGroup.json.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryProximityPlacementGroup.json.cs index 114de0bf277d..a6bb09a1b4a4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryProximityPlacementGroup.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryProximityPlacementGroup.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ExistingRecoveryProximityPlacementGroup(Microsoft.Azure.PowerShell.Cmdl { return; } - __recoveryProximityPlacementGroupCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryProximityPlacementGroupCustomDetails(json); + __recoveryProximityPlacementGroupCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryProximityPlacementGroupCustomDetails(json); {_recoveryProximityPlacementGroupId = If( json?.PropertyT("recoveryProximityPlacementGroupId"), out var __jsonRecoveryProximityPlacementGroupId) ? (string)__jsonRecoveryProximityPlacementGroupId : (string)RecoveryProximityPlacementGroupId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryProximityPlacementGroup. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryProximityPlacementGroup. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryProximityPlacementGroup. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryProximityPlacementGroup. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryProximityPlacementGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryProximityPlacementGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ExistingRecoveryProximityPlacementGroup(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryResourceGroup.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryResourceGroup.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryResourceGroup.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryResourceGroup.PowerShell.cs index b7171d575b3c..a4028ca3e18e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryResourceGroup.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryResourceGroup.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class ExistingRecoveryResourceGroup partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IExistingRecoveryResourceGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryResourceGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ExistingRecoveryResourceGroup(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.Migrate.Models.Api20220501.IExistingRecoveryResourceGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryResourceGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ExistingRecoveryResourceGroup(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal ExistingRecoveryResourceGroup(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("RecoveryResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryResourceGroupInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryResourceGroupInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryResourceGroupInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryResourceGroupInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType, 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,11 +123,11 @@ internal ExistingRecoveryResourceGroup(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("RecoveryResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryResourceGroupInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryResourceGroupInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryResourceGroupInternal)this).RecoveryResourceGroupId = (string) content.GetValueForProperty("RecoveryResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryResourceGroupInternal)this).RecoveryResourceGroupId, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -137,7 +137,7 @@ internal ExistingRecoveryResourceGroup(global::System.Management.Automation.PSOb /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryResourceGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryResourceGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryResourceGroup.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryResourceGroup.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryResourceGroup.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryResourceGroup.TypeConverter.cs index f0a410a00700..ccf2c81444e6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryResourceGroup.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryResourceGroup.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IExistingRecoveryResourceGroup ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryResourceGroup ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryResourceGroup).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryResourceGroup).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryResourceGroup.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryResourceGroup.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryResourceGroup.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryResourceGroup.cs index a7503d39a397..bf5fc5d190bd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryResourceGroup.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryResourceGroup.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Existing recovery resource group input. public partial class ExistingRecoveryResourceGroup : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryResourceGroup, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryResourceGroupInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryResourceGroup, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryResourceGroupInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails __recoveryResourceGroupCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryResourceGroupCustomDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails __recoveryResourceGroupCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryResourceGroupCustomDetails(); /// Backing field for property. private string _recoveryResourceGroupId; @@ -28,7 +28,7 @@ public partial class ExistingRecoveryResourceGroup : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetailsInternal)__recoveryResourceGroupCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetailsInternal)__recoveryResourceGroupCustomDetails).ResourceType = value ; } + public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetailsInternal)__recoveryResourceGroupCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetailsInternal)__recoveryResourceGroupCustomDetails).ResourceType = value ; } /// Creates an new instance. public ExistingRecoveryResourceGroup() @@ -51,7 +51,7 @@ public ExistingRecoveryResourceGroup() /// Existing recovery resource group input. public partial interface IExistingRecoveryResourceGroup : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails { /// The recovery resource group Id. Valid for V2 scenarios. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IExistingRecoveryResourceGroup : } /// Existing recovery resource group input. internal partial interface IExistingRecoveryResourceGroupInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetailsInternal { /// The recovery resource group Id. Valid for V2 scenarios. string RecoveryResourceGroupId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryResourceGroup.json.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryResourceGroup.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryResourceGroup.json.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryResourceGroup.json.cs index 2e32daceba45..16569adf0261 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryResourceGroup.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryResourceGroup.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ExistingRecoveryResourceGroup(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - __recoveryResourceGroupCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryResourceGroupCustomDetails(json); + __recoveryResourceGroupCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryResourceGroupCustomDetails(json); {_recoveryResourceGroupId = If( json?.PropertyT("recoveryResourceGroupId"), out var __jsonRecoveryResourceGroupId) ? (string)__jsonRecoveryResourceGroupId : (string)RecoveryResourceGroupId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryResourceGroup. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryResourceGroup. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryResourceGroup. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryResourceGroup. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryResourceGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryResourceGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ExistingRecoveryResourceGroup(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryVirtualNetwork.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryVirtualNetwork.PowerShell.cs new file mode 100644 index 000000000000..68178ed065ae --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryVirtualNetwork.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Existing recovery virtual network input. + [System.ComponentModel.TypeConverter(typeof(ExistingRecoveryVirtualNetworkTypeConverter))] + public partial class ExistingRecoveryVirtualNetwork + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IExistingRecoveryVirtualNetwork DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExistingRecoveryVirtualNetwork(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.Migrate.Models.Api202301.IExistingRecoveryVirtualNetwork DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExistingRecoveryVirtualNetwork(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExistingRecoveryVirtualNetwork(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryVirtualNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkId = (string) content.GetValueForProperty("RecoveryVirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkId, global::System.Convert.ToString); + } + if (content.Contains("RecoverySubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetworkInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetworkInternal)this).RecoverySubnetName, global::System.Convert.ToString); + } + if (content.Contains("ResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType, 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 ExistingRecoveryVirtualNetwork(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryVirtualNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkId = (string) content.GetValueForProperty("RecoveryVirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkId, global::System.Convert.ToString); + } + if (content.Contains("RecoverySubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetworkInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetworkInternal)this).RecoverySubnetName, global::System.Convert.ToString); + } + if (content.Contains("ResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetwork FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Existing recovery virtual network input. + [System.ComponentModel.TypeConverter(typeof(ExistingRecoveryVirtualNetworkTypeConverter))] + public partial interface IExistingRecoveryVirtualNetwork + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryVirtualNetwork.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryVirtualNetwork.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryVirtualNetwork.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryVirtualNetwork.TypeConverter.cs index 21fa8cf9bd7d..0705e629a692 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryVirtualNetwork.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryVirtualNetwork.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetwork ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetwork ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetwork).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetwork).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryVirtualNetwork.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryVirtualNetwork.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryVirtualNetwork.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryVirtualNetwork.cs index e6f4ca979c0a..545ef3e8504a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryVirtualNetwork.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryVirtualNetwork.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Existing recovery virtual network input. public partial class ExistingRecoveryVirtualNetwork : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetwork, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetworkInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetwork, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetworkInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails __recoveryVirtualNetworkCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails __recoveryVirtualNetworkCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetails(); /// Backing field for property. private string _recoverySubnetName; @@ -35,7 +35,7 @@ public partial class ExistingRecoveryVirtualNetwork : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)__recoveryVirtualNetworkCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)__recoveryVirtualNetworkCustomDetails).ResourceType = value ; } + public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)__recoveryVirtualNetworkCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)__recoveryVirtualNetworkCustomDetails).ResourceType = value ; } /// Creates an new instance. public ExistingRecoveryVirtualNetwork() @@ -58,7 +58,7 @@ public ExistingRecoveryVirtualNetwork() /// Existing recovery virtual network input. public partial interface IExistingRecoveryVirtualNetwork : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails { /// The recovery subnet name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -80,7 +80,7 @@ public partial interface IExistingRecoveryVirtualNetwork : } /// Existing recovery virtual network input. internal partial interface IExistingRecoveryVirtualNetworkInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal { /// The recovery subnet name. string RecoverySubnetName { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryVirtualNetwork.json.cs b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryVirtualNetwork.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryVirtualNetwork.json.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingRecoveryVirtualNetwork.json.cs index fd2e5e94f23a..33eeb8dfad29 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingRecoveryVirtualNetwork.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingRecoveryVirtualNetwork.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,20 +65,20 @@ internal ExistingRecoveryVirtualNetwork(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - __recoveryVirtualNetworkCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetails(json); + __recoveryVirtualNetworkCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetails(json); {_recoveryVirtualNetworkId = If( json?.PropertyT("recoveryVirtualNetworkId"), out var __jsonRecoveryVirtualNetworkId) ? (string)__jsonRecoveryVirtualNetworkId : (string)RecoveryVirtualNetworkId;} {_recoverySubnetName = If( json?.PropertyT("recoverySubnetName"), out var __jsonRecoverySubnetName) ? (string)__jsonRecoverySubnetName : (string)RecoverySubnetName;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetwork. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetwork. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetwork. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetwork. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingRecoveryVirtualNetwork FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingRecoveryVirtualNetwork FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ExistingRecoveryVirtualNetwork(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingStorageAccount.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ExistingStorageAccount.PowerShell.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/ExistingStorageAccount.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingStorageAccount.PowerShell.cs index 5f748efebe27..9856d6f208ac 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingStorageAccount.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingStorageAccount.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class ExistingStorageAccount partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IExistingStorageAccount DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingStorageAccount DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ExistingStorageAccount(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.Migrate.Models.Api20220501.IExistingStorageAccount DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingStorageAccount DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ExistingStorageAccount(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,17 +96,17 @@ internal ExistingStorageAccount(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AzureStorageAccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingStorageAccountInternal)this).AzureStorageAccountId = (string) content.GetValueForProperty("AzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingStorageAccountInternal)this).AzureStorageAccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingStorageAccountInternal)this).AzureStorageAccountId = (string) content.GetValueForProperty("AzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingStorageAccountInternal)this).AzureStorageAccountId, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)this).ResourceType, 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. @@ -121,11 +121,11 @@ internal ExistingStorageAccount(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("AzureStorageAccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingStorageAccountInternal)this).AzureStorageAccountId = (string) content.GetValueForProperty("AzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingStorageAccountInternal)this).AzureStorageAccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingStorageAccountInternal)this).AzureStorageAccountId = (string) content.GetValueForProperty("AzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingStorageAccountInternal)this).AzureStorageAccountId, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -135,7 +135,7 @@ internal ExistingStorageAccount(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.Migrate.Models.Api20220501.IExistingStorageAccount FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingStorageAccount FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingStorageAccount.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ExistingStorageAccount.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ExistingStorageAccount.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingStorageAccount.TypeConverter.cs index de9abd667176..7bca9ddc2bb3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingStorageAccount.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingStorageAccount.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IExistingStorageAccount ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingStorageAccount ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingStorageAccount).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingStorageAccount).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingStorageAccount.cs b/src/Migrate/generated/api/Models/Api202301/ExistingStorageAccount.cs similarity index 84% rename from src/Migrate/generated/api/Models/Api20220501/ExistingStorageAccount.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingStorageAccount.cs index 114d317b0f0e..b59756d438ae 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingStorageAccount.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingStorageAccount.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Existing storage account input. public partial class ExistingStorageAccount : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingStorageAccount, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingStorageAccountInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingStorageAccount, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingStorageAccountInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails __storageAccountCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails __storageAccountCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails(); /// Backing field for property. private string _azureStorageAccountId; @@ -28,7 +28,7 @@ public partial class ExistingStorageAccount : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)__storageAccountCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)__storageAccountCustomDetails).ResourceType = value ; } + public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)__storageAccountCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)__storageAccountCustomDetails).ResourceType = value ; } /// Creates an new instance. public ExistingStorageAccount() @@ -51,7 +51,7 @@ public ExistingStorageAccount() /// Existing storage account input. public partial interface IExistingStorageAccount : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails { /// The storage account Arm Id. Throw error, if resource does not exists. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IExistingStorageAccount : } /// Existing storage account input. internal partial interface IExistingStorageAccountInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal { /// The storage account Arm Id. Throw error, if resource does not exists. string AzureStorageAccountId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExistingStorageAccount.json.cs b/src/Migrate/generated/api/Models/Api202301/ExistingStorageAccount.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ExistingStorageAccount.json.cs rename to src/Migrate/generated/api/Models/Api202301/ExistingStorageAccount.json.cs index d76fa381d528..52b73b94b700 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExistingStorageAccount.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExistingStorageAccount.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ExistingStorageAccount(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - __storageAccountCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageAccountCustomDetails(json); + __storageAccountCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageAccountCustomDetails(json); {_azureStorageAccountId = If( json?.PropertyT("azureStorageAccountId"), out var __jsonAzureStorageAccountId) ? (string)__jsonAzureStorageAccountId : (string)AzureStorageAccountId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingStorageAccount. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingStorageAccount. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingStorageAccount. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingStorageAccount. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExistingStorageAccount FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExistingStorageAccount FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ExistingStorageAccount(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ExportJobDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ExportJobDetails.PowerShell.cs new file mode 100644 index 000000000000..16ea662b8b04 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ExportJobDetails.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class represents details for export jobs workflow. + [System.ComponentModel.TypeConverter(typeof(ExportJobDetailsTypeConverter))] + public partial class ExportJobDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IExportJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExportJobDetails(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.Migrate.Models.Api202301.IExportJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExportJobDetails(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExportJobDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("BlobUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetailsInternal)this).BlobUri = (string) content.GetValueForProperty("BlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetailsInternal)this).BlobUri, global::System.Convert.ToString); + } + if (content.Contains("SasToken")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetailsInternal)this).SasToken = (string) content.GetValueForProperty("SasToken",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetailsInternal)this).SasToken, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ExportJobDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("BlobUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetailsInternal)this).BlobUri = (string) content.GetValueForProperty("BlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetailsInternal)this).BlobUri, global::System.Convert.ToString); + } + if (content.Contains("SasToken")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetailsInternal)this).SasToken = (string) content.GetValueForProperty("SasToken",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetailsInternal)this).SasToken, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class represents details for export jobs workflow. + [System.ComponentModel.TypeConverter(typeof(ExportJobDetailsTypeConverter))] + public partial interface IExportJobDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ExportJobDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ExportJobDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/ExportJobDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ExportJobDetails.TypeConverter.cs index 14fdd5c44e70..99dfd4e9a155 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExportJobDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExportJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IExportJobDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExportJobDetails.cs b/src/Migrate/generated/api/Models/Api202301/ExportJobDetails.cs similarity index 84% rename from src/Migrate/generated/api/Models/Api20220501/ExportJobDetails.cs rename to src/Migrate/generated/api/Models/Api202301/ExportJobDetails.cs index 623534134c54..223a2d78c3a1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExportJobDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExportJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// This class represents details for export jobs workflow. public partial class ExportJobDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails(); /// /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow /// object details. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).AffectedObjectDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).AffectedObjectDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).AffectedObjectDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).AffectedObjectDetail = value ?? null /* model class */; } /// Backing field for property. private string _blobUri; @@ -35,7 +35,7 @@ public partial class ExportJobDetails : /// Gets the type of job details (see JobDetailsTypes enum for possible values). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).InstanceType = value ; } /// Backing field for property. private string _sasToken; @@ -65,7 +65,7 @@ public ExportJobDetails() /// This class represents details for export jobs workflow. public partial interface IExportJobDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails { /// BlobUri of the exported jobs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -87,7 +87,7 @@ public partial interface IExportJobDetails : } /// This class represents details for export jobs workflow. internal partial interface IExportJobDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal { /// BlobUri of the exported jobs. string BlobUri { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExportJobDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/ExportJobDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ExportJobDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/ExportJobDetails.json.cs index 1df6ea2e78f7..3662676dad96 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExportJobDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExportJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,20 +65,20 @@ internal ExportJobDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Jso { return; } - __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails(json); + __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails(json); {_blobUri = If( json?.PropertyT("blobUri"), out var __jsonBlobUri) ? (string)__jsonBlobUri : (string)BlobUri;} {_sasToken = If( json?.PropertyT("sasToken"), out var __jsonSasToken) ? (string)__jsonSasToken : (string)SasToken;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExportJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExportJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ExportJobDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExtendedLocation.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ExtendedLocation.PowerShell.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/ExtendedLocation.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ExtendedLocation.PowerShell.cs index 0f15cc61d466..4e18c8640368 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExtendedLocation.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExtendedLocation.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class ExtendedLocation partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IExtendedLocation DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ExtendedLocation(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.Migrate.Models.Api20220501.IExtendedLocation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ExtendedLocation(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,17 +96,17 @@ internal ExtendedLocation(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -121,11 +121,11 @@ internal ExtendedLocation(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -135,7 +135,7 @@ internal ExtendedLocation(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.Migrate.Models.Api20220501.IExtendedLocation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/ExtendedLocation.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ExtendedLocation.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/ExtendedLocation.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ExtendedLocation.TypeConverter.cs index 39a37a05616f..a887d8ff78c8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExtendedLocation.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExtendedLocation.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IExtendedLocation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ExtendedLocation.cs b/src/Migrate/generated/api/Models/Api202301/ExtendedLocation.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ExtendedLocation.cs rename to src/Migrate/generated/api/Models/Api202301/ExtendedLocation.cs index 1752b6d3227a..a03dc30f07d3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExtendedLocation.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExtendedLocation.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Extended location of the resource. public partial class ExtendedLocation : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal { /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocationInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; diff --git a/src/Migrate/generated/api/Models/Api20220501/ExtendedLocation.json.cs b/src/Migrate/generated/api/Models/Api202301/ExtendedLocation.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ExtendedLocation.json.cs rename to src/Migrate/generated/api/Models/Api202301/ExtendedLocation.json.cs index f773db6c9040..64e0596255dd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ExtendedLocation.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ExtendedLocation.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ExtendedLocation(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Jso } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IExtendedLocation FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ExtendedLocation(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/Fabric.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/Fabric.PowerShell.cs new file mode 100644 index 000000000000..e6c4c5205101 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/Fabric.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Fabric definition. + [System.ComponentModel.TypeConverter(typeof(FabricTypeConverter))] + public partial class Fabric + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IFabric DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Fabric(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.Migrate.Models.Api202301.IFabric DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Fabric(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Fabric(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.Migrate.Models.Api202301.IFabricInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, 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 Fabric(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.Migrate.Models.Api202301.IFabricInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Fabric definition. + [System.ComponentModel.TypeConverter(typeof(FabricTypeConverter))] + public partial interface IFabric + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Fabric.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/Fabric.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/Fabric.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/Fabric.TypeConverter.cs index 8b897b267043..b1cce693b345 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Fabric.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/Fabric.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFabric ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/Fabric.cs b/src/Migrate/generated/api/Models/Api202301/Fabric.cs new file mode 100644 index 000000000000..ee47b317e824 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/Fabric.cs @@ -0,0 +1,95 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Fabric definition. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.DoNotFormat] + public partial class Fabric : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricProperties _property; + + /// Fabric related data. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricProperties()); set => this._property = value; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public Fabric() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Fabric definition. + public partial interface IFabric : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// Fabric related data. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Fabric related data.", + SerializedName = @"properties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricProperties Property { get; set; } + + } + /// Fabric definition. + internal partial interface IFabricInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// Fabric related data. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Fabric.json.cs b/src/Migrate/generated/api/Models/Api202301/Fabric.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/Fabric.json.cs rename to src/Migrate/generated/api/Models/Api202301/Fabric.json.cs index d4eedbae686e..c80f87e69e91 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Fabric.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/Fabric.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal Fabric(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObje { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new Fabric(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/FabricCollection.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/FabricCollection.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/FabricCollection.PowerShell.cs index f2ed333dd1aa..d324cfa25bca 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricCollection.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class FabricCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IFabricCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FabricCollection(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.Migrate.Models.Api20220501.IFabricCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FabricCollection(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,17 +96,17 @@ internal FabricCollection(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollectionInternal)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. @@ -121,11 +121,11 @@ internal FabricCollection(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollectionInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -135,7 +135,7 @@ internal FabricCollection(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.Migrate.Models.Api20220501.IFabricCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/FabricCollection.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/FabricCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/FabricCollection.TypeConverter.cs index 8f0d4eeadd49..913bfec87bad 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFabricCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricCollection.cs b/src/Migrate/generated/api/Models/Api202301/FabricCollection.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/FabricCollection.cs rename to src/Migrate/generated/api/Models/Api202301/FabricCollection.cs index 6b9d46a34274..54cd1269cd2e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Collection of fabric details. public partial class FabricCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class FabricCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric[] _value; /// The fabric details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public FabricCollection() @@ -51,8 +51,8 @@ public partial interface IFabricCollection : ReadOnly = false, Description = @"The fabric details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric[] Value { get; set; } } /// Collection of fabric details. @@ -62,7 +62,7 @@ internal partial interface IFabricCollectionInternal /// The value of next link. string NextLink { get; set; } /// The fabric details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/FabricCollection.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/FabricCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/FabricCollection.json.cs index 916e2ed70253..1feacfcb1337 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal FabricCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Jso { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFabric) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Fabric.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IFabric) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Fabric.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new FabricCollection(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/FabricCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/FabricCreationInput.PowerShell.cs new file mode 100644 index 000000000000..9af2964fa4d7 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/FabricCreationInput.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Site details provided during the time of site creation. + [System.ComponentModel.TypeConverter(typeof(FabricCreationInputTypeConverter))] + public partial class FabricCreationInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IFabricCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FabricCreationInput(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.Migrate.Models.Api202301.IFabricCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FabricCreationInput(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FabricCreationInput(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.Migrate.Models.Api202301.IFabricCreationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricCreationInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInputTypeConverter.ConvertFrom); + } + if (content.Contains("CustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputInternal)this).CustomDetailInstanceType, 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 FabricCreationInput(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.Migrate.Models.Api202301.IFabricCreationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricCreationInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInputTypeConverter.ConvertFrom); + } + if (content.Contains("CustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Site details provided during the time of site creation. + [System.ComponentModel.TypeConverter(typeof(FabricCreationInputTypeConverter))] + public partial interface IFabricCreationInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/FabricCreationInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/FabricCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/FabricCreationInput.TypeConverter.cs index 5fe43207c939..634abee3800e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFabricCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/FabricCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/FabricCreationInput.cs new file mode 100644 index 000000000000..58d3d98ff1cf --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/FabricCreationInput.cs @@ -0,0 +1,65 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Site details provided during the time of site creation. + public partial class FabricCreationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputInternal + { + + /// Gets the class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputPropertiesInternal)Property).CustomDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputPropertiesInternal)Property).CustomDetailInstanceType = value ?? null; } + + /// Internal Acessors for CustomDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputInternal.CustomDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputPropertiesInternal)Property).CustomDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputPropertiesInternal)Property).CustomDetail = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricCreationInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties _property; + + /// Fabric creation input. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricCreationInputProperties()); set => this._property = value; } + + /// Creates an new instance. + public FabricCreationInput() + { + + } + } + /// Site details provided during the time of site creation. + public partial interface IFabricCreationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Gets the class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string CustomDetailInstanceType { get; set; } + + } + /// Site details provided during the time of site creation. + internal partial interface IFabricCreationInputInternal + + { + /// Fabric provider specific creation input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput CustomDetail { get; set; } + /// Gets the class type. + string CustomDetailInstanceType { get; set; } + /// Fabric creation input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/FabricCreationInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/FabricCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/FabricCreationInput.json.cs index 11e7bca908e6..bd203d310ccb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal FabricCreationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime. { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricCreationInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricCreationInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new FabricCreationInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/FabricCreationInputProperties.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/FabricCreationInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/FabricCreationInputProperties.PowerShell.cs index 1b06141bfa27..a286111ba6ea 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricCreationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class FabricCreationInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IFabricCreationInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FabricCreationInputProperties(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.Migrate.Models.Api20220501.IFabricCreationInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FabricCreationInputProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal FabricCreationInputProperties(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("CustomDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputPropertiesInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputPropertiesInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputPropertiesInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputPropertiesInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInputTypeConverter.ConvertFrom); } if (content.Contains("CustomDetailInstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputPropertiesInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputPropertiesInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputPropertiesInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputPropertiesInternal)this).CustomDetailInstanceType, 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,11 +123,11 @@ internal FabricCreationInputProperties(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("CustomDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputPropertiesInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputPropertiesInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputPropertiesInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputPropertiesInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInputTypeConverter.ConvertFrom); } if (content.Contains("CustomDetailInstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputPropertiesInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputPropertiesInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputPropertiesInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputPropertiesInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -137,7 +137,7 @@ internal FabricCreationInputProperties(global::System.Management.Automation.PSOb /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/FabricCreationInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/FabricCreationInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/FabricCreationInputProperties.TypeConverter.cs index f985502a1b9c..f44d90e1298e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricCreationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFabricCreationInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/FabricCreationInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/FabricCreationInputProperties.cs new file mode 100644 index 000000000000..214f653c1e30 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/FabricCreationInputProperties.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Properties of site details provided during the time of site creation. + public partial class FabricCreationInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputPropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput _customDetail; + + /// Fabric provider specific creation input. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInput()); set => this._customDetail = value; } + + /// Gets the class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)CustomDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)CustomDetail).InstanceType = value ?? null; } + + /// Internal Acessors for CustomDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputPropertiesInternal.CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInput()); set { {_customDetail = value;} } } + + /// Creates an new instance. + public FabricCreationInputProperties() + { + + } + } + /// Properties of site details provided during the time of site creation. + public partial interface IFabricCreationInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Gets the class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string CustomDetailInstanceType { get; set; } + + } + /// Properties of site details provided during the time of site creation. + internal partial interface IFabricCreationInputPropertiesInternal + + { + /// Fabric provider specific creation input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput CustomDetail { get; set; } + /// Gets the class type. + string CustomDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/FabricCreationInputProperties.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/FabricCreationInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/FabricCreationInputProperties.json.cs index f1a734fad20d..2525d534d74f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricCreationInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricCreationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal FabricCreationInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - {_customDetail = If( json?.PropertyT("customDetails"), out var __jsonCustomDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInput.FromJson(__jsonCustomDetails) : CustomDetail;} + {_customDetail = If( json?.PropertyT("customDetails"), out var __jsonCustomDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInput.FromJson(__jsonCustomDetails) : CustomDetail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricCreationInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCreationInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new FabricCreationInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/FabricProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/FabricProperties.PowerShell.cs new file mode 100644 index 000000000000..9b95a1cd3989 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/FabricProperties.PowerShell.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Fabric properties. + [System.ComponentModel.TypeConverter(typeof(FabricPropertiesTypeConverter))] + public partial class FabricProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IFabricProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FabricProperties(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.Migrate.Models.Api202301.IFabricProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FabricProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FabricProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("EncryptionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).EncryptionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails) content.GetValueForProperty("EncryptionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).EncryptionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EncryptionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RolloverEncryptionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).RolloverEncryptionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails) content.GetValueForProperty("RolloverEncryptionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).RolloverEncryptionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EncryptionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("InternalIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).InternalIdentifier = (string) content.GetValueForProperty("InternalIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).InternalIdentifier, global::System.Convert.ToString); + } + if (content.Contains("BcdrState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).BcdrState = (string) content.GetValueForProperty("BcdrState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).BcdrState, global::System.Convert.ToString); + } + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("HealthErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).Health = (string) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).Health, 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 FabricProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("EncryptionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).EncryptionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails) content.GetValueForProperty("EncryptionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).EncryptionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EncryptionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RolloverEncryptionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).RolloverEncryptionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails) content.GetValueForProperty("RolloverEncryptionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).RolloverEncryptionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EncryptionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("InternalIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).InternalIdentifier = (string) content.GetValueForProperty("InternalIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).InternalIdentifier, global::System.Convert.ToString); + } + if (content.Contains("BcdrState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).BcdrState = (string) content.GetValueForProperty("BcdrState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).BcdrState, global::System.Convert.ToString); + } + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("HealthErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).Health = (string) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal)this).Health, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Fabric properties. + [System.ComponentModel.TypeConverter(typeof(FabricPropertiesTypeConverter))] + public partial interface IFabricProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/FabricProperties.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/FabricProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/FabricProperties.TypeConverter.cs index 0f7ac5695b1c..d0b2a9c2c64f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFabricProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricProperties.cs b/src/Migrate/generated/api/Models/Api202301/FabricProperties.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/FabricProperties.cs rename to src/Migrate/generated/api/Models/Api202301/FabricProperties.cs index dc8dc4da5821..4e034498222b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Fabric properties. public partial class FabricProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricPropertiesInternal { /// Backing field for property. @@ -21,18 +21,18 @@ public partial class FabricProperties : public string BcdrState { get => this._bcdrState; set => this._bcdrState = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails _customDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails _customDetail; /// Fabric specific settings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails()); set => this._customDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails()); set => this._customDetail = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails _encryptionDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails _encryptionDetail; /// Encryption details for the fabric. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails EncryptionDetail { get => (this._encryptionDetail = this._encryptionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EncryptionDetails()); set => this._encryptionDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails EncryptionDetail { get => (this._encryptionDetail = this._encryptionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EncryptionDetails()); set => this._encryptionDetail = value; } /// Backing field for property. private string _friendlyName; @@ -49,11 +49,11 @@ public partial class FabricProperties : public string Health { get => this._health; set => this._health = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthErrorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthErrorDetail; /// Fabric health error details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get => this._healthErrorDetail; set => this._healthErrorDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get => this._healthErrorDetail; set => this._healthErrorDetail = value; } /// Backing field for property. private string _internalIdentifier; @@ -63,11 +63,11 @@ public partial class FabricProperties : public string InternalIdentifier { get => this._internalIdentifier; set => this._internalIdentifier = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails _rolloverEncryptionDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails _rolloverEncryptionDetail; /// Rollover encryption details for the fabric. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails RolloverEncryptionDetail { get => (this._rolloverEncryptionDetail = this._rolloverEncryptionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EncryptionDetails()); set => this._rolloverEncryptionDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails RolloverEncryptionDetail { get => (this._rolloverEncryptionDetail = this._rolloverEncryptionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EncryptionDetails()); set => this._rolloverEncryptionDetail = value; } /// Creates an new instance. public FabricProperties() @@ -93,16 +93,16 @@ public partial interface IFabricProperties : ReadOnly = false, Description = @"Fabric specific settings.", SerializedName = @"customDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails CustomDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails CustomDetail { get; set; } /// Encryption details for the fabric. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"Encryption details for the fabric.", SerializedName = @"encryptionDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails EncryptionDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails EncryptionDetail { get; set; } /// Friendly name of the fabric. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -125,8 +125,8 @@ public partial interface IFabricProperties : ReadOnly = false, Description = @"Fabric health error details.", SerializedName = @"healthErrorDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get; set; } /// Dra Registration Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -141,8 +141,8 @@ public partial interface IFabricProperties : ReadOnly = false, Description = @"Rollover encryption details for the fabric.", SerializedName = @"rolloverEncryptionDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails RolloverEncryptionDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails RolloverEncryptionDetail { get; set; } } /// Fabric properties. @@ -152,19 +152,19 @@ internal partial interface IFabricPropertiesInternal /// BCDR state of the fabric. string BcdrState { get; set; } /// Fabric specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails CustomDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails CustomDetail { get; set; } /// Encryption details for the fabric. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails EncryptionDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails EncryptionDetail { get; set; } /// Friendly name of the fabric. string FriendlyName { get; set; } /// Health of fabric. string Health { get; set; } /// Fabric health error details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get; set; } /// Dra Registration Id. string InternalIdentifier { get; set; } /// Rollover encryption details for the fabric. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEncryptionDetails RolloverEncryptionDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEncryptionDetails RolloverEncryptionDetail { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/FabricProperties.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/FabricProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/FabricProperties.json.cs index 39a348fe17b1..088ebf78cb92 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -66,24 +66,24 @@ internal FabricProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Jso return; } {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)FriendlyName;} - {_encryptionDetail = If( json?.PropertyT("encryptionDetails"), out var __jsonEncryptionDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EncryptionDetails.FromJson(__jsonEncryptionDetails) : EncryptionDetail;} - {_rolloverEncryptionDetail = If( json?.PropertyT("rolloverEncryptionDetails"), out var __jsonRolloverEncryptionDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EncryptionDetails.FromJson(__jsonRolloverEncryptionDetails) : RolloverEncryptionDetail;} + {_encryptionDetail = If( json?.PropertyT("encryptionDetails"), out var __jsonEncryptionDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EncryptionDetails.FromJson(__jsonEncryptionDetails) : EncryptionDetail;} + {_rolloverEncryptionDetail = If( json?.PropertyT("rolloverEncryptionDetails"), out var __jsonRolloverEncryptionDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EncryptionDetails.FromJson(__jsonRolloverEncryptionDetails) : RolloverEncryptionDetail;} {_internalIdentifier = If( json?.PropertyT("internalIdentifier"), out var __jsonInternalIdentifier) ? (string)__jsonInternalIdentifier : (string)InternalIdentifier;} {_bcdrState = If( json?.PropertyT("bcdrState"), out var __jsonBcdrState) ? (string)__jsonBcdrState : (string)BcdrState;} - {_customDetail = If( json?.PropertyT("customDetails"), out var __jsonCustomDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails.FromJson(__jsonCustomDetails) : CustomDetail;} - {_healthErrorDetail = If( json?.PropertyT("healthErrorDetails"), out var __jsonHealthErrorDetails) ? If( __jsonHealthErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__u) )) ))() : null : HealthErrorDetail;} + {_customDetail = If( json?.PropertyT("customDetails"), out var __jsonCustomDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails.FromJson(__jsonCustomDetails) : CustomDetail;} + {_healthErrorDetail = If( json?.PropertyT("healthErrorDetails"), out var __jsonHealthErrorDetails) ? If( __jsonHealthErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__u) )) ))() : null : HealthErrorDetail;} {_health = If( json?.PropertyT("health"), out var __jsonHealth) ? (string)__jsonHealth : (string)Health;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new FabricProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/FabricQueryParameter.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/FabricQueryParameter.PowerShell.cs new file mode 100644 index 000000000000..eb049ffd5e8a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/FabricQueryParameter.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Query parameter to get fabric. + [System.ComponentModel.TypeConverter(typeof(FabricQueryParameterTypeConverter))] + public partial class FabricQueryParameter + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IFabricQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FabricQueryParameter(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.Migrate.Models.Api202301.IFabricQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FabricQueryParameter(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FabricQueryParameter(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ZoneToZoneMapping")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).ZoneToZoneMapping = (string) content.GetValueForProperty("ZoneToZoneMapping",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).ZoneToZoneMapping, global::System.Convert.ToString); + } + if (content.Contains("FetchAgentDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).FetchAgentDetail = (string) content.GetValueForProperty("FetchAgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).FetchAgentDetail, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("DiscoveryType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).DiscoveryType, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).OSType, 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 FabricQueryParameter(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ZoneToZoneMapping")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).ZoneToZoneMapping = (string) content.GetValueForProperty("ZoneToZoneMapping",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).ZoneToZoneMapping, global::System.Convert.ToString); + } + if (content.Contains("FetchAgentDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).FetchAgentDetail = (string) content.GetValueForProperty("FetchAgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).FetchAgentDetail, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("DiscoveryType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).DiscoveryType, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal)this).OSType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Query parameter to get fabric. + [System.ComponentModel.TypeConverter(typeof(FabricQueryParameterTypeConverter))] + public partial interface IFabricQueryParameter + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricQueryParameter.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/FabricQueryParameter.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/FabricQueryParameter.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/FabricQueryParameter.TypeConverter.cs index 95db4dc03586..fac7db70dbed 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricQueryParameter.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFabricQueryParameter ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameter ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameter).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameter).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricQueryParameter.cs b/src/Migrate/generated/api/Models/Api202301/FabricQueryParameter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/FabricQueryParameter.cs rename to src/Migrate/generated/api/Models/Api202301/FabricQueryParameter.cs index f0d9a0781237..31c163cfa6a3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricQueryParameter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Query parameter to get fabric. public partial class FabricQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameter, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameterInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameter, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameterInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricQueryParameter.json.cs b/src/Migrate/generated/api/Models/Api202301/FabricQueryParameter.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/FabricQueryParameter.json.cs rename to src/Migrate/generated/api/Models/Api202301/FabricQueryParameter.json.cs index 95fd071ba8ba..fba33e5f2474 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricQueryParameter.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -75,13 +75,13 @@ internal FabricQueryParameter(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameter. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameter. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameter. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameter. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new FabricQueryParameter(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/FabricReplicationGroupTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/FabricReplicationGroupTaskDetails.PowerShell.cs new file mode 100644 index 000000000000..06664e6df14d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/FabricReplicationGroupTaskDetails.PowerShell.cs @@ -0,0 +1,220 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class represents the fabric replication group task details. + [System.ComponentModel.TypeConverter(typeof(FabricReplicationGroupTaskDetailsTypeConverter))] + public partial class FabricReplicationGroupTaskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FabricReplicationGroupTaskDetails(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.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FabricReplicationGroupTaskDetails(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FabricReplicationGroupTaskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SkippedReason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReason = (string) content.GetValueForProperty("SkippedReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReason, global::System.Convert.ToString); + } + if (content.Contains("SkippedReasonString")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReasonString = (string) content.GetValueForProperty("SkippedReasonString",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReasonString, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobId = (string) content.GetValueForProperty("JobTaskJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobId, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName = (string) content.GetValueForProperty("JobTaskJobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectId = (string) content.GetValueForProperty("JobTaskTargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectId, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetObjectName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectName = (string) content.GetValueForProperty("JobTaskTargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectName, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType = (string) content.GetValueForProperty("JobTaskTargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobScenarioName = (string) content.GetValueForProperty("JobTaskJobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobScenarioName, global::System.Convert.ToString); + } + if (content.Contains("JobTask")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity) content.GetValueForProperty("JobTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTask, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobEntityTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FabricReplicationGroupTaskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SkippedReason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReason = (string) content.GetValueForProperty("SkippedReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReason, global::System.Convert.ToString); + } + if (content.Contains("SkippedReasonString")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReasonString = (string) content.GetValueForProperty("SkippedReasonString",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetailsInternal)this).SkippedReasonString, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobId = (string) content.GetValueForProperty("JobTaskJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobId, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName = (string) content.GetValueForProperty("JobTaskJobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectId = (string) content.GetValueForProperty("JobTaskTargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectId, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetObjectName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectName = (string) content.GetValueForProperty("JobTaskTargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectName, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType = (string) content.GetValueForProperty("JobTaskTargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobScenarioName = (string) content.GetValueForProperty("JobTaskJobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobScenarioName, global::System.Convert.ToString); + } + if (content.Contains("JobTask")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity) content.GetValueForProperty("JobTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTask, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobEntityTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class represents the fabric replication group task details. + [System.ComponentModel.TypeConverter(typeof(FabricReplicationGroupTaskDetailsTypeConverter))] + public partial interface IFabricReplicationGroupTaskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricReplicationGroupTaskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/FabricReplicationGroupTaskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/FabricReplicationGroupTaskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/FabricReplicationGroupTaskDetails.TypeConverter.cs index 1cb0b289da8f..d2c28a3d2cfc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricReplicationGroupTaskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricReplicationGroupTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/FabricReplicationGroupTaskDetails.cs b/src/Migrate/generated/api/Models/Api202301/FabricReplicationGroupTaskDetails.cs new file mode 100644 index 000000000000..c51bc779b46e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/FabricReplicationGroupTaskDetails.cs @@ -0,0 +1,119 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// This class represents the fabric replication group task details. + public partial class FabricReplicationGroupTaskDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetails __jobTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobTaskDetails(); + + /// The type of task details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__jobTaskDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__jobTaskDetails).InstanceType = value ; } + + /// The job entity. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity JobTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTask = value ?? null /* model class */; } + + /// The job display name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string JobTaskJobFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobFriendlyName = value ?? null; } + + /// The job id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string JobTaskJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobId = value ?? null; } + + /// The job name. Enum type ScenarioName. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string JobTaskJobScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobScenarioName = value ?? null; } + + /// The workflow affected object type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string JobTaskTargetInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetInstanceType = value ?? null; } + + /// The object id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string JobTaskTargetObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectId = value ?? null; } + + /// The object name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string JobTaskTargetObjectName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectName = value ?? null; } + + /// Backing field for property. + private string _skippedReason; + + /// The skipped reason. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string SkippedReason { get => this._skippedReason; set => this._skippedReason = value; } + + /// Backing field for property. + private string _skippedReasonString; + + /// The skipped reason string. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string SkippedReasonString { get => this._skippedReasonString; set => this._skippedReasonString = value; } + + /// Creates an new instance. + public FabricReplicationGroupTaskDetails() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__jobTaskDetails), __jobTaskDetails); + await eventListener.AssertObjectIsValid(nameof(__jobTaskDetails), __jobTaskDetails); + } + } + /// This class represents the fabric replication group task details. + public partial interface IFabricReplicationGroupTaskDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetails + { + /// The skipped reason. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The skipped reason.", + SerializedName = @"skippedReason", + PossibleTypes = new [] { typeof(string) })] + string SkippedReason { get; set; } + /// The skipped reason string. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The skipped reason string.", + SerializedName = @"skippedReasonString", + PossibleTypes = new [] { typeof(string) })] + string SkippedReasonString { get; set; } + + } + /// This class represents the fabric replication group task details. + internal partial interface IFabricReplicationGroupTaskDetailsInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal + { + /// The skipped reason. + string SkippedReason { get; set; } + /// The skipped reason string. + string SkippedReasonString { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricReplicationGroupTaskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/FabricReplicationGroupTaskDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/FabricReplicationGroupTaskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/FabricReplicationGroupTaskDetails.json.cs index f2db215bb07a..0753c2a7f6ee 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricReplicationGroupTaskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricReplicationGroupTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,20 +65,20 @@ internal FabricReplicationGroupTaskDetails(Microsoft.Azure.PowerShell.Cmdlets.Mi { return; } - __jobTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobTaskDetails(json); + __jobTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobTaskDetails(json); {_skippedReason = If( json?.PropertyT("skippedReason"), out var __jsonSkippedReason) ? (string)__jsonSkippedReason : (string)SkippedReason;} {_skippedReasonString = If( json?.PropertyT("skippedReasonString"), out var __jsonSkippedReasonString) ? (string)__jsonSkippedReasonString : (string)SkippedReasonString;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricReplicationGroupTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricReplicationGroupTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new FabricReplicationGroupTaskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreateNetworkMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreateNetworkMappingInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreateNetworkMappingInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificCreateNetworkMappingInput.PowerShell.cs index 180998818626..5971fb978e02 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreateNetworkMappingInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class FabricSpecificCreateNetworkMappingInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FabricSpecificCreateNetworkMappingInput(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.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FabricSpecificCreateNetworkMappingInput(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,13 +98,13 @@ internal FabricSpecificCreateNetworkMappingInput(global::System.Collections.IDic // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, 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. @@ -119,7 +119,7 @@ internal FabricSpecificCreateNetworkMappingInput(global::System.Management.Autom // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -132,7 +132,7 @@ internal FabricSpecificCreateNetworkMappingInput(global::System.Management.Autom /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreateNetworkMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreateNetworkMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreateNetworkMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificCreateNetworkMappingInput.TypeConverter.cs index dc19b85b35f0..acb3dd157b1a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreateNetworkMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreateNetworkMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreateNetworkMappingInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreateNetworkMappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificCreateNetworkMappingInput.cs index 31d2c329345c..c14577b641a1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreateNetworkMappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Input details specific to fabrics during Network Mapping. public partial class FabricSpecificCreateNetworkMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreateNetworkMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreateNetworkMappingInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreateNetworkMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificCreateNetworkMappingInput.json.cs index 91047ed9318c..981ccd6f031e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreateNetworkMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,15 +70,15 @@ internal FabricSpecificCreateNetworkMappingInput(Microsoft.Azure.PowerShell.Cmdl } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput 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.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreationInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreationInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificCreationInput.PowerShell.cs index 9b73f57a3dc5..73b0a9c629b9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreationInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,35 +55,33 @@ public partial class FabricSpecificCreationInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IFabricSpecificCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FabricSpecificCreationInput(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.Migrate.Models.Api20220501.IFabricSpecificCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FabricSpecificCreationInput(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,13 +96,13 @@ internal FabricSpecificCreationInput(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType, 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. @@ -119,7 +117,7 @@ internal FabricSpecificCreationInput(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -129,7 +127,7 @@ internal FabricSpecificCreationInput(global::System.Management.Automation.PSObje /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificCreationInput.TypeConverter.cs index 18778cd829c1..64244f92d313 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFabricSpecificCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreationInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreationInput.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificCreationInput.cs index ea6b542e0353..7631720609d7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreationInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Fabric provider specific settings. public partial class FabricSpecificCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreationInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificCreationInput.json.cs index aa4c1556cbba..2c9e234dc4be 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,15 +70,15 @@ internal FabricSpecificCreationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput 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.Migrate.Models.Api20220501.IFabricSpecificCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificDetails.PowerShell.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificDetails.PowerShell.cs index b536ae497de8..c1affcbd07c2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class FabricSpecificDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IFabricSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FabricSpecificDetails(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.Migrate.Models.Api20220501.IFabricSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FabricSpecificDetails(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,13 +96,13 @@ internal FabricSpecificDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType, 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. @@ -117,7 +117,7 @@ internal FabricSpecificDetails(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -127,7 +127,7 @@ internal FabricSpecificDetails(global::System.Management.Automation.PSObject con /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificDetails.TypeConverter.cs index 50e025ce16ac..c040167c08cf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFabricSpecificDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificDetails.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificDetails.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificDetails.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificDetails.cs index 06bd347d4be5..f718195ee537 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Fabric specific details. public partial class FabricSpecificDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificDetails.json.cs index b1221975b617..78ac163ff37c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,15 +70,15 @@ internal FabricSpecificDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails 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.Migrate.Models.Api20220501.IFabricSpecificDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificUpdateNetworkMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificUpdateNetworkMappingInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificUpdateNetworkMappingInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificUpdateNetworkMappingInput.PowerShell.cs index 564a45a04048..871f0b7f6507 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificUpdateNetworkMappingInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class FabricSpecificUpdateNetworkMappingInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FabricSpecificUpdateNetworkMappingInput(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.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FabricSpecificUpdateNetworkMappingInput(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,13 +98,13 @@ internal FabricSpecificUpdateNetworkMappingInput(global::System.Collections.IDic // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, 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. @@ -119,7 +119,7 @@ internal FabricSpecificUpdateNetworkMappingInput(global::System.Management.Autom // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -132,7 +132,7 @@ internal FabricSpecificUpdateNetworkMappingInput(global::System.Management.Autom /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificUpdateNetworkMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificUpdateNetworkMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificUpdateNetworkMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificUpdateNetworkMappingInput.TypeConverter.cs index 2bb9a8c9bf25..164cf0c2deed 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificUpdateNetworkMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificUpdateNetworkMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificUpdateNetworkMappingInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificUpdateNetworkMappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificUpdateNetworkMappingInput.cs index 6552fd32dd99..9963e4c578f7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificUpdateNetworkMappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Input details specific to fabrics during Network Mapping. public partial class FabricSpecificUpdateNetworkMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificUpdateNetworkMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/FabricSpecificUpdateNetworkMappingInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/FabricSpecificUpdateNetworkMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/FabricSpecificUpdateNetworkMappingInput.json.cs index 0d6abc679559..d164c4c40717 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FabricSpecificUpdateNetworkMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/FabricSpecificUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,15 +70,15 @@ internal FabricSpecificUpdateNetworkMappingInput(Microsoft.Azure.PowerShell.Cmdl } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput 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.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/FailoverJobDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/FailoverJobDetails.PowerShell.cs new file mode 100644 index 000000000000..8836384a2ffe --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/FailoverJobDetails.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class represents the details for a failover job. + [System.ComponentModel.TypeConverter(typeof(FailoverJobDetailsTypeConverter))] + public partial class FailoverJobDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IFailoverJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FailoverJobDetails(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.Migrate.Models.Api202301.IFailoverJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FailoverJobDetails(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FailoverJobDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProtectedItemDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverJobDetailsInternal)this).ProtectedItemDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails[]) content.GetValueForProperty("ProtectedItemDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverJobDetailsInternal)this).ProtectedItemDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverReplicationProtectedItemDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FailoverJobDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProtectedItemDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverJobDetailsInternal)this).ProtectedItemDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails[]) content.GetValueForProperty("ProtectedItemDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverJobDetailsInternal)this).ProtectedItemDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverReplicationProtectedItemDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class represents the details for a failover job. + [System.ComponentModel.TypeConverter(typeof(FailoverJobDetailsTypeConverter))] + public partial interface IFailoverJobDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverJobDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/FailoverJobDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/FailoverJobDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/FailoverJobDetails.TypeConverter.cs index f6064f63d8f7..7597a7e0a409 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverJobDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FailoverJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFailoverJobDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverJobDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverJobDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverJobDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/FailoverJobDetails.cs b/src/Migrate/generated/api/Models/Api202301/FailoverJobDetails.cs new file mode 100644 index 000000000000..49184431b353 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/FailoverJobDetails.cs @@ -0,0 +1,81 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// This class represents the details for a failover job. + public partial class FailoverJobDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverJobDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverJobDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails(); + + /// + /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow + /// object details. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).AffectedObjectDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).AffectedObjectDetail = value ?? null /* model class */; } + + /// Gets the type of job details (see JobDetailsTypes enum for possible values). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).InstanceType = value ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails[] _protectedItemDetail; + + /// The test VM details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails[] ProtectedItemDetail { get => this._protectedItemDetail; set => this._protectedItemDetail = value; } + + /// Creates an new instance. + public FailoverJobDetails() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__jobDetails), __jobDetails); + await eventListener.AssertObjectIsValid(nameof(__jobDetails), __jobDetails); + } + } + /// This class represents the details for a failover job. + public partial interface IFailoverJobDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails + { + /// The test VM details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The test VM details.", + SerializedName = @"protectedItemDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails[] ProtectedItemDetail { get; set; } + + } + /// This class represents the details for a failover job. + internal partial interface IFailoverJobDetailsInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal + { + /// The test VM details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails[] ProtectedItemDetail { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverJobDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/FailoverJobDetails.json.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/FailoverJobDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/FailoverJobDetails.json.cs index 91314cc17fad..28523e09bc2a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverJobDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/FailoverJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,19 +65,19 @@ internal FailoverJobDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.J { return; } - __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails(json); - {_protectedItemDetail = If( json?.PropertyT("protectedItemDetails"), out var __jsonProtectedItemDetails) ? If( __jsonProtectedItemDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverReplicationProtectedItemDetails.FromJson(__u) )) ))() : null : ProtectedItemDetail;} + __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails(json); + {_protectedItemDetail = If( json?.PropertyT("protectedItemDetails"), out var __jsonProtectedItemDetails) ? If( __jsonProtectedItemDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverReplicationProtectedItemDetails.FromJson(__u) )) ))() : null : ProtectedItemDetail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverJobDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverJobDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverJobDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverJobDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new FailoverJobDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequest.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequest.PowerShell.cs new file mode 100644 index 000000000000..15561af1eb42 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequest.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Request to failover a process server. + [System.ComponentModel.TypeConverter(typeof(FailoverProcessServerRequestTypeConverter))] + public partial class FailoverProcessServerRequest + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IFailoverProcessServerRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FailoverProcessServerRequest(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.Migrate.Models.Api202301.IFailoverProcessServerRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FailoverProcessServerRequest(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FailoverProcessServerRequest(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.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverProcessServerRequestPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).ContainerName, global::System.Convert.ToString); + } + if (content.Contains("SourceProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).SourceProcessServerId = (string) content.GetValueForProperty("SourceProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).SourceProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("TargetProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).TargetProcessServerId = (string) content.GetValueForProperty("TargetProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).TargetProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("VmsToMigrate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).VmsToMigrate = (string[]) content.GetValueForProperty("VmsToMigrate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).VmsToMigrate, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("UpdateType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).UpdateType = (string) content.GetValueForProperty("UpdateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).UpdateType, 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 FailoverProcessServerRequest(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.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverProcessServerRequestPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).ContainerName, global::System.Convert.ToString); + } + if (content.Contains("SourceProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).SourceProcessServerId = (string) content.GetValueForProperty("SourceProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).SourceProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("TargetProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).TargetProcessServerId = (string) content.GetValueForProperty("TargetProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).TargetProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("VmsToMigrate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).VmsToMigrate = (string[]) content.GetValueForProperty("VmsToMigrate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).VmsToMigrate, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("UpdateType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).UpdateType = (string) content.GetValueForProperty("UpdateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal)this).UpdateType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Request to failover a process server. + [System.ComponentModel.TypeConverter(typeof(FailoverProcessServerRequestTypeConverter))] + public partial interface IFailoverProcessServerRequest + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequest.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequest.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequest.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequest.TypeConverter.cs index bf5e3c9dd03c..662bf3a0ee42 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequest.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequest.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFailoverProcessServerRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequest.cs b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequest.cs new file mode 100644 index 000000000000..259cfb639ee3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequest.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Request to failover a process server. + public partial class FailoverProcessServerRequest : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequest, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal + { + + /// The container identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)Property).ContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)Property).ContainerName = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverProcessServerRequestProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties _property; + + /// The properties of the PS Failover request. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverProcessServerRequestProperties()); set => this._property = value; } + + /// The source process server. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SourceProcessServerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)Property).SourceProcessServerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)Property).SourceProcessServerId = value ?? null; } + + /// The new process server. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetProcessServerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)Property).TargetProcessServerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)Property).TargetProcessServerId = value ?? null; } + + /// A value for failover type. It can be systemlevel/serverlevel. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string UpdateType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)Property).UpdateType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)Property).UpdateType = value ?? null; } + + /// The VMS to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string[] VmsToMigrate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)Property).VmsToMigrate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)Property).VmsToMigrate = value ?? null /* arrayOf */; } + + /// Creates an new instance. + public FailoverProcessServerRequest() + { + + } + } + /// Request to failover a process server. + public partial interface IFailoverProcessServerRequest : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The container identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The container identifier.", + SerializedName = @"containerName", + PossibleTypes = new [] { typeof(string) })] + string ContainerName { get; set; } + /// The source process server. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The source process server.", + SerializedName = @"sourceProcessServerId", + PossibleTypes = new [] { typeof(string) })] + string SourceProcessServerId { get; set; } + /// The new process server. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The new process server.", + SerializedName = @"targetProcessServerId", + PossibleTypes = new [] { typeof(string) })] + string TargetProcessServerId { get; set; } + /// A value for failover type. It can be systemlevel/serverlevel. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value for failover type. It can be systemlevel/serverlevel.", + SerializedName = @"updateType", + PossibleTypes = new [] { typeof(string) })] + string UpdateType { get; set; } + /// The VMS to migrate. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The VMS to migrate.", + SerializedName = @"vmsToMigrate", + PossibleTypes = new [] { typeof(string) })] + string[] VmsToMigrate { get; set; } + + } + /// Request to failover a process server. + internal partial interface IFailoverProcessServerRequestInternal + + { + /// The container identifier. + string ContainerName { get; set; } + /// The properties of the PS Failover request. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties Property { get; set; } + /// The source process server. + string SourceProcessServerId { get; set; } + /// The new process server. + string TargetProcessServerId { get; set; } + /// A value for failover type. It can be systemlevel/serverlevel. + string UpdateType { get; set; } + /// The VMS to migrate. + string[] VmsToMigrate { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequest.json.cs b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequest.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequest.json.cs rename to src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequest.json.cs index 432124b881cb..61c5f0e456cb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequest.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequest.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -65,18 +65,18 @@ internal FailoverProcessServerRequest(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverProcessServerRequestProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverProcessServerRequestProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new FailoverProcessServerRequest(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequestProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequestProperties.PowerShell.cs new file mode 100644 index 000000000000..1a9d0601e34a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequestProperties.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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// The properties of the Failover Process Server request. + [System.ComponentModel.TypeConverter(typeof(FailoverProcessServerRequestPropertiesTypeConverter))] + public partial class FailoverProcessServerRequestProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FailoverProcessServerRequestProperties(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.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FailoverProcessServerRequestProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FailoverProcessServerRequestProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).ContainerName, global::System.Convert.ToString); + } + if (content.Contains("SourceProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).SourceProcessServerId = (string) content.GetValueForProperty("SourceProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).SourceProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("TargetProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).TargetProcessServerId = (string) content.GetValueForProperty("TargetProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).TargetProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("VmsToMigrate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).VmsToMigrate = (string[]) content.GetValueForProperty("VmsToMigrate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).VmsToMigrate, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("UpdateType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).UpdateType = (string) content.GetValueForProperty("UpdateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).UpdateType, 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 FailoverProcessServerRequestProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).ContainerName, global::System.Convert.ToString); + } + if (content.Contains("SourceProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).SourceProcessServerId = (string) content.GetValueForProperty("SourceProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).SourceProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("TargetProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).TargetProcessServerId = (string) content.GetValueForProperty("TargetProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).TargetProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("VmsToMigrate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).VmsToMigrate = (string[]) content.GetValueForProperty("VmsToMigrate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).VmsToMigrate, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("UpdateType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).UpdateType = (string) content.GetValueForProperty("UpdateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal)this).UpdateType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The properties of the Failover Process Server request. + [System.ComponentModel.TypeConverter(typeof(FailoverProcessServerRequestPropertiesTypeConverter))] + public partial interface IFailoverProcessServerRequestProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequestProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequestProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequestProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequestProperties.TypeConverter.cs index 7cbd71bec6da..54f07badb24f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequestProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequestProperties.cs b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequestProperties.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequestProperties.cs rename to src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequestProperties.cs index d72c4c4f2df0..541006863777 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequestProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The properties of the Failover Process Server request. public partial class FailoverProcessServerRequestProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequestProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequestProperties.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequestProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequestProperties.json.cs index 88f8bd1438bb..9eb07f36e33a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverProcessServerRequestProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/FailoverProcessServerRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -74,13 +74,13 @@ internal FailoverProcessServerRequestProperties(Microsoft.Azure.PowerShell.Cmdle } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverProcessServerRequestProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverProcessServerRequestProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new FailoverProcessServerRequestProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/FailoverReplicationProtectedItemDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/FailoverReplicationProtectedItemDetails.PowerShell.cs new file mode 100644 index 000000000000..b4e4478de313 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/FailoverReplicationProtectedItemDetails.PowerShell.cs @@ -0,0 +1,213 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Failover details for a replication protected item. + [System.ComponentModel.TypeConverter(typeof(FailoverReplicationProtectedItemDetailsTypeConverter))] + public partial class FailoverReplicationProtectedItemDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FailoverReplicationProtectedItemDetails(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.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FailoverReplicationProtectedItemDetails(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FailoverReplicationProtectedItemDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("TestVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMName = (string) content.GetValueForProperty("TestVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMName, global::System.Convert.ToString); + } + if (content.Contains("TestVMFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMFriendlyName = (string) content.GetValueForProperty("TestVMFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("NetworkConnectionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkConnectionStatus = (string) content.GetValueForProperty("NetworkConnectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkConnectionStatus, global::System.Convert.ToString); + } + if (content.Contains("NetworkFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkFriendlyName = (string) content.GetValueForProperty("NetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).Subnet, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FailoverReplicationProtectedItemDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("TestVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMName = (string) content.GetValueForProperty("TestVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMName, global::System.Convert.ToString); + } + if (content.Contains("TestVMFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMFriendlyName = (string) content.GetValueForProperty("TestVMFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).TestVMFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("NetworkConnectionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkConnectionStatus = (string) content.GetValueForProperty("NetworkConnectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkConnectionStatus, global::System.Convert.ToString); + } + if (content.Contains("NetworkFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkFriendlyName = (string) content.GetValueForProperty("NetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).NetworkFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).Subnet, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Failover details for a replication protected item. + [System.ComponentModel.TypeConverter(typeof(FailoverReplicationProtectedItemDetailsTypeConverter))] + public partial interface IFailoverReplicationProtectedItemDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverReplicationProtectedItemDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/FailoverReplicationProtectedItemDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/FailoverReplicationProtectedItemDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/FailoverReplicationProtectedItemDetails.TypeConverter.cs index 2ce76c972fd6..4a11cf4670db 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverReplicationProtectedItemDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/FailoverReplicationProtectedItemDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverReplicationProtectedItemDetails.cs b/src/Migrate/generated/api/Models/Api202301/FailoverReplicationProtectedItemDetails.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/FailoverReplicationProtectedItemDetails.cs rename to src/Migrate/generated/api/Models/Api202301/FailoverReplicationProtectedItemDetails.cs index 91965a96a8ac..5e3ee0552472 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverReplicationProtectedItemDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/FailoverReplicationProtectedItemDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Failover details for a replication protected item. public partial class FailoverReplicationProtectedItemDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/FailoverReplicationProtectedItemDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/FailoverReplicationProtectedItemDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/FailoverReplicationProtectedItemDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/FailoverReplicationProtectedItemDetails.json.cs index c9c41818254a..3c52f2edc906 100644 --- a/src/Migrate/generated/api/Models/Api20220501/FailoverReplicationProtectedItemDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/FailoverReplicationProtectedItemDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -78,13 +78,13 @@ internal FailoverReplicationProtectedItemDetails(Microsoft.Azure.PowerShell.Cmdl } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new FailoverReplicationProtectedItemDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/GroupTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/GroupTaskDetails.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/GroupTaskDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/GroupTaskDetails.PowerShell.cs index 5961cd640728..385fe45427aa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/GroupTaskDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/GroupTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -57,27 +57,27 @@ public partial class GroupTaskDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IGroupTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new GroupTaskDetails(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.Migrate.Models.Api20220501.IGroupTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new GroupTaskDetails(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGro /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,17 +105,17 @@ internal GroupTaskDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); } if (content.Contains("ChildTask")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTaskTypeConverter.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. @@ -130,11 +130,11 @@ internal GroupTaskDetails(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); } if (content.Contains("ChildTask")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTaskTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/GroupTaskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/GroupTaskDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/GroupTaskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/GroupTaskDetails.TypeConverter.cs index 963e81ab4c94..9fd87fa04634 100644 --- a/src/Migrate/generated/api/Models/Api20220501/GroupTaskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/GroupTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IGroupTaskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/GroupTaskDetails.cs b/src/Migrate/generated/api/Models/Api202301/GroupTaskDetails.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/GroupTaskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/GroupTaskDetails.cs index 2b779a3c4b81..a6d4d2cc9150 100644 --- a/src/Migrate/generated/api/Models/Api20220501/GroupTaskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/GroupTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,16 +11,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// This class represents the group task details when parent child relationship exists in the drill down. /// public partial class GroupTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] _childTask; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] _childTask; /// The child tasks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] ChildTask { get => this._childTask; set => this._childTask = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] ChildTask { get => this._childTask; set => this._childTask = value; } /// Backing field for property. private string _instanceType; @@ -45,8 +45,8 @@ public partial interface IGroupTaskDetails : ReadOnly = false, Description = @"The child tasks.", SerializedName = @"childTasks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] ChildTask { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] ChildTask { get; set; } /// The type of task details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, @@ -62,7 +62,7 @@ internal partial interface IGroupTaskDetailsInternal { /// The child tasks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] ChildTask { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] ChildTask { get; set; } /// The type of task details. string InstanceType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/GroupTaskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/GroupTaskDetails.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/GroupTaskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/GroupTaskDetails.json.cs index 1e21fbda3c56..ef0ca26b6a59 100644 --- a/src/Migrate/generated/api/Models/Api20220501/GroupTaskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/GroupTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -56,15 +56,15 @@ public partial class GroupTaskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails interface is polymorphic, and + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails 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.Migrate.Models.Api20220501.IGroupTaskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { @@ -103,7 +103,7 @@ internal GroupTaskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Jso return; } {_instanceType = If( json?.PropertyT("instanceType"), out var __jsonInstanceType) ? (string)__jsonInstanceType : (string)InstanceType;} - {_childTask = If( json?.PropertyT("childTasks"), out var __jsonChildTasks) ? If( __jsonChildTasks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAsrTask) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTask.FromJson(__u) )) ))() : null : ChildTask;} + {_childTask = If( json?.PropertyT("childTasks"), out var __jsonChildTasks) ? If( __jsonChildTasks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IAsrTask) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTask.FromJson(__u) )) ))() : null : ChildTask;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/HealthError.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HealthError.PowerShell.cs new file mode 100644 index 000000000000..d60d9a0eadc5 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HealthError.PowerShell.cs @@ -0,0 +1,256 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Health Error. + [System.ComponentModel.TypeConverter(typeof(HealthErrorTypeConverter))] + public partial class HealthError + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHealthError DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HealthError(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.Migrate.Models.Api202301.IHealthError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HealthError(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.Migrate.Models.Api202301.IHealthError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HealthError(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InnerHealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).InnerHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthError[]) content.GetValueForProperty("InnerHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).InnerHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InnerHealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ErrorSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorSource = (string) content.GetValueForProperty("ErrorSource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorSource, global::System.Convert.ToString); + } + if (content.Contains("ErrorType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorType = (string) content.GetValueForProperty("ErrorType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorType, global::System.Convert.ToString); + } + if (content.Contains("ErrorLevel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorLevel = (string) content.GetValueForProperty("ErrorLevel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorLevel, global::System.Convert.ToString); + } + if (content.Contains("ErrorCategory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorCategory = (string) content.GetValueForProperty("ErrorCategory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorCategory, global::System.Convert.ToString); + } + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorCode, global::System.Convert.ToString); + } + if (content.Contains("SummaryMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).SummaryMessage = (string) content.GetValueForProperty("SummaryMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).SummaryMessage, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("CreationTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).CreationTimeUtc = (global::System.DateTime?) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).CreationTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RecoveryProviderErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).RecoveryProviderErrorMessage = (string) content.GetValueForProperty("RecoveryProviderErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).RecoveryProviderErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("EntityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).EntityId = (string) content.GetValueForProperty("EntityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).EntityId, global::System.Convert.ToString); + } + if (content.Contains("ErrorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorId = (string) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorId, global::System.Convert.ToString); + } + if (content.Contains("CustomerResolvability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).CustomerResolvability = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability?) content.GetValueForProperty("CustomerResolvability",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).CustomerResolvability, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal HealthError(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InnerHealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).InnerHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthError[]) content.GetValueForProperty("InnerHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).InnerHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InnerHealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ErrorSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorSource = (string) content.GetValueForProperty("ErrorSource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorSource, global::System.Convert.ToString); + } + if (content.Contains("ErrorType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorType = (string) content.GetValueForProperty("ErrorType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorType, global::System.Convert.ToString); + } + if (content.Contains("ErrorLevel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorLevel = (string) content.GetValueForProperty("ErrorLevel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorLevel, global::System.Convert.ToString); + } + if (content.Contains("ErrorCategory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorCategory = (string) content.GetValueForProperty("ErrorCategory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorCategory, global::System.Convert.ToString); + } + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorCode, global::System.Convert.ToString); + } + if (content.Contains("SummaryMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).SummaryMessage = (string) content.GetValueForProperty("SummaryMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).SummaryMessage, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("CreationTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).CreationTimeUtc = (global::System.DateTime?) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).CreationTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RecoveryProviderErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).RecoveryProviderErrorMessage = (string) content.GetValueForProperty("RecoveryProviderErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).RecoveryProviderErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("EntityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).EntityId = (string) content.GetValueForProperty("EntityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).EntityId, global::System.Convert.ToString); + } + if (content.Contains("ErrorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorId = (string) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).ErrorId, global::System.Convert.ToString); + } + if (content.Contains("CustomerResolvability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).CustomerResolvability = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability?) content.GetValueForProperty("CustomerResolvability",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal)this).CustomerResolvability, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Health Error. + [System.ComponentModel.TypeConverter(typeof(HealthErrorTypeConverter))] + public partial interface IHealthError + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HealthError.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HealthError.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/HealthError.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HealthError.TypeConverter.cs index d32e1b1c7f19..827dcdb361c2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HealthError.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HealthError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HealthError.cs b/src/Migrate/generated/api/Models/Api202301/HealthError.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HealthError.cs rename to src/Migrate/generated/api/Models/Api202301/HealthError.cs index ba9a2b31f722..35dcca1a381a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HealthError.cs +++ b/src/Migrate/generated/api/Models/Api202301/HealthError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Health Error. public partial class HealthError : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorInternal { /// Backing field for property. @@ -84,7 +84,7 @@ public partial class HealthError : public string ErrorType { get => this._errorType; set => this._errorType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthError[] _innerHealthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthError[] _innerHealthError; /// /// The inner health errors. HealthError having a list of HealthError as child errors is problematic. InnerHealthError is @@ -93,7 +93,7 @@ public partial class HealthError : /// -> InnerException. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthError[] InnerHealthError { get => this._innerHealthError; set => this._innerHealthError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthError[] InnerHealthError { get => this._innerHealthError; set => this._innerHealthError = value; } /// Backing field for property. private string _possibleCaus; @@ -224,8 +224,8 @@ public partial interface IHealthError : ReadOnly = false, Description = @"The inner health errors. HealthError having a list of HealthError as child errors is problematic. InnerHealthError is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as Exception -> InnerException.", SerializedName = @"innerHealthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthError[] InnerHealthError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthError[] InnerHealthError { get; set; } /// Possible causes of error. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -290,7 +290,7 @@ internal partial interface IHealthErrorInternal /// the related health errors as inner health errors and all API consumers can utilize this in the same fashion as Exception /// -> InnerException. /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthError[] InnerHealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthError[] InnerHealthError { get; set; } /// Possible causes of error. string PossibleCaus { get; set; } /// Recommended action to resolve error. diff --git a/src/Migrate/generated/api/Models/Api20220501/HealthError.json.cs b/src/Migrate/generated/api/Models/Api202301/HealthError.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HealthError.json.cs rename to src/Migrate/generated/api/Models/Api202301/HealthError.json.cs index c2d42b238539..77f6f82ed9e2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HealthError.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HealthError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HealthError partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HealthError(json) : null; } @@ -77,7 +77,7 @@ internal HealthError(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.Jso { return; } - {_innerHealthError = If( json?.PropertyT("innerHealthErrors"), out var __jsonInnerHealthErrors) ? If( __jsonInnerHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInnerHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InnerHealthError.FromJson(__u) )) ))() : null : InnerHealthError;} + {_innerHealthError = If( json?.PropertyT("innerHealthErrors"), out var __jsonInnerHealthErrors) ? If( __jsonInnerHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IInnerHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InnerHealthError.FromJson(__u) )) ))() : null : InnerHealthError;} {_errorSource = If( json?.PropertyT("errorSource"), out var __jsonErrorSource) ? (string)__jsonErrorSource : (string)ErrorSource;} {_errorType = If( json?.PropertyT("errorType"), out var __jsonErrorType) ? (string)__jsonErrorType : (string)ErrorType;} {_errorLevel = If( json?.PropertyT("errorLevel"), out var __jsonErrorLevel) ? (string)__jsonErrorLevel : (string)ErrorLevel;} diff --git a/src/Migrate/generated/api/Models/Api202301/HealthErrorSummary.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HealthErrorSummary.PowerShell.cs new file mode 100644 index 000000000000..06fe9453f20b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HealthErrorSummary.PowerShell.cs @@ -0,0 +1,192 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// class to define the summary of the health error details. + [System.ComponentModel.TypeConverter(typeof(HealthErrorSummaryTypeConverter))] + public partial class HealthErrorSummary + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHealthErrorSummary DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HealthErrorSummary(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.Migrate.Models.Api202301.IHealthErrorSummary DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HealthErrorSummary(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.Migrate.Models.Api202301.IHealthErrorSummary FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HealthErrorSummary(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SummaryCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).SummaryCode = (string) content.GetValueForProperty("SummaryCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).SummaryCode, global::System.Convert.ToString); + } + if (content.Contains("Category")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).Category = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCategory?) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).Category, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCategory.CreateFrom); + } + if (content.Contains("Severity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).Severity = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.Severity?) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).Severity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.Severity.CreateFrom); + } + if (content.Contains("SummaryMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).SummaryMessage = (string) content.GetValueForProperty("SummaryMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).SummaryMessage, global::System.Convert.ToString); + } + if (content.Contains("AffectedResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).AffectedResourceType = (string) content.GetValueForProperty("AffectedResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).AffectedResourceType, global::System.Convert.ToString); + } + if (content.Contains("AffectedResourceSubtype")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).AffectedResourceSubtype = (string) content.GetValueForProperty("AffectedResourceSubtype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).AffectedResourceSubtype, global::System.Convert.ToString); + } + if (content.Contains("AffectedResourceCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).AffectedResourceCorrelationId = (string[]) content.GetValueForProperty("AffectedResourceCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).AffectedResourceCorrelationId, __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 HealthErrorSummary(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SummaryCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).SummaryCode = (string) content.GetValueForProperty("SummaryCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).SummaryCode, global::System.Convert.ToString); + } + if (content.Contains("Category")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).Category = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCategory?) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).Category, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCategory.CreateFrom); + } + if (content.Contains("Severity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).Severity = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.Severity?) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).Severity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.Severity.CreateFrom); + } + if (content.Contains("SummaryMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).SummaryMessage = (string) content.GetValueForProperty("SummaryMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).SummaryMessage, global::System.Convert.ToString); + } + if (content.Contains("AffectedResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).AffectedResourceType = (string) content.GetValueForProperty("AffectedResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).AffectedResourceType, global::System.Convert.ToString); + } + if (content.Contains("AffectedResourceSubtype")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).AffectedResourceSubtype = (string) content.GetValueForProperty("AffectedResourceSubtype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).AffectedResourceSubtype, global::System.Convert.ToString); + } + if (content.Contains("AffectedResourceCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).AffectedResourceCorrelationId = (string[]) content.GetValueForProperty("AffectedResourceCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal)this).AffectedResourceCorrelationId, __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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// class to define the summary of the health error details. + [System.ComponentModel.TypeConverter(typeof(HealthErrorSummaryTypeConverter))] + public partial interface IHealthErrorSummary + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HealthErrorSummary.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HealthErrorSummary.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/HealthErrorSummary.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HealthErrorSummary.TypeConverter.cs index 276ff8dc4b1b..989ab61acc6b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HealthErrorSummary.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HealthErrorSummary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthErrorSummary ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HealthErrorSummary.cs b/src/Migrate/generated/api/Models/Api202301/HealthErrorSummary.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/HealthErrorSummary.cs rename to src/Migrate/generated/api/Models/Api202301/HealthErrorSummary.cs index d21163882f63..e03308a6e518 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HealthErrorSummary.cs +++ b/src/Migrate/generated/api/Models/Api202301/HealthErrorSummary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// class to define the summary of the health error details. public partial class HealthErrorSummary : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummaryInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummaryInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/HealthErrorSummary.json.cs b/src/Migrate/generated/api/Models/Api202301/HealthErrorSummary.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HealthErrorSummary.json.cs rename to src/Migrate/generated/api/Models/Api202301/HealthErrorSummary.json.cs index dc75a9dddc55..964868c4bc1a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HealthErrorSummary.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HealthErrorSummary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HealthErrorSummary partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HealthErrorSummary(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVHostDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVHostDetails.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/HyperVHostDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVHostDetails.PowerShell.cs index 9e9712ade276..959f99da590b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVHostDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVHostDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class HyperVHostDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IHyperVHostDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HyperVHostDetails(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.Migrate.Models.Api20220501.IHyperVHostDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HyperVHostDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyp /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,21 +103,21 @@ internal HyperVHostDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("MarsAgentVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal)this).MarsAgentVersion = (string) content.GetValueForProperty("MarsAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal)this).MarsAgentVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal)this).MarsAgentVersion = (string) content.GetValueForProperty("MarsAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal)this).MarsAgentVersion, 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,15 +132,15 @@ internal HyperVHostDetails(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("MarsAgentVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal)this).MarsAgentVersion = (string) content.GetValueForProperty("MarsAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal)this).MarsAgentVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal)this).MarsAgentVersion = (string) content.GetValueForProperty("MarsAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal)this).MarsAgentVersion, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVHostDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVHostDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/HyperVHostDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVHostDetails.TypeConverter.cs index f6e259a61c33..12f60947374b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVHostDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVHostDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVHostDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVHostDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVHostDetails.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/HyperVHostDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVHostDetails.cs index 3ec79c169d58..6570fcec0352 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVHostDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVHostDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Hyper-V host details. public partial class HyperVHostDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal { /// Backing field for property. @@ -28,13 +28,13 @@ public partial class HyperVHostDetails : public string MarsAgentVersion { get => this._marsAgentVersion; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for MarsAgentVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal.MarsAgentVersion { get => this._marsAgentVersion; set { {_marsAgentVersion = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal.MarsAgentVersion { get => this._marsAgentVersion; set { {_marsAgentVersion = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetailsInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetailsInternal.Name { get => this._name; set { {_name = value;} } } /// Backing field for property. private string _name; diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVHostDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVHostDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVHostDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVHostDetails.json.cs index a7bc848b2f30..ccc90f98984d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVHostDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVHostDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVHostDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVHostDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012EventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012EventDetails.PowerShell.cs new file mode 100644 index 000000000000..cc21959fdf2f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012EventDetails.PowerShell.cs @@ -0,0 +1,178 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Model class for event details of a HyperVReplica E2E event. + [System.ComponentModel.TypeConverter(typeof(HyperVReplica2012EventDetailsTypeConverter))] + public partial class HyperVReplica2012EventDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplica2012EventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplica2012EventDetails(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.Migrate.Models.Api202301.IHyperVReplica2012EventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplica2012EventDetails(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.Migrate.Models.Api202301.IHyperVReplica2012EventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplica2012EventDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).ContainerName, global::System.Convert.ToString); + } + if (content.Contains("FabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).FabricName, global::System.Convert.ToString); + } + if (content.Contains("RemoteContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); + } + if (content.Contains("RemoteFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplica2012EventDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).ContainerName, global::System.Convert.ToString); + } + if (content.Contains("FabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).FabricName, global::System.Convert.ToString); + } + if (content.Contains("RemoteContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); + } + if (content.Contains("RemoteFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Model class for event details of a HyperVReplica E2E event. + [System.ComponentModel.TypeConverter(typeof(HyperVReplica2012EventDetailsTypeConverter))] + public partial interface IHyperVReplica2012EventDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012EventDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012EventDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012EventDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplica2012EventDetails.TypeConverter.cs index fcecad3b421c..6f8ea3f55f42 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012EventDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012EventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplica2012EventDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012EventDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012EventDetails.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012EventDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplica2012EventDetails.cs index a80a1189ac23..b71b29fcfff3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012EventDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012EventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Model class for event details of a HyperVReplica E2E event. public partial class HyperVReplica2012EventDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(); /// Backing field for property. private string _containerName; @@ -35,7 +35,7 @@ public partial class HyperVReplica2012EventDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _remoteContainerName; @@ -72,7 +72,7 @@ public HyperVReplica2012EventDetails() /// Model class for event details of a HyperVReplica E2E event. public partial interface IHyperVReplica2012EventDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails { /// The container friendly name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -110,7 +110,7 @@ public partial interface IHyperVReplica2012EventDetails : } /// Model class for event details of a HyperVReplica E2E event. internal partial interface IHyperVReplica2012EventDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal { /// The container friendly name. string ContainerName { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012EventDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012EventDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012EventDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplica2012EventDetails.json.cs index 4151862722d0..2994ec856625 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012EventDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012EventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplica2012EventDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012EventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012EventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplica2012EventDetails(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplica2012EventDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(json); + __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(json); {_containerName = If( json?.PropertyT("containerName"), out var __jsonContainerName) ? (string)__jsonContainerName : (string)ContainerName;} {_fabricName = If( json?.PropertyT("fabricName"), out var __jsonFabricName) ? (string)__jsonFabricName : (string)FabricName;} {_remoteContainerName = If( json?.PropertyT("remoteContainerName"), out var __jsonRemoteContainerName) ? (string)__jsonRemoteContainerName : (string)RemoteContainerName;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012R2EventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012R2EventDetails.PowerShell.cs new file mode 100644 index 000000000000..febb69c8c6e5 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012R2EventDetails.PowerShell.cs @@ -0,0 +1,178 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Model class for event details of a HyperVReplica blue E2E event. + [System.ComponentModel.TypeConverter(typeof(HyperVReplica2012R2EventDetailsTypeConverter))] + public partial class HyperVReplica2012R2EventDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplica2012R2EventDetails(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.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplica2012R2EventDetails(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.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplica2012R2EventDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).ContainerName, global::System.Convert.ToString); + } + if (content.Contains("FabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).FabricName, global::System.Convert.ToString); + } + if (content.Contains("RemoteContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); + } + if (content.Contains("RemoteFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplica2012R2EventDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).ContainerName, global::System.Convert.ToString); + } + if (content.Contains("FabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).FabricName, global::System.Convert.ToString); + } + if (content.Contains("RemoteContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); + } + if (content.Contains("RemoteFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Model class for event details of a HyperVReplica blue E2E event. + [System.ComponentModel.TypeConverter(typeof(HyperVReplica2012R2EventDetailsTypeConverter))] + public partial interface IHyperVReplica2012R2EventDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012R2EventDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012R2EventDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012R2EventDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplica2012R2EventDetails.TypeConverter.cs index 23fe02ae653a..24db2c35d682 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012R2EventDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012R2EventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012R2EventDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012R2EventDetails.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012R2EventDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplica2012R2EventDetails.cs index 9c4c0bc7d1fb..29850411f61d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012R2EventDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012R2EventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Model class for event details of a HyperVReplica blue E2E event. public partial class HyperVReplica2012R2EventDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(); /// Backing field for property. private string _containerName; @@ -35,7 +35,7 @@ public partial class HyperVReplica2012R2EventDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _remoteContainerName; @@ -72,7 +72,7 @@ public HyperVReplica2012R2EventDetails() /// Model class for event details of a HyperVReplica blue E2E event. public partial interface IHyperVReplica2012R2EventDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails { /// The container friendly name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -110,7 +110,7 @@ public partial interface IHyperVReplica2012R2EventDetails : } /// Model class for event details of a HyperVReplica blue E2E event. internal partial interface IHyperVReplica2012R2EventDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal { /// The container friendly name. string ContainerName { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012R2EventDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012R2EventDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012R2EventDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplica2012R2EventDetails.json.cs index 28038e0097fc..9d1f9b346a51 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplica2012R2EventDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplica2012R2EventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplica2012R2EventDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplica2012R2EventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplica2012R2EventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplica2012R2EventDetails(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplica2012R2EventDetails(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(json); + __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(json); {_containerName = If( json?.PropertyT("containerName"), out var __jsonContainerName) ? (string)__jsonContainerName : (string)ContainerName;} {_fabricName = If( json?.PropertyT("fabricName"), out var __jsonFabricName) ? (string)__jsonFabricName : (string)FabricName;} {_remoteContainerName = If( json?.PropertyT("remoteContainerName"), out var __jsonRemoteContainerName) ? (string)__jsonRemoteContainerName : (string)RemoteContainerName;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureApplyRecoveryPointInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureApplyRecoveryPointInput.PowerShell.cs new file mode 100644 index 000000000000..e4361fb0eb31 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureApplyRecoveryPointInput.PowerShell.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// ApplyRecoveryPoint input specific to HyperVReplicaAzure provider. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureApplyRecoveryPointInputTypeConverter))] + public partial class HyperVReplicaAzureApplyRecoveryPointInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaAzureApplyRecoveryPointInput(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.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaAzureApplyRecoveryPointInput(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.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaAzureApplyRecoveryPointInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("SecondaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, 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 HyperVReplicaAzureApplyRecoveryPointInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("SecondaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// ApplyRecoveryPoint input specific to HyperVReplicaAzure provider. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureApplyRecoveryPointInputTypeConverter))] + public partial interface IHyperVReplicaAzureApplyRecoveryPointInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureApplyRecoveryPointInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureApplyRecoveryPointInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureApplyRecoveryPointInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureApplyRecoveryPointInput.TypeConverter.cs index 70c06c6d8c83..0216c89e5c23 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureApplyRecoveryPointInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureApplyRecoveryPointInput.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureApplyRecoveryPointInput.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureApplyRecoveryPointInput.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureApplyRecoveryPointInput.cs index 05b9ca565c6c..be7ba1a773d3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureApplyRecoveryPointInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// ApplyRecoveryPoint input specific to HyperVReplicaAzure provider. public partial class HyperVReplicaAzureApplyRecoveryPointInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _primaryKekCertificatePfx; @@ -60,7 +60,7 @@ public HyperVReplicaAzureApplyRecoveryPointInput() /// ApplyRecoveryPoint input specific to HyperVReplicaAzure provider. public partial interface IHyperVReplicaAzureApplyRecoveryPointInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput { /// The primary kek certificate pfx. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -82,7 +82,7 @@ public partial interface IHyperVReplicaAzureApplyRecoveryPointInput : } /// ApplyRecoveryPoint input specific to HyperVReplicaAzure provider. internal partial interface IHyperVReplicaAzureApplyRecoveryPointInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal { /// The primary kek certificate pfx. string PrimaryKekCertificatePfx { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureApplyRecoveryPointInput.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureApplyRecoveryPointInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureApplyRecoveryPointInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureApplyRecoveryPointInput.json.cs index 4822aa027012..36c3a0a27666 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureApplyRecoveryPointInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureApplyRecoveryPointInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureApplyRecoveryPointInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureApplyRecoveryPointInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureApplyRecoveryPointInput(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplicaAzureApplyRecoveryPointInput(Microsoft.Azure.PowerShell.Cm { return; } - __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput(json); + __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput(json); {_primaryKekCertificatePfx = If( json?.PropertyT("primaryKekCertificatePfx"), out var __jsonPrimaryKekCertificatePfx) ? (string)__jsonPrimaryKekCertificatePfx : (string)PrimaryKekCertificatePfx;} {_secondaryKekCertificatePfx = If( json?.PropertyT("secondaryKekCertificatePfx"), out var __jsonSecondaryKekCertificatePfx) ? (string)__jsonSecondaryKekCertificatePfx : (string)SecondaryKekCertificatePfx;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureDiskInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureDiskInputDetails.PowerShell.cs new file mode 100644 index 000000000000..d47e635adc13 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureDiskInputDetails.PowerShell.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Disk input details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureDiskInputDetailsTypeConverter))] + public partial class HyperVReplicaAzureDiskInputDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaAzureDiskInputDetails(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.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaAzureDiskInputDetails(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.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaAzureDiskInputDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskEncryptionSetId, 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 HyperVReplicaAzureDiskInputDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal)this).DiskEncryptionSetId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Disk input details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureDiskInputDetailsTypeConverter))] + public partial interface IHyperVReplicaAzureDiskInputDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureDiskInputDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureDiskInputDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureDiskInputDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureDiskInputDetails.TypeConverter.cs index bfde91bb3469..44e2a5649db6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureDiskInputDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureDiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureDiskInputDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureDiskInputDetails.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureDiskInputDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureDiskInputDetails.cs index 381159bcf9b8..3ddee0fcf67e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureDiskInputDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureDiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Disk input details. public partial class HyperVReplicaAzureDiskInputDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureDiskInputDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureDiskInputDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureDiskInputDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureDiskInputDetails.json.cs index c517c5ba6322..60f4eafded03 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureDiskInputDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureDiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureDiskInputDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureDiskInputDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInput.PowerShell.cs new file mode 100644 index 000000000000..fc926b949c16 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInput.PowerShell.cs @@ -0,0 +1,373 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// HyperVReplicaAzure specific enable protection input. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureEnableProtectionInputTypeConverter))] + public partial class HyperVReplicaAzureEnableProtectionInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaAzureEnableProtectionInput(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.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaAzureEnableProtectionInput(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.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaAzureEnableProtectionInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("HvHostVMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).HvHostVMId = (string) content.GetValueForProperty("HvHostVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).HvHostVMId, global::System.Convert.ToString); + } + if (content.Contains("VMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).VMName, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("VhdId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).VhdId = (string) content.GetValueForProperty("VhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).VhdId, global::System.Convert.ToString); + } + if (content.Contains("TargetStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetStorageAccountId = (string) content.GetValueForProperty("TargetStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureNetworkId = (string) content.GetValueForProperty("TargetAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureSubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureSubnetId = (string) content.GetValueForProperty("TargetAzureSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureSubnetId, global::System.Convert.ToString); + } + if (content.Contains("EnableRdpOnTargetOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureVMName = (string) content.GetValueForProperty("TargetAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DisksToInclude")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("TargetAzureV1ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureV2ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("UseManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisk, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("UseManagedDisksForReplication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisksForReplication = (string) content.GetValueForProperty("UseManagedDisksForReplication",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisksForReplication, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DisksToIncludeForManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToIncludeForManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails[]) content.GetValueForProperty("DisksToIncludeForManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToIncludeForManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetVmtagsTypeConverter.ConvertFrom); + } + if (content.Contains("SeedManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, 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 HyperVReplicaAzureEnableProtectionInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("HvHostVMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).HvHostVMId = (string) content.GetValueForProperty("HvHostVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).HvHostVMId, global::System.Convert.ToString); + } + if (content.Contains("VMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).VMName, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("VhdId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).VhdId = (string) content.GetValueForProperty("VhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).VhdId, global::System.Convert.ToString); + } + if (content.Contains("TargetStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetStorageAccountId = (string) content.GetValueForProperty("TargetStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureNetworkId = (string) content.GetValueForProperty("TargetAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureSubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureSubnetId = (string) content.GetValueForProperty("TargetAzureSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureSubnetId, global::System.Convert.ToString); + } + if (content.Contains("EnableRdpOnTargetOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureVMName = (string) content.GetValueForProperty("TargetAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DisksToInclude")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("TargetAzureV1ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureV2ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("UseManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisk, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("UseManagedDisksForReplication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisksForReplication = (string) content.GetValueForProperty("UseManagedDisksForReplication",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).UseManagedDisksForReplication, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DisksToIncludeForManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToIncludeForManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails[]) content.GetValueForProperty("DisksToIncludeForManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DisksToIncludeForManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureDiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetVmtagsTypeConverter.ConvertFrom); + } + if (content.Contains("SeedManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// HyperVReplicaAzure specific enable protection input. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureEnableProtectionInputTypeConverter))] + public partial interface IHyperVReplicaAzureEnableProtectionInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInput.TypeConverter.cs index a7426956ed4b..0c81603248ca 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInput.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInput.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInput.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInput.cs index 1443ab040591..554ed39b0ee8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// HyperVReplicaAzure specific enable protection input. public partial class HyperVReplicaAzureEnableProtectionInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput(); /// Backing field for property. private string _diskEncryptionSetId; @@ -41,11 +41,11 @@ public partial class HyperVReplicaAzureEnableProtectionInput : public string[] DisksToInclude { get => this._disksToInclude; set => this._disksToInclude = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails[] _disksToIncludeForManagedDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails[] _disksToIncludeForManagedDisk; /// The disks to include list for managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails[] DisksToIncludeForManagedDisk { get => this._disksToIncludeForManagedDisk; set => this._disksToIncludeForManagedDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails[] DisksToIncludeForManagedDisk { get => this._disksToIncludeForManagedDisk; set => this._disksToIncludeForManagedDisk = value; } /// Backing field for property. private string _enableRdpOnTargetOption; @@ -66,7 +66,7 @@ public partial class HyperVReplicaAzureEnableProtectionInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? _licenseType; @@ -90,11 +90,11 @@ public partial class HyperVReplicaAzureEnableProtectionInput : public string OSType { get => this._oSType; set => this._oSType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags _seedManagedDiskTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags _seedManagedDiskTag; /// The tags for the seed managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags SeedManagedDiskTag { get => (this._seedManagedDiskTag = this._seedManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags()); set => this._seedManagedDiskTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags SeedManagedDiskTag { get => (this._seedManagedDiskTag = this._seedManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags()); set => this._seedManagedDiskTag = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType? _sqlServerLicenseType; @@ -157,18 +157,18 @@ public partial class HyperVReplicaAzureEnableProtectionInput : public string TargetAzureVMName { get => this._targetAzureVMName; set => this._targetAzureVMName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags _targetManagedDiskTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags _targetManagedDiskTag; /// The tags for the target managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags TargetManagedDiskTag { get => (this._targetManagedDiskTag = this._targetManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags()); set => this._targetManagedDiskTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags TargetManagedDiskTag { get => (this._targetManagedDiskTag = this._targetManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags()); set => this._targetManagedDiskTag = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags _targetNicTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags _targetNicTag; /// The tags for the target NICs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetNicTags()); set => this._targetNicTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetNicTags()); set => this._targetNicTag = value; } /// Backing field for property. private string _targetProximityPlacementGroupId; @@ -192,11 +192,11 @@ public partial class HyperVReplicaAzureEnableProtectionInput : public string TargetVMSize { get => this._targetVMSize; set => this._targetVMSize = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags _targetVMTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags _targetVMTag; /// The target VM tags. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetVmtags()); set => this._targetVMTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetVmtags()); set => this._targetVMTag = value; } /// Backing field for property. private string _useManagedDisk; @@ -247,7 +247,7 @@ public HyperVReplicaAzureEnableProtectionInput() /// HyperVReplicaAzure specific enable protection input. public partial interface IHyperVReplicaAzureEnableProtectionInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput { /// The DiskEncryptionSet ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -279,8 +279,8 @@ public partial interface IHyperVReplicaAzureEnableProtectionInput : ReadOnly = false, Description = @"The disks to include list for managed disks.", SerializedName = @"disksToIncludeForManagedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails[] DisksToIncludeForManagedDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails[] DisksToIncludeForManagedDisk { get; set; } /// /// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption /// enum. @@ -330,8 +330,8 @@ public partial interface IHyperVReplicaAzureEnableProtectionInput : ReadOnly = false, Description = @"The tags for the seed managed disks.", SerializedName = @"seedManagedDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags SeedManagedDiskTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags SeedManagedDiskTag { get; set; } /// The SQL Server license type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -406,16 +406,16 @@ public partial interface IHyperVReplicaAzureEnableProtectionInput : ReadOnly = false, Description = @"The tags for the target managed disks.", SerializedName = @"targetManagedDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } /// The tags for the target NICs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The tags for the target NICs.", SerializedName = @"targetNicTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags TargetNicTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags TargetNicTag { get; set; } /// The proximity placement group ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -446,8 +446,8 @@ public partial interface IHyperVReplicaAzureEnableProtectionInput : ReadOnly = false, Description = @"The target VM tags.", SerializedName = @"targetVmTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags TargetVMTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags TargetVMTag { get; set; } /// A value indicating whether managed disks should be used during failover. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -484,7 +484,7 @@ public partial interface IHyperVReplicaAzureEnableProtectionInput : } /// HyperVReplicaAzure specific enable protection input. internal partial interface IHyperVReplicaAzureEnableProtectionInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal { /// The DiskEncryptionSet ARM Id. string DiskEncryptionSetId { get; set; } @@ -493,7 +493,7 @@ internal partial interface IHyperVReplicaAzureEnableProtectionInputInternal : /// The list of VHD Ids of disks to be protected. string[] DisksToInclude { get; set; } /// The disks to include list for managed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails[] DisksToIncludeForManagedDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails[] DisksToIncludeForManagedDisk { get; set; } /// /// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption /// enum. @@ -508,7 +508,7 @@ internal partial interface IHyperVReplicaAzureEnableProtectionInputInternal : /// The OS type associated with VM. string OSType { get; set; } /// The tags for the seed managed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags SeedManagedDiskTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags SeedManagedDiskTag { get; set; } /// The SQL Server license type. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType? SqlServerLicenseType { get; set; } /// The target availability set ARM Id for resource manager deployment. @@ -530,9 +530,9 @@ internal partial interface IHyperVReplicaAzureEnableProtectionInputInternal : /// The target azure VM Name. string TargetAzureVMName { get; set; } /// The tags for the target managed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } /// The tags for the target NICs. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags TargetNicTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags TargetNicTag { get; set; } /// The proximity placement group ARM Id. string TargetProximityPlacementGroupId { get; set; } /// The storage account Id. @@ -540,7 +540,7 @@ internal partial interface IHyperVReplicaAzureEnableProtectionInputInternal : /// The target VM size. string TargetVMSize { get; set; } /// The target VM tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags TargetVMTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags TargetVMTag { get; set; } /// A value indicating whether managed disks should be used during failover. string UseManagedDisk { get; set; } /// A value indicating whether managed disks should be used during replication. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInput.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInput.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInput.json.cs index be5e412dd24c..5c051c08fcfb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureEnableProtectionInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureEnableProtectionInput(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplicaAzureEnableProtectionInput(Microsoft.Azure.PowerShell.Cmdl { return; } - __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput(json); + __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput(json); {_hvHostVMId = If( json?.PropertyT("hvHostVmId"), out var __jsonHvHostVMId) ? (string)__jsonHvHostVMId : (string)HvHostVMId;} {_vMName = If( json?.PropertyT("vmName"), out var __jsonVMName) ? (string)__jsonVMName : (string)VMName;} {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType;} @@ -100,12 +100,12 @@ internal HyperVReplicaAzureEnableProtectionInput(Microsoft.Azure.PowerShell.Cmdl {_targetProximityPlacementGroupId = If( json?.PropertyT("targetProximityPlacementGroupId"), out var __jsonTargetProximityPlacementGroupId) ? (string)__jsonTargetProximityPlacementGroupId : (string)TargetProximityPlacementGroupId;} {_useManagedDisksForReplication = If( json?.PropertyT("useManagedDisksForReplication"), out var __jsonUseManagedDisksForReplication) ? (string)__jsonUseManagedDisksForReplication : (string)UseManagedDisksForReplication;} {_diskType = If( json?.PropertyT("diskType"), out var __jsonDiskType) ? (string)__jsonDiskType : (string)DiskType;} - {_disksToIncludeForManagedDisk = If( json?.PropertyT("disksToIncludeForManagedDisks"), out var __jsonDisksToIncludeForManagedDisks) ? If( __jsonDisksToIncludeForManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureDiskInputDetails.FromJson(__p) )) ))() : null : DisksToIncludeForManagedDisk;} + {_disksToIncludeForManagedDisk = If( json?.PropertyT("disksToIncludeForManagedDisks"), out var __jsonDisksToIncludeForManagedDisks) ? If( __jsonDisksToIncludeForManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureDiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureDiskInputDetails.FromJson(__p) )) ))() : null : DisksToIncludeForManagedDisk;} {_diskEncryptionSetId = If( json?.PropertyT("diskEncryptionSetId"), out var __jsonDiskEncryptionSetId) ? (string)__jsonDiskEncryptionSetId : (string)DiskEncryptionSetId;} - {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetVmtags.FromJson(__jsonTargetVMTags) : TargetVMTag;} - {_seedManagedDiskTag = If( json?.PropertyT("seedManagedDiskTags"), out var __jsonSeedManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.FromJson(__jsonSeedManagedDiskTags) : SeedManagedDiskTag;} - {_targetManagedDiskTag = If( json?.PropertyT("targetManagedDiskTags"), out var __jsonTargetManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.FromJson(__jsonTargetManagedDiskTags) : TargetManagedDiskTag;} - {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} + {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetVmtags.FromJson(__jsonTargetVMTags) : TargetVMTag;} + {_seedManagedDiskTag = If( json?.PropertyT("seedManagedDiskTags"), out var __jsonSeedManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.FromJson(__jsonSeedManagedDiskTags) : SeedManagedDiskTag;} + {_targetManagedDiskTag = If( json?.PropertyT("targetManagedDiskTags"), out var __jsonTargetManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.FromJson(__jsonTargetManagedDiskTags) : TargetManagedDiskTag;} + {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.PowerShell.cs index 251ffd94a0ac..f0fa0b548055 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags(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.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyp /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags(global::Syst } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.TypeConverter.cs index f5476bca036c..46307b7b626f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no /// suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.cs index 880c23eb1333..16e1c7c3d041 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the seed managed disks. public partial class HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.dictionary.cs index 80856f41ed7d..378b6dbd3181 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.json.cs index 74151bb590fd..01c38b140e76 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureEnableProtectionInputSeedManagedDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.PowerShell.cs index 0d3ce862d3d7..cc960f86914b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTag partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags(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.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyp /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags(global::Sy } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.TypeConverter.cs index 6cf2d6427313..9dbc4fa87222 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is /// no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.cs index a0a0fc9c7b7e..8bdc5f2e29ef 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target managed disks. public partial class HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.dictionary.cs index ec4586728602..d905f59f3f2c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.json.cs index 3822d0b5a39a..0dd6ec64e7db 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTag partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureEnableProtectionInputTargetManagedDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.PowerShell.cs index b0c588c3a647..f88da4cd885f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class HyperVReplicaAzureEnableProtectionInputTargetNicTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HyperVReplicaAzureEnableProtectionInputTargetNicTags(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.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HyperVReplicaAzureEnableProtectionInputTargetNicTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyp /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal HyperVReplicaAzureEnableProtectionInputTargetNicTags(global::System.Col } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.TypeConverter.cs index 2439cce287f3..b3022380e097 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.cs index 7e092ba970c4..441066487fd1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target NICs. public partial class HyperVReplicaAzureEnableProtectionInputTargetNicTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.dictionary.cs index 2dd429580736..79b4c9cf3b4a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetNicTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetNicTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.json.cs index 1aa27a2f1eff..4d7a4b313ae3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetNicTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureEnableProtectionInputTargetNicTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureEnableProtectionInputTargetNicTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.PowerShell.cs index 68df29dc17f7..1a22b7d1b015 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class HyperVReplicaAzureEnableProtectionInputTargetVmtags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HyperVReplicaAzureEnableProtectionInputTargetVmtags(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.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HyperVReplicaAzureEnableProtectionInputTargetVmtags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyp /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal HyperVReplicaAzureEnableProtectionInputTargetVmtags(global::System.Coll } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.TypeConverter.cs index 6f99fc63ced3..2ab6377ea700 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.cs index 72f429cdaa87..1fd3133dedad 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The target VM tags. public partial class HyperVReplicaAzureEnableProtectionInputTargetVmtags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.dictionary.cs index 8a844be68560..34fb01aefe59 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureEnableProtectionInputTargetVmtags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureEnableProtectionInputTargetVmtags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.json.cs index d53e76dbce65..43f56ec988c2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEnableProtectionInputTargetVmtags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEnableProtectionInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureEnableProtectionInputTargetVmtags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEnableProtectionInputTargetVmtags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEnableProtectionInputTargetVmtags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureEnableProtectionInputTargetVmtags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEventDetails.PowerShell.cs new file mode 100644 index 000000000000..1934458392f4 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEventDetails.PowerShell.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Model class for event details of a HyperVReplica E2A event. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureEventDetailsTypeConverter))] + public partial class HyperVReplicaAzureEventDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaAzureEventDetails(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.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaAzureEventDetails(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.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaAzureEventDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetailsInternal)this).ContainerName, global::System.Convert.ToString); + } + if (content.Contains("FabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetailsInternal)this).FabricName, global::System.Convert.ToString); + } + if (content.Contains("RemoteContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplicaAzureEventDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetailsInternal)this).ContainerName, global::System.Convert.ToString); + } + if (content.Contains("FabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetailsInternal)this).FabricName, global::System.Convert.ToString); + } + if (content.Contains("RemoteContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Model class for event details of a HyperVReplica E2A event. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureEventDetailsTypeConverter))] + public partial interface IHyperVReplicaAzureEventDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEventDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEventDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEventDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEventDetails.TypeConverter.cs index 2ce2cf71fe21..3a58d94c5530 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEventDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEventDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEventDetails.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEventDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEventDetails.cs index a2364f2a6110..ccd846bf6a47 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEventDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Model class for event details of a HyperVReplica E2A event. public partial class HyperVReplicaAzureEventDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(); /// Backing field for property. private string _containerName; @@ -35,7 +35,7 @@ public partial class HyperVReplicaAzureEventDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _remoteContainerName; @@ -65,7 +65,7 @@ public HyperVReplicaAzureEventDetails() /// Model class for event details of a HyperVReplica E2A event. public partial interface IHyperVReplicaAzureEventDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails { /// The container friendly name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -95,7 +95,7 @@ public partial interface IHyperVReplicaAzureEventDetails : } /// Model class for event details of a HyperVReplica E2A event. internal partial interface IHyperVReplicaAzureEventDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal { /// The container friendly name. string ContainerName { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEventDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEventDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEventDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEventDetails.json.cs index 60f5e381bbc0..1a37e081cdac 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureEventDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureEventDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureEventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureEventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureEventDetails(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplicaAzureEventDetails(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(json); + __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(json); {_containerName = If( json?.PropertyT("containerName"), out var __jsonContainerName) ? (string)__jsonContainerName : (string)ContainerName;} {_fabricName = If( json?.PropertyT("fabricName"), out var __jsonFabricName) ? (string)__jsonFabricName : (string)FabricName;} {_remoteContainerName = If( json?.PropertyT("remoteContainerName"), out var __jsonRemoteContainerName) ? (string)__jsonRemoteContainerName : (string)RemoteContainerName;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureFailbackProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureFailbackProviderInput.PowerShell.cs new file mode 100644 index 000000000000..2b907e3a0179 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureFailbackProviderInput.PowerShell.cs @@ -0,0 +1,173 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// HyperVReplicaAzureFailback specific planned failover input. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureFailbackProviderInputTypeConverter))] + public partial class HyperVReplicaAzureFailbackProviderInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaAzureFailbackProviderInput(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.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaAzureFailbackProviderInput(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.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaAzureFailbackProviderInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DataSyncOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInputInternal)this).DataSyncOption = (string) content.GetValueForProperty("DataSyncOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInputInternal)this).DataSyncOption, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVMCreationOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInputInternal)this).RecoveryVMCreationOption = (string) content.GetValueForProperty("RecoveryVMCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInputInternal)this).RecoveryVMCreationOption, global::System.Convert.ToString); + } + if (content.Contains("ProviderIdForAlternateRecovery")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInputInternal)this).ProviderIdForAlternateRecovery = (string) content.GetValueForProperty("ProviderIdForAlternateRecovery",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInputInternal)this).ProviderIdForAlternateRecovery, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, 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 HyperVReplicaAzureFailbackProviderInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DataSyncOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInputInternal)this).DataSyncOption = (string) content.GetValueForProperty("DataSyncOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInputInternal)this).DataSyncOption, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVMCreationOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInputInternal)this).RecoveryVMCreationOption = (string) content.GetValueForProperty("RecoveryVMCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInputInternal)this).RecoveryVMCreationOption, global::System.Convert.ToString); + } + if (content.Contains("ProviderIdForAlternateRecovery")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInputInternal)this).ProviderIdForAlternateRecovery = (string) content.GetValueForProperty("ProviderIdForAlternateRecovery",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInputInternal)this).ProviderIdForAlternateRecovery, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// HyperVReplicaAzureFailback specific planned failover input. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureFailbackProviderInputTypeConverter))] + public partial interface IHyperVReplicaAzureFailbackProviderInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureFailbackProviderInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureFailbackProviderInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureFailbackProviderInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureFailbackProviderInput.TypeConverter.cs index 977e5bfa137c..45e8a9444663 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureFailbackProviderInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureFailbackProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureFailbackProviderInput.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureFailbackProviderInput.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureFailbackProviderInput.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureFailbackProviderInput.cs index 702ed4ef9068..2c138060e1ea 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureFailbackProviderInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureFailbackProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// HyperVReplicaAzureFailback specific planned failover input. public partial class HyperVReplicaAzureFailbackProviderInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput __plannedFailoverProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput __plannedFailoverProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInput(); /// Backing field for property. private string _dataSyncOption; @@ -28,7 +28,7 @@ public partial class HyperVReplicaAzureFailbackProviderInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)__plannedFailoverProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)__plannedFailoverProviderSpecificFailoverInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)__plannedFailoverProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)__plannedFailoverProviderSpecificFailoverInput).InstanceType = value ; } /// Backing field for property. private string _providerIdForAlternateRecovery; @@ -65,7 +65,7 @@ public HyperVReplicaAzureFailbackProviderInput() /// HyperVReplicaAzureFailback specific planned failover input. public partial interface IHyperVReplicaAzureFailbackProviderInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput { /// Data sync option. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -95,7 +95,7 @@ public partial interface IHyperVReplicaAzureFailbackProviderInput : } /// HyperVReplicaAzureFailback specific planned failover input. internal partial interface IHyperVReplicaAzureFailbackProviderInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal { /// Data sync option. string DataSyncOption { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureFailbackProviderInput.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureFailbackProviderInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureFailbackProviderInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureFailbackProviderInput.json.cs index b236d8560327..a5ed54471c17 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureFailbackProviderInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureFailbackProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureFailbackProviderInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureFailbackProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureFailbackProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureFailbackProviderInput(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplicaAzureFailbackProviderInput(Microsoft.Azure.PowerShell.Cmdl { return; } - __plannedFailoverProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInput(json); + __plannedFailoverProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInput(json); {_dataSyncOption = If( json?.PropertyT("dataSyncOption"), out var __jsonDataSyncOption) ? (string)__jsonDataSyncOption : (string)DataSyncOption;} {_recoveryVMCreationOption = If( json?.PropertyT("recoveryVmCreationOption"), out var __jsonRecoveryVMCreationOption) ? (string)__jsonRecoveryVMCreationOption : (string)RecoveryVMCreationOption;} {_providerIdForAlternateRecovery = If( json?.PropertyT("providerIdForAlternateRecovery"), out var __jsonProviderIdForAlternateRecovery) ? (string)__jsonProviderIdForAlternateRecovery : (string)ProviderIdForAlternateRecovery;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureManagedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureManagedDiskDetails.PowerShell.cs new file mode 100644 index 000000000000..82d7fd608b9b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureManagedDiskDetails.PowerShell.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Hyper-V Managed disk details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureManagedDiskDetailsTypeConverter))] + public partial class HyperVReplicaAzureManagedDiskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaAzureManagedDiskDetails(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.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaAzureManagedDiskDetails(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.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaAzureManagedDiskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("SeedManagedDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); + } + if (content.Contains("ReplicaDiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).ReplicaDiskType = (string) content.GetValueForProperty("ReplicaDiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).ReplicaDiskType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskEncryptionSetId, 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 HyperVReplicaAzureManagedDiskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("SeedManagedDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); + } + if (content.Contains("ReplicaDiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).ReplicaDiskType = (string) content.GetValueForProperty("ReplicaDiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).ReplicaDiskType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal)this).DiskEncryptionSetId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Hyper-V Managed disk details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureManagedDiskDetailsTypeConverter))] + public partial interface IHyperVReplicaAzureManagedDiskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureManagedDiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureManagedDiskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureManagedDiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureManagedDiskDetails.TypeConverter.cs index 3b411a261d5e..90301ca6e6c7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureManagedDiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureManagedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureManagedDiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureManagedDiskDetails.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureManagedDiskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureManagedDiskDetails.cs index b88bfc09c2d1..b8aeae7ed3a5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureManagedDiskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureManagedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Hyper-V Managed disk details. public partial class HyperVReplicaAzureManagedDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureManagedDiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureManagedDiskDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureManagedDiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureManagedDiskDetails.json.cs index cae637f294cd..3f154409d256 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureManagedDiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureManagedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureManagedDiskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureManagedDiskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePlannedFailoverProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePlannedFailoverProviderInput.PowerShell.cs new file mode 100644 index 000000000000..1078d7e5ea02 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePlannedFailoverProviderInput.PowerShell.cs @@ -0,0 +1,173 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// HyperVReplicaAzure specific planned failover input. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzurePlannedFailoverProviderInputTypeConverter))] + public partial class HyperVReplicaAzurePlannedFailoverProviderInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaAzurePlannedFailoverProviderInput(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.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaAzurePlannedFailoverProviderInput(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.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaAzurePlannedFailoverProviderInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("SecondaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, 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 HyperVReplicaAzurePlannedFailoverProviderInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("SecondaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// HyperVReplicaAzure specific planned failover input. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzurePlannedFailoverProviderInputTypeConverter))] + public partial interface IHyperVReplicaAzurePlannedFailoverProviderInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePlannedFailoverProviderInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePlannedFailoverProviderInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePlannedFailoverProviderInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePlannedFailoverProviderInput.TypeConverter.cs index aa7156c160c7..6338967b8448 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePlannedFailoverProviderInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePlannedFailoverProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePlannedFailoverProviderInput.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePlannedFailoverProviderInput.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePlannedFailoverProviderInput.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePlannedFailoverProviderInput.cs index 6b90c410344b..348cfefc1256 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePlannedFailoverProviderInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePlannedFailoverProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// HyperVReplicaAzure specific planned failover input. public partial class HyperVReplicaAzurePlannedFailoverProviderInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput __plannedFailoverProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput __plannedFailoverProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)__plannedFailoverProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)__plannedFailoverProviderSpecificFailoverInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)__plannedFailoverProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)__plannedFailoverProviderSpecificFailoverInput).InstanceType = value ; } /// Backing field for property. private string _primaryKekCertificatePfx; @@ -70,7 +70,7 @@ public HyperVReplicaAzurePlannedFailoverProviderInput() /// HyperVReplicaAzure specific planned failover input. public partial interface IHyperVReplicaAzurePlannedFailoverProviderInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput { /// Primary kek certificate pfx. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -103,7 +103,7 @@ public partial interface IHyperVReplicaAzurePlannedFailoverProviderInput : } /// HyperVReplicaAzure specific planned failover input. internal partial interface IHyperVReplicaAzurePlannedFailoverProviderInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal { /// Primary kek certificate pfx. string PrimaryKekCertificatePfx { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePlannedFailoverProviderInput.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePlannedFailoverProviderInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePlannedFailoverProviderInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePlannedFailoverProviderInput.json.cs index ae1778f49e94..316930c05cbc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePlannedFailoverProviderInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePlannedFailoverProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzurePlannedFailoverProviderInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePlannedFailoverProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePlannedFailoverProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzurePlannedFailoverProviderInput(json) : null; } @@ -78,7 +78,7 @@ internal HyperVReplicaAzurePlannedFailoverProviderInput(Microsoft.Azure.PowerShe { return; } - __plannedFailoverProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInput(json); + __plannedFailoverProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInput(json); {_primaryKekCertificatePfx = If( json?.PropertyT("primaryKekCertificatePfx"), out var __jsonPrimaryKekCertificatePfx) ? (string)__jsonPrimaryKekCertificatePfx : (string)PrimaryKekCertificatePfx;} {_secondaryKekCertificatePfx = If( json?.PropertyT("secondaryKekCertificatePfx"), out var __jsonSecondaryKekCertificatePfx) ? (string)__jsonSecondaryKekCertificatePfx : (string)SecondaryKekCertificatePfx;} {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyDetails.PowerShell.cs new file mode 100644 index 000000000000..447f89dbd05a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyDetails.PowerShell.cs @@ -0,0 +1,194 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Hyper-V Replica Azure specific protection profile details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzurePolicyDetailsTypeConverter))] + public partial class HyperVReplicaAzurePolicyDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaAzurePolicyDetails(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.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaAzurePolicyDetails(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.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaAzurePolicyDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointHistoryDurationInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).RecoveryPointHistoryDurationInHour = (int?) content.GetValueForProperty("RecoveryPointHistoryDurationInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).RecoveryPointHistoryDurationInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReplicationInterval")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).ReplicationInterval = (int?) content.GetValueForProperty("ReplicationInterval",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).ReplicationInterval, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("OnlineReplicationStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); + } + if (content.Contains("Encryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).Encryption = (string) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).Encryption, global::System.Convert.ToString); + } + if (content.Contains("ActiveStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).ActiveStorageAccountId = (string) content.GetValueForProperty("ActiveStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).ActiveStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplicaAzurePolicyDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointHistoryDurationInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).RecoveryPointHistoryDurationInHour = (int?) content.GetValueForProperty("RecoveryPointHistoryDurationInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).RecoveryPointHistoryDurationInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReplicationInterval")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).ReplicationInterval = (int?) content.GetValueForProperty("ReplicationInterval",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).ReplicationInterval, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("OnlineReplicationStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); + } + if (content.Contains("Encryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).Encryption = (string) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).Encryption, global::System.Convert.ToString); + } + if (content.Contains("ActiveStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).ActiveStorageAccountId = (string) content.GetValueForProperty("ActiveStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal)this).ActiveStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Hyper-V Replica Azure specific protection profile details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzurePolicyDetailsTypeConverter))] + public partial interface IHyperVReplicaAzurePolicyDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyDetails.TypeConverter.cs index 08c655020f81..bed6dda25d24 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyDetails.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyDetails.cs index ca042a09c1db..3711568e1fa6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Hyper-V Replica Azure specific protection profile details. public partial class HyperVReplicaAzurePolicyDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(); /// Backing field for property. private string _activeStorageAccountId; @@ -48,7 +48,7 @@ public partial class HyperVReplicaAzurePolicyDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _onlineReplicationStartTime; @@ -96,7 +96,7 @@ public HyperVReplicaAzurePolicyDetails() /// Hyper-V Replica Azure specific protection profile details. public partial interface IHyperVReplicaAzurePolicyDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails { /// The active storage account Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -158,7 +158,7 @@ public partial interface IHyperVReplicaAzurePolicyDetails : } /// Hyper-V Replica Azure specific protection profile details. internal partial interface IHyperVReplicaAzurePolicyDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal { /// The active storage account Id. string ActiveStorageAccountId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyDetails.json.cs index 165d201ac763..b42e1cfa04f5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzurePolicyDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzurePolicyDetails(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplicaAzurePolicyDetails(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(json); + __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(json); {_recoveryPointHistoryDurationInHour = If( json?.PropertyT("recoveryPointHistoryDurationInHours"), out var __jsonRecoveryPointHistoryDurationInHours) ? (int?)__jsonRecoveryPointHistoryDurationInHours : RecoveryPointHistoryDurationInHour;} {_applicationConsistentSnapshotFrequencyInHour = If( json?.PropertyT("applicationConsistentSnapshotFrequencyInHours"), out var __jsonApplicationConsistentSnapshotFrequencyInHours) ? (int?)__jsonApplicationConsistentSnapshotFrequencyInHours : ApplicationConsistentSnapshotFrequencyInHour;} {_replicationInterval = If( json?.PropertyT("replicationInterval"), out var __jsonReplicationInterval) ? (int?)__jsonReplicationInterval : ReplicationInterval;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyInput.PowerShell.cs new file mode 100644 index 000000000000..5a6f7477d273 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyInput.PowerShell.cs @@ -0,0 +1,186 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Hyper-V Replica Azure specific input for creating a protection profile. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzurePolicyInputTypeConverter))] + public partial class HyperVReplicaAzurePolicyInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaAzurePolicyInput(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.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaAzurePolicyInput(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.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaAzurePolicyInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointHistoryDuration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).RecoveryPointHistoryDuration = (int?) content.GetValueForProperty("RecoveryPointHistoryDuration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).RecoveryPointHistoryDuration, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReplicationInterval")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).ReplicationInterval = (int?) content.GetValueForProperty("ReplicationInterval",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).ReplicationInterval, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("OnlineReplicationStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); + } + if (content.Contains("StorageAccount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).StorageAccount = (string[]) content.GetValueForProperty("StorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).StorageAccount, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 HyperVReplicaAzurePolicyInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointHistoryDuration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).RecoveryPointHistoryDuration = (int?) content.GetValueForProperty("RecoveryPointHistoryDuration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).RecoveryPointHistoryDuration, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReplicationInterval")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).ReplicationInterval = (int?) content.GetValueForProperty("ReplicationInterval",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).ReplicationInterval, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("OnlineReplicationStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); + } + if (content.Contains("StorageAccount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).StorageAccount = (string[]) content.GetValueForProperty("StorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal)this).StorageAccount, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Hyper-V Replica Azure specific input for creating a protection profile. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzurePolicyInputTypeConverter))] + public partial interface IHyperVReplicaAzurePolicyInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyInput.TypeConverter.cs index 8cfa632f3b68..3d088316c4e2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyInput.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyInput.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyInput.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyInput.cs index ce76e47a3292..bb2ab86c4075 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Hyper-V Replica Azure specific input for creating a protection profile. public partial class HyperVReplicaAzurePolicyInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(); /// /// Backing field for property. @@ -32,7 +32,7 @@ public partial class HyperVReplicaAzurePolicyInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _onlineReplicationStartTime; @@ -89,7 +89,7 @@ public HyperVReplicaAzurePolicyInput() /// Hyper-V Replica Azure specific input for creating a protection profile. public partial interface IHyperVReplicaAzurePolicyInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput { /// /// The interval (in hours) at which Hyper-V Replica should create an application consistent snapshot within the VM. @@ -143,7 +143,7 @@ public partial interface IHyperVReplicaAzurePolicyInput : } /// Hyper-V Replica Azure specific input for creating a protection profile. internal partial interface IHyperVReplicaAzurePolicyInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal { /// /// The interval (in hours) at which Hyper-V Replica should create an application consistent snapshot within the VM. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyInput.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyInput.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyInput.json.cs index 32ab24fb5409..bfd1341fedb9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzurePolicyInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzurePolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzurePolicyInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzurePolicyInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzurePolicyInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzurePolicyInput(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplicaAzurePolicyInput(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(json); + __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(json); {_recoveryPointHistoryDuration = If( json?.PropertyT("recoveryPointHistoryDuration"), out var __jsonRecoveryPointHistoryDuration) ? (int?)__jsonRecoveryPointHistoryDuration : RecoveryPointHistoryDuration;} {_applicationConsistentSnapshotFrequencyInHour = If( json?.PropertyT("applicationConsistentSnapshotFrequencyInHours"), out var __jsonApplicationConsistentSnapshotFrequencyInHours) ? (int?)__jsonApplicationConsistentSnapshotFrequencyInHours : ApplicationConsistentSnapshotFrequencyInHour;} {_replicationInterval = If( json?.PropertyT("replicationInterval"), out var __jsonReplicationInterval) ? (int?)__jsonReplicationInterval : ReplicationInterval;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetails.PowerShell.cs new file mode 100644 index 000000000000..90a8b278333e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetails.PowerShell.cs @@ -0,0 +1,476 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Hyper V Replica Azure provider specific settings. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureReplicationDetailsTypeConverter))] + public partial class HyperVReplicaAzureReplicationDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaAzureReplicationDetails(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.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaAzureReplicationDetails(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.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaAzureReplicationDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InitialReplicationDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("OSDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureVMDiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).AzureVMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails[]) content.GetValueForProperty("AzureVMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).AzureVMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureVMDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureStorageAccount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureStorageAccount = (string) content.GetValueForProperty("RecoveryAzureStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureStorageAccount, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureLogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureLogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("LastReplicatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RpoInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LastRpoCalculatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("VMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("SelectedRecoveryAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedSourceNicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedSourceNicId, global::System.Convert.ToString); + } + if (content.Contains("Encryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).Encryption = (string) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).Encryption, global::System.Convert.ToString); + } + if (content.Contains("SourceVMRamSizeInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMRamSizeInMb = (int?) content.GetValueForProperty("SourceVMRamSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMRamSizeInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SourceVMCpuCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMCpuCount = (int?) content.GetValueForProperty("SourceVMCpuCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMCpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("EnableRdpOnTargetOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("UseManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).UseManagedDisk, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LicenseType, global::System.Convert.ToString); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SqlServerLicenseType = (string) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SqlServerLicenseType, global::System.Convert.ToString); + } + if (content.Contains("LastRecoveryPointReceived")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetVmtagsTypeConverter.ConvertFrom); + } + if (content.Contains("SeedManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsSeedManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("ProtectedManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).ProtectedManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails[]) content.GetValueForProperty("ProtectedManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).ProtectedManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureManagedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOstype")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); + } + if (content.Contains("OSDetailProductType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailProductType = (string) content.GetValueForProperty("OSDetailProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailProductType, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsedition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsedition = (string) content.GetValueForProperty("OSDetailOsedition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsedition, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsversion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsversion = (string) content.GetValueForProperty("OSDetailOsversion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsversion, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsmajorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsmajorVersion = (string) content.GetValueForProperty("OSDetailOsmajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsmajorVersion, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsminorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsminorVersion = (string) content.GetValueForProperty("OSDetailOsminorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsminorVersion, 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 HyperVReplicaAzureReplicationDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InitialReplicationDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("OSDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureVMDiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).AzureVMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails[]) content.GetValueForProperty("AzureVMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).AzureVMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureVMDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureStorageAccount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureStorageAccount = (string) content.GetValueForProperty("RecoveryAzureStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureStorageAccount, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureLogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureLogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("LastReplicatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RpoInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LastRpoCalculatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("VMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("SelectedRecoveryAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedSourceNicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SelectedSourceNicId, global::System.Convert.ToString); + } + if (content.Contains("Encryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).Encryption = (string) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).Encryption, global::System.Convert.ToString); + } + if (content.Contains("SourceVMRamSizeInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMRamSizeInMb = (int?) content.GetValueForProperty("SourceVMRamSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMRamSizeInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SourceVMCpuCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMCpuCount = (int?) content.GetValueForProperty("SourceVMCpuCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SourceVMCpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("EnableRdpOnTargetOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAzureResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("UseManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).UseManagedDisk, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LicenseType, global::System.Convert.ToString); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SqlServerLicenseType = (string) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SqlServerLicenseType, global::System.Convert.ToString); + } + if (content.Contains("LastRecoveryPointReceived")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetVmtagsTypeConverter.ConvertFrom); + } + if (content.Contains("SeedManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsSeedManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("ProtectedManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).ProtectedManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails[]) content.GetValueForProperty("ProtectedManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).ProtectedManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureManagedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOstype")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); + } + if (content.Contains("OSDetailProductType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailProductType = (string) content.GetValueForProperty("OSDetailProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailProductType, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsedition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsedition = (string) content.GetValueForProperty("OSDetailOsedition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsedition, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsversion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsversion = (string) content.GetValueForProperty("OSDetailOsversion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsversion, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsmajorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsmajorVersion = (string) content.GetValueForProperty("OSDetailOsmajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsmajorVersion, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsminorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsminorVersion = (string) content.GetValueForProperty("OSDetailOsminorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal)this).OSDetailOsminorVersion, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Hyper V Replica Azure provider specific settings. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureReplicationDetailsTypeConverter))] + public partial interface IHyperVReplicaAzureReplicationDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetails.TypeConverter.cs index bee036e2dfda..9f7dbab2b838 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetails.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetails.cs index 0d05877a9d6d..b34f38c3a1f0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Hyper V Replica Azure provider specific settings. public partial class HyperVReplicaAzureReplicationDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails[] _azureVMDiskDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails[] _azureVMDiskDetail; /// Azure VM Disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails[] AzureVMDiskDetail { get => this._azureVMDiskDetail; set => this._azureVMDiskDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails[] AzureVMDiskDetail { get => this._azureVMDiskDetail; set => this._azureVMDiskDetail = value; } /// Backing field for property. private string _enableRdpOnTargetOption; @@ -44,23 +44,23 @@ public partial class HyperVReplicaAzureReplicationDetails : public string Encryption { get => this._encryption; set => this._encryption = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails _initialReplicationDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails _initialReplicationDetail; /// Initial replication details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails()); set => this._initialReplicationDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails()); set => this._initialReplicationDetail = value; } /// The initial replication progress percentage. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InitialReplicationDetailInitialReplicationProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage = value ?? null; } + public string InitialReplicationDetailInitialReplicationProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage = value ?? null; } /// Initial replication type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InitialReplicationDetailInitialReplicationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType = value ?? null; } + public string InitialReplicationDetailInitialReplicationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType = value ?? null; } /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } /// Backing field for property. private global::System.DateTime? _lastRecoveryPointReceived; @@ -91,51 +91,51 @@ public partial class HyperVReplicaAzureReplicationDetails : public string LicenseType { get => this._licenseType; set => this._licenseType = value; } /// Internal Acessors for InitialReplicationDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal.InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails()); set { {_initialReplicationDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal.InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails()); set { {_initialReplicationDetail = value;} } } /// Internal Acessors for LastRecoveryPointReceived - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal.LastRecoveryPointReceived { get => this._lastRecoveryPointReceived; set { {_lastRecoveryPointReceived = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal.LastRecoveryPointReceived { get => this._lastRecoveryPointReceived; set { {_lastRecoveryPointReceived = value;} } } /// Internal Acessors for OSDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsInternal.OSDetail { get => (this._oSDetail = this._oSDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDetails()); set { {_oSDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsInternal.OSDetail { get => (this._oSDetail = this._oSDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDetails()); set { {_oSDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails _oSDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails _oSDetail; /// The operating system info. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails OSDetail { get => (this._oSDetail = this._oSDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDetails()); set => this._oSDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails OSDetail { get => (this._oSDetail = this._oSDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDetails()); set => this._oSDetail = value; } /// The OSEdition. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailOsedition { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSEdition; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSEdition = value ?? null; } + public string OSDetailOsedition { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSEdition; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSEdition = value ?? null; } /// The OS Major Version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailOsmajorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSMajorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSMajorVersion = value ?? null; } + public string OSDetailOsmajorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSMajorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSMajorVersion = value ?? null; } /// The OS Minor Version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailOsminorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSMinorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSMinorVersion = value ?? null; } + public string OSDetailOsminorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSMinorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSMinorVersion = value ?? null; } /// VM Disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSType = value ?? null; } + public string OSDetailOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSType = value ?? null; } /// The OS Version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailOsversion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSVersion = value ?? null; } + public string OSDetailOsversion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSVersion = value ?? null; } /// Product type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailProductType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).ProductType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).ProductType = value ?? null; } + public string OSDetailProductType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).ProductType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).ProductType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails[] _protectedManagedDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails[] _protectedManagedDisk; /// The list of protected managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails[] ProtectedManagedDisk { get => this._protectedManagedDisk; set => this._protectedManagedDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails[] ProtectedManagedDisk { get => this._protectedManagedDisk; set => this._protectedManagedDisk = value; } /// Backing field for property. private string _recoveryAvailabilitySetId; @@ -190,11 +190,11 @@ public partial class HyperVReplicaAzureReplicationDetails : public long? RpoInSecond { get => this._rpoInSecond; set => this._rpoInSecond = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags _seedManagedDiskTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags _seedManagedDiskTag; /// The tags for the seed managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags SeedManagedDiskTag { get => (this._seedManagedDiskTag = this._seedManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags()); set => this._seedManagedDiskTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags SeedManagedDiskTag { get => (this._seedManagedDiskTag = this._seedManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags()); set => this._seedManagedDiskTag = value; } /// Backing field for property. private string _selectedRecoveryAzureNetworkId; @@ -241,18 +241,18 @@ public partial class HyperVReplicaAzureReplicationDetails : public string TargetAvailabilityZone { get => this._targetAvailabilityZone; set => this._targetAvailabilityZone = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags _targetManagedDiskTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags _targetManagedDiskTag; /// The tags for the target managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags TargetManagedDiskTag { get => (this._targetManagedDiskTag = this._targetManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags()); set => this._targetManagedDiskTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags TargetManagedDiskTag { get => (this._targetManagedDiskTag = this._targetManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags()); set => this._targetManagedDiskTag = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags _targetNicTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags _targetNicTag; /// The tags for the target NICs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetNicTags()); set => this._targetNicTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetNicTags()); set => this._targetNicTag = value; } /// Backing field for property. private string _targetProximityPlacementGroupId; @@ -262,11 +262,11 @@ public partial class HyperVReplicaAzureReplicationDetails : public string TargetProximityPlacementGroupId { get => this._targetProximityPlacementGroupId; set => this._targetProximityPlacementGroupId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags _targetVMTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags _targetVMTag; /// The target VM tags. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetVmtags()); set => this._targetVMTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetVmtags()); set => this._targetVMTag = value; } /// Backing field for property. private string _useManagedDisk; @@ -283,11 +283,11 @@ public partial class HyperVReplicaAzureReplicationDetails : public string VMId { get => this._vMId; set => this._vMId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] _vMNic; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] _vMNic; /// The PE Network details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } /// Backing field for property. private string _vMProtectionState; @@ -324,7 +324,7 @@ public HyperVReplicaAzureReplicationDetails() /// Hyper V Replica Azure provider specific settings. public partial interface IHyperVReplicaAzureReplicationDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings { /// Azure VM Disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -332,8 +332,8 @@ public partial interface IHyperVReplicaAzureReplicationDetails : ReadOnly = false, Description = @"Azure VM Disk details.", SerializedName = @"azureVmDiskDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails[] AzureVMDiskDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails[] AzureVMDiskDetail { get; set; } /// /// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption /// enum. @@ -455,8 +455,8 @@ public partial interface IHyperVReplicaAzureReplicationDetails : ReadOnly = false, Description = @"The list of protected managed disks.", SerializedName = @"protectedManagedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails[] ProtectedManagedDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails[] ProtectedManagedDisk { get; set; } /// The recovery availability set Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -522,8 +522,8 @@ public partial interface IHyperVReplicaAzureReplicationDetails : ReadOnly = false, Description = @"The tags for the seed managed disks.", SerializedName = @"seedManagedDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags SeedManagedDiskTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags SeedManagedDiskTag { get; set; } /// The selected recovery azure network Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -580,16 +580,16 @@ public partial interface IHyperVReplicaAzureReplicationDetails : ReadOnly = false, Description = @"The tags for the target managed disks.", SerializedName = @"targetManagedDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags TargetManagedDiskTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags TargetManagedDiskTag { get; set; } /// The tags for the target NICs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The tags for the target NICs.", SerializedName = @"targetNicTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags TargetNicTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags TargetNicTag { get; set; } /// The target proximity placement group Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -604,8 +604,8 @@ public partial interface IHyperVReplicaAzureReplicationDetails : ReadOnly = false, Description = @"The target VM tags.", SerializedName = @"targetVmTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags TargetVMTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags TargetVMTag { get; set; } /// A value indicating whether managed disks should be used during failover. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -628,8 +628,8 @@ public partial interface IHyperVReplicaAzureReplicationDetails : ReadOnly = false, Description = @"The PE Network details.", SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get; set; } /// The protection state for the vm. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -650,10 +650,10 @@ public partial interface IHyperVReplicaAzureReplicationDetails : } /// Hyper V Replica Azure provider specific settings. internal partial interface IHyperVReplicaAzureReplicationDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal { /// Azure VM Disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails[] AzureVMDiskDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails[] AzureVMDiskDetail { get; set; } /// /// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption /// enum. @@ -662,7 +662,7 @@ internal partial interface IHyperVReplicaAzureReplicationDetailsInternal : /// The encryption info. string Encryption { get; set; } /// Initial replication details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails InitialReplicationDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails InitialReplicationDetail { get; set; } /// The initial replication progress percentage. string InitialReplicationDetailInitialReplicationProgressPercentage { get; set; } /// Initial replication type. @@ -676,7 +676,7 @@ internal partial interface IHyperVReplicaAzureReplicationDetailsInternal : /// License Type of the VM to be used. string LicenseType { get; set; } /// The operating system info. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails OSDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails OSDetail { get; set; } /// The OSEdition. string OSDetailOsedition { get; set; } /// The OS Major Version. @@ -690,7 +690,7 @@ internal partial interface IHyperVReplicaAzureReplicationDetailsInternal : /// Product type. string OSDetailProductType { get; set; } /// The list of protected managed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails[] ProtectedManagedDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails[] ProtectedManagedDisk { get; set; } /// The recovery availability set Id. string RecoveryAvailabilitySetId { get; set; } /// @@ -709,7 +709,7 @@ internal partial interface IHyperVReplicaAzureReplicationDetailsInternal : /// Last RPO value. long? RpoInSecond { get; set; } /// The tags for the seed managed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags SeedManagedDiskTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags SeedManagedDiskTag { get; set; } /// The selected recovery azure network Id. string SelectedRecoveryAzureNetworkId { get; set; } /// @@ -725,19 +725,19 @@ internal partial interface IHyperVReplicaAzureReplicationDetailsInternal : /// The target availability zone. string TargetAvailabilityZone { get; set; } /// The tags for the target managed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags TargetManagedDiskTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags TargetManagedDiskTag { get; set; } /// The tags for the target NICs. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags TargetNicTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags TargetNicTag { get; set; } /// The target proximity placement group Id. string TargetProximityPlacementGroupId { get; set; } /// The target VM tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags TargetVMTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags TargetVMTag { get; set; } /// A value indicating whether managed disks should be used during failover. string UseManagedDisk { get; set; } /// The virtual machine Id. string VMId { get; set; } /// The PE Network details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get; set; } /// The protection state for the vm. string VMProtectionState { get; set; } /// The protection state description for the vm. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetails.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetails.json.cs index c48fc4d4c64f..17e99f65f3e5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureReplicationDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureReplicationDetails(json) : null; } @@ -77,10 +77,10 @@ internal HyperVReplicaAzureReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets { return; } - __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(json); - {_initialReplicationDetail = If( json?.PropertyT("initialReplicationDetails"), out var __jsonInitialReplicationDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails.FromJson(__jsonInitialReplicationDetails) : InitialReplicationDetail;} - {_oSDetail = If( json?.PropertyT("oSDetails"), out var __jsonOSDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDetails.FromJson(__jsonOSDetails) : OSDetail;} - {_azureVMDiskDetail = If( json?.PropertyT("azureVmDiskDetails"), out var __jsonAzureVMDiskDetails) ? If( __jsonAzureVMDiskDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAzureVMDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureVMDiskDetails.FromJson(__u) )) ))() : null : AzureVMDiskDetail;} + __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(json); + {_initialReplicationDetail = If( json?.PropertyT("initialReplicationDetails"), out var __jsonInitialReplicationDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails.FromJson(__jsonInitialReplicationDetails) : InitialReplicationDetail;} + {_oSDetail = If( json?.PropertyT("oSDetails"), out var __jsonOSDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDetails.FromJson(__jsonOSDetails) : OSDetail;} + {_azureVMDiskDetail = If( json?.PropertyT("azureVmDiskDetails"), out var __jsonAzureVMDiskDetails) ? If( __jsonAzureVMDiskDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IAzureVMDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureVMDiskDetails.FromJson(__u) )) ))() : null : AzureVMDiskDetail;} {_recoveryAzureVMName = If( json?.PropertyT("recoveryAzureVmName"), out var __jsonRecoveryAzureVMName) ? (string)__jsonRecoveryAzureVMName : (string)RecoveryAzureVMName;} {_recoveryAzureVMSize = If( json?.PropertyT("recoveryAzureVMSize"), out var __jsonRecoveryAzureVMSize) ? (string)__jsonRecoveryAzureVMSize : (string)RecoveryAzureVMSize;} {_recoveryAzureStorageAccount = If( json?.PropertyT("recoveryAzureStorageAccount"), out var __jsonRecoveryAzureStorageAccount) ? (string)__jsonRecoveryAzureStorageAccount : (string)RecoveryAzureStorageAccount;} @@ -91,7 +91,7 @@ internal HyperVReplicaAzureReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets {_vMId = If( json?.PropertyT("vmId"), out var __jsonVMId) ? (string)__jsonVMId : (string)VMId;} {_vMProtectionState = If( json?.PropertyT("vmProtectionState"), out var __jsonVMProtectionState) ? (string)__jsonVMProtectionState : (string)VMProtectionState;} {_vMProtectionStateDescription = If( json?.PropertyT("vmProtectionStateDescription"), out var __jsonVMProtectionStateDescription) ? (string)__jsonVMProtectionStateDescription : (string)VMProtectionStateDescription;} - {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetails.FromJson(__p) )) ))() : null : VMNic;} + {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetails.FromJson(__p) )) ))() : null : VMNic;} {_selectedRecoveryAzureNetworkId = If( json?.PropertyT("selectedRecoveryAzureNetworkId"), out var __jsonSelectedRecoveryAzureNetworkId) ? (string)__jsonSelectedRecoveryAzureNetworkId : (string)SelectedRecoveryAzureNetworkId;} {_selectedSourceNicId = If( json?.PropertyT("selectedSourceNicId"), out var __jsonSelectedSourceNicId) ? (string)__jsonSelectedSourceNicId : (string)SelectedSourceNicId;} {_encryption = If( json?.PropertyT("encryption"), out var __jsonEncryption) ? (string)__jsonEncryption : (string)Encryption;} @@ -106,11 +106,11 @@ internal HyperVReplicaAzureReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets {_licenseType = If( json?.PropertyT("licenseType"), out var __jsonLicenseType) ? (string)__jsonLicenseType : (string)LicenseType;} {_sqlServerLicenseType = If( json?.PropertyT("sqlServerLicenseType"), out var __jsonSqlServerLicenseType) ? (string)__jsonSqlServerLicenseType : (string)SqlServerLicenseType;} {_lastRecoveryPointReceived = If( json?.PropertyT("lastRecoveryPointReceived"), out var __jsonLastRecoveryPointReceived) ? global::System.DateTime.TryParse((string)__jsonLastRecoveryPointReceived, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastRecoveryPointReceivedValue) ? __jsonLastRecoveryPointReceivedValue : LastRecoveryPointReceived : LastRecoveryPointReceived;} - {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetVmtags.FromJson(__jsonTargetVMTags) : TargetVMTag;} - {_seedManagedDiskTag = If( json?.PropertyT("seedManagedDiskTags"), out var __jsonSeedManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.FromJson(__jsonSeedManagedDiskTags) : SeedManagedDiskTag;} - {_targetManagedDiskTag = If( json?.PropertyT("targetManagedDiskTags"), out var __jsonTargetManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.FromJson(__jsonTargetManagedDiskTags) : TargetManagedDiskTag;} - {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} - {_protectedManagedDisk = If( json?.PropertyT("protectedManagedDisks"), out var __jsonProtectedManagedDisks) ? If( __jsonProtectedManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureManagedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureManagedDiskDetails.FromJson(__k) )) ))() : null : ProtectedManagedDisk;} + {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetVmtags.FromJson(__jsonTargetVMTags) : TargetVMTag;} + {_seedManagedDiskTag = If( json?.PropertyT("seedManagedDiskTags"), out var __jsonSeedManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.FromJson(__jsonSeedManagedDiskTags) : SeedManagedDiskTag;} + {_targetManagedDiskTag = If( json?.PropertyT("targetManagedDiskTags"), out var __jsonTargetManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.FromJson(__jsonTargetManagedDiskTags) : TargetManagedDiskTag;} + {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} + {_protectedManagedDisk = If( json?.PropertyT("protectedManagedDisks"), out var __jsonProtectedManagedDisks) ? If( __jsonProtectedManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureManagedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureManagedDiskDetails.FromJson(__k) )) ))() : null : ProtectedManagedDisk;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.PowerShell.cs index c040e5c5aaa4..3b3c89a94a93 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags(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.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyp /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags(global::System. } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.TypeConverter.cs index 8024bb152dba..d21d9614c105 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.cs index 0312e215c142..4f3736e6c088 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the seed managed disks. public partial class HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.dictionary.cs index fc5c9e339f86..e822b359eeb0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.json.cs index 305afe0c144c..6d069f08c173 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsSeedManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureReplicationDetailsSeedManagedDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.PowerShell.cs index aef3fd1faad3..23d33e6093d6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags(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.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyp /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags(global::Syste } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.TypeConverter.cs index 1e824a8529d7..ee8a5d0526b5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no /// suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.cs index 0293f3083418..403ee7b04721 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target managed disks. public partial class HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.dictionary.cs index 49914066b285..73195e255dcd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.json.cs index 26a4ec0abc02..1a31dfa73fd8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureReplicationDetailsTargetManagedDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.PowerShell.cs index f11349838c12..749120b3b32a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class HyperVReplicaAzureReplicationDetailsTargetNicTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HyperVReplicaAzureReplicationDetailsTargetNicTags(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.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HyperVReplicaAzureReplicationDetailsTargetNicTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyp /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal HyperVReplicaAzureReplicationDetailsTargetNicTags(global::System.Collec } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.TypeConverter.cs index d85f1771225d..50fe1e4e3338 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.cs index 56350c9a14f7..760cd40545bc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target NICs. public partial class HyperVReplicaAzureReplicationDetailsTargetNicTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.dictionary.cs index a252c931898f..0f077832ab96 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetNicTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetNicTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.json.cs index f8c61c356410..8531713f06a7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetNicTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureReplicationDetailsTargetNicTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureReplicationDetailsTargetNicTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.PowerShell.cs index 967756e7c7c7..e955f914ce9f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class HyperVReplicaAzureReplicationDetailsTargetVmtags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HyperVReplicaAzureReplicationDetailsTargetVmtags(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.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HyperVReplicaAzureReplicationDetailsTargetVmtags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyp /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal HyperVReplicaAzureReplicationDetailsTargetVmtags(global::System.Collect } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.TypeConverter.cs index e9e0e77b9f33..2bf16afc102b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.cs index 4ea85e53aed6..f51c4fe8420b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The target VM tags. public partial class HyperVReplicaAzureReplicationDetailsTargetVmtags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.dictionary.cs index 56e6f84aca55..2522f0bb50df 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureReplicationDetailsTargetVmtags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureReplicationDetailsTargetVmtags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.json.cs index 505638152275..7567a643fda5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReplicationDetailsTargetVmtags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReplicationDetailsTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureReplicationDetailsTargetVmtags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReplicationDetailsTargetVmtags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReplicationDetailsTargetVmtags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureReplicationDetailsTargetVmtags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReprotectInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReprotectInput.PowerShell.cs new file mode 100644 index 000000000000..3ed58714345a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReprotectInput.PowerShell.cs @@ -0,0 +1,194 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Azure specific reprotect input. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureReprotectInputTypeConverter))] + public partial class HyperVReplicaAzureReprotectInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaAzureReprotectInput(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.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaAzureReprotectInput(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.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaAzureReprotectInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("HvHostVMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).HvHostVMId = (string) content.GetValueForProperty("HvHostVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).HvHostVMId, global::System.Convert.ToString); + } + if (content.Contains("VMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).VMName, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("VHdId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).VHdId = (string) content.GetValueForProperty("VHdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).VHdId, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).StorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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 HyperVReplicaAzureReprotectInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("HvHostVMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).HvHostVMId = (string) content.GetValueForProperty("HvHostVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).HvHostVMId, global::System.Convert.ToString); + } + if (content.Contains("VMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).VMName, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("VHdId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).VHdId = (string) content.GetValueForProperty("VHdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).VHdId, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).StorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Azure specific reprotect input. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureReprotectInputTypeConverter))] + public partial interface IHyperVReplicaAzureReprotectInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReprotectInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReprotectInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReprotectInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReprotectInput.TypeConverter.cs index 6c2ab4aaea05..8549fe30120b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReprotectInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReprotectInput.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReprotectInput.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReprotectInput.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReprotectInput.cs index 0c090921dd0e..6f653d3aa8da 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReprotectInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Azure specific reprotect input. public partial class HyperVReplicaAzureReprotectInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput(); /// Backing field for property. private string _hvHostVMId; @@ -28,7 +28,7 @@ public partial class HyperVReplicaAzureReprotectInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _logStorageAccountId; @@ -86,7 +86,7 @@ public HyperVReplicaAzureReprotectInput() /// Azure specific reprotect input. public partial interface IHyperVReplicaAzureReprotectInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput { /// The Hyper-V host Vm Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -140,7 +140,7 @@ public partial interface IHyperVReplicaAzureReprotectInput : } /// Azure specific reprotect input. internal partial interface IHyperVReplicaAzureReprotectInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal { /// The Hyper-V host Vm Id. string HvHostVMId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReprotectInput.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReprotectInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReprotectInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReprotectInput.json.cs index 76cb5b665b3b..ec5ce951b95c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureReprotectInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureReprotectInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureReprotectInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureReprotectInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureReprotectInput(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplicaAzureReprotectInput(Microsoft.Azure.PowerShell.Cmdlets.Mig { return; } - __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput(json); + __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput(json); {_hvHostVMId = If( json?.PropertyT("hvHostVmId"), out var __jsonHvHostVMId) ? (string)__jsonHvHostVMId : (string)HvHostVMId;} {_vMName = If( json?.PropertyT("vmName"), out var __jsonVMName) ? (string)__jsonVMName : (string)VMName;} {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureTestFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureTestFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..24577d830162 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureTestFailoverInput.PowerShell.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// HvrA provider specific input for test failover. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureTestFailoverInputTypeConverter))] + public partial class HyperVReplicaAzureTestFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaAzureTestFailoverInput(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.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaAzureTestFailoverInput(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.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaAzureTestFailoverInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("SecondaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType, 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 HyperVReplicaAzureTestFailoverInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("SecondaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// HvrA provider specific input for test failover. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureTestFailoverInputTypeConverter))] + public partial interface IHyperVReplicaAzureTestFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureTestFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureTestFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureTestFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureTestFailoverInput.TypeConverter.cs index 33393b655941..66a00d41cb05 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureTestFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureTestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureTestFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureTestFailoverInput.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureTestFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureTestFailoverInput.cs index 1c514eac579f..28aabe3dc407 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureTestFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureTestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// HvrA provider specific input for test failover. public partial class HyperVReplicaAzureTestFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _primaryKekCertificatePfx; @@ -68,7 +68,7 @@ public HyperVReplicaAzureTestFailoverInput() /// HvrA provider specific input for test failover. public partial interface IHyperVReplicaAzureTestFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput { /// Primary kek certificate pfx. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -101,7 +101,7 @@ public partial interface IHyperVReplicaAzureTestFailoverInput : } /// HvrA provider specific input for test failover. internal partial interface IHyperVReplicaAzureTestFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal { /// Primary kek certificate pfx. string PrimaryKekCertificatePfx { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureTestFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureTestFailoverInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureTestFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureTestFailoverInput.json.cs index d0d829f7f698..0e68ad4183ee 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureTestFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureTestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureTestFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureTestFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureTestFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureTestFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplicaAzureTestFailoverInput(Microsoft.Azure.PowerShell.Cmdlets. { return; } - __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput(json); + __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput(json); {_primaryKekCertificatePfx = If( json?.PropertyT("primaryKekCertificatePfx"), out var __jsonPrimaryKekCertificatePfx) ? (string)__jsonPrimaryKekCertificatePfx : (string)PrimaryKekCertificatePfx;} {_secondaryKekCertificatePfx = If( json?.PropertyT("secondaryKekCertificatePfx"), out var __jsonSecondaryKekCertificatePfx) ? (string)__jsonSecondaryKekCertificatePfx : (string)SecondaryKekCertificatePfx;} {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUnplannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUnplannedFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..fc8f0acc3984 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUnplannedFailoverInput.PowerShell.cs @@ -0,0 +1,173 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// HvrA provider specific input for unplanned failover. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureUnplannedFailoverInputTypeConverter))] + public partial class HyperVReplicaAzureUnplannedFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaAzureUnplannedFailoverInput(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.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaAzureUnplannedFailoverInput(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.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaAzureUnplannedFailoverInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("SecondaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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 HyperVReplicaAzureUnplannedFailoverInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("SecondaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// HvrA provider specific input for unplanned failover. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureUnplannedFailoverInputTypeConverter))] + public partial interface IHyperVReplicaAzureUnplannedFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUnplannedFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUnplannedFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUnplannedFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUnplannedFailoverInput.TypeConverter.cs index fcefc1494c70..5e674c495111 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUnplannedFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUnplannedFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUnplannedFailoverInput.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUnplannedFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUnplannedFailoverInput.cs index a63d827fe7be..aa0b5d1f0828 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUnplannedFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// HvrA provider specific input for unplanned failover. public partial class HyperVReplicaAzureUnplannedFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _primaryKekCertificatePfx; @@ -70,7 +70,7 @@ public HyperVReplicaAzureUnplannedFailoverInput() /// HvrA provider specific input for unplanned failover. public partial interface IHyperVReplicaAzureUnplannedFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput { /// Primary kek certificate pfx. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -103,7 +103,7 @@ public partial interface IHyperVReplicaAzureUnplannedFailoverInput : } /// HvrA provider specific input for unplanned failover. internal partial interface IHyperVReplicaAzureUnplannedFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal { /// Primary kek certificate pfx. string PrimaryKekCertificatePfx { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUnplannedFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUnplannedFailoverInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUnplannedFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUnplannedFailoverInput.json.cs index 67dc33c6c287..57b696190c25 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUnplannedFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureUnplannedFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUnplannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUnplannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureUnplannedFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplicaAzureUnplannedFailoverInput(Microsoft.Azure.PowerShell.Cmd { return; } - __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput(json); + __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput(json); {_primaryKekCertificatePfx = If( json?.PropertyT("primaryKekCertificatePfx"), out var __jsonPrimaryKekCertificatePfx) ? (string)__jsonPrimaryKekCertificatePfx : (string)PrimaryKekCertificatePfx;} {_secondaryKekCertificatePfx = If( json?.PropertyT("secondaryKekCertificatePfx"), out var __jsonSecondaryKekCertificatePfx) ? (string)__jsonSecondaryKekCertificatePfx : (string)SecondaryKekCertificatePfx;} {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInput.PowerShell.cs new file mode 100644 index 000000000000..827a0fa32059 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInput.PowerShell.cs @@ -0,0 +1,237 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// HyperV replica Azure input to update replication protected item. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureUpdateReplicationProtectedItemInputTypeConverter))] + public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaAzureUpdateReplicationProtectedItemInput(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.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaAzureUpdateReplicationProtectedItemInput(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.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaAzureUpdateReplicationProtectedItemInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryAzureV1ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureV2ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("UseManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).UseManagedDisk, global::System.Convert.ToString); + } + if (content.Contains("DiskIdToDiskEncryptionMap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).DiskIdToDiskEncryptionMap = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap) content.GetValueForProperty("DiskIdToDiskEncryptionMap",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).DiskIdToDiskEncryptionMap, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMapTypeConverter.ConvertFrom); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateDiskInputTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, 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 HyperVReplicaAzureUpdateReplicationProtectedItemInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryAzureV1ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureV2ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("UseManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).UseManagedDisk, global::System.Convert.ToString); + } + if (content.Contains("DiskIdToDiskEncryptionMap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).DiskIdToDiskEncryptionMap = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap) content.GetValueForProperty("DiskIdToDiskEncryptionMap",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).DiskIdToDiskEncryptionMap, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMapTypeConverter.ConvertFrom); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateDiskInputTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// HyperV replica Azure input to update replication protected item. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaAzureUpdateReplicationProtectedItemInputTypeConverter))] + public partial interface IHyperVReplicaAzureUpdateReplicationProtectedItemInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInput.TypeConverter.cs index 12a9bbcde25a..c9fedb1ebb84 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs index e0cbd4824f53..115ee2724c30 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInput.cs @@ -3,32 +3,32 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// HyperV replica Azure input to update replication protected item. public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInput(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap _diskIdToDiskEncryptionMap; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap _diskIdToDiskEncryptionMap; /// The dictionary of disk resource Id to disk encryption set ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap DiskIdToDiskEncryptionMap { get => (this._diskIdToDiskEncryptionMap = this._diskIdToDiskEncryptionMap ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap()); set => this._diskIdToDiskEncryptionMap = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap DiskIdToDiskEncryptionMap { get => (this._diskIdToDiskEncryptionMap = this._diskIdToDiskEncryptionMap ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap()); set => this._diskIdToDiskEncryptionMap = value; } /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType = value ; } /// Backing field for property. private string _recoveryAzureV1ResourceGroupId; @@ -59,18 +59,18 @@ public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInput : public string TargetAvailabilityZone { get => this._targetAvailabilityZone; set => this._targetAvailabilityZone = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags _targetManagedDiskTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags _targetManagedDiskTag; /// The tags for the target managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags TargetManagedDiskTag { get => (this._targetManagedDiskTag = this._targetManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags()); set => this._targetManagedDiskTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags TargetManagedDiskTag { get => (this._targetManagedDiskTag = this._targetManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags()); set => this._targetManagedDiskTag = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags _targetNicTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags _targetNicTag; /// The tags for the target NICs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags()); set => this._targetNicTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags()); set => this._targetNicTag = value; } /// Backing field for property. private string _targetProximityPlacementGroupId; @@ -80,11 +80,11 @@ public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInput : public string TargetProximityPlacementGroupId { get => this._targetProximityPlacementGroupId; set => this._targetProximityPlacementGroupId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags _targetVMTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags _targetVMTag; /// The target VM tags. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags()); set => this._targetVMTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags()); set => this._targetVMTag = value; } /// Backing field for property. private string _useManagedDisk; @@ -94,11 +94,11 @@ public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInput : public string UseManagedDisk { get => this._useManagedDisk; set => this._useManagedDisk = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput[] _vMDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput[] _vMDisk; /// The list of disk update properties. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } /// /// Creates an new instance. @@ -123,7 +123,7 @@ public HyperVReplicaAzureUpdateReplicationProtectedItemInput() /// HyperV replica Azure input to update replication protected item. public partial interface IHyperVReplicaAzureUpdateReplicationProtectedItemInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput { /// The dictionary of disk resource Id to disk encryption set ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -131,8 +131,8 @@ public partial interface IHyperVReplicaAzureUpdateReplicationProtectedItemInput ReadOnly = false, Description = @"The dictionary of disk resource Id to disk encryption set ARM Id.", SerializedName = @"diskIdToDiskEncryptionMap", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap DiskIdToDiskEncryptionMap { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap DiskIdToDiskEncryptionMap { get; set; } /// The recovery Azure resource group Id for classic deployment. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -171,16 +171,16 @@ public partial interface IHyperVReplicaAzureUpdateReplicationProtectedItemInput ReadOnly = false, Description = @"The tags for the target managed disks.", SerializedName = @"targetManagedDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } /// The tags for the target NICs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The tags for the target NICs.", SerializedName = @"targetNicTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags TargetNicTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags TargetNicTag { get; set; } /// The target proximity placement group Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -195,8 +195,8 @@ public partial interface IHyperVReplicaAzureUpdateReplicationProtectedItemInput ReadOnly = false, Description = @"The target VM tags.", SerializedName = @"targetVmTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags TargetVMTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags TargetVMTag { get; set; } /// A value indicating whether managed disks should be used during failover. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -211,16 +211,16 @@ public partial interface IHyperVReplicaAzureUpdateReplicationProtectedItemInput ReadOnly = false, Description = @"The list of disk update properties.", SerializedName = @"vmDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput[] VMDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput[] VMDisk { get; set; } } /// HyperV replica Azure input to update replication protected item. internal partial interface IHyperVReplicaAzureUpdateReplicationProtectedItemInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal { /// The dictionary of disk resource Id to disk encryption set ARM Id. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap DiskIdToDiskEncryptionMap { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap DiskIdToDiskEncryptionMap { get; set; } /// The recovery Azure resource group Id for classic deployment. string RecoveryAzureV1ResourceGroupId { get; set; } /// The recovery Azure resource group Id for resource manager deployment. @@ -230,17 +230,17 @@ internal partial interface IHyperVReplicaAzureUpdateReplicationProtectedItemInpu /// The target availability zone. string TargetAvailabilityZone { get; set; } /// The tags for the target managed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } /// The tags for the target NICs. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags TargetNicTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags TargetNicTag { get; set; } /// The target proximity placement group Id. string TargetProximityPlacementGroupId { get; set; } /// The target VM tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags TargetVMTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags TargetVMTag { get; set; } /// A value indicating whether managed disks should be used during failover. string UseManagedDisk { get; set; } /// The list of disk update properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput[] VMDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput[] VMDisk { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInput.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInput.json.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInput.json.cs index 4eda1411195a..9f1c41633568 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureUpdateReplicationProtectedItemInput(json) : null; } @@ -78,18 +78,18 @@ internal HyperVReplicaAzureUpdateReplicationProtectedItemInput(Microsoft.Azure.P { return; } - __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInput(json); + __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInput(json); {_recoveryAzureV1ResourceGroupId = If( json?.PropertyT("recoveryAzureV1ResourceGroupId"), out var __jsonRecoveryAzureV1ResourceGroupId) ? (string)__jsonRecoveryAzureV1ResourceGroupId : (string)RecoveryAzureV1ResourceGroupId;} {_recoveryAzureV2ResourceGroupId = If( json?.PropertyT("recoveryAzureV2ResourceGroupId"), out var __jsonRecoveryAzureV2ResourceGroupId) ? (string)__jsonRecoveryAzureV2ResourceGroupId : (string)RecoveryAzureV2ResourceGroupId;} {_useManagedDisk = If( json?.PropertyT("useManagedDisks"), out var __jsonUseManagedDisks) ? (string)__jsonUseManagedDisks : (string)UseManagedDisk;} - {_diskIdToDiskEncryptionMap = If( json?.PropertyT("diskIdToDiskEncryptionMap"), out var __jsonDiskIdToDiskEncryptionMap) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.FromJson(__jsonDiskIdToDiskEncryptionMap) : DiskIdToDiskEncryptionMap;} + {_diskIdToDiskEncryptionMap = If( json?.PropertyT("diskIdToDiskEncryptionMap"), out var __jsonDiskIdToDiskEncryptionMap) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.FromJson(__jsonDiskIdToDiskEncryptionMap) : DiskIdToDiskEncryptionMap;} {_targetProximityPlacementGroupId = If( json?.PropertyT("targetProximityPlacementGroupId"), out var __jsonTargetProximityPlacementGroupId) ? (string)__jsonTargetProximityPlacementGroupId : (string)TargetProximityPlacementGroupId;} {_targetAvailabilityZone = If( json?.PropertyT("targetAvailabilityZone"), out var __jsonTargetAvailabilityZone) ? (string)__jsonTargetAvailabilityZone : (string)TargetAvailabilityZone;} - {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.FromJson(__jsonTargetVMTags) : TargetVMTag;} - {_targetManagedDiskTag = If( json?.PropertyT("targetManagedDiskTags"), out var __jsonTargetManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.FromJson(__jsonTargetManagedDiskTags) : TargetManagedDiskTag;} - {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} + {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.FromJson(__jsonTargetVMTags) : TargetVMTag;} + {_targetManagedDiskTag = If( json?.PropertyT("targetManagedDiskTags"), out var __jsonTargetManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.FromJson(__jsonTargetManagedDiskTags) : TargetManagedDiskTag;} + {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} {_sqlServerLicenseType = If( json?.PropertyT("sqlServerLicenseType"), out var __jsonSqlServerLicenseType) ? (string)__jsonSqlServerLicenseType : (string)SqlServerLicenseType;} - {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateDiskInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateDiskInput.FromJson(__u) )) ))() : null : VMDisk;} + {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IUpdateDiskInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateDiskInput.FromJson(__u) )) ))() : null : VMDisk;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.PowerShell.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.PowerShell.cs index 2ce1af66f3d5..6a7410d9c12c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskId partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap(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.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap(content); } @@ -91,10 +91,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyp /// an instance of the model /// class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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 HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryp } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.TypeConverter.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.TypeConverter.cs index d33def30b5f8..dcb9aead98f8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null /// if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.cs index 295d667eaeeb..6608108738fa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The dictionary of disk resource Id to disk encryption set ARM Id. public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMapInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMapInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.dictionary.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.dictionary.cs index 6f9589c60d5f..708d4a29573e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.json.cs index 7d3f17ba2f0d..8e91682293a1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskId partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureUpdateReplicationProtectedItemInputDiskIdToDiskEncryptionMap(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.PowerShell.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.PowerShell.cs index fdd35b306e45..5af8a2011934 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInputTarget partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags(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.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyp /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskT } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.TypeConverter.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.TypeConverter.cs index c00fed7d88ca..d4f5e5554ad7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null /// if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.cs index 85542ea87c03..3b53c8e8a296 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target managed disks. public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.dictionary.cs index 0f5ea351f25f..c956eaa5fd58 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.json.cs index a03a46936bde..4368ee19d245 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInputTarget partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetManagedDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.PowerShell.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.PowerShell.cs index 85ab0430e963..82e8b2865787 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInputTarget partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags(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.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyp /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags(glob } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.TypeConverter.cs index 22c26aebf45c..a7eba1b2643c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there /// is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.cs index 5698a8488a38..ac97f6a3c9cf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target NICs. public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.dictionary.cs index 66e6b0556948..9e90f0047b9e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.json.cs index 038f0135d4ef..07f0a9c91f91 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInputTarget partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetNicTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.PowerShell.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.PowerShell.cs index 7fea50308f95..6ac91b7d10d2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInputTarget partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags(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.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyp /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags(globa } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.TypeConverter.cs index 6c3991f647c6..320536cdc8d1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there /// is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.cs index 4f731ed429d5..51c4d9e1726c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The target VM tags. public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.dictionary.cs index a07f845751c7..97b3029517c4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.json.cs index 943c0dd75804..a0372769fdcf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaAzureUpdateReplicationProtectedItemInputTarget partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaAzureUpdateReplicationProtectedItemInputTargetVmtags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseEventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseEventDetails.PowerShell.cs new file mode 100644 index 000000000000..649aa5e881da --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseEventDetails.PowerShell.cs @@ -0,0 +1,178 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Abstract model class for event details of a HyperVReplica E2E event. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBaseEventDetailsTypeConverter))] + public partial class HyperVReplicaBaseEventDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaBaseEventDetails(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.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaBaseEventDetails(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.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaBaseEventDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).ContainerName, global::System.Convert.ToString); + } + if (content.Contains("FabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).FabricName, global::System.Convert.ToString); + } + if (content.Contains("RemoteContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); + } + if (content.Contains("RemoteFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplicaBaseEventDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).ContainerName = (string) content.GetValueForProperty("ContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).ContainerName, global::System.Convert.ToString); + } + if (content.Contains("FabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).FabricName, global::System.Convert.ToString); + } + if (content.Contains("RemoteContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).RemoteContainerName = (string) content.GetValueForProperty("RemoteContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).RemoteContainerName, global::System.Convert.ToString); + } + if (content.Contains("RemoteFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).RemoteFabricName = (string) content.GetValueForProperty("RemoteFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal)this).RemoteFabricName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Abstract model class for event details of a HyperVReplica E2E event. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBaseEventDetailsTypeConverter))] + public partial interface IHyperVReplicaBaseEventDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseEventDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseEventDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseEventDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseEventDetails.TypeConverter.cs index 119480189356..8630dbc8e3b3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseEventDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseEventDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseEventDetails.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseEventDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseEventDetails.cs index 54d8298d5a4d..99b644bc72fc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseEventDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Abstract model class for event details of a HyperVReplica E2E event. public partial class HyperVReplicaBaseEventDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(); /// Backing field for property. private string _containerName; @@ -35,7 +35,7 @@ public partial class HyperVReplicaBaseEventDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _remoteContainerName; @@ -72,7 +72,7 @@ public HyperVReplicaBaseEventDetails() /// Abstract model class for event details of a HyperVReplica E2E event. public partial interface IHyperVReplicaBaseEventDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails { /// The container friendly name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -110,7 +110,7 @@ public partial interface IHyperVReplicaBaseEventDetails : } /// Abstract model class for event details of a HyperVReplica E2E event. internal partial interface IHyperVReplicaBaseEventDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal { /// The container friendly name. string ContainerName { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseEventDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseEventDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseEventDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseEventDetails.json.cs index 15cd18592ef6..c2a4a9627190 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseEventDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaBaseEventDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseEventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseEventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaBaseEventDetails(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplicaBaseEventDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(json); + __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(json); {_containerName = If( json?.PropertyT("containerName"), out var __jsonContainerName) ? (string)__jsonContainerName : (string)ContainerName;} {_fabricName = If( json?.PropertyT("fabricName"), out var __jsonFabricName) ? (string)__jsonFabricName : (string)FabricName;} {_remoteContainerName = If( json?.PropertyT("remoteContainerName"), out var __jsonRemoteContainerName) ? (string)__jsonRemoteContainerName : (string)RemoteContainerName;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBasePolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBasePolicyDetails.PowerShell.cs new file mode 100644 index 000000000000..0a2c745a109a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBasePolicyDetails.PowerShell.cs @@ -0,0 +1,226 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Base class for HyperVReplica policy details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBasePolicyDetailsTypeConverter))] + public partial class HyperVReplicaBasePolicyDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaBasePolicyDetails(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.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaBasePolicyDetails(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.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaBasePolicyDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Compression")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).Compression, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).InitialReplicationMethod, global::System.Convert.ToString); + } + if (content.Contains("OnlineReplicationStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationImportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationExportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); + } + if (content.Contains("ReplicationPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllowedAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReplicaDeletionOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicaDeletionOption = (string) content.GetValueForProperty("ReplicaDeletionOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicaDeletionOption, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplicaBasePolicyDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Compression")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).Compression, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).InitialReplicationMethod, global::System.Convert.ToString); + } + if (content.Contains("OnlineReplicationStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationImportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationExportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); + } + if (content.Contains("ReplicationPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllowedAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReplicaDeletionOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicaDeletionOption = (string) content.GetValueForProperty("ReplicaDeletionOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal)this).ReplicaDeletionOption, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Base class for HyperVReplica policy details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBasePolicyDetailsTypeConverter))] + public partial interface IHyperVReplicaBasePolicyDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBasePolicyDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBasePolicyDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBasePolicyDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBasePolicyDetails.TypeConverter.cs index 9d343c5abc47..bdb8c4e0bb57 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBasePolicyDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBasePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBasePolicyDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBasePolicyDetails.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBasePolicyDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBasePolicyDetails.cs index 27250483cc43..473041c7591f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBasePolicyDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBasePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Base class for HyperVReplica policy details. public partial class HyperVReplicaBasePolicyDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(); /// Backing field for property. private int? _allowedAuthenticationType; @@ -51,7 +51,7 @@ public partial class HyperVReplicaBasePolicyDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _offlineReplicationExportPath; @@ -118,7 +118,7 @@ public HyperVReplicaBasePolicyDetails() /// Base class for HyperVReplica policy details. public partial interface IHyperVReplicaBasePolicyDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails { /// A value indicating the authentication type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -206,7 +206,7 @@ public partial interface IHyperVReplicaBasePolicyDetails : } /// Base class for HyperVReplica policy details. internal partial interface IHyperVReplicaBasePolicyDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal { /// A value indicating the authentication type. int? AllowedAuthenticationType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBasePolicyDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBasePolicyDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBasePolicyDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBasePolicyDetails.json.cs index 7637e8cd2e9f..8d1077ed924f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBasePolicyDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBasePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaBasePolicyDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBasePolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBasePolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaBasePolicyDetails(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplicaBasePolicyDetails(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(json); + __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(json); {_recoveryPoint = If( json?.PropertyT("recoveryPoints"), out var __jsonRecoveryPoints) ? (int?)__jsonRecoveryPoints : RecoveryPoint;} {_applicationConsistentSnapshotFrequencyInHour = If( json?.PropertyT("applicationConsistentSnapshotFrequencyInHours"), out var __jsonApplicationConsistentSnapshotFrequencyInHours) ? (int?)__jsonApplicationConsistentSnapshotFrequencyInHours : ApplicationConsistentSnapshotFrequencyInHour;} {_compression = If( json?.PropertyT("compression"), out var __jsonCompression) ? (string)__jsonCompression : (string)Compression;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseReplicationDetails.PowerShell.cs new file mode 100644 index 000000000000..5074d28f50ba --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseReplicationDetails.PowerShell.cs @@ -0,0 +1,220 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Hyper V replica provider specific settings base class. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBaseReplicationDetailsTypeConverter))] + public partial class HyperVReplicaBaseReplicationDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaBaseReplicationDetails(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.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaBaseReplicationDetails(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.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaBaseReplicationDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InitialReplicationDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("LastReplicatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("VMDiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[]) content.GetValueForProperty("VMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, 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 HyperVReplicaBaseReplicationDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InitialReplicationDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("LastReplicatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("VMDiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[]) content.GetValueForProperty("VMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).VMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Hyper V replica provider specific settings base class. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBaseReplicationDetailsTypeConverter))] + public partial interface IHyperVReplicaBaseReplicationDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseReplicationDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseReplicationDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseReplicationDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseReplicationDetails.TypeConverter.cs index ad1aa49143e0..c922da1df901 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseReplicationDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseReplicationDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseReplicationDetails.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseReplicationDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseReplicationDetails.cs index 27301d4fdc04..3eb563ccda3a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseReplicationDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseReplicationDetails.cs @@ -3,40 +3,40 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Hyper V replica provider specific settings base class. public partial class HyperVReplicaBaseReplicationDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails _initialReplicationDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails _initialReplicationDetail; /// Initial replication details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails()); set => this._initialReplicationDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails()); set => this._initialReplicationDetail = value; } /// The initial replication progress percentage. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InitialReplicationDetailInitialReplicationProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage = value ?? null; } + public string InitialReplicationDetailInitialReplicationProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage = value ?? null; } /// Initial replication type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InitialReplicationDetailInitialReplicationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType = value ?? null; } + public string InitialReplicationDetailInitialReplicationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType = value ?? null; } /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } /// Backing field for property. private global::System.DateTime? _lastReplicatedTime; @@ -46,14 +46,14 @@ public partial class HyperVReplicaBaseReplicationDetails : public global::System.DateTime? LastReplicatedTime { get => this._lastReplicatedTime; set => this._lastReplicatedTime = value; } /// Internal Acessors for InitialReplicationDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetailsInternal.InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails()); set { {_initialReplicationDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetailsInternal.InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails()); set { {_initialReplicationDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] _vMDiskDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] _vMDiskDetail; /// VM disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] VMDiskDetail { get => this._vMDiskDetail; set => this._vMDiskDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] VMDiskDetail { get => this._vMDiskDetail; set => this._vMDiskDetail = value; } /// Backing field for property. private string _vMId; @@ -63,11 +63,11 @@ public partial class HyperVReplicaBaseReplicationDetails : public string VMId { get => this._vMId; set => this._vMId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] _vMNic; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] _vMNic; /// The PE Network details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } /// Backing field for property. private string _vMProtectionState; @@ -104,7 +104,7 @@ public HyperVReplicaBaseReplicationDetails() /// Hyper V replica provider specific settings base class. public partial interface IHyperVReplicaBaseReplicationDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings { /// The initial replication progress percentage. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -136,8 +136,8 @@ public partial interface IHyperVReplicaBaseReplicationDetails : ReadOnly = false, Description = @"VM disk details.", SerializedName = @"vMDiskDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] VMDiskDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] VMDiskDetail { get; set; } /// The virtual machine Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -152,8 +152,8 @@ public partial interface IHyperVReplicaBaseReplicationDetails : ReadOnly = false, Description = @"The PE Network details.", SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get; set; } /// The protection state for the vm. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -174,10 +174,10 @@ public partial interface IHyperVReplicaBaseReplicationDetails : } /// Hyper V replica provider specific settings base class. internal partial interface IHyperVReplicaBaseReplicationDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal { /// Initial replication details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails InitialReplicationDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails InitialReplicationDetail { get; set; } /// The initial replication progress percentage. string InitialReplicationDetailInitialReplicationProgressPercentage { get; set; } /// Initial replication type. @@ -185,11 +185,11 @@ internal partial interface IHyperVReplicaBaseReplicationDetailsInternal : /// The Last replication time. global::System.DateTime? LastReplicatedTime { get; set; } /// VM disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] VMDiskDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] VMDiskDetail { get; set; } /// The virtual machine Id. string VMId { get; set; } /// The PE Network details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get; set; } /// The protection state for the vm. string VMProtectionState { get; set; } /// The protection state description for the vm. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseReplicationDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseReplicationDetails.json.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseReplicationDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseReplicationDetails.json.cs index 339c15b185ef..f7ac49c21352 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBaseReplicationDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBaseReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaBaseReplicationDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBaseReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBaseReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaBaseReplicationDetails(json) : null; } @@ -77,14 +77,14 @@ internal HyperVReplicaBaseReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets. { return; } - __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(json); - {_initialReplicationDetail = If( json?.PropertyT("initialReplicationDetails"), out var __jsonInitialReplicationDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails.FromJson(__jsonInitialReplicationDetails) : InitialReplicationDetail;} + __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(json); + {_initialReplicationDetail = If( json?.PropertyT("initialReplicationDetails"), out var __jsonInitialReplicationDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails.FromJson(__jsonInitialReplicationDetails) : InitialReplicationDetail;} {_lastReplicatedTime = If( json?.PropertyT("lastReplicatedTime"), out var __jsonLastReplicatedTime) ? global::System.DateTime.TryParse((string)__jsonLastReplicatedTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastReplicatedTimeValue) ? __jsonLastReplicatedTimeValue : LastReplicatedTime : LastReplicatedTime;} - {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetails.FromJson(__u) )) ))() : null : VMNic;} + {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IVMNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetails.FromJson(__u) )) ))() : null : VMNic;} {_vMId = If( json?.PropertyT("vmId"), out var __jsonVMId) ? (string)__jsonVMId : (string)VMId;} {_vMProtectionState = If( json?.PropertyT("vmProtectionState"), out var __jsonVMProtectionState) ? (string)__jsonVMProtectionState : (string)VMProtectionState;} {_vMProtectionStateDescription = If( json?.PropertyT("vmProtectionStateDescription"), out var __jsonVMProtectionStateDescription) ? (string)__jsonVMProtectionStateDescription : (string)VMProtectionStateDescription;} - {_vMDiskDetail = If( json?.PropertyT("vMDiskDetails"), out var __jsonVMDiskDetails) ? If( __jsonVMDiskDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetails.FromJson(__p) )) ))() : null : VMDiskDetail;} + {_vMDiskDetail = If( json?.PropertyT("vMDiskDetails"), out var __jsonVMDiskDetails) ? If( __jsonVMDiskDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetails.FromJson(__p) )) ))() : null : VMDiskDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyDetails.PowerShell.cs new file mode 100644 index 000000000000..3d92b43e9518 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyDetails.PowerShell.cs @@ -0,0 +1,234 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Hyper-V Replica Blue specific protection profile details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBluePolicyDetailsTypeConverter))] + public partial class HyperVReplicaBluePolicyDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaBluePolicyDetails(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.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaBluePolicyDetails(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.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaBluePolicyDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ReplicationFrequencyInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationFrequencyInSecond = (int?) content.GetValueForProperty("ReplicationFrequencyInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationFrequencyInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Compression")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).Compression, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).InitialReplicationMethod, global::System.Convert.ToString); + } + if (content.Contains("OnlineReplicationStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationImportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationExportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); + } + if (content.Contains("ReplicationPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllowedAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReplicaDeletionOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicaDeletionOption = (string) content.GetValueForProperty("ReplicaDeletionOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicaDeletionOption, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplicaBluePolicyDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ReplicationFrequencyInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationFrequencyInSecond = (int?) content.GetValueForProperty("ReplicationFrequencyInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationFrequencyInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Compression")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).Compression, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).InitialReplicationMethod, global::System.Convert.ToString); + } + if (content.Contains("OnlineReplicationStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationImportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationExportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); + } + if (content.Contains("ReplicationPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllowedAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReplicaDeletionOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicaDeletionOption = (string) content.GetValueForProperty("ReplicaDeletionOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal)this).ReplicaDeletionOption, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Hyper-V Replica Blue specific protection profile details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBluePolicyDetailsTypeConverter))] + public partial interface IHyperVReplicaBluePolicyDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyDetails.TypeConverter.cs index 68d75417f530..ede45f790bb4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyDetails.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyDetails.cs index e88f585479c2..e03e50a89937 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Hyper-V Replica Blue specific protection profile details. public partial class HyperVReplicaBluePolicyDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(); /// Backing field for property. private int? _allowedAuthenticationType; @@ -51,7 +51,7 @@ public partial class HyperVReplicaBluePolicyDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _offlineReplicationExportPath; @@ -125,7 +125,7 @@ public HyperVReplicaBluePolicyDetails() /// Hyper-V Replica Blue specific protection profile details. public partial interface IHyperVReplicaBluePolicyDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails { /// A value indicating the authentication type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -221,7 +221,7 @@ public partial interface IHyperVReplicaBluePolicyDetails : } /// Hyper-V Replica Blue specific protection profile details. internal partial interface IHyperVReplicaBluePolicyDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal { /// A value indicating the authentication type. int? AllowedAuthenticationType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyDetails.json.cs index ffc496b39c0b..7f053d212d38 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaBluePolicyDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaBluePolicyDetails(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplicaBluePolicyDetails(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(json); + __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(json); {_replicationFrequencyInSecond = If( json?.PropertyT("replicationFrequencyInSeconds"), out var __jsonReplicationFrequencyInSeconds) ? (int?)__jsonReplicationFrequencyInSeconds : ReplicationFrequencyInSecond;} {_recoveryPoint = If( json?.PropertyT("recoveryPoints"), out var __jsonRecoveryPoints) ? (int?)__jsonRecoveryPoints : RecoveryPoint;} {_applicationConsistentSnapshotFrequencyInHour = If( json?.PropertyT("applicationConsistentSnapshotFrequencyInHours"), out var __jsonApplicationConsistentSnapshotFrequencyInHours) ? (int?)__jsonApplicationConsistentSnapshotFrequencyInHours : ApplicationConsistentSnapshotFrequencyInHour;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyInput.PowerShell.cs new file mode 100644 index 000000000000..f3256605f5b1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyInput.PowerShell.cs @@ -0,0 +1,232 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// HyperV Replica Blue policy input. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBluePolicyInputTypeConverter))] + public partial class HyperVReplicaBluePolicyInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaBluePolicyInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaBluePolicyInput(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.Migrate.Models.Api202301.IHyperVReplicaBluePolicyInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaBluePolicyInput(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.Migrate.Models.Api202301.IHyperVReplicaBluePolicyInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaBluePolicyInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ReplicationFrequencyInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyInputInternal)this).ReplicationFrequencyInSecond = (int?) content.GetValueForProperty("ReplicationFrequencyInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyInputInternal)this).ReplicationFrequencyInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Compression")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).Compression, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod, global::System.Convert.ToString); + } + if (content.Contains("OnlineReplicationStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationImportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationExportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); + } + if (content.Contains("ReplicationPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllowedAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReplicaDeletion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion = (string) content.GetValueForProperty("ReplicaDeletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion, 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 HyperVReplicaBluePolicyInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ReplicationFrequencyInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyInputInternal)this).ReplicationFrequencyInSecond = (int?) content.GetValueForProperty("ReplicationFrequencyInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyInputInternal)this).ReplicationFrequencyInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Compression")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).Compression, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod, global::System.Convert.ToString); + } + if (content.Contains("OnlineReplicationStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationImportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationExportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); + } + if (content.Contains("ReplicationPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllowedAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReplicaDeletion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion = (string) content.GetValueForProperty("ReplicaDeletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// HyperV Replica Blue policy input. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBluePolicyInputTypeConverter))] + public partial interface IHyperVReplicaBluePolicyInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyInput.TypeConverter.cs index d93f2dd95ba2..15e7d34744ed 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyInput.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyInput.cs new file mode 100644 index 000000000000..fbd196654d43 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyInput.cs @@ -0,0 +1,114 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// HyperV Replica Blue policy input. + public partial class HyperVReplicaBluePolicyInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInput __hyperVReplicaPolicyInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaPolicyInput(); + + /// A value indicating the authentication type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public int? AllowedAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).AllowedAuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).AllowedAuthenticationType = value ?? default(int); } + + /// A value indicating the application consistent frequency. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public int? ApplicationConsistentSnapshotFrequencyInHour { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).ApplicationConsistentSnapshotFrequencyInHour; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).ApplicationConsistentSnapshotFrequencyInHour = value ?? default(int); } + + /// A value indicating whether compression has to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Compression { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).Compression; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).Compression = value ?? null; } + + /// A value indicating whether IR is online. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InitialReplicationMethod { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).InitialReplicationMethod; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).InitialReplicationMethod = value ?? null; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__hyperVReplicaPolicyInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__hyperVReplicaPolicyInput).InstanceType = value ; } + + /// A value indicating the offline IR export path. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string OfflineReplicationExportPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).OfflineReplicationExportPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).OfflineReplicationExportPath = value ?? null; } + + /// A value indicating the offline IR import path. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string OfflineReplicationImportPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).OfflineReplicationImportPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).OfflineReplicationImportPath = value ?? null; } + + /// A value indicating the online IR start time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string OnlineReplicationStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).OnlineReplicationStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).OnlineReplicationStartTime = value ?? null; } + + /// A value indicating the number of recovery points. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public int? RecoveryPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).RecoveryPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).RecoveryPoint = value ?? default(int); } + + /// A value indicating whether the VM has to be auto deleted. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string ReplicaDeletion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).ReplicaDeletion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).ReplicaDeletion = value ?? null; } + + /// Backing field for property. + private int? _replicationFrequencyInSecond; + + /// A value indicating the replication interval. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public int? ReplicationFrequencyInSecond { get => this._replicationFrequencyInSecond; set => this._replicationFrequencyInSecond = value; } + + /// A value indicating the recovery HTTPS port. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public int? ReplicationPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).ReplicationPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)__hyperVReplicaPolicyInput).ReplicationPort = value ?? default(int); } + + /// Creates an new instance. + public HyperVReplicaBluePolicyInput() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__hyperVReplicaPolicyInput), __hyperVReplicaPolicyInput); + await eventListener.AssertObjectIsValid(nameof(__hyperVReplicaPolicyInput), __hyperVReplicaPolicyInput); + } + } + /// HyperV Replica Blue policy input. + public partial interface IHyperVReplicaBluePolicyInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInput + { + /// A value indicating the replication interval. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating the replication interval.", + SerializedName = @"replicationFrequencyInSeconds", + PossibleTypes = new [] { typeof(int) })] + int? ReplicationFrequencyInSecond { get; set; } + + } + /// HyperV Replica Blue policy input. + internal partial interface IHyperVReplicaBluePolicyInputInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal + { + /// A value indicating the replication interval. + int? ReplicationFrequencyInSecond { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyInput.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyInput.json.cs index f6742bd45540..24d554c889c6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBluePolicyInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBluePolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaBluePolicyInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBluePolicyInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBluePolicyInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaBluePolicyInput(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplicaBluePolicyInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - __hyperVReplicaPolicyInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVReplicaPolicyInput(json); + __hyperVReplicaPolicyInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVReplicaPolicyInput(json); {_replicationFrequencyInSecond = If( json?.PropertyT("replicationFrequencyInSeconds"), out var __jsonReplicationFrequencyInSeconds) ? (int?)__jsonReplicationFrequencyInSeconds : ReplicationFrequencyInSecond;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBlueReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBlueReplicationDetails.PowerShell.cs new file mode 100644 index 000000000000..791c20587811 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBlueReplicationDetails.PowerShell.cs @@ -0,0 +1,220 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// HyperV replica 2012 R2 (Blue) replication details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBlueReplicationDetailsTypeConverter))] + public partial class HyperVReplicaBlueReplicationDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaBlueReplicationDetails(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.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaBlueReplicationDetails(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.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaBlueReplicationDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InitialReplicationDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("LastReplicatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("VMDiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[]) content.GetValueForProperty("VMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, 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 HyperVReplicaBlueReplicationDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InitialReplicationDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("LastReplicatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("VMDiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[]) content.GetValueForProperty("VMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).VMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// HyperV replica 2012 R2 (Blue) replication details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaBlueReplicationDetailsTypeConverter))] + public partial interface IHyperVReplicaBlueReplicationDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBlueReplicationDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBlueReplicationDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBlueReplicationDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBlueReplicationDetails.TypeConverter.cs index e73500a3b534..5fd15a080c06 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBlueReplicationDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBlueReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBlueReplicationDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBlueReplicationDetails.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBlueReplicationDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBlueReplicationDetails.cs index f304938c8543..edbcb2282120 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBlueReplicationDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBlueReplicationDetails.cs @@ -3,40 +3,40 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// HyperV replica 2012 R2 (Blue) replication details. public partial class HyperVReplicaBlueReplicationDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails _initialReplicationDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails _initialReplicationDetail; /// Initial replication details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails()); set => this._initialReplicationDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails()); set => this._initialReplicationDetail = value; } /// The initial replication progress percentage. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InitialReplicationDetailInitialReplicationProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage = value ?? null; } + public string InitialReplicationDetailInitialReplicationProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage = value ?? null; } /// Initial replication type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InitialReplicationDetailInitialReplicationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType = value ?? null; } + public string InitialReplicationDetailInitialReplicationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType = value ?? null; } /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } /// Backing field for property. private global::System.DateTime? _lastReplicatedTime; @@ -46,14 +46,14 @@ public partial class HyperVReplicaBlueReplicationDetails : public global::System.DateTime? LastReplicatedTime { get => this._lastReplicatedTime; set => this._lastReplicatedTime = value; } /// Internal Acessors for InitialReplicationDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetailsInternal.InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails()); set { {_initialReplicationDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetailsInternal.InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails()); set { {_initialReplicationDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] _vMDiskDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] _vMDiskDetail; /// VM disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] VMDiskDetail { get => this._vMDiskDetail; set => this._vMDiskDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] VMDiskDetail { get => this._vMDiskDetail; set => this._vMDiskDetail = value; } /// Backing field for property. private string _vMId; @@ -63,11 +63,11 @@ public partial class HyperVReplicaBlueReplicationDetails : public string VMId { get => this._vMId; set => this._vMId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] _vMNic; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] _vMNic; /// The PE Network details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } /// Backing field for property. private string _vMProtectionState; @@ -104,7 +104,7 @@ public HyperVReplicaBlueReplicationDetails() /// HyperV replica 2012 R2 (Blue) replication details. public partial interface IHyperVReplicaBlueReplicationDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings { /// The initial replication progress percentage. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -136,8 +136,8 @@ public partial interface IHyperVReplicaBlueReplicationDetails : ReadOnly = false, Description = @"VM disk details.", SerializedName = @"vMDiskDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] VMDiskDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] VMDiskDetail { get; set; } /// The virtual machine Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -152,8 +152,8 @@ public partial interface IHyperVReplicaBlueReplicationDetails : ReadOnly = false, Description = @"The PE Network details.", SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get; set; } /// The protection state for the vm. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -174,10 +174,10 @@ public partial interface IHyperVReplicaBlueReplicationDetails : } /// HyperV replica 2012 R2 (Blue) replication details. internal partial interface IHyperVReplicaBlueReplicationDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal { /// Initial replication details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails InitialReplicationDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails InitialReplicationDetail { get; set; } /// The initial replication progress percentage. string InitialReplicationDetailInitialReplicationProgressPercentage { get; set; } /// Initial replication type. @@ -185,11 +185,11 @@ internal partial interface IHyperVReplicaBlueReplicationDetailsInternal : /// The Last replication time. global::System.DateTime? LastReplicatedTime { get; set; } /// VM disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] VMDiskDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] VMDiskDetail { get; set; } /// The virtual machine Id. string VMId { get; set; } /// The PE Network details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get; set; } /// The protection state for the vm. string VMProtectionState { get; set; } /// The protection state description for the vm. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBlueReplicationDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBlueReplicationDetails.json.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBlueReplicationDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaBlueReplicationDetails.json.cs index 1d3b085788f4..d68dde34ba35 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaBlueReplicationDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaBlueReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaBlueReplicationDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaBlueReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaBlueReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaBlueReplicationDetails(json) : null; } @@ -77,14 +77,14 @@ internal HyperVReplicaBlueReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets. { return; } - __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(json); - {_initialReplicationDetail = If( json?.PropertyT("initialReplicationDetails"), out var __jsonInitialReplicationDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails.FromJson(__jsonInitialReplicationDetails) : InitialReplicationDetail;} + __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(json); + {_initialReplicationDetail = If( json?.PropertyT("initialReplicationDetails"), out var __jsonInitialReplicationDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails.FromJson(__jsonInitialReplicationDetails) : InitialReplicationDetail;} {_lastReplicatedTime = If( json?.PropertyT("lastReplicatedTime"), out var __jsonLastReplicatedTime) ? global::System.DateTime.TryParse((string)__jsonLastReplicatedTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastReplicatedTimeValue) ? __jsonLastReplicatedTimeValue : LastReplicatedTime : LastReplicatedTime;} - {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetails.FromJson(__u) )) ))() : null : VMNic;} + {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IVMNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetails.FromJson(__u) )) ))() : null : VMNic;} {_vMId = If( json?.PropertyT("vmId"), out var __jsonVMId) ? (string)__jsonVMId : (string)VMId;} {_vMProtectionState = If( json?.PropertyT("vmProtectionState"), out var __jsonVMProtectionState) ? (string)__jsonVMProtectionState : (string)VMProtectionState;} {_vMProtectionStateDescription = If( json?.PropertyT("vmProtectionStateDescription"), out var __jsonVMProtectionStateDescription) ? (string)__jsonVMProtectionStateDescription : (string)VMProtectionStateDescription;} - {_vMDiskDetail = If( json?.PropertyT("vMDiskDetails"), out var __jsonVMDiskDetails) ? If( __jsonVMDiskDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetails.FromJson(__p) )) ))() : null : VMDiskDetail;} + {_vMDiskDetail = If( json?.PropertyT("vMDiskDetails"), out var __jsonVMDiskDetails) ? If( __jsonVMDiskDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetails.FromJson(__p) )) ))() : null : VMDiskDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyDetails.PowerShell.cs new file mode 100644 index 000000000000..cf52b86cb1b5 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyDetails.PowerShell.cs @@ -0,0 +1,224 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Hyper-V Replica Blue specific protection profile details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaPolicyDetailsTypeConverter))] + public partial class HyperVReplicaPolicyDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaPolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaPolicyDetails(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.Migrate.Models.Api202301.IHyperVReplicaPolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaPolicyDetails(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.Migrate.Models.Api202301.IHyperVReplicaPolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaPolicyDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Compression")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).Compression, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).InitialReplicationMethod, global::System.Convert.ToString); + } + if (content.Contains("OnlineReplicationStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationImportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationExportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); + } + if (content.Contains("ReplicationPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllowedAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReplicaDeletionOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).ReplicaDeletionOption = (string) content.GetValueForProperty("ReplicaDeletionOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).ReplicaDeletionOption, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 HyperVReplicaPolicyDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Compression")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).Compression, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).InitialReplicationMethod, global::System.Convert.ToString); + } + if (content.Contains("OnlineReplicationStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationImportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationExportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); + } + if (content.Contains("ReplicationPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllowedAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReplicaDeletionOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).ReplicaDeletionOption = (string) content.GetValueForProperty("ReplicaDeletionOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal)this).ReplicaDeletionOption, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Hyper-V Replica Blue specific protection profile details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaPolicyDetailsTypeConverter))] + public partial interface IHyperVReplicaPolicyDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyDetails.TypeConverter.cs index 0cd273988065..904903b4b9dd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyDetails.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyDetails.cs index 999ed591f988..d4cb165bfc25 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Hyper-V Replica Blue specific protection profile details. public partial class HyperVReplicaPolicyDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(); /// Backing field for property. private int? _allowedAuthenticationType; @@ -51,7 +51,7 @@ public partial class HyperVReplicaPolicyDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _offlineReplicationExportPath; @@ -118,7 +118,7 @@ public HyperVReplicaPolicyDetails() /// Hyper-V Replica Blue specific protection profile details. public partial interface IHyperVReplicaPolicyDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails { /// A value indicating the authentication type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -206,7 +206,7 @@ public partial interface IHyperVReplicaPolicyDetails : } /// Hyper-V Replica Blue specific protection profile details. internal partial interface IHyperVReplicaPolicyDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal { /// A value indicating the authentication type. int? AllowedAuthenticationType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyDetails.json.cs index 4bedd71c2f57..b0e054c9c2bb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaPolicyDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaPolicyDetails(json) : null; } @@ -77,7 +77,7 @@ internal HyperVReplicaPolicyDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.R { return; } - __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(json); + __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(json); {_recoveryPoint = If( json?.PropertyT("recoveryPoints"), out var __jsonRecoveryPoints) ? (int?)__jsonRecoveryPoints : RecoveryPoint;} {_applicationConsistentSnapshotFrequencyInHour = If( json?.PropertyT("applicationConsistentSnapshotFrequencyInHours"), out var __jsonApplicationConsistentSnapshotFrequencyInHours) ? (int?)__jsonApplicationConsistentSnapshotFrequencyInHours : ApplicationConsistentSnapshotFrequencyInHour;} {_compression = If( json?.PropertyT("compression"), out var __jsonCompression) ? (string)__jsonCompression : (string)Compression;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyInput.PowerShell.cs new file mode 100644 index 000000000000..3bfbbc271b0d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyInput.PowerShell.cs @@ -0,0 +1,224 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Hyper-V Replica specific policy Input. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaPolicyInputTypeConverter))] + public partial class HyperVReplicaPolicyInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaPolicyInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaPolicyInput(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.Migrate.Models.Api202301.IHyperVReplicaPolicyInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaPolicyInput(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.Migrate.Models.Api202301.IHyperVReplicaPolicyInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaPolicyInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Compression")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).Compression, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod, global::System.Convert.ToString); + } + if (content.Contains("OnlineReplicationStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationImportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationExportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); + } + if (content.Contains("ReplicationPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllowedAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReplicaDeletion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion = (string) content.GetValueForProperty("ReplicaDeletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 HyperVReplicaPolicyInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint = (int?) content.GetValueForProperty("RecoveryPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).RecoveryPoint, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ApplicationConsistentSnapshotFrequencyInHour")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour = (int?) content.GetValueForProperty("ApplicationConsistentSnapshotFrequencyInHour",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ApplicationConsistentSnapshotFrequencyInHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Compression")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).Compression = (string) content.GetValueForProperty("Compression",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).Compression, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationMethod")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod = (string) content.GetValueForProperty("InitialReplicationMethod",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).InitialReplicationMethod, global::System.Convert.ToString); + } + if (content.Contains("OnlineReplicationStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime = (string) content.GetValueForProperty("OnlineReplicationStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OnlineReplicationStartTime, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationImportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath = (string) content.GetValueForProperty("OfflineReplicationImportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationImportPath, global::System.Convert.ToString); + } + if (content.Contains("OfflineReplicationExportPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath = (string) content.GetValueForProperty("OfflineReplicationExportPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).OfflineReplicationExportPath, global::System.Convert.ToString); + } + if (content.Contains("ReplicationPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicationPort = (int?) content.GetValueForProperty("ReplicationPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicationPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllowedAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType = (int?) content.GetValueForProperty("AllowedAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).AllowedAuthenticationType, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReplicaDeletion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion = (string) content.GetValueForProperty("ReplicaDeletion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal)this).ReplicaDeletion, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Hyper-V Replica specific policy Input. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaPolicyInputTypeConverter))] + public partial interface IHyperVReplicaPolicyInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyInput.TypeConverter.cs index a3d37af0bd76..30d64ab054f7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaPolicyInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyInput.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyInput.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyInput.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyInput.cs index 48c85648a813..69c34858d7f6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Hyper-V Replica specific policy Input. public partial class HyperVReplicaPolicyInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(); /// Backing field for property. private int? _allowedAuthenticationType; @@ -51,7 +51,7 @@ public partial class HyperVReplicaPolicyInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _offlineReplicationExportPath; @@ -116,7 +116,7 @@ public HyperVReplicaPolicyInput() /// Hyper-V Replica specific policy Input. public partial interface IHyperVReplicaPolicyInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput { /// A value indicating the authentication type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -202,7 +202,7 @@ public partial interface IHyperVReplicaPolicyInput : } /// Hyper-V Replica specific policy Input. internal partial interface IHyperVReplicaPolicyInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal { /// A value indicating the authentication type. int? AllowedAuthenticationType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyInput.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyInput.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyInput.json.cs index 1ff74a8c3990..bbf54c9b822c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaPolicyInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaPolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class HyperVReplicaPolicyInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInput interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInput 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.Migrate.Models.Api20220501.IHyperVReplicaPolicyInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaPolicyInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaPolicyInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { @@ -92,7 +92,7 @@ internal HyperVReplicaPolicyInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(json); + __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(json); {_recoveryPoint = If( json?.PropertyT("recoveryPoints"), out var __jsonRecoveryPoints) ? (int?)__jsonRecoveryPoints : RecoveryPoint;} {_applicationConsistentSnapshotFrequencyInHour = If( json?.PropertyT("applicationConsistentSnapshotFrequencyInHours"), out var __jsonApplicationConsistentSnapshotFrequencyInHours) ? (int?)__jsonApplicationConsistentSnapshotFrequencyInHours : ApplicationConsistentSnapshotFrequencyInHour;} {_compression = If( json?.PropertyT("compression"), out var __jsonCompression) ? (string)__jsonCompression : (string)Compression;} diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVReplicaReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaReplicationDetails.PowerShell.cs new file mode 100644 index 000000000000..32e4b9a322ff --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaReplicationDetails.PowerShell.cs @@ -0,0 +1,218 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// HyperV replica 2012 replication details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaReplicationDetailsTypeConverter))] + public partial class HyperVReplicaReplicationDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVReplicaReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVReplicaReplicationDetails(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.Migrate.Models.Api202301.IHyperVReplicaReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVReplicaReplicationDetails(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.Migrate.Models.Api202301.IHyperVReplicaReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVReplicaReplicationDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InitialReplicationDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("LastReplicatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("VMDiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[]) content.GetValueForProperty("VMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, 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 HyperVReplicaReplicationDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InitialReplicationDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails) content.GetValueForProperty("InitialReplicationDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("LastReplicatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).LastReplicatedTime = (global::System.DateTime?) content.GetValueForProperty("LastReplicatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).LastReplicatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("VMDiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[]) content.GetValueForProperty("VMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).VMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationType, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationDetailInitialReplicationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal)this).InitialReplicationDetailInitialReplicationProgressPercentage, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// HyperV replica 2012 replication details. + [System.ComponentModel.TypeConverter(typeof(HyperVReplicaReplicationDetailsTypeConverter))] + public partial interface IHyperVReplicaReplicationDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaReplicationDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaReplicationDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaReplicationDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaReplicationDetails.TypeConverter.cs index d4e1b3fca7f1..7fd9ac1485d1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaReplicationDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaReplicationDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaReplicationDetails.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaReplicationDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaReplicationDetails.cs index caead82badb4..772861157893 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaReplicationDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaReplicationDetails.cs @@ -3,40 +3,40 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// HyperV replica 2012 replication details. public partial class HyperVReplicaReplicationDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails _initialReplicationDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails _initialReplicationDetail; /// Initial replication details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails()); set => this._initialReplicationDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails()); set => this._initialReplicationDetail = value; } /// The initial replication progress percentage. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InitialReplicationDetailInitialReplicationProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage = value ?? null; } + public string InitialReplicationDetailInitialReplicationProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationProgressPercentage = value ?? null; } /// Initial replication type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string InitialReplicationDetailInitialReplicationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType = value ?? null; } + public string InitialReplicationDetailInitialReplicationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)InitialReplicationDetail).InitialReplicationType = value ?? null; } /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } /// Backing field for property. private global::System.DateTime? _lastReplicatedTime; @@ -46,14 +46,14 @@ public partial class HyperVReplicaReplicationDetails : public global::System.DateTime? LastReplicatedTime { get => this._lastReplicatedTime; set => this._lastReplicatedTime = value; } /// Internal Acessors for InitialReplicationDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetailsInternal.InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails()); set { {_initialReplicationDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetailsInternal.InitialReplicationDetail { get => (this._initialReplicationDetail = this._initialReplicationDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails()); set { {_initialReplicationDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] _vMDiskDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] _vMDiskDetail; /// VM disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] VMDiskDetail { get => this._vMDiskDetail; set => this._vMDiskDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] VMDiskDetail { get => this._vMDiskDetail; set => this._vMDiskDetail = value; } /// Backing field for property. private string _vMId; @@ -63,11 +63,11 @@ public partial class HyperVReplicaReplicationDetails : public string VMId { get => this._vMId; set => this._vMId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] _vMNic; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] _vMNic; /// The PE Network details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } /// Backing field for property. private string _vMProtectionState; @@ -104,7 +104,7 @@ public HyperVReplicaReplicationDetails() /// HyperV replica 2012 replication details. public partial interface IHyperVReplicaReplicationDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings { /// The initial replication progress percentage. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -136,8 +136,8 @@ public partial interface IHyperVReplicaReplicationDetails : ReadOnly = false, Description = @"VM disk details.", SerializedName = @"vMDiskDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] VMDiskDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] VMDiskDetail { get; set; } /// The virtual machine Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -152,8 +152,8 @@ public partial interface IHyperVReplicaReplicationDetails : ReadOnly = false, Description = @"The PE Network details.", SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get; set; } /// The protection state for the vm. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -174,10 +174,10 @@ public partial interface IHyperVReplicaReplicationDetails : } /// HyperV replica 2012 replication details. internal partial interface IHyperVReplicaReplicationDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal { /// Initial replication details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails InitialReplicationDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails InitialReplicationDetail { get; set; } /// The initial replication progress percentage. string InitialReplicationDetailInitialReplicationProgressPercentage { get; set; } /// Initial replication type. @@ -185,11 +185,11 @@ internal partial interface IHyperVReplicaReplicationDetailsInternal : /// The Last replication time. global::System.DateTime? LastReplicatedTime { get; set; } /// VM disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] VMDiskDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] VMDiskDetail { get; set; } /// The virtual machine Id. string VMId { get; set; } /// The PE Network details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get; set; } /// The protection state for the vm. string VMProtectionState { get; set; } /// The protection state description for the vm. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaReplicationDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaReplicationDetails.json.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/HyperVReplicaReplicationDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVReplicaReplicationDetails.json.cs index 442cd5196b6d..d68049d2d606 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVReplicaReplicationDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVReplicaReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVReplicaReplicationDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVReplicaReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVReplicaReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVReplicaReplicationDetails(json) : null; } @@ -77,14 +77,14 @@ internal HyperVReplicaReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(json); - {_initialReplicationDetail = If( json?.PropertyT("initialReplicationDetails"), out var __jsonInitialReplicationDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails.FromJson(__jsonInitialReplicationDetails) : InitialReplicationDetail;} + __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(json); + {_initialReplicationDetail = If( json?.PropertyT("initialReplicationDetails"), out var __jsonInitialReplicationDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails.FromJson(__jsonInitialReplicationDetails) : InitialReplicationDetail;} {_lastReplicatedTime = If( json?.PropertyT("lastReplicatedTime"), out var __jsonLastReplicatedTime) ? global::System.DateTime.TryParse((string)__jsonLastReplicatedTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastReplicatedTimeValue) ? __jsonLastReplicatedTimeValue : LastReplicatedTime : LastReplicatedTime;} - {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetails.FromJson(__u) )) ))() : null : VMNic;} + {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IVMNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetails.FromJson(__u) )) ))() : null : VMNic;} {_vMId = If( json?.PropertyT("vmId"), out var __jsonVMId) ? (string)__jsonVMId : (string)VMId;} {_vMProtectionState = If( json?.PropertyT("vmProtectionState"), out var __jsonVMProtectionState) ? (string)__jsonVMProtectionState : (string)VMProtectionState;} {_vMProtectionStateDescription = If( json?.PropertyT("vmProtectionStateDescription"), out var __jsonVMProtectionStateDescription) ? (string)__jsonVMProtectionStateDescription : (string)VMProtectionStateDescription;} - {_vMDiskDetail = If( json?.PropertyT("vMDiskDetails"), out var __jsonVMDiskDetails) ? If( __jsonVMDiskDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetails.FromJson(__p) )) ))() : null : VMDiskDetail;} + {_vMDiskDetail = If( json?.PropertyT("vMDiskDetails"), out var __jsonVMDiskDetails) ? If( __jsonVMDiskDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetails.FromJson(__p) )) ))() : null : VMDiskDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVSiteDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVSiteDetails.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/HyperVSiteDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVSiteDetails.PowerShell.cs index 717c209e27b9..776adfab51fd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVSiteDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVSiteDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class HyperVSiteDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IHyperVSiteDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVSiteDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HyperVSiteDetails(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.Migrate.Models.Api20220501.IHyperVSiteDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVSiteDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HyperVSiteDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyp /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVSiteDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVSiteDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal HyperVSiteDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("HyperVHost")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVSiteDetailsInternal)this).HyperVHost = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetails[]) content.GetValueForProperty("HyperVHost",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVSiteDetailsInternal)this).HyperVHost, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVHostDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVSiteDetailsInternal)this).HyperVHost = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails[]) content.GetValueForProperty("HyperVHost",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVSiteDetailsInternal)this).HyperVHost, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVHostDetailsTypeConverter.ConvertFrom)); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType, 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. @@ -128,11 +128,11 @@ internal HyperVSiteDetails(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("HyperVHost")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVSiteDetailsInternal)this).HyperVHost = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetails[]) content.GetValueForProperty("HyperVHost",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVSiteDetailsInternal)this).HyperVHost, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVHostDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVSiteDetailsInternal)this).HyperVHost = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails[]) content.GetValueForProperty("HyperVHost",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVSiteDetailsInternal)this).HyperVHost, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVHostDetailsTypeConverter.ConvertFrom)); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVSiteDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVSiteDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/HyperVSiteDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVSiteDetails.TypeConverter.cs index 0e0c20717d3e..3687aab4bb92 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVSiteDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVSiteDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVSiteDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVSiteDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVSiteDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVSiteDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVSiteDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVSiteDetails.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/HyperVSiteDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVSiteDetails.cs index 45c81cdefb90..e3de1ba181fa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVSiteDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVSiteDetails.cs @@ -3,32 +3,32 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// HyperVSite fabric specific details. public partial class HyperVSiteDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVSiteDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVSiteDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVSiteDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVSiteDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetails[] _hyperVHost; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails[] _hyperVHost; /// The list of Hyper-V hosts associated with the fabric. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetails[] HyperVHost { get => this._hyperVHost; set => this._hyperVHost = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails[] HyperVHost { get => this._hyperVHost; set => this._hyperVHost = value; } /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType = value ; } /// Creates an new instance. public HyperVSiteDetails() @@ -51,7 +51,7 @@ public HyperVSiteDetails() /// HyperVSite fabric specific details. public partial interface IHyperVSiteDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails { /// The list of Hyper-V hosts associated with the fabric. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -59,16 +59,16 @@ public partial interface IHyperVSiteDetails : ReadOnly = false, Description = @"The list of Hyper-V hosts associated with the fabric.", SerializedName = @"hyperVHosts", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetails[] HyperVHost { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails[] HyperVHost { get; set; } } /// HyperVSite fabric specific details. internal partial interface IHyperVSiteDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal { /// The list of Hyper-V hosts associated with the fabric. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVHostDetails[] HyperVHost { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVHostDetails[] HyperVHost { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVSiteDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVSiteDetails.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/HyperVSiteDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVSiteDetails.json.cs index 90080f23c0d3..98d9ed194582 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVSiteDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVSiteDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HyperVSiteDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVSiteDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVSiteDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVSiteDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVSiteDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVSiteDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVSiteDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new HyperVSiteDetails(json) : null; } @@ -77,8 +77,8 @@ internal HyperVSiteDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js { return; } - __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails(json); - {_hyperVHost = If( json?.PropertyT("hyperVHosts"), out var __jsonHyperVHosts) ? If( __jsonHyperVHosts as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVHostDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVHostDetails.FromJson(__u) )) ))() : null : HyperVHost;} + __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails(json); + {_hyperVHost = If( json?.PropertyT("hyperVHosts"), out var __jsonHyperVHosts) ? If( __jsonHyperVHosts as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IHyperVHostDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVHostDetails.FromJson(__u) )) ))() : null : HyperVHost;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/HyperVVirtualMachineDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/HyperVVirtualMachineDetails.PowerShell.cs new file mode 100644 index 000000000000..926bf03d2eac --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/HyperVVirtualMachineDetails.PowerShell.cs @@ -0,0 +1,256 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Single Host fabric provider specific VM settings. + [System.ComponentModel.TypeConverter(typeof(HyperVVirtualMachineDetailsTypeConverter))] + public partial class HyperVVirtualMachineDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IHyperVVirtualMachineDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HyperVVirtualMachineDetails(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.Migrate.Models.Api202301.IHyperVVirtualMachineDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HyperVVirtualMachineDetails(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.Migrate.Models.Api202301.IHyperVVirtualMachineDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HyperVVirtualMachineDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("OSDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("SourceItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).SourceItemId = (string) content.GetValueForProperty("SourceItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).SourceItemId, global::System.Convert.ToString); + } + if (content.Contains("Generation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).Generation = (string) content.GetValueForProperty("Generation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).Generation, global::System.Convert.ToString); + } + if (content.Contains("DiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).DiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[]) content.GetValueForProperty("DiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).DiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("HasPhysicalDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasPhysicalDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); + } + if (content.Contains("HasFibreChannelAdapter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasFibreChannelAdapter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); + } + if (content.Contains("HasSharedVhd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasSharedVhd",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); + } + if (content.Contains("HyperVHostId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId = (string) content.GetValueForProperty("HyperVHostId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOstype")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); + } + if (content.Contains("OSDetailProductType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType = (string) content.GetValueForProperty("OSDetailProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsedition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition = (string) content.GetValueForProperty("OSDetailOsedition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsversion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion = (string) content.GetValueForProperty("OSDetailOsversion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsmajorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion = (string) content.GetValueForProperty("OSDetailOsmajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsminorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion = (string) content.GetValueForProperty("OSDetailOsminorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion, 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 HyperVVirtualMachineDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("OSDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("SourceItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).SourceItemId = (string) content.GetValueForProperty("SourceItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).SourceItemId, global::System.Convert.ToString); + } + if (content.Contains("Generation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).Generation = (string) content.GetValueForProperty("Generation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).Generation, global::System.Convert.ToString); + } + if (content.Contains("DiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).DiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[]) content.GetValueForProperty("DiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).DiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("HasPhysicalDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasPhysicalDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); + } + if (content.Contains("HasFibreChannelAdapter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasFibreChannelAdapter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); + } + if (content.Contains("HasSharedVhd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasSharedVhd",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); + } + if (content.Contains("HyperVHostId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId = (string) content.GetValueForProperty("HyperVHostId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOstype")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); + } + if (content.Contains("OSDetailProductType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType = (string) content.GetValueForProperty("OSDetailProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsedition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition = (string) content.GetValueForProperty("OSDetailOsedition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsversion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion = (string) content.GetValueForProperty("OSDetailOsversion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsmajorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion = (string) content.GetValueForProperty("OSDetailOsmajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsminorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion = (string) content.GetValueForProperty("OSDetailOsminorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Single Host fabric provider specific VM settings. + [System.ComponentModel.TypeConverter(typeof(HyperVVirtualMachineDetailsTypeConverter))] + public partial interface IHyperVVirtualMachineDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVVirtualMachineDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/HyperVVirtualMachineDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/HyperVVirtualMachineDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVVirtualMachineDetails.TypeConverter.cs index 607e6d825def..dd3e6df97114 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVVirtualMachineDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVVirtualMachineDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHyperVVirtualMachineDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVVirtualMachineDetails.cs b/src/Migrate/generated/api/Models/Api202301/HyperVVirtualMachineDetails.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/HyperVVirtualMachineDetails.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVVirtualMachineDetails.cs index 2ef39aeef2e3..bdc9d47d3ada 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVVirtualMachineDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVVirtualMachineDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Single Host fabric provider specific VM settings. public partial class HyperVVirtualMachineDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings __configurationSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings __configurationSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettings(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] _diskDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] _diskDetail; /// The Last successful failover time. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] DiskDetail { get => this._diskDetail; set => this._diskDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] DiskDetail { get => this._diskDetail; set => this._diskDetail = value; } /// Backing field for property. private string _generation; @@ -70,41 +70,41 @@ public partial class HyperVVirtualMachineDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)__configurationSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)__configurationSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)__configurationSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)__configurationSettings).InstanceType = value ; } /// Internal Acessors for OSDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetailsInternal.OSDetail { get => (this._oSDetail = this._oSDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDetails()); set { {_oSDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal.OSDetail { get => (this._oSDetail = this._oSDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDetails()); set { {_oSDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails _oSDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails _oSDetail; /// The Last replication time. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails OSDetail { get => (this._oSDetail = this._oSDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDetails()); set => this._oSDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails OSDetail { get => (this._oSDetail = this._oSDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDetails()); set => this._oSDetail = value; } /// The OSEdition. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailOsedition { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSEdition; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSEdition = value ?? null; } + public string OSDetailOsedition { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSEdition; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSEdition = value ?? null; } /// The OS Major Version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailOsmajorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSMajorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSMajorVersion = value ?? null; } + public string OSDetailOsmajorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSMajorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSMajorVersion = value ?? null; } /// The OS Minor Version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailOsminorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSMinorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSMinorVersion = value ?? null; } + public string OSDetailOsminorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSMinorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSMinorVersion = value ?? null; } /// VM Disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSType = value ?? null; } + public string OSDetailOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSType = value ?? null; } /// The OS Version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailOsversion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).OSVersion = value ?? null; } + public string OSDetailOsversion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).OSVersion = value ?? null; } /// Product type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailProductType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).ProductType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal)OSDetail).ProductType = value ?? null; } + public string OSDetailProductType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).ProductType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)OSDetail).ProductType = value ?? null; } /// Backing field for property. private string _sourceItemId; @@ -134,7 +134,7 @@ public HyperVVirtualMachineDetails() /// Single Host fabric provider specific VM settings. public partial interface IHyperVVirtualMachineDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings { /// The Last successful failover time. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -142,8 +142,8 @@ public partial interface IHyperVVirtualMachineDetails : ReadOnly = false, Description = @"The Last successful failover time.", SerializedName = @"diskDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] DiskDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] DiskDetail { get; set; } /// The id of the object in fabric. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -251,10 +251,10 @@ public partial interface IHyperVVirtualMachineDetails : } /// Single Host fabric provider specific VM settings. internal partial interface IHyperVVirtualMachineDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal { /// The Last successful failover time. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskDetails[] DiskDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] DiskDetail { get; set; } /// The id of the object in fabric. string Generation { get; set; } /// @@ -273,7 +273,7 @@ internal partial interface IHyperVVirtualMachineDetailsInternal : /// The Id of the hyper-v host in fabric. string HyperVHostId { get; set; } /// The Last replication time. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails OSDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails OSDetail { get; set; } /// The OSEdition. string OSDetailOsedition { get; set; } /// The OS Major Version. diff --git a/src/Migrate/generated/api/Models/Api20220501/HyperVVirtualMachineDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/HyperVVirtualMachineDetails.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/HyperVVirtualMachineDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/HyperVVirtualMachineDetails.json.cs index a94c02ee50d0..40bcbadf43a5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/HyperVVirtualMachineDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/HyperVVirtualMachineDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class HyperVVirtualMachineDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetails interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetails 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.Migrate.Models.Api20220501.IHyperVVirtualMachineDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHyperVVirtualMachineDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { @@ -92,11 +92,11 @@ internal HyperVVirtualMachineDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - __configurationSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettings(json); - {_oSDetail = If( json?.PropertyT("osDetails"), out var __jsonOSDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDetails.FromJson(__jsonOSDetails) : OSDetail;} + __configurationSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettings(json); + {_oSDetail = If( json?.PropertyT("osDetails"), out var __jsonOSDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDetails.FromJson(__jsonOSDetails) : OSDetail;} {_sourceItemId = If( json?.PropertyT("sourceItemId"), out var __jsonSourceItemId) ? (string)__jsonSourceItemId : (string)SourceItemId;} {_generation = If( json?.PropertyT("generation"), out var __jsonGeneration) ? (string)__jsonGeneration : (string)Generation;} - {_diskDetail = If( json?.PropertyT("diskDetails"), out var __jsonDiskDetails) ? If( __jsonDiskDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskDetails.FromJson(__u) )) ))() : null : DiskDetail;} + {_diskDetail = If( json?.PropertyT("diskDetails"), out var __jsonDiskDetails) ? If( __jsonDiskDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetails.FromJson(__u) )) ))() : null : DiskDetail;} {_hasPhysicalDisk = If( json?.PropertyT("hasPhysicalDisk"), out var __jsonHasPhysicalDisk) ? (string)__jsonHasPhysicalDisk : (string)HasPhysicalDisk;} {_hasFibreChannelAdapter = If( json?.PropertyT("hasFibreChannelAdapter"), out var __jsonHasFibreChannelAdapter) ? (string)__jsonHasFibreChannelAdapter : (string)HasFibreChannelAdapter;} {_hasSharedVhd = If( json?.PropertyT("hasSharedVhd"), out var __jsonHasSharedVhd) ? (string)__jsonHasSharedVhd : (string)HasSharedVhd;} diff --git a/src/Migrate/generated/api/Models/Api202301/IPConfigDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/IPConfigDetails.PowerShell.cs new file mode 100644 index 000000000000..03ed89c4b674 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/IPConfigDetails.PowerShell.cs @@ -0,0 +1,254 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(IPConfigDetailsTypeConverter))] + public partial class IPConfigDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IIPConfigDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new IPConfigDetails(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.Migrate.Models.Api202301.IIPConfigDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new IPConfigDetails(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.Migrate.Models.Api202301.IIPConfigDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal IPConfigDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("IsPrimary")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).IsPrimary = (bool?) content.GetValueForProperty("IsPrimary",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).IsPrimary, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).SubnetName = (string) content.GetValueForProperty("SubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).SubnetName, global::System.Convert.ToString); + } + if (content.Contains("StaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).StaticIPAddress = (string) content.GetValueForProperty("StaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).StaticIPAddress, global::System.Convert.ToString); + } + if (content.Contains("IPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).IPAddressType = (string) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).IPAddressType, global::System.Convert.ToString); + } + if (content.Contains("IsSeletedForFailover")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).IsSeletedForFailover = (bool?) content.GetValueForProperty("IsSeletedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).IsSeletedForFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("RecoverySubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoverySubnetName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryStaticIPAddress = (string) content.GetValueForProperty("RecoveryStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryStaticIPAddress, global::System.Convert.ToString); + } + if (content.Contains("RecoveryIPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryIPAddressType = (string) content.GetValueForProperty("RecoveryIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryIPAddressType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPublicIPAddressId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryPublicIPAddressId = (string) content.GetValueForProperty("RecoveryPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryPublicIPAddressId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryLbBackendAddressPoolId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryLbBackendAddressPoolId = (string[]) content.GetValueForProperty("RecoveryLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryLbBackendAddressPoolId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("TfoSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoSubnetName = (string) content.GetValueForProperty("TfoSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TfoStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoStaticIPAddress = (string) content.GetValueForProperty("TfoStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoStaticIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TfoPublicIPAddressId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoPublicIPAddressId = (string) content.GetValueForProperty("TfoPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoPublicIPAddressId, global::System.Convert.ToString); + } + if (content.Contains("TfoLbBackendAddressPoolId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoLbBackendAddressPoolId = (string[]) content.GetValueForProperty("TfoLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoLbBackendAddressPoolId, __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 IPConfigDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("IsPrimary")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).IsPrimary = (bool?) content.GetValueForProperty("IsPrimary",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).IsPrimary, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).SubnetName = (string) content.GetValueForProperty("SubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).SubnetName, global::System.Convert.ToString); + } + if (content.Contains("StaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).StaticIPAddress = (string) content.GetValueForProperty("StaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).StaticIPAddress, global::System.Convert.ToString); + } + if (content.Contains("IPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).IPAddressType = (string) content.GetValueForProperty("IPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).IPAddressType, global::System.Convert.ToString); + } + if (content.Contains("IsSeletedForFailover")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).IsSeletedForFailover = (bool?) content.GetValueForProperty("IsSeletedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).IsSeletedForFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("RecoverySubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoverySubnetName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryStaticIPAddress = (string) content.GetValueForProperty("RecoveryStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryStaticIPAddress, global::System.Convert.ToString); + } + if (content.Contains("RecoveryIPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryIPAddressType = (string) content.GetValueForProperty("RecoveryIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryIPAddressType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPublicIPAddressId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryPublicIPAddressId = (string) content.GetValueForProperty("RecoveryPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryPublicIPAddressId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryLbBackendAddressPoolId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryLbBackendAddressPoolId = (string[]) content.GetValueForProperty("RecoveryLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).RecoveryLbBackendAddressPoolId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("TfoSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoSubnetName = (string) content.GetValueForProperty("TfoSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TfoStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoStaticIPAddress = (string) content.GetValueForProperty("TfoStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoStaticIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TfoPublicIPAddressId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoPublicIPAddressId = (string) content.GetValueForProperty("TfoPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoPublicIPAddressId, global::System.Convert.ToString); + } + if (content.Contains("TfoLbBackendAddressPoolId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoLbBackendAddressPoolId = (string[]) content.GetValueForProperty("TfoLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal)this).TfoLbBackendAddressPoolId, __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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(IPConfigDetailsTypeConverter))] + public partial interface IIPConfigDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/IPConfigDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/IPConfigDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/IPConfigDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/IPConfigDetails.TypeConverter.cs index cb2e73bce181..522bc4a88854 100644 --- a/src/Migrate/generated/api/Models/Api20220501/IPConfigDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/IPConfigDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IIPConfigDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/IPConfigDetails.cs b/src/Migrate/generated/api/Models/Api202301/IPConfigDetails.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/IPConfigDetails.cs rename to src/Migrate/generated/api/Models/Api202301/IPConfigDetails.cs index bb643026e064..d8fc9335cc52 100644 --- a/src/Migrate/generated/api/Models/Api20220501/IPConfigDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/IPConfigDetails.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; public partial class IPConfigDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/IPConfigDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/IPConfigDetails.json.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/IPConfigDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/IPConfigDetails.json.cs index b0620af390b0..e08c6b9ba05b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/IPConfigDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/IPConfigDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -53,13 +53,13 @@ public partial class IPConfigDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new IPConfigDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/IPConfigInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/IPConfigInputDetails.PowerShell.cs new file mode 100644 index 000000000000..7c1ce880c87a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/IPConfigInputDetails.PowerShell.cs @@ -0,0 +1,222 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(IPConfigInputDetailsTypeConverter))] + public partial class IPConfigInputDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IIPConfigInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new IPConfigInputDetails(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.Migrate.Models.Api202301.IIPConfigInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new IPConfigInputDetails(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.Migrate.Models.Api202301.IIPConfigInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal IPConfigInputDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("IPConfigName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).IPConfigName = (string) content.GetValueForProperty("IPConfigName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).IPConfigName, global::System.Convert.ToString); + } + if (content.Contains("IsPrimary")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).IsPrimary = (bool?) content.GetValueForProperty("IsPrimary",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).IsPrimary, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("IsSeletedForFailover")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).IsSeletedForFailover = (bool?) content.GetValueForProperty("IsSeletedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).IsSeletedForFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("RecoverySubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoverySubnetName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoveryStaticIPAddress = (string) content.GetValueForProperty("RecoveryStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoveryStaticIPAddress, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPublicIPAddressId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoveryPublicIPAddressId = (string) content.GetValueForProperty("RecoveryPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoveryPublicIPAddressId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryLbBackendAddressPoolId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoveryLbBackendAddressPoolId = (string[]) content.GetValueForProperty("RecoveryLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoveryLbBackendAddressPoolId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("TfoSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoSubnetName = (string) content.GetValueForProperty("TfoSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TfoStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoStaticIPAddress = (string) content.GetValueForProperty("TfoStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoStaticIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TfoPublicIPAddressId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoPublicIPAddressId = (string) content.GetValueForProperty("TfoPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoPublicIPAddressId, global::System.Convert.ToString); + } + if (content.Contains("TfoLbBackendAddressPoolId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoLbBackendAddressPoolId = (string[]) content.GetValueForProperty("TfoLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoLbBackendAddressPoolId, __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 IPConfigInputDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("IPConfigName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).IPConfigName = (string) content.GetValueForProperty("IPConfigName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).IPConfigName, global::System.Convert.ToString); + } + if (content.Contains("IsPrimary")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).IsPrimary = (bool?) content.GetValueForProperty("IsPrimary",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).IsPrimary, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("IsSeletedForFailover")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).IsSeletedForFailover = (bool?) content.GetValueForProperty("IsSeletedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).IsSeletedForFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("RecoverySubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoverySubnetName = (string) content.GetValueForProperty("RecoverySubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoverySubnetName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoveryStaticIPAddress = (string) content.GetValueForProperty("RecoveryStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoveryStaticIPAddress, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPublicIPAddressId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoveryPublicIPAddressId = (string) content.GetValueForProperty("RecoveryPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoveryPublicIPAddressId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryLbBackendAddressPoolId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoveryLbBackendAddressPoolId = (string[]) content.GetValueForProperty("RecoveryLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).RecoveryLbBackendAddressPoolId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("TfoSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoSubnetName = (string) content.GetValueForProperty("TfoSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TfoStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoStaticIPAddress = (string) content.GetValueForProperty("TfoStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoStaticIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TfoPublicIPAddressId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoPublicIPAddressId = (string) content.GetValueForProperty("TfoPublicIPAddressId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoPublicIPAddressId, global::System.Convert.ToString); + } + if (content.Contains("TfoLbBackendAddressPoolId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoLbBackendAddressPoolId = (string[]) content.GetValueForProperty("TfoLbBackendAddressPoolId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal)this).TfoLbBackendAddressPoolId, __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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(IPConfigInputDetailsTypeConverter))] + public partial interface IIPConfigInputDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/IPConfigInputDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/IPConfigInputDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/IPConfigInputDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/IPConfigInputDetails.TypeConverter.cs index 937d91e8a992..2184595e21d3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/IPConfigInputDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/IPConfigInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IIPConfigInputDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/IPConfigInputDetails.cs b/src/Migrate/generated/api/Models/Api202301/IPConfigInputDetails.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/IPConfigInputDetails.cs rename to src/Migrate/generated/api/Models/Api202301/IPConfigInputDetails.cs index 7875bfcfedf8..3d1905488b6f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/IPConfigInputDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/IPConfigInputDetails.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; public partial class IPConfigInputDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/IPConfigInputDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/IPConfigInputDetails.json.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/IPConfigInputDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/IPConfigInputDetails.json.cs index 7b384b9eb308..a5faf807722c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/IPConfigInputDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/IPConfigInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -53,13 +53,13 @@ public partial class IPConfigInputDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new IPConfigInputDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/IdentityProviderDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/IdentityProviderDetails.PowerShell.cs new file mode 100644 index 000000000000..117cb8df2392 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/IdentityProviderDetails.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Identity provider details. + [System.ComponentModel.TypeConverter(typeof(IdentityProviderDetailsTypeConverter))] + public partial class IdentityProviderDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IIdentityProviderDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new IdentityProviderDetails(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.Migrate.Models.Api202301.IIdentityProviderDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new IdentityProviderDetails(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.Migrate.Models.Api202301.IIdentityProviderDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal IdentityProviderDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).TenantId, global::System.Convert.ToString); + } + if (content.Contains("ApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).ApplicationId = (string) content.GetValueForProperty("ApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).ApplicationId, global::System.Convert.ToString); + } + if (content.Contains("ObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).ObjectId = (string) content.GetValueForProperty("ObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).ObjectId, global::System.Convert.ToString); + } + if (content.Contains("Audience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).Audience = (string) content.GetValueForProperty("Audience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).Audience, global::System.Convert.ToString); + } + if (content.Contains("AadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).AadAuthority = (string) content.GetValueForProperty("AadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).AadAuthority, 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 IdentityProviderDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).TenantId, global::System.Convert.ToString); + } + if (content.Contains("ApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).ApplicationId = (string) content.GetValueForProperty("ApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).ApplicationId, global::System.Convert.ToString); + } + if (content.Contains("ObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).ObjectId = (string) content.GetValueForProperty("ObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).ObjectId, global::System.Convert.ToString); + } + if (content.Contains("Audience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).Audience = (string) content.GetValueForProperty("Audience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).Audience, global::System.Convert.ToString); + } + if (content.Contains("AadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).AadAuthority = (string) content.GetValueForProperty("AadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)this).AadAuthority, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Identity provider details. + [System.ComponentModel.TypeConverter(typeof(IdentityProviderDetailsTypeConverter))] + public partial interface IIdentityProviderDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/IdentityProviderDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/IdentityProviderDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/IdentityProviderDetails.TypeConverter.cs index 6d1a68d51e59..d834e3c86dec 100644 --- a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/IdentityProviderDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IIdentityProviderDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderDetails.cs b/src/Migrate/generated/api/Models/Api202301/IdentityProviderDetails.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/IdentityProviderDetails.cs rename to src/Migrate/generated/api/Models/Api202301/IdentityProviderDetails.cs index 76571f848b8c..c167e12f8fd6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/IdentityProviderDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Identity provider details. public partial class IdentityProviderDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/IdentityProviderDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/IdentityProviderDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/IdentityProviderDetails.json.cs index 161a856ec6b7..ddc0eb53c1dc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/IdentityProviderDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class IdentityProviderDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new IdentityProviderDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/IdentityProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/IdentityProviderInput.PowerShell.cs new file mode 100644 index 000000000000..cf7f850f5a1c --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/IdentityProviderInput.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Identity provider input. + [System.ComponentModel.TypeConverter(typeof(IdentityProviderInputTypeConverter))] + public partial class IdentityProviderInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IIdentityProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new IdentityProviderInput(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.Migrate.Models.Api202301.IIdentityProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new IdentityProviderInput(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.Migrate.Models.Api202301.IIdentityProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal IdentityProviderInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).TenantId, global::System.Convert.ToString); + } + if (content.Contains("ApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).ApplicationId = (string) content.GetValueForProperty("ApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).ApplicationId, global::System.Convert.ToString); + } + if (content.Contains("ObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).ObjectId = (string) content.GetValueForProperty("ObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).ObjectId, global::System.Convert.ToString); + } + if (content.Contains("Audience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).Audience = (string) content.GetValueForProperty("Audience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).Audience, global::System.Convert.ToString); + } + if (content.Contains("AadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).AadAuthority = (string) content.GetValueForProperty("AadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).AadAuthority, 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 IdentityProviderInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).TenantId, global::System.Convert.ToString); + } + if (content.Contains("ApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).ApplicationId = (string) content.GetValueForProperty("ApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).ApplicationId, global::System.Convert.ToString); + } + if (content.Contains("ObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).ObjectId = (string) content.GetValueForProperty("ObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).ObjectId, global::System.Convert.ToString); + } + if (content.Contains("Audience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).Audience = (string) content.GetValueForProperty("Audience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).Audience, global::System.Convert.ToString); + } + if (content.Contains("AadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).AadAuthority = (string) content.GetValueForProperty("AadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)this).AadAuthority, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Identity provider input. + [System.ComponentModel.TypeConverter(typeof(IdentityProviderInputTypeConverter))] + public partial interface IIdentityProviderInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/IdentityProviderInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/IdentityProviderInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/IdentityProviderInput.TypeConverter.cs index 88b2c5b44cb0..3a8b1f6e022d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/IdentityProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IIdentityProviderInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderInput.cs b/src/Migrate/generated/api/Models/Api202301/IdentityProviderInput.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/IdentityProviderInput.cs rename to src/Migrate/generated/api/Models/Api202301/IdentityProviderInput.cs index e23f32b9a55b..c3eaa16c4a2c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/IdentityProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Identity provider input. public partial class IdentityProviderInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderInput.json.cs b/src/Migrate/generated/api/Models/Api202301/IdentityProviderInput.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/IdentityProviderInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/IdentityProviderInput.json.cs index 1a57c700a0c4..66ede7e61a01 100644 --- a/src/Migrate/generated/api/Models/Api20220501/IdentityProviderInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/IdentityProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class IdentityProviderInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new IdentityProviderInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAgentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAgentDetails.PowerShell.cs new file mode 100644 index 000000000000..d04ae5706f48 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAgentDetails.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// The details of the InMage agent. + [System.ComponentModel.TypeConverter(typeof(InMageAgentDetailsTypeConverter))] + public partial class InMageAgentDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageAgentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageAgentDetails(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.Migrate.Models.Api202301.IInMageAgentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageAgentDetails(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.Migrate.Models.Api202301.IInMageAgentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageAgentDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).AgentVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).AgentUpdateStatus = (string) content.GetValueForProperty("AgentUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).AgentUpdateStatus, global::System.Convert.ToString); + } + if (content.Contains("PostUpdateRebootStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).PostUpdateRebootStatus = (string) content.GetValueForProperty("PostUpdateRebootStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).PostUpdateRebootStatus, global::System.Convert.ToString); + } + if (content.Contains("AgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageAgentDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).AgentVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).AgentUpdateStatus = (string) content.GetValueForProperty("AgentUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).AgentUpdateStatus, global::System.Convert.ToString); + } + if (content.Contains("PostUpdateRebootStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).PostUpdateRebootStatus = (string) content.GetValueForProperty("PostUpdateRebootStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).PostUpdateRebootStatus, global::System.Convert.ToString); + } + if (content.Contains("AgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The details of the InMage agent. + [System.ComponentModel.TypeConverter(typeof(InMageAgentDetailsTypeConverter))] + public partial interface IInMageAgentDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAgentDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAgentDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageAgentDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAgentDetails.TypeConverter.cs index baa065ed77ae..fba911ab920c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAgentDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAgentDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAgentDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageAgentDetails.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageAgentDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAgentDetails.cs index 4fb3d69c5afd..b8bb149eb803 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAgentDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The details of the InMage agent. public partial class InMageAgentDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAgentDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAgentDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAgentDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAgentDetails.json.cs index 900ea8e995b8..2ef757990d94 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAgentDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAgentDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAgentDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ApplyRecoveryPointInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ApplyRecoveryPointInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ApplyRecoveryPointInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ApplyRecoveryPointInput.PowerShell.cs index c276d71e6eaa..ad4daa54ff0d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ApplyRecoveryPointInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2ApplyRecoveryPointInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2ApplyRecoveryPointInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ApplyRecoveryPointInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2ApplyRecoveryPointInput(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.Migrate.Models.Api20220501.IInMageAzureV2ApplyRecoveryPointInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ApplyRecoveryPointInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2ApplyRecoveryPointInput(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ApplyRecoveryPointInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ApplyRecoveryPointInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,13 +107,13 @@ internal InMageAzureV2ApplyRecoveryPointInput(global::System.Collections.IDictio // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, 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. @@ -128,7 +128,7 @@ internal InMageAzureV2ApplyRecoveryPointInput(global::System.Management.Automati // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ApplyRecoveryPointInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ApplyRecoveryPointInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ApplyRecoveryPointInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ApplyRecoveryPointInput.TypeConverter.cs index 38876c246087..64b6e0b4437c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ApplyRecoveryPointInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2ApplyRecoveryPointInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ApplyRecoveryPointInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ApplyRecoveryPointInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ApplyRecoveryPointInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ApplyRecoveryPointInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ApplyRecoveryPointInput.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ApplyRecoveryPointInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ApplyRecoveryPointInput.cs index ce6127fd30d6..b39688b17398 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ApplyRecoveryPointInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// ApplyRecoveryPoint input specific to InMageAzureV2 provider. public partial class InMageAzureV2ApplyRecoveryPointInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ApplyRecoveryPointInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ApplyRecoveryPointInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ApplyRecoveryPointInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ApplyRecoveryPointInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType = value ; } /// Creates an new instance. public InMageAzureV2ApplyRecoveryPointInput() @@ -44,13 +44,13 @@ public InMageAzureV2ApplyRecoveryPointInput() /// ApplyRecoveryPoint input specific to InMageAzureV2 provider. public partial interface IInMageAzureV2ApplyRecoveryPointInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput { } /// ApplyRecoveryPoint input specific to InMageAzureV2 provider. internal partial interface IInMageAzureV2ApplyRecoveryPointInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal { } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ApplyRecoveryPointInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ApplyRecoveryPointInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ApplyRecoveryPointInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ApplyRecoveryPointInput.json.cs index 09fb4c2eb73d..2fca2c325ef3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ApplyRecoveryPointInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2ApplyRecoveryPointInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ApplyRecoveryPointInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ApplyRecoveryPointInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ApplyRecoveryPointInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ApplyRecoveryPointInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ApplyRecoveryPointInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ApplyRecoveryPointInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2ApplyRecoveryPointInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageAzureV2ApplyRecoveryPointInput(Microsoft.Azure.PowerShell.Cmdlets { return; } - __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput(json); + __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput(json); AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAzureV2DiskInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2DiskInputDetails.PowerShell.cs new file mode 100644 index 000000000000..c21fe8ecfb4a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2DiskInputDetails.PowerShell.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Disk input details. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2DiskInputDetailsTypeConverter))] + public partial class InMageAzureV2DiskInputDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageAzureV2DiskInputDetails(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.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageAzureV2DiskInputDetails(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.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageAzureV2DiskInputDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).DiskEncryptionSetId, 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 InMageAzureV2DiskInputDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal)this).DiskEncryptionSetId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Disk input details. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2DiskInputDetailsTypeConverter))] + public partial interface IInMageAzureV2DiskInputDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2DiskInputDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2DiskInputDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2DiskInputDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2DiskInputDetails.TypeConverter.cs index 27a41ed3f0f2..2f1079763601 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2DiskInputDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2DiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2DiskInputDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2DiskInputDetails.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2DiskInputDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2DiskInputDetails.cs index d313ef77281e..67f59417f8c1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2DiskInputDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2DiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Disk input details. public partial class InMageAzureV2DiskInputDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2DiskInputDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2DiskInputDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2DiskInputDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2DiskInputDetails.json.cs index 17f764f27c11..ebb62816e2bb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2DiskInputDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2DiskInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2DiskInputDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2DiskInputDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInput.PowerShell.cs new file mode 100644 index 000000000000..8fe666b5d0d3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInput.PowerShell.cs @@ -0,0 +1,356 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMware Azure specific enable protection input. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2EnableProtectionInputTypeConverter))] + public partial class InMageAzureV2EnableProtectionInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageAzureV2EnableProtectionInput(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.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageAzureV2EnableProtectionInput(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.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageAzureV2EnableProtectionInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MasterTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).MasterTargetId, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).StorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("DisksToInclude")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).DisksToInclude = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2DiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("TargetAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureNetworkId = (string) content.GetValueForProperty("TargetAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureSubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureSubnetId = (string) content.GetValueForProperty("TargetAzureSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureSubnetId, global::System.Convert.ToString); + } + if (content.Contains("EnableRdpOnTargetOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureVMName = (string) content.GetValueForProperty("TargetAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureV1ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureV2ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetVMTagsTypeConverter.ConvertFrom); + } + if (content.Contains("SeedManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputSeedManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, 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 InMageAzureV2EnableProtectionInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MasterTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).MasterTargetId, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).StorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("DisksToInclude")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).DisksToInclude = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2DiskInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("TargetAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureNetworkId = (string) content.GetValueForProperty("TargetAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureSubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureSubnetId = (string) content.GetValueForProperty("TargetAzureSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureSubnetId, global::System.Convert.ToString); + } + if (content.Contains("EnableRdpOnTargetOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureVMName = (string) content.GetValueForProperty("TargetAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureV1ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV1ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetAzureV2ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId = (string) content.GetValueForProperty("TargetAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAzureV2ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetVMTagsTypeConverter.ConvertFrom); + } + if (content.Contains("SeedManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputSeedManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// VMware Azure specific enable protection input. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2EnableProtectionInputTypeConverter))] + public partial interface IInMageAzureV2EnableProtectionInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInput.TypeConverter.cs index 1cb59f9f34b0..f356f1195561 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInput.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInput.cs index 4c43002626c4..439c07b31b4c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMware Azure specific enable protection input. public partial class InMageAzureV2EnableProtectionInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput(); /// Backing field for property. private string _diskEncryptionSetId; @@ -34,11 +34,11 @@ public partial class InMageAzureV2EnableProtectionInput : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType? DiskType { get => this._diskType; set => this._diskType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails[] _disksToInclude; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails[] _disksToInclude; /// The disks to include list. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails[] DisksToInclude { get => this._disksToInclude; set => this._disksToInclude = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails[] DisksToInclude { get => this._disksToInclude; set => this._disksToInclude = value; } /// Backing field for property. private string _enableRdpOnTargetOption; @@ -52,7 +52,7 @@ public partial class InMageAzureV2EnableProtectionInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? _licenseType; @@ -104,11 +104,11 @@ public partial class InMageAzureV2EnableProtectionInput : public string RunAsAccountId { get => this._runAsAccountId; set => this._runAsAccountId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags _seedManagedDiskTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags _seedManagedDiskTag; /// The tags for the seed managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags SeedManagedDiskTag { get => (this._seedManagedDiskTag = this._seedManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputSeedManagedDiskTags()); set => this._seedManagedDiskTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags SeedManagedDiskTag { get => (this._seedManagedDiskTag = this._seedManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputSeedManagedDiskTags()); set => this._seedManagedDiskTag = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType? _sqlServerLicenseType; @@ -178,18 +178,18 @@ public partial class InMageAzureV2EnableProtectionInput : public string TargetAzureVMName { get => this._targetAzureVMName; set => this._targetAzureVMName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags _targetManagedDiskTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags _targetManagedDiskTag; /// The tags for the target managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags TargetManagedDiskTag { get => (this._targetManagedDiskTag = this._targetManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetManagedDiskTags()); set => this._targetManagedDiskTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags TargetManagedDiskTag { get => (this._targetManagedDiskTag = this._targetManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetManagedDiskTags()); set => this._targetManagedDiskTag = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags _targetNicTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags _targetNicTag; /// The tags for the target NICs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetNicTags()); set => this._targetNicTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetNicTags()); set => this._targetNicTag = value; } /// Backing field for property. private string _targetProximityPlacementGroupId; @@ -206,11 +206,11 @@ public partial class InMageAzureV2EnableProtectionInput : public string TargetVMSize { get => this._targetVMSize; set => this._targetVMSize = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags _targetVMTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags _targetVMTag; /// The target VM tags. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetVMTags()); set => this._targetVMTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetVMTags()); set => this._targetVMTag = value; } /// Creates an new instance. public InMageAzureV2EnableProtectionInput() @@ -233,7 +233,7 @@ public InMageAzureV2EnableProtectionInput() /// VMware Azure specific enable protection input. public partial interface IInMageAzureV2EnableProtectionInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput { /// The DiskEncryptionSet ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -257,8 +257,8 @@ public partial interface IInMageAzureV2EnableProtectionInput : ReadOnly = false, Description = @"The disks to include list.", SerializedName = @"disksToInclude", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails[] DisksToInclude { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails[] DisksToInclude { get; set; } /// /// The selected option to enable RDP\SSH on target VM after failover. String value of SrsDataContract.EnableRDPOnTargetOption /// enum. @@ -332,8 +332,8 @@ public partial interface IInMageAzureV2EnableProtectionInput : ReadOnly = false, Description = @"The tags for the seed managed disks.", SerializedName = @"seedManagedDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags SeedManagedDiskTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags SeedManagedDiskTag { get; set; } /// The SQL Server license type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -416,16 +416,16 @@ public partial interface IInMageAzureV2EnableProtectionInput : ReadOnly = false, Description = @"The tags for the target managed disks.", SerializedName = @"targetManagedDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } /// The tags for the target NICs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The tags for the target NICs.", SerializedName = @"targetNicTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags TargetNicTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags TargetNicTag { get; set; } /// The proximity placement group ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -448,20 +448,20 @@ public partial interface IInMageAzureV2EnableProtectionInput : ReadOnly = false, Description = @"The target VM tags.", SerializedName = @"targetVmTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags TargetVMTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags TargetVMTag { get; set; } } /// VMware Azure specific enable protection input. internal partial interface IInMageAzureV2EnableProtectionInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal { /// The DiskEncryptionSet ARM Id. string DiskEncryptionSetId { get; set; } /// The DiskType. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType? DiskType { get; set; } /// The disks to include list. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails[] DisksToInclude { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails[] DisksToInclude { get; set; } /// /// The selected option to enable RDP\SSH on target VM after failover. String value of SrsDataContract.EnableRDPOnTargetOption /// enum. @@ -482,7 +482,7 @@ internal partial interface IInMageAzureV2EnableProtectionInputInternal : /// The CS account Id. string RunAsAccountId { get; set; } /// The tags for the seed managed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags SeedManagedDiskTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags SeedManagedDiskTag { get; set; } /// The SQL Server license type. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType? SqlServerLicenseType { get; set; } /// The storage account Id. @@ -506,15 +506,15 @@ internal partial interface IInMageAzureV2EnableProtectionInputInternal : /// The target azure VM Name. string TargetAzureVMName { get; set; } /// The tags for the target managed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } /// The tags for the target NICs. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags TargetNicTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags TargetNicTag { get; set; } /// The proximity placement group ARM Id. string TargetProximityPlacementGroupId { get; set; } /// The target VM size. string TargetVMSize { get; set; } /// The target VM tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags TargetVMTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags TargetVMTag { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInput.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInput.json.cs index 7142ceaa927d..4f4ec41f9de5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2EnableProtectionInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2EnableProtectionInput(json) : null; } @@ -77,14 +77,14 @@ internal InMageAzureV2EnableProtectionInput(Microsoft.Azure.PowerShell.Cmdlets.M { return; } - __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput(json); + __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput(json); {_masterTargetId = If( json?.PropertyT("masterTargetId"), out var __jsonMasterTargetId) ? (string)__jsonMasterTargetId : (string)MasterTargetId;} {_processServerId = If( json?.PropertyT("processServerId"), out var __jsonProcessServerId) ? (string)__jsonProcessServerId : (string)ProcessServerId;} {_storageAccountId = If( json?.PropertyT("storageAccountId"), out var __jsonStorageAccountId) ? (string)__jsonStorageAccountId : (string)StorageAccountId;} {_runAsAccountId = If( json?.PropertyT("runAsAccountId"), out var __jsonRunAsAccountId) ? (string)__jsonRunAsAccountId : (string)RunAsAccountId;} {_multiVMGroupId = If( json?.PropertyT("multiVmGroupId"), out var __jsonMultiVMGroupId) ? (string)__jsonMultiVMGroupId : (string)MultiVMGroupId;} {_multiVMGroupName = If( json?.PropertyT("multiVmGroupName"), out var __jsonMultiVMGroupName) ? (string)__jsonMultiVMGroupName : (string)MultiVMGroupName;} - {_disksToInclude = If( json?.PropertyT("disksToInclude"), out var __jsonDisksToInclude) ? If( __jsonDisksToInclude as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2DiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2DiskInputDetails.FromJson(__u) )) ))() : null : DisksToInclude;} + {_disksToInclude = If( json?.PropertyT("disksToInclude"), out var __jsonDisksToInclude) ? If( __jsonDisksToInclude as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IInMageAzureV2DiskInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2DiskInputDetails.FromJson(__u) )) ))() : null : DisksToInclude;} {_targetAzureNetworkId = If( json?.PropertyT("targetAzureNetworkId"), out var __jsonTargetAzureNetworkId) ? (string)__jsonTargetAzureNetworkId : (string)TargetAzureNetworkId;} {_targetAzureSubnetId = If( json?.PropertyT("targetAzureSubnetId"), out var __jsonTargetAzureSubnetId) ? (string)__jsonTargetAzureSubnetId : (string)TargetAzureSubnetId;} {_enableRdpOnTargetOption = If( json?.PropertyT("enableRdpOnTargetOption"), out var __jsonEnableRdpOnTargetOption) ? (string)__jsonEnableRdpOnTargetOption : (string)EnableRdpOnTargetOption;} @@ -100,10 +100,10 @@ internal InMageAzureV2EnableProtectionInput(Microsoft.Azure.PowerShell.Cmdlets.M {_sqlServerLicenseType = If( json?.PropertyT("sqlServerLicenseType"), out var __jsonSqlServerLicenseType) ? (string)__jsonSqlServerLicenseType : (string)SqlServerLicenseType;} {_targetVMSize = If( json?.PropertyT("targetVmSize"), out var __jsonTargetVMSize) ? (string)__jsonTargetVMSize : (string)TargetVMSize;} {_diskEncryptionSetId = If( json?.PropertyT("diskEncryptionSetId"), out var __jsonDiskEncryptionSetId) ? (string)__jsonDiskEncryptionSetId : (string)DiskEncryptionSetId;} - {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetVMTags.FromJson(__jsonTargetVMTags) : TargetVMTag;} - {_seedManagedDiskTag = If( json?.PropertyT("seedManagedDiskTags"), out var __jsonSeedManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputSeedManagedDiskTags.FromJson(__jsonSeedManagedDiskTags) : SeedManagedDiskTag;} - {_targetManagedDiskTag = If( json?.PropertyT("targetManagedDiskTags"), out var __jsonTargetManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetManagedDiskTags.FromJson(__jsonTargetManagedDiskTags) : TargetManagedDiskTag;} - {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} + {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetVMTags.FromJson(__jsonTargetVMTags) : TargetVMTag;} + {_seedManagedDiskTag = If( json?.PropertyT("seedManagedDiskTags"), out var __jsonSeedManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputSeedManagedDiskTags.FromJson(__jsonSeedManagedDiskTags) : SeedManagedDiskTag;} + {_targetManagedDiskTag = If( json?.PropertyT("targetManagedDiskTags"), out var __jsonTargetManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetManagedDiskTags.FromJson(__jsonTargetManagedDiskTags) : TargetManagedDiskTag;} + {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.PowerShell.cs index be6377fc7afa..9a10cda08033 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2EnableProtectionInputSeedManagedDiskTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2EnableProtectionInputSeedManagedDiskTags(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.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2EnableProtectionInputSeedManagedDiskTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageAzureV2EnableProtectionInputSeedManagedDiskTags(global::System.Co } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.TypeConverter.cs index c970deec5d79..8f3c20e1c646 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.cs index 7a4e9579d5d5..798b8796ce1e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the seed managed disks. public partial class InMageAzureV2EnableProtectionInputSeedManagedDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.dictionary.cs index e2bc5f246d27..68f0b4665355 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputSeedManagedDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputSeedManagedDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.json.cs index 024054d3e382..cd282d12be4c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2EnableProtectionInputSeedManagedDiskTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputSeedManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2EnableProtectionInputSeedManagedDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.PowerShell.cs index db8c792fd363..5d64732d2acd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2EnableProtectionInputTargetManagedDiskTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2EnableProtectionInputTargetManagedDiskTags(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.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2EnableProtectionInputTargetManagedDiskTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageAzureV2EnableProtectionInputTargetManagedDiskTags(global::System. } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.TypeConverter.cs index f5da21aef7de..3268168fe7c5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.cs index ba4cdc639464..99e500338b71 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target managed disks. public partial class InMageAzureV2EnableProtectionInputTargetManagedDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.dictionary.cs index 15416c0ba9ac..8fabd9a21781 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetManagedDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetManagedDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.json.cs index 7f06e8aead20..21059e18b66b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2EnableProtectionInputTargetManagedDiskTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2EnableProtectionInputTargetManagedDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.PowerShell.cs index 1c4c0272250a..7c21a6dc263c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2EnableProtectionInputTargetNicTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2EnableProtectionInputTargetNicTags(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.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2EnableProtectionInputTargetNicTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageAzureV2EnableProtectionInputTargetNicTags(global::System.Collecti } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.TypeConverter.cs index 02becf03eccc..58f4fe04779b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.cs index 3cb7985c3554..1642c3434f8d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target NICs. public partial class InMageAzureV2EnableProtectionInputTargetNicTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.dictionary.cs index c6e91a802a3a..12c66a636e1f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetNicTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetNicTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.json.cs index b2e8a441dd64..e7b3353c1b41 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetNicTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2EnableProtectionInputTargetNicTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2EnableProtectionInputTargetNicTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.PowerShell.cs index d49b0fe2a66e..32664c82e11a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2EnableProtectionInputTargetVMTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2EnableProtectionInputTargetVMTags(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.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2EnableProtectionInputTargetVMTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageAzureV2EnableProtectionInputTargetVMTags(global::System.Collectio } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.TypeConverter.cs index 4a7fde7bee71..3f2fe88a4d42 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.cs index 164fe8861cd0..5bebd1e87eae 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The target VM tags. public partial class InMageAzureV2EnableProtectionInputTargetVMTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.dictionary.cs index d4bf082f5d81..477c66be90e1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2EnableProtectionInputTargetVMTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2EnableProtectionInputTargetVMTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.json.cs index 6c16f5ba2f37..48a430632ac6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EnableProtectionInputTargetVMTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EnableProtectionInputTargetVMTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2EnableProtectionInputTargetVMTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EnableProtectionInputTargetVMTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EnableProtectionInputTargetVMTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2EnableProtectionInputTargetVMTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EventDetails.PowerShell.cs new file mode 100644 index 000000000000..66a3a85cb137 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EventDetails.PowerShell.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Model class for event details of a VMwareAzureV2 event. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2EventDetailsTypeConverter))] + public partial class InMageAzureV2EventDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageAzureV2EventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageAzureV2EventDetails(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.Migrate.Models.Api202301.IInMageAzureV2EventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageAzureV2EventDetails(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.Migrate.Models.Api202301.IInMageAzureV2EventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageAzureV2EventDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("EventType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).EventType, global::System.Convert.ToString); + } + if (content.Contains("Category")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Category = (string) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Category, global::System.Convert.ToString); + } + if (content.Contains("Component")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Component = (string) content.GetValueForProperty("Component",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Component, global::System.Convert.ToString); + } + if (content.Contains("CorrectiveAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).CorrectiveAction = (string) content.GetValueForProperty("CorrectiveAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).CorrectiveAction, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Detail = (string) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Detail, global::System.Convert.ToString); + } + if (content.Contains("Summary")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Summary = (string) content.GetValueForProperty("Summary",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Summary, global::System.Convert.ToString); + } + if (content.Contains("SiteName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).SiteName = (string) content.GetValueForProperty("SiteName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).SiteName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 InMageAzureV2EventDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("EventType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).EventType = (string) content.GetValueForProperty("EventType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).EventType, global::System.Convert.ToString); + } + if (content.Contains("Category")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Category = (string) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Category, global::System.Convert.ToString); + } + if (content.Contains("Component")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Component = (string) content.GetValueForProperty("Component",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Component, global::System.Convert.ToString); + } + if (content.Contains("CorrectiveAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).CorrectiveAction = (string) content.GetValueForProperty("CorrectiveAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).CorrectiveAction, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Detail = (string) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Detail, global::System.Convert.ToString); + } + if (content.Contains("Summary")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Summary = (string) content.GetValueForProperty("Summary",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).Summary, global::System.Convert.ToString); + } + if (content.Contains("SiteName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).SiteName = (string) content.GetValueForProperty("SiteName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal)this).SiteName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Model class for event details of a VMwareAzureV2 event. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2EventDetailsTypeConverter))] + public partial interface IInMageAzureV2EventDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EventDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EventDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EventDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EventDetails.TypeConverter.cs index c39ae2cb11a7..31fdd9d28e37 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EventDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2EventDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EventDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EventDetails.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EventDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EventDetails.cs index 404c1bb4daf9..3062b86a1d4e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EventDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Model class for event details of a VMwareAzureV2 event. public partial class InMageAzureV2EventDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(); /// Backing field for property. private string _category; @@ -58,7 +58,7 @@ public partial class InMageAzureV2EventDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _siteName; @@ -95,7 +95,7 @@ public InMageAzureV2EventDetails() /// Model class for event details of a VMwareAzureV2 event. public partial interface IInMageAzureV2EventDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails { /// InMage Event Category. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -159,7 +159,7 @@ public partial interface IInMageAzureV2EventDetails : } /// Model class for event details of a VMwareAzureV2 event. internal partial interface IInMageAzureV2EventDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal { /// InMage Event Category. string Category { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EventDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EventDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EventDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2EventDetails.json.cs index 6eb91e4f7e78..c1c2639eebbf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2EventDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2EventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2EventDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2EventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2EventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2EventDetails(json) : null; } @@ -77,7 +77,7 @@ internal InMageAzureV2EventDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(json); + __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(json); {_eventType = If( json?.PropertyT("eventType"), out var __jsonEventType) ? (string)__jsonEventType : (string)EventType;} {_category = If( json?.PropertyT("category"), out var __jsonCategory) ? (string)__jsonCategory : (string)Category;} {_component = If( json?.PropertyT("component"), out var __jsonComponent) ? (string)__jsonComponent : (string)Component;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ManagedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ManagedDiskDetails.PowerShell.cs new file mode 100644 index 000000000000..401c2f5c9d1b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ManagedDiskDetails.PowerShell.cs @@ -0,0 +1,178 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageAzureV2 Managed disk details. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ManagedDiskDetailsTypeConverter))] + public partial class InMageAzureV2ManagedDiskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageAzureV2ManagedDiskDetails(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.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageAzureV2ManagedDiskDetails(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.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageAzureV2ManagedDiskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("SeedManagedDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); + } + if (content.Contains("ReplicaDiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).ReplicaDiskType = (string) content.GetValueForProperty("ReplicaDiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).ReplicaDiskType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("TargetDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).TargetDiskName, 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 InMageAzureV2ManagedDiskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("SeedManagedDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); + } + if (content.Contains("ReplicaDiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).ReplicaDiskType = (string) content.GetValueForProperty("ReplicaDiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).ReplicaDiskType, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("TargetDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal)this).TargetDiskName, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageAzureV2 Managed disk details. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ManagedDiskDetailsTypeConverter))] + public partial interface IInMageAzureV2ManagedDiskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ManagedDiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ManagedDiskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ManagedDiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ManagedDiskDetails.TypeConverter.cs index 15fccc390741..0add6b1ce84e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ManagedDiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ManagedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ManagedDiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ManagedDiskDetails.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ManagedDiskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ManagedDiskDetails.cs index 1ca4c59a95f7..1bbdf65d770d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ManagedDiskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ManagedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageAzureV2 Managed disk details. public partial class InMageAzureV2ManagedDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ManagedDiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ManagedDiskDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ManagedDiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ManagedDiskDetails.json.cs index 9af24ad25b42..2c24f66262c6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ManagedDiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ManagedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2ManagedDiskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2ManagedDiskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyDetails.PowerShell.cs new file mode 100644 index 000000000000..0c8d10d1dd11 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyDetails.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMage Azure v2 specific protection profile details. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2PolicyDetailsTypeConverter))] + public partial class InMageAzureV2PolicyDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageAzureV2PolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageAzureV2PolicyDetails(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.Migrate.Models.Api202301.IInMageAzureV2PolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageAzureV2PolicyDetails(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.Migrate.Models.Api202301.IInMageAzureV2PolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageAzureV2PolicyDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPointThresholdInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 InMageAzureV2PolicyDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPointThresholdInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMage Azure v2 specific protection profile details. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2PolicyDetailsTypeConverter))] + public partial interface IInMageAzureV2PolicyDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyDetails.TypeConverter.cs index b3a2d4454c5c..ba89d2ba6d71 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyDetails.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyDetails.cs index 201f566e2e9b..b3ab7eb40d15 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMage Azure v2 specific protection profile details. public partial class InMageAzureV2PolicyDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(); /// Backing field for property. private int? _appConsistentFrequencyInMinute; @@ -35,7 +35,7 @@ public partial class InMageAzureV2PolicyDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _multiVMSyncStatus; @@ -79,7 +79,7 @@ public InMageAzureV2PolicyDetails() /// InMage Azure v2 specific protection profile details. public partial interface IInMageAzureV2PolicyDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails { /// The app consistent snapshot frequency in minutes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -125,7 +125,7 @@ public partial interface IInMageAzureV2PolicyDetails : } /// InMage Azure v2 specific protection profile details. internal partial interface IInMageAzureV2PolicyDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal { /// The app consistent snapshot frequency in minutes. int? AppConsistentFrequencyInMinute { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyDetails.json.cs index 132391334915..9acc9b8a68ca 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2PolicyDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2PolicyDetails(json) : null; } @@ -77,7 +77,7 @@ internal InMageAzureV2PolicyDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.R { return; } - __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(json); + __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(json); {_crashConsistentFrequencyInMinute = If( json?.PropertyT("crashConsistentFrequencyInMinutes"), out var __jsonCrashConsistentFrequencyInMinutes) ? (int?)__jsonCrashConsistentFrequencyInMinutes : CrashConsistentFrequencyInMinute;} {_recoveryPointThresholdInMinute = If( json?.PropertyT("recoveryPointThresholdInMinutes"), out var __jsonRecoveryPointThresholdInMinutes) ? (int?)__jsonRecoveryPointThresholdInMinutes : RecoveryPointThresholdInMinute;} {_recoveryPointHistory = If( json?.PropertyT("recoveryPointHistory"), out var __jsonRecoveryPointHistory) ? (int?)__jsonRecoveryPointHistory : RecoveryPointHistory;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyInput.PowerShell.cs new file mode 100644 index 000000000000..b6cf4b7d066f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyInput.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMWare Azure specific policy Input. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2PolicyInputTypeConverter))] + public partial class InMageAzureV2PolicyInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageAzureV2PolicyInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageAzureV2PolicyInput(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.Migrate.Models.Api202301.IInMageAzureV2PolicyInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageAzureV2PolicyInput(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.Migrate.Models.Api202301.IInMageAzureV2PolicyInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageAzureV2PolicyInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointThresholdInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 InMageAzureV2PolicyInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointThresholdInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// VMWare Azure specific policy Input. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2PolicyInputTypeConverter))] + public partial interface IInMageAzureV2PolicyInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyInput.TypeConverter.cs index 7a747bcd1660..e6ee36134d30 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2PolicyInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyInput.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyInput.cs index c04df31f7f1a..8fa9f49a960b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMWare Azure specific policy Input. public partial class InMageAzureV2PolicyInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(); /// Backing field for property. private int? _appConsistentFrequencyInMinute; @@ -35,7 +35,7 @@ public partial class InMageAzureV2PolicyInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus _multiVMSyncStatus; @@ -81,7 +81,7 @@ public InMageAzureV2PolicyInput() /// VMWare Azure specific policy Input. public partial interface IInMageAzureV2PolicyInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput { /// The app consistent snapshot frequency (in minutes). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -129,7 +129,7 @@ public partial interface IInMageAzureV2PolicyInput : } /// VMWare Azure specific policy Input. internal partial interface IInMageAzureV2PolicyInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal { /// The app consistent snapshot frequency (in minutes). int? AppConsistentFrequencyInMinute { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyInput.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyInput.json.cs index d13135a0a53b..eef4ddb21281 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2PolicyInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2PolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2PolicyInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2PolicyInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2PolicyInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2PolicyInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageAzureV2PolicyInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(json); + __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(json); {_recoveryPointThresholdInMinute = If( json?.PropertyT("recoveryPointThresholdInMinutes"), out var __jsonRecoveryPointThresholdInMinutes) ? (int?)__jsonRecoveryPointThresholdInMinutes : RecoveryPointThresholdInMinute;} {_recoveryPointHistory = If( json?.PropertyT("recoveryPointHistory"), out var __jsonRecoveryPointHistory) ? (int?)__jsonRecoveryPointHistory : RecoveryPointHistory;} {_crashConsistentFrequencyInMinute = If( json?.PropertyT("crashConsistentFrequencyInMinutes"), out var __jsonCrashConsistentFrequencyInMinutes) ? (int?)__jsonCrashConsistentFrequencyInMinutes : CrashConsistentFrequencyInMinute;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ProtectedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ProtectedDiskDetails.PowerShell.cs new file mode 100644 index 000000000000..6250c8af43ff --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ProtectedDiskDetails.PowerShell.cs @@ -0,0 +1,324 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageAzureV2 protected disk details. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ProtectedDiskDetailsTypeConverter))] + public partial class InMageAzureV2ProtectedDiskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageAzureV2ProtectedDiskDetails(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.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageAzureV2ProtectedDiskDetails(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.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageAzureV2ProtectedDiskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("ProtectionStage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); + } + if (content.Contains("HealthErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).HealthErrorCode = (string) content.GetValueForProperty("HealthErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).HealthErrorCode, global::System.Convert.ToString); + } + if (content.Contains("RpoInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); + } + if (content.Contains("ResyncProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResyncDurationInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncDurationInSecond = (long?) content.GetValueForProperty("ResyncDurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncDurationInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("DiskCapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("FileSystemCapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).FileSystemCapacityInByte = (long?) content.GetValueForProperty("FileSystemCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).FileSystemCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("SourceDataInMegaByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).SourceDataInMegaByte = (double?) content.GetValueForProperty("SourceDataInMegaByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).SourceDataInMegaByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("PsDataInMegaByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).PsDataInMegaByte = (double?) content.GetValueForProperty("PsDataInMegaByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).PsDataInMegaByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("TargetDataInMegaByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).TargetDataInMegaByte = (double?) content.GetValueForProperty("TargetDataInMegaByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).TargetDataInMegaByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DiskResized")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskResized, global::System.Convert.ToString); + } + if (content.Contains("LastRpoCalculatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResyncProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncTotalTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte = (long?) content.GetValueForProperty("ResyncTotalTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncLast15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncLastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ResyncLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResyncStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncStartTime = (global::System.DateTime?) content.GetValueForProperty("ResyncStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressHealth = (string) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressHealth, global::System.Convert.ToString); + } + if (content.Contains("ProgressStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressStatus = (string) content.GetValueForProperty("ProgressStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressStatus, global::System.Convert.ToString); + } + if (content.Contains("SecondsToTakeSwitchProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).SecondsToTakeSwitchProvider = (long?) content.GetValueForProperty("SecondsToTakeSwitchProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).SecondsToTakeSwitchProvider, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageAzureV2ProtectedDiskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("ProtectionStage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); + } + if (content.Contains("HealthErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).HealthErrorCode = (string) content.GetValueForProperty("HealthErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).HealthErrorCode, global::System.Convert.ToString); + } + if (content.Contains("RpoInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); + } + if (content.Contains("ResyncProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResyncDurationInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncDurationInSecond = (long?) content.GetValueForProperty("ResyncDurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncDurationInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("DiskCapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("FileSystemCapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).FileSystemCapacityInByte = (long?) content.GetValueForProperty("FileSystemCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).FileSystemCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("SourceDataInMegaByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).SourceDataInMegaByte = (double?) content.GetValueForProperty("SourceDataInMegaByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).SourceDataInMegaByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("PsDataInMegaByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).PsDataInMegaByte = (double?) content.GetValueForProperty("PsDataInMegaByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).PsDataInMegaByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("TargetDataInMegaByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).TargetDataInMegaByte = (double?) content.GetValueForProperty("TargetDataInMegaByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).TargetDataInMegaByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DiskResized")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).DiskResized, global::System.Convert.ToString); + } + if (content.Contains("LastRpoCalculatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResyncProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncTotalTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte = (long?) content.GetValueForProperty("ResyncTotalTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncLast15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncLastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ResyncLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResyncStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncStartTime = (global::System.DateTime?) content.GetValueForProperty("ResyncStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ResyncStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressHealth = (string) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressHealth, global::System.Convert.ToString); + } + if (content.Contains("ProgressStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressStatus = (string) content.GetValueForProperty("ProgressStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).ProgressStatus, global::System.Convert.ToString); + } + if (content.Contains("SecondsToTakeSwitchProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).SecondsToTakeSwitchProvider = (long?) content.GetValueForProperty("SecondsToTakeSwitchProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal)this).SecondsToTakeSwitchProvider, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageAzureV2 protected disk details. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ProtectedDiskDetailsTypeConverter))] + public partial interface IInMageAzureV2ProtectedDiskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ProtectedDiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ProtectedDiskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ProtectedDiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ProtectedDiskDetails.TypeConverter.cs index 3325ad5c34ac..fbf180e70b31 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ProtectedDiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ProtectedDiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ProtectedDiskDetails.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ProtectedDiskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ProtectedDiskDetails.cs index 5e8f6c5d6205..928aba2f1c58 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ProtectedDiskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageAzureV2 protected disk details. public partial class InMageAzureV2ProtectedDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ProtectedDiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ProtectedDiskDetails.json.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ProtectedDiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ProtectedDiskDetails.json.cs index 05de03a7ef24..27f2326372d6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ProtectedDiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2ProtectedDiskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2ProtectedDiskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2RecoveryPointDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2RecoveryPointDetails.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2RecoveryPointDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2RecoveryPointDetails.PowerShell.cs index a8152c886e29..90a41edc1653 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2RecoveryPointDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2RecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2RecoveryPointDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2RecoveryPointDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2RecoveryPointDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2RecoveryPointDetails(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.Migrate.Models.Api20220501.IInMageAzureV2RecoveryPointDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2RecoveryPointDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2RecoveryPointDetails(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2RecoveryPointDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2RecoveryPointDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,17 +107,17 @@ internal InMageAzureV2RecoveryPointDetails(global::System.Collections.IDictionar // actually deserialize if (content.Contains("IsMultiVMSyncPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2RecoveryPointDetailsInternal)this).IsMultiVMSyncPoint = (string) content.GetValueForProperty("IsMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2RecoveryPointDetailsInternal)this).IsMultiVMSyncPoint, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2RecoveryPointDetailsInternal)this).IsMultiVMSyncPoint = (string) content.GetValueForProperty("IsMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2RecoveryPointDetailsInternal)this).IsMultiVMSyncPoint, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, 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,11 +132,11 @@ internal InMageAzureV2RecoveryPointDetails(global::System.Management.Automation. // actually deserialize if (content.Contains("IsMultiVMSyncPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2RecoveryPointDetailsInternal)this).IsMultiVMSyncPoint = (string) content.GetValueForProperty("IsMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2RecoveryPointDetailsInternal)this).IsMultiVMSyncPoint, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2RecoveryPointDetailsInternal)this).IsMultiVMSyncPoint = (string) content.GetValueForProperty("IsMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2RecoveryPointDetailsInternal)this).IsMultiVMSyncPoint, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2RecoveryPointDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2RecoveryPointDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2RecoveryPointDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2RecoveryPointDetails.TypeConverter.cs index 5f521a483d25..1687694febd4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2RecoveryPointDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2RecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2RecoveryPointDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2RecoveryPointDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2RecoveryPointDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2RecoveryPointDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2RecoveryPointDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2RecoveryPointDetails.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2RecoveryPointDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2RecoveryPointDetails.cs index 03c79da19e28..52a3a43fe064 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2RecoveryPointDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2RecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMage Azure V2 provider specific recovery point details. public partial class InMageAzureV2RecoveryPointDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2RecoveryPointDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2RecoveryPointDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2RecoveryPointDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2RecoveryPointDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails __providerSpecificRecoveryPointDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails __providerSpecificRecoveryPointDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetails(); /// Gets the provider type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)__providerSpecificRecoveryPointDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)__providerSpecificRecoveryPointDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)__providerSpecificRecoveryPointDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)__providerSpecificRecoveryPointDetails).InstanceType = value ; } /// Backing field for property. private string _isMultiVMSyncPoint; @@ -51,7 +51,7 @@ public InMageAzureV2RecoveryPointDetails() /// InMage Azure V2 provider specific recovery point details. public partial interface IInMageAzureV2RecoveryPointDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails { /// A value indicating whether the recovery point is multi VM consistent. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IInMageAzureV2RecoveryPointDetails : } /// InMage Azure V2 provider specific recovery point details. internal partial interface IInMageAzureV2RecoveryPointDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal { /// A value indicating whether the recovery point is multi VM consistent. string IsMultiVMSyncPoint { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2RecoveryPointDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2RecoveryPointDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2RecoveryPointDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2RecoveryPointDetails.json.cs index c1615443eef7..588648154a3a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2RecoveryPointDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2RecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2RecoveryPointDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2RecoveryPointDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2RecoveryPointDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2RecoveryPointDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2RecoveryPointDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2RecoveryPointDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2RecoveryPointDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2RecoveryPointDetails(json) : null; } @@ -77,7 +77,7 @@ internal InMageAzureV2RecoveryPointDetails(Microsoft.Azure.PowerShell.Cmdlets.Mi { return; } - __providerSpecificRecoveryPointDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetails(json); + __providerSpecificRecoveryPointDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetails(json); {_isMultiVMSyncPoint = If( json?.PropertyT("isMultiVmSyncPoint"), out var __jsonIsMultiVMSyncPoint) ? (string)__jsonIsMultiVMSyncPoint : (string)IsMultiVMSyncPoint;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetails.PowerShell.cs new file mode 100644 index 000000000000..bc59a9e796e3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetails.PowerShell.cs @@ -0,0 +1,714 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageAzureV2 provider specific settings. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ReplicationDetailsTypeConverter))] + public partial class InMageAzureV2ReplicationDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageAzureV2ReplicationDetails(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.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageAzureV2ReplicationDetails(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.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageAzureV2ReplicationDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SwitchProviderDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails) content.GetValueForProperty("SwitchProviderDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("InfrastructureVMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).InfrastructureVMId = (string) content.GetValueForProperty("InfrastructureVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).InfrastructureVMId, global::System.Convert.ToString); + } + if (content.Contains("VCenterInfrastructureId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VCenterInfrastructureId = (string) content.GetValueForProperty("VCenterInfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VCenterInfrastructureId, global::System.Convert.ToString); + } + if (content.Contains("ProtectionStage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); + } + if (content.Contains("VMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("ResyncProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RpoInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("CompressedDataRateInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).CompressedDataRateInMb = (double?) content.GetValueForProperty("CompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).CompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("UncompressedDataRateInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).UncompressedDataRateInMb = (double?) content.GetValueForProperty("UncompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).UncompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("AgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AgentVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("IsAgentUpdateRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IsAgentUpdateRequired = (string) content.GetValueForProperty("IsAgentUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IsAgentUpdateRequired, global::System.Convert.ToString); + } + if (content.Contains("IsRebootAfterUpdateRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IsRebootAfterUpdateRequired = (string) content.GetValueForProperty("IsRebootAfterUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IsRebootAfterUpdateRequired, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerName = (string) content.GetValueForProperty("ProcessServerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerName, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); + } + if (content.Contains("ProtectedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ProtectedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("DiskResized")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).DiskResized, global::System.Convert.ToString); + } + if (content.Contains("MasterTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MasterTargetId, global::System.Convert.ToString); + } + if (content.Contains("SourceVMCpuCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMCpuCount = (int?) content.GetValueForProperty("SourceVMCpuCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMCpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SourceVMRamSizeInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMRamSizeInMb = (int?) content.GetValueForProperty("SourceVMRamSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMRamSizeInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("VhdName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VhdName, global::System.Convert.ToString); + } + if (content.Contains("OSDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).OSDiskId = (string) content.GetValueForProperty("OSDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).OSDiskId, global::System.Convert.ToString); + } + if (content.Contains("AzureVMDiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails[]) content.GetValueForProperty("AzureVMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureVMDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureStorageAccount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureStorageAccount = (string) content.GetValueForProperty("RecoveryAzureStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureStorageAccount, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureLogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureLogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("SelectedRecoveryAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedTfoAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedSourceNicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SelectedSourceNicId, global::System.Convert.ToString); + } + if (content.Contains("DiscoveryType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); + } + if (content.Contains("EnableRdpOnTargetOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); + } + if (content.Contains("Datastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("TargetVMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMId = (string) content.GetValueForProperty("TargetVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("UseManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).UseManagedDisk, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LicenseType, global::System.Convert.ToString); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SqlServerLicenseType = (string) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SqlServerLicenseType, global::System.Convert.ToString); + } + if (content.Contains("ValidationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("LastRpoCalculatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastUpdateReceivedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastUpdateReceivedTime = (global::System.DateTime?) content.GetValueForProperty("LastUpdateReceivedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastUpdateReceivedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ReplicaId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ReplicaId = (string) content.GetValueForProperty("ReplicaId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ReplicaId, global::System.Convert.ToString); + } + if (content.Contains("OSVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).OSVersion, global::System.Convert.ToString); + } + if (content.Contains("ProtectedManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails[]) content.GetValueForProperty("ProtectedManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ManagedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("LastRecoveryPointReceived")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FirmwareType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).FirmwareType = (string) content.GetValueForProperty("FirmwareType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).FirmwareType, global::System.Convert.ToString); + } + if (content.Contains("AzureVMGeneration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMGeneration = (string) content.GetValueForProperty("AzureVMGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMGeneration, global::System.Convert.ToString); + } + if (content.Contains("IsAdditionalStatsAvailable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IsAdditionalStatsAvailable = (bool?) content.GetValueForProperty("IsAdditionalStatsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IsAdditionalStatsAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TotalDataTransferred")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TotalDataTransferred = (long?) content.GetValueForProperty("TotalDataTransferred",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TotalDataTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("TotalProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TotalProgressHealth = (string) content.GetValueForProperty("TotalProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TotalProgressHealth, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetVMTagsTypeConverter.ConvertFrom); + } + if (content.Contains("SeedManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsSeedManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("SwitchProviderBlockingErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails[]) content.GetValueForProperty("SwitchProviderBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderDetailTargetVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetVaultId = (string) content.GetValueForProperty("SwitchProviderDetailTargetVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetVaultId, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderDetailTargetResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetResourceId = (string) content.GetValueForProperty("SwitchProviderDetailTargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetResourceId, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderDetailTargetFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetFabricId = (string) content.GetValueForProperty("SwitchProviderDetailTargetFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetFabricId, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderDetailTargetApplianceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetApplianceId = (string) content.GetValueForProperty("SwitchProviderDetailTargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetApplianceId, 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 InMageAzureV2ReplicationDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SwitchProviderDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails) content.GetValueForProperty("SwitchProviderDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("InfrastructureVMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).InfrastructureVMId = (string) content.GetValueForProperty("InfrastructureVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).InfrastructureVMId, global::System.Convert.ToString); + } + if (content.Contains("VCenterInfrastructureId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VCenterInfrastructureId = (string) content.GetValueForProperty("VCenterInfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VCenterInfrastructureId, global::System.Convert.ToString); + } + if (content.Contains("ProtectionStage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); + } + if (content.Contains("VMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("ResyncProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RpoInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("CompressedDataRateInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).CompressedDataRateInMb = (double?) content.GetValueForProperty("CompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).CompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("UncompressedDataRateInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).UncompressedDataRateInMb = (double?) content.GetValueForProperty("UncompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).UncompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("AgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AgentVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("IsAgentUpdateRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IsAgentUpdateRequired = (string) content.GetValueForProperty("IsAgentUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IsAgentUpdateRequired, global::System.Convert.ToString); + } + if (content.Contains("IsRebootAfterUpdateRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IsRebootAfterUpdateRequired = (string) content.GetValueForProperty("IsRebootAfterUpdateRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IsRebootAfterUpdateRequired, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerName = (string) content.GetValueForProperty("ProcessServerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProcessServerName, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); + } + if (content.Contains("ProtectedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ProtectedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("DiskResized")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).DiskResized, global::System.Convert.ToString); + } + if (content.Contains("MasterTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).MasterTargetId, global::System.Convert.ToString); + } + if (content.Contains("SourceVMCpuCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMCpuCount = (int?) content.GetValueForProperty("SourceVMCpuCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMCpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SourceVMRamSizeInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMRamSizeInMb = (int?) content.GetValueForProperty("SourceVMRamSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SourceVMRamSizeInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("VhdName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VhdName, global::System.Convert.ToString); + } + if (content.Contains("OSDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).OSDiskId = (string) content.GetValueForProperty("OSDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).OSDiskId, global::System.Convert.ToString); + } + if (content.Contains("AzureVMDiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMDiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails[]) content.GetValueForProperty("AzureVMDiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMDiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureVMDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureStorageAccount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureStorageAccount = (string) content.GetValueForProperty("RecoveryAzureStorageAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureStorageAccount, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureLogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId = (string) content.GetValueForProperty("RecoveryAzureLogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureLogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("SelectedRecoveryAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedTfoAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedSourceNicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SelectedSourceNicId, global::System.Convert.ToString); + } + if (content.Contains("DiscoveryType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); + } + if (content.Contains("EnableRdpOnTargetOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); + } + if (content.Contains("Datastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("TargetVMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMId = (string) content.GetValueForProperty("TargetVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAzureResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("UseManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).UseManagedDisk, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LicenseType, global::System.Convert.ToString); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SqlServerLicenseType = (string) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SqlServerLicenseType, global::System.Convert.ToString); + } + if (content.Contains("ValidationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("LastRpoCalculatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastUpdateReceivedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastUpdateReceivedTime = (global::System.DateTime?) content.GetValueForProperty("LastUpdateReceivedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastUpdateReceivedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ReplicaId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ReplicaId = (string) content.GetValueForProperty("ReplicaId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ReplicaId, global::System.Convert.ToString); + } + if (content.Contains("OSVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).OSVersion, global::System.Convert.ToString); + } + if (content.Contains("ProtectedManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedManagedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails[]) content.GetValueForProperty("ProtectedManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).ProtectedManagedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ManagedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("LastRecoveryPointReceived")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FirmwareType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).FirmwareType = (string) content.GetValueForProperty("FirmwareType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).FirmwareType, global::System.Convert.ToString); + } + if (content.Contains("AzureVMGeneration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMGeneration = (string) content.GetValueForProperty("AzureVMGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).AzureVMGeneration, global::System.Convert.ToString); + } + if (content.Contains("IsAdditionalStatsAvailable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IsAdditionalStatsAvailable = (bool?) content.GetValueForProperty("IsAdditionalStatsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).IsAdditionalStatsAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TotalDataTransferred")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TotalDataTransferred = (long?) content.GetValueForProperty("TotalDataTransferred",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TotalDataTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("TotalProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TotalProgressHealth = (string) content.GetValueForProperty("TotalProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TotalProgressHealth, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetVMTagsTypeConverter.ConvertFrom); + } + if (content.Contains("SeedManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SeedManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags) content.GetValueForProperty("SeedManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SeedManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsSeedManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("SwitchProviderBlockingErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails[]) content.GetValueForProperty("SwitchProviderBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderDetailTargetVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetVaultId = (string) content.GetValueForProperty("SwitchProviderDetailTargetVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetVaultId, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderDetailTargetResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetResourceId = (string) content.GetValueForProperty("SwitchProviderDetailTargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetResourceId, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderDetailTargetFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetFabricId = (string) content.GetValueForProperty("SwitchProviderDetailTargetFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetFabricId, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderDetailTargetApplianceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetApplianceId = (string) content.GetValueForProperty("SwitchProviderDetailTargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal)this).SwitchProviderDetailTargetApplianceId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageAzureV2 provider specific settings. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ReplicationDetailsTypeConverter))] + public partial interface IInMageAzureV2ReplicationDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetails.TypeConverter.cs index 11d397c9fa15..4d2e759a768d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetails.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetails.cs index 45b62f52b8e8..0d248cafba6d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageAzureV2 provider specific settings. public partial class InMageAzureV2ReplicationDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(); /// Backing field for property. private global::System.DateTime? _agentExpiryDate; @@ -34,11 +34,11 @@ public partial class InMageAzureV2ReplicationDetails : public string AgentVersion { get => this._agentVersion; set => this._agentVersion = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails[] _azureVMDiskDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails[] _azureVMDiskDetail; /// Azure VM Disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails[] AzureVMDiskDetail { get => this._azureVMDiskDetail; set => this._azureVMDiskDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails[] AzureVMDiskDetail { get => this._azureVMDiskDetail; set => this._azureVMDiskDetail = value; } /// Backing field for property. private string _azureVMGeneration; @@ -112,7 +112,7 @@ public partial class InMageAzureV2ReplicationDetails : /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } /// Backing field for property. private bool? _isAdditionalStatsAvailable; @@ -178,22 +178,22 @@ public partial class InMageAzureV2ReplicationDetails : public string MasterTargetId { get => this._masterTargetId; set => this._masterTargetId = value; } /// Internal Acessors for LastRecoveryPointReceived - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal.LastRecoveryPointReceived { get => this._lastRecoveryPointReceived; set { {_lastRecoveryPointReceived = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal.LastRecoveryPointReceived { get => this._lastRecoveryPointReceived; set { {_lastRecoveryPointReceived = value;} } } /// Internal Acessors for SwitchProviderDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal.SwitchProviderDetail { get => (this._switchProviderDetail = this._switchProviderDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderDetails()); set { {_switchProviderDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal.SwitchProviderDetail { get => (this._switchProviderDetail = this._switchProviderDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderDetails()); set { {_switchProviderDetail = value;} } } /// Internal Acessors for SwitchProviderDetailTargetApplianceId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal.SwitchProviderDetailTargetApplianceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetApplianceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetApplianceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal.SwitchProviderDetailTargetApplianceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetApplianceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetApplianceId = value; } /// Internal Acessors for SwitchProviderDetailTargetFabricId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal.SwitchProviderDetailTargetFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetFabricId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal.SwitchProviderDetailTargetFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetFabricId = value; } /// Internal Acessors for SwitchProviderDetailTargetResourceId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal.SwitchProviderDetailTargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetResourceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal.SwitchProviderDetailTargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetResourceId = value; } /// Internal Acessors for SwitchProviderDetailTargetVaultId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsInternal.SwitchProviderDetailTargetVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetVaultId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsInternal.SwitchProviderDetailTargetVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetVaultId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetVaultId = value; } /// Backing field for property. private string _multiVMGroupId; @@ -252,18 +252,18 @@ public partial class InMageAzureV2ReplicationDetails : public string ProcessServerName { get => this._processServerName; set => this._processServerName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails[] _protectedDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails[] _protectedDisk; /// The list of protected disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails[] ProtectedDisk { get => this._protectedDisk; set => this._protectedDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails[] ProtectedDisk { get => this._protectedDisk; set => this._protectedDisk = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails[] _protectedManagedDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails[] _protectedManagedDisk; /// The list of protected managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails[] ProtectedManagedDisk { get => this._protectedManagedDisk; set => this._protectedManagedDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails[] ProtectedManagedDisk { get => this._protectedManagedDisk; set => this._protectedManagedDisk = value; } /// Backing field for property. private string _protectionStage; @@ -339,11 +339,11 @@ public partial class InMageAzureV2ReplicationDetails : public long? RpoInSecond { get => this._rpoInSecond; set => this._rpoInSecond = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags _seedManagedDiskTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags _seedManagedDiskTag; /// The tags for the seed managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags SeedManagedDiskTag { get => (this._seedManagedDiskTag = this._seedManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsSeedManagedDiskTags()); set => this._seedManagedDiskTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags SeedManagedDiskTag { get => (this._seedManagedDiskTag = this._seedManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsSeedManagedDiskTags()); set => this._seedManagedDiskTag = value; } /// Backing field for property. private string _selectedRecoveryAzureNetworkId; @@ -390,34 +390,34 @@ public partial class InMageAzureV2ReplicationDetails : public string SqlServerLicenseType { get => this._sqlServerLicenseType; set => this._sqlServerLicenseType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails[] _switchProviderBlockingErrorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails[] _switchProviderBlockingErrorDetail; /// The switch provider blocking error information. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get => this._switchProviderBlockingErrorDetail; set => this._switchProviderBlockingErrorDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get => this._switchProviderBlockingErrorDetail; set => this._switchProviderBlockingErrorDetail = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails _switchProviderDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails _switchProviderDetail; /// The switch provider blocking error information. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails SwitchProviderDetail { get => (this._switchProviderDetail = this._switchProviderDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderDetails()); set => this._switchProviderDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails SwitchProviderDetail { get => (this._switchProviderDetail = this._switchProviderDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderDetails()); set => this._switchProviderDetail = value; } /// The target appliance Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SwitchProviderDetailTargetApplianceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetApplianceId; } + public string SwitchProviderDetailTargetApplianceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetApplianceId; } /// The target fabric Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SwitchProviderDetailTargetFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetFabricId; } + public string SwitchProviderDetailTargetFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetFabricId; } /// The target resource Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SwitchProviderDetailTargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetResourceId; } + public string SwitchProviderDetailTargetResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetResourceId; } /// The target vault Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SwitchProviderDetailTargetVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetVaultId; } + public string SwitchProviderDetailTargetVaultId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)SwitchProviderDetail).TargetVaultId; } /// Backing field for property. private string _targetAvailabilityZone; @@ -427,18 +427,18 @@ public partial class InMageAzureV2ReplicationDetails : public string TargetAvailabilityZone { get => this._targetAvailabilityZone; set => this._targetAvailabilityZone = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags _targetManagedDiskTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags _targetManagedDiskTag; /// The tags for the target managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags TargetManagedDiskTag { get => (this._targetManagedDiskTag = this._targetManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetManagedDiskTags()); set => this._targetManagedDiskTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags TargetManagedDiskTag { get => (this._targetManagedDiskTag = this._targetManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetManagedDiskTags()); set => this._targetManagedDiskTag = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags _targetNicTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags _targetNicTag; /// The tags for the target NICs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetNicTags()); set => this._targetNicTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetNicTags()); set => this._targetNicTag = value; } /// Backing field for property. private string _targetProximityPlacementGroupId; @@ -458,11 +458,11 @@ public partial class InMageAzureV2ReplicationDetails : public string TargetVMId { get => this._targetVMId; set => this._targetVMId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags _targetVMTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags _targetVMTag; /// The target VM tags. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetVMTags()); set => this._targetVMTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetVMTags()); set => this._targetVMTag = value; } /// Backing field for property. private long? _totalDataTransferred; @@ -507,11 +507,11 @@ public partial class InMageAzureV2ReplicationDetails : public string VMId { get => this._vMId; set => this._vMId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] _vMNic; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] _vMNic; /// The PE Network details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } /// Backing field for property. private string _vMProtectionState; @@ -528,13 +528,13 @@ public partial class InMageAzureV2ReplicationDetails : public string VMProtectionStateDescription { get => this._vMProtectionStateDescription; set => this._vMProtectionStateDescription = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _validationError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _validationError; /// /// The validation errors of the on-premise machine Value can be list of validation errors. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ValidationError { get => this._validationError; set => this._validationError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ValidationError { get => this._validationError; set => this._validationError = value; } /// Backing field for property. private string _vhdName; @@ -564,7 +564,7 @@ public InMageAzureV2ReplicationDetails() /// InMageAzureV2 provider specific settings. public partial interface IInMageAzureV2ReplicationDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings { /// Agent expiry date. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -588,8 +588,8 @@ public partial interface IInMageAzureV2ReplicationDetails : ReadOnly = false, Description = @"Azure VM Disk details.", SerializedName = @"azureVMDiskDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails[] AzureVMDiskDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails[] AzureVMDiskDetail { get; set; } /// The target generation for this protected item. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -811,16 +811,16 @@ public partial interface IInMageAzureV2ReplicationDetails : ReadOnly = false, Description = @"The list of protected disks.", SerializedName = @"protectedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails[] ProtectedDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails[] ProtectedDisk { get; set; } /// The list of protected managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The list of protected managed disks.", SerializedName = @"protectedManagedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails[] ProtectedManagedDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails[] ProtectedManagedDisk { get; set; } /// The protection stage. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -910,8 +910,8 @@ public partial interface IInMageAzureV2ReplicationDetails : ReadOnly = false, Description = @"The tags for the seed managed disks.", SerializedName = @"seedManagedDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags SeedManagedDiskTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags SeedManagedDiskTag { get; set; } /// The selected recovery azure network Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -968,8 +968,8 @@ public partial interface IInMageAzureV2ReplicationDetails : ReadOnly = false, Description = @"The switch provider blocking error information.", SerializedName = @"switchProviderBlockingErrorDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get; set; } /// The target appliance Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -1016,16 +1016,16 @@ public partial interface IInMageAzureV2ReplicationDetails : ReadOnly = false, Description = @"The tags for the target managed disks.", SerializedName = @"targetManagedDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags TargetManagedDiskTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags TargetManagedDiskTag { get; set; } /// The tags for the target NICs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The tags for the target NICs.", SerializedName = @"targetNicTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags TargetNicTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags TargetNicTag { get; set; } /// The target proximity placement group Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -1051,8 +1051,8 @@ public partial interface IInMageAzureV2ReplicationDetails : ReadOnly = false, Description = @"The target VM tags.", SerializedName = @"targetVmTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags TargetVMTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags TargetVMTag { get; set; } /// The total transferred data in bytes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -1107,8 +1107,8 @@ public partial interface IInMageAzureV2ReplicationDetails : ReadOnly = false, Description = @"The PE Network details.", SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get; set; } /// The protection state for the vm. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -1133,8 +1133,8 @@ public partial interface IInMageAzureV2ReplicationDetails : ReadOnly = false, Description = @"The validation errors of the on-premise machine Value can be list of validation errors.", SerializedName = @"validationErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ValidationError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ValidationError { get; set; } /// The OS disk VHD name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -1147,14 +1147,14 @@ public partial interface IInMageAzureV2ReplicationDetails : } /// InMageAzureV2 provider specific settings. internal partial interface IInMageAzureV2ReplicationDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal { /// Agent expiry date. global::System.DateTime? AgentExpiryDate { get; set; } /// The agent version. string AgentVersion { get; set; } /// Azure VM Disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails[] AzureVMDiskDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails[] AzureVMDiskDetail { get; set; } /// The target generation for this protected item. string AzureVMGeneration { get; set; } /// The compressed data change rate in MB. @@ -1215,9 +1215,9 @@ internal partial interface IInMageAzureV2ReplicationDetailsInternal : /// The process server name. string ProcessServerName { get; set; } /// The list of protected disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails[] ProtectedDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails[] ProtectedDisk { get; set; } /// The list of protected managed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails[] ProtectedManagedDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails[] ProtectedManagedDisk { get; set; } /// The protection stage. string ProtectionStage { get; set; } /// The recovery availability set Id. @@ -1242,7 +1242,7 @@ internal partial interface IInMageAzureV2ReplicationDetailsInternal : /// The RPO in seconds. long? RpoInSecond { get; set; } /// The tags for the seed managed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags SeedManagedDiskTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags SeedManagedDiskTag { get; set; } /// The selected recovery azure network Id. string SelectedRecoveryAzureNetworkId { get; set; } /// @@ -1258,9 +1258,9 @@ internal partial interface IInMageAzureV2ReplicationDetailsInternal : /// The SQL Server license type. string SqlServerLicenseType { get; set; } /// The switch provider blocking error information. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get; set; } /// The switch provider blocking error information. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails SwitchProviderDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails SwitchProviderDetail { get; set; } /// The target appliance Id. string SwitchProviderDetailTargetApplianceId { get; set; } /// The target fabric Id. @@ -1272,9 +1272,9 @@ internal partial interface IInMageAzureV2ReplicationDetailsInternal : /// The target availability zone. string TargetAvailabilityZone { get; set; } /// The tags for the target managed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags TargetManagedDiskTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags TargetManagedDiskTag { get; set; } /// The tags for the target NICs. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags TargetNicTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags TargetNicTag { get; set; } /// The target proximity placement group Id. string TargetProximityPlacementGroupId { get; set; } /// @@ -1283,7 +1283,7 @@ internal partial interface IInMageAzureV2ReplicationDetailsInternal : /// string TargetVMId { get; set; } /// The target VM tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags TargetVMTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags TargetVMTag { get; set; } /// The total transferred data in bytes. long? TotalDataTransferred { get; set; } /// The progress health. @@ -1297,7 +1297,7 @@ internal partial interface IInMageAzureV2ReplicationDetailsInternal : /// The virtual machine Id. string VMId { get; set; } /// The PE Network details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get; set; } /// The protection state for the vm. string VMProtectionState { get; set; } /// The protection state description for the vm. @@ -1305,7 +1305,7 @@ internal partial interface IInMageAzureV2ReplicationDetailsInternal : /// /// The validation errors of the on-premise machine Value can be list of validation errors. /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ValidationError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ValidationError { get; set; } /// The OS disk VHD name. string VhdName { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetails.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetails.json.cs index b6d6553eb23a..ba132b3055a6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2ReplicationDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2ReplicationDetails(json) : null; } @@ -77,8 +77,8 @@ internal InMageAzureV2ReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(json); - {_switchProviderDetail = If( json?.PropertyT("switchProviderDetails"), out var __jsonSwitchProviderDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderDetails.FromJson(__jsonSwitchProviderDetails) : SwitchProviderDetail;} + __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(json); + {_switchProviderDetail = If( json?.PropertyT("switchProviderDetails"), out var __jsonSwitchProviderDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderDetails.FromJson(__jsonSwitchProviderDetails) : SwitchProviderDetail;} {_infrastructureVMId = If( json?.PropertyT("infrastructureVmId"), out var __jsonInfrastructureVMId) ? (string)__jsonInfrastructureVMId : (string)InfrastructureVMId;} {_vCenterInfrastructureId = If( json?.PropertyT("vCenterInfrastructureId"), out var __jsonVCenterInfrastructureId) ? (string)__jsonVCenterInfrastructureId : (string)VCenterInfrastructureId;} {_protectionStage = If( json?.PropertyT("protectionStage"), out var __jsonProtectionStage) ? (string)__jsonProtectionStage : (string)ProtectionStage;} @@ -100,7 +100,7 @@ internal InMageAzureV2ReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migr {_multiVMGroupId = If( json?.PropertyT("multiVmGroupId"), out var __jsonMultiVMGroupId) ? (string)__jsonMultiVMGroupId : (string)MultiVMGroupId;} {_multiVMGroupName = If( json?.PropertyT("multiVmGroupName"), out var __jsonMultiVMGroupName) ? (string)__jsonMultiVMGroupName : (string)MultiVMGroupName;} {_multiVMSyncStatus = If( json?.PropertyT("multiVmSyncStatus"), out var __jsonMultiVMSyncStatus) ? (string)__jsonMultiVMSyncStatus : (string)MultiVMSyncStatus;} - {_protectedDisk = If( json?.PropertyT("protectedDisks"), out var __jsonProtectedDisks) ? If( __jsonProtectedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2ProtectedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ProtectedDiskDetails.FromJson(__u) )) ))() : null : ProtectedDisk;} + {_protectedDisk = If( json?.PropertyT("protectedDisks"), out var __jsonProtectedDisks) ? If( __jsonProtectedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IInMageAzureV2ProtectedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ProtectedDiskDetails.FromJson(__u) )) ))() : null : ProtectedDisk;} {_diskResized = If( json?.PropertyT("diskResized"), out var __jsonDiskResized) ? (string)__jsonDiskResized : (string)DiskResized;} {_masterTargetId = If( json?.PropertyT("masterTargetId"), out var __jsonMasterTargetId) ? (string)__jsonMasterTargetId : (string)MasterTargetId;} {_sourceVMCpuCount = If( json?.PropertyT("sourceVmCpuCount"), out var __jsonSourceVMCpuCount) ? (int?)__jsonSourceVMCpuCount : SourceVMCpuCount;} @@ -108,12 +108,12 @@ internal InMageAzureV2ReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migr {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType;} {_vhdName = If( json?.PropertyT("vhdName"), out var __jsonVhdName) ? (string)__jsonVhdName : (string)VhdName;} {_oSDiskId = If( json?.PropertyT("osDiskId"), out var __jsonOSDiskId) ? (string)__jsonOSDiskId : (string)OSDiskId;} - {_azureVMDiskDetail = If( json?.PropertyT("azureVMDiskDetails"), out var __jsonAzureVMDiskDetails) ? If( __jsonAzureVMDiskDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAzureVMDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AzureVMDiskDetails.FromJson(__p) )) ))() : null : AzureVMDiskDetail;} + {_azureVMDiskDetail = If( json?.PropertyT("azureVMDiskDetails"), out var __jsonAzureVMDiskDetails) ? If( __jsonAzureVMDiskDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAzureVMDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AzureVMDiskDetails.FromJson(__p) )) ))() : null : AzureVMDiskDetail;} {_recoveryAzureVMName = If( json?.PropertyT("recoveryAzureVMName"), out var __jsonRecoveryAzureVMName) ? (string)__jsonRecoveryAzureVMName : (string)RecoveryAzureVMName;} {_recoveryAzureVMSize = If( json?.PropertyT("recoveryAzureVMSize"), out var __jsonRecoveryAzureVMSize) ? (string)__jsonRecoveryAzureVMSize : (string)RecoveryAzureVMSize;} {_recoveryAzureStorageAccount = If( json?.PropertyT("recoveryAzureStorageAccount"), out var __jsonRecoveryAzureStorageAccount) ? (string)__jsonRecoveryAzureStorageAccount : (string)RecoveryAzureStorageAccount;} {_recoveryAzureLogStorageAccountId = If( json?.PropertyT("recoveryAzureLogStorageAccountId"), out var __jsonRecoveryAzureLogStorageAccountId) ? (string)__jsonRecoveryAzureLogStorageAccountId : (string)RecoveryAzureLogStorageAccountId;} - {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetails.FromJson(__k) )) ))() : null : VMNic;} + {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetails.FromJson(__k) )) ))() : null : VMNic;} {_selectedRecoveryAzureNetworkId = If( json?.PropertyT("selectedRecoveryAzureNetworkId"), out var __jsonSelectedRecoveryAzureNetworkId) ? (string)__jsonSelectedRecoveryAzureNetworkId : (string)SelectedRecoveryAzureNetworkId;} {_selectedTfoAzureNetworkId = If( json?.PropertyT("selectedTfoAzureNetworkId"), out var __jsonSelectedTfoAzureNetworkId) ? (string)__jsonSelectedTfoAzureNetworkId : (string)SelectedTfoAzureNetworkId;} {_selectedSourceNicId = If( json?.PropertyT("selectedSourceNicId"), out var __jsonSelectedSourceNicId) ? (string)__jsonSelectedSourceNicId : (string)SelectedSourceNicId;} @@ -128,23 +128,23 @@ internal InMageAzureV2ReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migr {_useManagedDisk = If( json?.PropertyT("useManagedDisks"), out var __jsonUseManagedDisks) ? (string)__jsonUseManagedDisks : (string)UseManagedDisk;} {_licenseType = If( json?.PropertyT("licenseType"), out var __jsonLicenseType) ? (string)__jsonLicenseType : (string)LicenseType;} {_sqlServerLicenseType = If( json?.PropertyT("sqlServerLicenseType"), out var __jsonSqlServerLicenseType) ? (string)__jsonSqlServerLicenseType : (string)SqlServerLicenseType;} - {_validationError = If( json?.PropertyT("validationErrors"), out var __jsonValidationErrors) ? If( __jsonValidationErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __b) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__b, (__a)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__a) )) ))() : null : ValidationError;} + {_validationError = If( json?.PropertyT("validationErrors"), out var __jsonValidationErrors) ? If( __jsonValidationErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __b) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__b, (__a)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__a) )) ))() : null : ValidationError;} {_lastRpoCalculatedTime = If( json?.PropertyT("lastRpoCalculatedTime"), out var __jsonLastRpoCalculatedTime) ? global::System.DateTime.TryParse((string)__jsonLastRpoCalculatedTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastRpoCalculatedTimeValue) ? __jsonLastRpoCalculatedTimeValue : LastRpoCalculatedTime : LastRpoCalculatedTime;} {_lastUpdateReceivedTime = If( json?.PropertyT("lastUpdateReceivedTime"), out var __jsonLastUpdateReceivedTime) ? global::System.DateTime.TryParse((string)__jsonLastUpdateReceivedTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastUpdateReceivedTimeValue) ? __jsonLastUpdateReceivedTimeValue : LastUpdateReceivedTime : LastUpdateReceivedTime;} {_replicaId = If( json?.PropertyT("replicaId"), out var __jsonReplicaId) ? (string)__jsonReplicaId : (string)ReplicaId;} {_oSVersion = If( json?.PropertyT("osVersion"), out var __jsonOSVersion) ? (string)__jsonOSVersion : (string)OSVersion;} - {_protectedManagedDisk = If( json?.PropertyT("protectedManagedDisks"), out var __jsonProtectedManagedDisks) ? If( __jsonProtectedManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(___w, (___v)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ManagedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ManagedDiskDetails.FromJson(___v) )) ))() : null : ProtectedManagedDisk;} + {_protectedManagedDisk = If( json?.PropertyT("protectedManagedDisks"), out var __jsonProtectedManagedDisks) ? If( __jsonProtectedManagedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(___w, (___v)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ManagedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ManagedDiskDetails.FromJson(___v) )) ))() : null : ProtectedManagedDisk;} {_lastRecoveryPointReceived = If( json?.PropertyT("lastRecoveryPointReceived"), out var __jsonLastRecoveryPointReceived) ? global::System.DateTime.TryParse((string)__jsonLastRecoveryPointReceived, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastRecoveryPointReceivedValue) ? __jsonLastRecoveryPointReceivedValue : LastRecoveryPointReceived : LastRecoveryPointReceived;} {_firmwareType = If( json?.PropertyT("firmwareType"), out var __jsonFirmwareType) ? (string)__jsonFirmwareType : (string)FirmwareType;} {_azureVMGeneration = If( json?.PropertyT("azureVmGeneration"), out var __jsonAzureVMGeneration) ? (string)__jsonAzureVMGeneration : (string)AzureVMGeneration;} {_isAdditionalStatsAvailable = If( json?.PropertyT("isAdditionalStatsAvailable"), out var __jsonIsAdditionalStatsAvailable) ? (bool?)__jsonIsAdditionalStatsAvailable : IsAdditionalStatsAvailable;} {_totalDataTransferred = If( json?.PropertyT("totalDataTransferred"), out var __jsonTotalDataTransferred) ? (long?)__jsonTotalDataTransferred : TotalDataTransferred;} {_totalProgressHealth = If( json?.PropertyT("totalProgressHealth"), out var __jsonTotalProgressHealth) ? (string)__jsonTotalProgressHealth : (string)TotalProgressHealth;} - {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetVMTags.FromJson(__jsonTargetVMTags) : TargetVMTag;} - {_seedManagedDiskTag = If( json?.PropertyT("seedManagedDiskTags"), out var __jsonSeedManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsSeedManagedDiskTags.FromJson(__jsonSeedManagedDiskTags) : SeedManagedDiskTag;} - {_targetManagedDiskTag = If( json?.PropertyT("targetManagedDiskTags"), out var __jsonTargetManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetManagedDiskTags.FromJson(__jsonTargetManagedDiskTags) : TargetManagedDiskTag;} - {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} - {_switchProviderBlockingErrorDetail = If( json?.PropertyT("switchProviderBlockingErrorDetails"), out var __jsonSwitchProviderBlockingErrorDetails) ? If( __jsonSwitchProviderBlockingErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var ___r) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(___r, (___q)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetails.FromJson(___q) )) ))() : null : SwitchProviderBlockingErrorDetail;} + {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetVMTags.FromJson(__jsonTargetVMTags) : TargetVMTag;} + {_seedManagedDiskTag = If( json?.PropertyT("seedManagedDiskTags"), out var __jsonSeedManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsSeedManagedDiskTags.FromJson(__jsonSeedManagedDiskTags) : SeedManagedDiskTag;} + {_targetManagedDiskTag = If( json?.PropertyT("targetManagedDiskTags"), out var __jsonTargetManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetManagedDiskTags.FromJson(__jsonTargetManagedDiskTags) : TargetManagedDiskTag;} + {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} + {_switchProviderBlockingErrorDetail = If( json?.PropertyT("switchProviderBlockingErrorDetails"), out var __jsonSwitchProviderBlockingErrorDetails) ? If( __jsonSwitchProviderBlockingErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var ___r) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(___r, (___q)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetails.FromJson(___q) )) ))() : null : SwitchProviderBlockingErrorDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.PowerShell.cs index bc0e255098aa..635d1fc6478e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2ReplicationDetailsSeedManagedDiskTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2ReplicationDetailsSeedManagedDiskTags(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.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2ReplicationDetailsSeedManagedDiskTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageAzureV2ReplicationDetailsSeedManagedDiskTags(global::System.Colle } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.TypeConverter.cs index dfb5d03aeb42..70c2d46cad5a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.cs index 5a7a458ac879..82f0a0dbb04d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the seed managed disks. public partial class InMageAzureV2ReplicationDetailsSeedManagedDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.dictionary.cs index 83e3dc1a7c4e..4aef7e09acec 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsSeedManagedDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsSeedManagedDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.json.cs index a12540d45bee..614ac93f1c15 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsSeedManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2ReplicationDetailsSeedManagedDiskTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsSeedManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2ReplicationDetailsSeedManagedDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.PowerShell.cs index 19bc094cc73c..4d3e0b5d4137 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2ReplicationDetailsTargetManagedDiskTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2ReplicationDetailsTargetManagedDiskTags(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.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2ReplicationDetailsTargetManagedDiskTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageAzureV2ReplicationDetailsTargetManagedDiskTags(global::System.Col } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.TypeConverter.cs index 3269b4a91223..cea3885b8efb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.cs index 0fde1cee5013..5d2ff4a85e7c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target managed disks. public partial class InMageAzureV2ReplicationDetailsTargetManagedDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.dictionary.cs index 3d9732afbdab..c71ea7c32237 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetManagedDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetManagedDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.json.cs index c3bfaeeae724..0ba412ee676c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2ReplicationDetailsTargetManagedDiskTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2ReplicationDetailsTargetManagedDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.PowerShell.cs index 1f32684a398e..8454ea505d88 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2ReplicationDetailsTargetNicTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2ReplicationDetailsTargetNicTags(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.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2ReplicationDetailsTargetNicTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageAzureV2ReplicationDetailsTargetNicTags(global::System.Collections } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.TypeConverter.cs index ec45db1ebed7..b60f2a4522d9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.cs index d470a0ab16e7..2279b72031c6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target NICs. public partial class InMageAzureV2ReplicationDetailsTargetNicTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.dictionary.cs index 883ea5d718b6..faae3b055b72 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetNicTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetNicTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.json.cs index 46700812f495..7d6515d7f999 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetNicTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2ReplicationDetailsTargetNicTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2ReplicationDetailsTargetNicTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.PowerShell.cs index f85e6a5ffa1d..a40827b5d1bc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2ReplicationDetailsTargetVMTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2ReplicationDetailsTargetVMTags(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.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2ReplicationDetailsTargetVMTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageAzureV2ReplicationDetailsTargetVMTags(global::System.Collections. } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.TypeConverter.cs index 2b12d29e94ef..5c9d5acfab4f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.cs index c655867bed47..36deb2d5bfdb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The target VM tags. public partial class InMageAzureV2ReplicationDetailsTargetVMTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.dictionary.cs index 3c27a2f9fa0b..c4d555fca070 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2ReplicationDetailsTargetVMTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2ReplicationDetailsTargetVMTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.json.cs index 1692afc8bf16..1dfb8b08de2e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReplicationDetailsTargetVMTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReplicationDetailsTargetVMTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2ReplicationDetailsTargetVMTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReplicationDetailsTargetVMTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReplicationDetailsTargetVMTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2ReplicationDetailsTargetVMTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReprotectInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReprotectInput.PowerShell.cs new file mode 100644 index 000000000000..703bda56a92a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReprotectInput.PowerShell.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageAzureV2 specific provider input. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ReprotectInputTypeConverter))] + public partial class InMageAzureV2ReprotectInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageAzureV2ReprotectInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageAzureV2ReprotectInput(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.Migrate.Models.Api202301.IInMageAzureV2ReprotectInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageAzureV2ReprotectInput(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.Migrate.Models.Api202301.IInMageAzureV2ReprotectInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageAzureV2ReprotectInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MasterTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).MasterTargetId, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).StorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DisksToInclude")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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 InMageAzureV2ReprotectInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MasterTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).MasterTargetId, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).StorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DisksToInclude")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageAzureV2 specific provider input. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2ReprotectInputTypeConverter))] + public partial interface IInMageAzureV2ReprotectInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReprotectInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReprotectInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReprotectInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReprotectInput.TypeConverter.cs index 9357827f5483..e2ba99eb605d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReprotectInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReprotectInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReprotectInput.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReprotectInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReprotectInput.cs index c649c2f72fcc..91588454c0de 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReprotectInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageAzureV2 specific provider input. public partial class InMageAzureV2ReprotectInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput(); /// Backing field for property. private string[] _disksToInclude; @@ -28,7 +28,7 @@ public partial class InMageAzureV2ReprotectInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _logStorageAccountId; @@ -93,7 +93,7 @@ public InMageAzureV2ReprotectInput() /// InMageAzureV2 specific provider input. public partial interface IInMageAzureV2ReprotectInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput { /// The disks to include list. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -155,7 +155,7 @@ public partial interface IInMageAzureV2ReprotectInput : } /// InMageAzureV2 specific provider input. internal partial interface IInMageAzureV2ReprotectInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal { /// The disks to include list. string[] DisksToInclude { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReprotectInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReprotectInput.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReprotectInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReprotectInput.json.cs index bfa28b73905c..8cb00eb8aea2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2ReprotectInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2ReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2ReprotectInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2ReprotectInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2ReprotectInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2ReprotectInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageAzureV2ReprotectInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput(json); + __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput(json); {_masterTargetId = If( json?.PropertyT("masterTargetId"), out var __jsonMasterTargetId) ? (string)__jsonMasterTargetId : (string)MasterTargetId;} {_processServerId = If( json?.PropertyT("processServerId"), out var __jsonProcessServerId) ? (string)__jsonProcessServerId : (string)ProcessServerId;} {_storageAccountId = If( json?.PropertyT("storageAccountId"), out var __jsonStorageAccountId) ? (string)__jsonStorageAccountId : (string)StorageAccountId;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetails.PowerShell.cs new file mode 100644 index 000000000000..107ff9e48282 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetails.PowerShell.cs @@ -0,0 +1,189 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageAzureV2 switch provider blocking error details. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2SwitchProviderBlockingErrorDetailsTypeConverter))] + public partial class InMageAzureV2SwitchProviderBlockingErrorDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageAzureV2SwitchProviderBlockingErrorDetails(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.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageAzureV2SwitchProviderBlockingErrorDetails(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.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageAzureV2SwitchProviderBlockingErrorDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessageParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); + } + if (content.Contains("ErrorTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTagsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageAzureV2SwitchProviderBlockingErrorDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessageParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); + } + if (content.Contains("ErrorTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTagsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageAzureV2 switch provider blocking error details. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2SwitchProviderBlockingErrorDetailsTypeConverter))] + public partial interface IInMageAzureV2SwitchProviderBlockingErrorDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetails.TypeConverter.cs index 1b9f59c948ca..517e01d77b49 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetails.cs new file mode 100644 index 000000000000..13ea36871dfc --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetails.cs @@ -0,0 +1,156 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// InMageAzureV2 switch provider blocking error details. + public partial class InMageAzureV2SwitchProviderBlockingErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal + { + + /// Backing field for property. + private string _errorCode; + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ErrorCode { get => this._errorCode; } + + /// Backing field for property. + private string _errorMessage; + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ErrorMessage { get => this._errorMessage; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters _errorMessageParameter; + + /// The error message parameters. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters()); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags _errorTag; + + /// The error tags. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags()); } + + /// Internal Acessors for ErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal.ErrorCode { get => this._errorCode; set { {_errorCode = value;} } } + + /// Internal Acessors for ErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal.ErrorMessage { get => this._errorMessage; set { {_errorMessage = value;} } } + + /// Internal Acessors for ErrorMessageParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal.ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters()); set { {_errorMessageParameter = value;} } } + + /// Internal Acessors for ErrorTag + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal.ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags()); set { {_errorTag = value;} } } + + /// Internal Acessors for PossibleCaus + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal.PossibleCaus { get => this._possibleCaus; set { {_possibleCaus = value;} } } + + /// Internal Acessors for RecommendedAction + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal.RecommendedAction { get => this._recommendedAction; set { {_recommendedAction = value;} } } + + /// Backing field for property. + private string _possibleCaus; + + /// The possible causes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PossibleCaus { get => this._possibleCaus; } + + /// Backing field for property. + private string _recommendedAction; + + /// The recommended action. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecommendedAction { get => this._recommendedAction; } + + /// + /// Creates an new instance. + /// + public InMageAzureV2SwitchProviderBlockingErrorDetails() + { + + } + } + /// InMageAzureV2 switch provider blocking error details. + public partial interface IInMageAzureV2SwitchProviderBlockingErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error code.", + SerializedName = @"errorCode", + PossibleTypes = new [] { typeof(string) })] + string ErrorCode { get; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message.", + SerializedName = @"errorMessage", + PossibleTypes = new [] { typeof(string) })] + string ErrorMessage { get; } + /// The error message parameters. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message parameters.", + SerializedName = @"errorMessageParameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; } + /// The error tags. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error tags.", + SerializedName = @"errorTags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get; } + /// The possible causes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The possible causes.", + SerializedName = @"possibleCauses", + PossibleTypes = new [] { typeof(string) })] + string PossibleCaus { get; } + /// The recommended action. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The recommended action.", + SerializedName = @"recommendedAction", + PossibleTypes = new [] { typeof(string) })] + string RecommendedAction { get; } + + } + /// InMageAzureV2 switch provider blocking error details. + internal partial interface IInMageAzureV2SwitchProviderBlockingErrorDetailsInternal + + { + /// The error code. + string ErrorCode { get; set; } + /// The error message. + string ErrorMessage { get; set; } + /// The error message parameters. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; set; } + /// The error tags. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get; set; } + /// The possible causes. + string PossibleCaus { get; set; } + /// The recommended action. + string RecommendedAction { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetails.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetails.json.cs index 39c821ed9e86..c883462d5e2e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2SwitchProviderBlockingErrorDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2SwitchProviderBlockingErrorDetails(json) : null; } @@ -82,8 +82,8 @@ internal InMageAzureV2SwitchProviderBlockingErrorDetails(Microsoft.Azure.PowerSh {_errorMessage = If( json?.PropertyT("errorMessage"), out var __jsonErrorMessage) ? (string)__jsonErrorMessage : (string)ErrorMessage;} {_possibleCaus = If( json?.PropertyT("possibleCauses"), out var __jsonPossibleCauses) ? (string)__jsonPossibleCauses : (string)PossibleCaus;} {_recommendedAction = If( json?.PropertyT("recommendedAction"), out var __jsonRecommendedAction) ? (string)__jsonRecommendedAction : (string)RecommendedAction;} - {_errorMessageParameter = If( json?.PropertyT("errorMessageParameters"), out var __jsonErrorMessageParameters) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.FromJson(__jsonErrorMessageParameters) : ErrorMessageParameter;} - {_errorTag = If( json?.PropertyT("errorTags"), out var __jsonErrorTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.FromJson(__jsonErrorTags) : ErrorTag;} + {_errorMessageParameter = If( json?.PropertyT("errorMessageParameters"), out var __jsonErrorMessageParameters) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.FromJson(__jsonErrorMessageParameters) : ErrorMessageParameter;} + {_errorTag = If( json?.PropertyT("errorTags"), out var __jsonErrorTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.FromJson(__jsonErrorTags) : ErrorTag;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs index c6ff9d9aba1b..7266d0f93c81 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessage partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters(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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters(g } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs index 9bd9cb08fd99..095a91ed083b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if /// there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.cs index cdd752638afd..1d1b29bd58e4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The error message parameters. public partial class InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParametersInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs index aba4035f21bc..bc4bdfe721be 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs index 615f227e83e3..5bb620b46a3c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessage partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2SwitchProviderBlockingErrorDetailsErrorMessageParameters(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs index b4749f418ca3..4a5f98438c5e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags(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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags(global::System } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs index 9fc4b0c762f9..75f9f9e58133 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no /// suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.cs index 23d8746ac626..b7d741e9f68a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The error tags. public partial class InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs index 36da06a68397..60dae0727f69 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.json.cs index 0ca1880a042b..a99061398266 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2SwitchProviderBlockingErrorDetailsErrorTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderDetails.PowerShell.cs new file mode 100644 index 000000000000..eae3d76717f2 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderDetails.PowerShell.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageAzureV2 switch provider details. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2SwitchProviderDetailsTypeConverter))] + public partial class InMageAzureV2SwitchProviderDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageAzureV2SwitchProviderDetails(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.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageAzureV2SwitchProviderDetails(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.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageAzureV2SwitchProviderDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetVaultId = (string) content.GetValueForProperty("TargetVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetVaultId, global::System.Convert.ToString); + } + if (content.Contains("TargetResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetResourceId, global::System.Convert.ToString); + } + if (content.Contains("TargetFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetFabricId = (string) content.GetValueForProperty("TargetFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetFabricId, global::System.Convert.ToString); + } + if (content.Contains("TargetApplianceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetApplianceId, 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 InMageAzureV2SwitchProviderDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetVaultId = (string) content.GetValueForProperty("TargetVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetVaultId, global::System.Convert.ToString); + } + if (content.Contains("TargetResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetResourceId = (string) content.GetValueForProperty("TargetResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetResourceId, global::System.Convert.ToString); + } + if (content.Contains("TargetFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetFabricId = (string) content.GetValueForProperty("TargetFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetFabricId, global::System.Convert.ToString); + } + if (content.Contains("TargetApplianceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal)this).TargetApplianceId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageAzureV2 switch provider details. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2SwitchProviderDetailsTypeConverter))] + public partial interface IInMageAzureV2SwitchProviderDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderDetails.TypeConverter.cs index 956e8119eb33..4b964d815dc5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderDetails.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderDetails.cs index 07e691a5e658..2ecb4f2a3b40 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderDetails.cs @@ -3,27 +3,27 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageAzureV2 switch provider details. public partial class InMageAzureV2SwitchProviderDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal { /// Internal Acessors for TargetApplianceId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal.TargetApplianceId { get => this._targetApplianceId; set { {_targetApplianceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal.TargetApplianceId { get => this._targetApplianceId; set { {_targetApplianceId = value;} } } /// Internal Acessors for TargetFabricId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal.TargetFabricId { get => this._targetFabricId; set { {_targetFabricId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal.TargetFabricId { get => this._targetFabricId; set { {_targetFabricId = value;} } } /// Internal Acessors for TargetResourceId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal.TargetResourceId { get => this._targetResourceId; set { {_targetResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal.TargetResourceId { get => this._targetResourceId; set { {_targetResourceId = value;} } } /// Internal Acessors for TargetVaultId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetailsInternal.TargetVaultId { get => this._targetVaultId; set { {_targetVaultId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetailsInternal.TargetVaultId { get => this._targetVaultId; set { {_targetVaultId = value;} } } /// Backing field for property. private string _targetApplianceId; diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderDetails.json.cs index cae7ed68aa23..7e70561984d4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2SwitchProviderDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2SwitchProviderDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderInput.PowerShell.cs new file mode 100644 index 000000000000..ad5088b14361 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderInput.PowerShell.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Provider specific input for InMageAzureV2 switch provider. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2SwitchProviderInputTypeConverter))] + public partial class InMageAzureV2SwitchProviderInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageAzureV2SwitchProviderInput(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.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageAzureV2SwitchProviderInput(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.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageAzureV2SwitchProviderInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInputInternal)this).TargetVaultId = (string) content.GetValueForProperty("TargetVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInputInternal)this).TargetVaultId, global::System.Convert.ToString); + } + if (content.Contains("TargetFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInputInternal)this).TargetFabricId = (string) content.GetValueForProperty("TargetFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInputInternal)this).TargetFabricId, global::System.Convert.ToString); + } + if (content.Contains("TargetApplianceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInputInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInputInternal)this).TargetApplianceId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInputInternal)this).InstanceType, 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 InMageAzureV2SwitchProviderInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInputInternal)this).TargetVaultId = (string) content.GetValueForProperty("TargetVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInputInternal)this).TargetVaultId, global::System.Convert.ToString); + } + if (content.Contains("TargetFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInputInternal)this).TargetFabricId = (string) content.GetValueForProperty("TargetFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInputInternal)this).TargetFabricId, global::System.Convert.ToString); + } + if (content.Contains("TargetApplianceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInputInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInputInternal)this).TargetApplianceId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Provider specific input for InMageAzureV2 switch provider. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2SwitchProviderInputTypeConverter))] + public partial interface IInMageAzureV2SwitchProviderInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderInput.TypeConverter.cs index 7b2f670216a5..112d9ced6918 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderInput.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderInput.cs index 89c0b287376a..bac877f2c778 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific input for InMageAzureV2 switch provider. public partial class InMageAzureV2SwitchProviderInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput __switchProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput __switchProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInputInternal)__switchProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInputInternal)__switchProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInputInternal)__switchProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInputInternal)__switchProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _targetApplianceId; @@ -65,7 +65,7 @@ public InMageAzureV2SwitchProviderInput() /// Provider specific input for InMageAzureV2 switch provider. public partial interface IInMageAzureV2SwitchProviderInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput { /// The target appliance Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -95,7 +95,7 @@ public partial interface IInMageAzureV2SwitchProviderInput : } /// Provider specific input for InMageAzureV2 switch provider. internal partial interface IInMageAzureV2SwitchProviderInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInputInternal { /// The target appliance Id. string TargetApplianceId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderInput.json.cs index bf1468476b38..8fd14c9550b3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2SwitchProviderInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2SwitchProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2SwitchProviderInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2SwitchProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2SwitchProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2SwitchProviderInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageAzureV2SwitchProviderInput(Microsoft.Azure.PowerShell.Cmdlets.Mig { return; } - __switchProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderSpecificInput(json); + __switchProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderSpecificInput(json); {_targetVaultId = If( json?.PropertyT("targetVaultID"), out var __jsonTargetVaultId) ? (string)__jsonTargetVaultId : (string)TargetVaultId;} {_targetFabricId = If( json?.PropertyT("targetFabricID"), out var __jsonTargetFabricId) ? (string)__jsonTargetFabricId : (string)TargetFabricId;} {_targetApplianceId = If( json?.PropertyT("targetApplianceID"), out var __jsonTargetApplianceId) ? (string)__jsonTargetApplianceId : (string)TargetApplianceId;} diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2TestFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2TestFailoverInput.PowerShell.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2TestFailoverInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2TestFailoverInput.PowerShell.cs index ec8781fb750f..46e028328124 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2TestFailoverInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2TestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2TestFailoverInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2TestFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2TestFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2TestFailoverInput(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.Migrate.Models.Api20220501.IInMageAzureV2TestFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2TestFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2TestFailoverInput(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2TestFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2TestFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,17 +105,17 @@ internal InMageAzureV2TestFailoverInput(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2TestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2TestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2TestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2TestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType, 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. @@ -130,11 +130,11 @@ internal InMageAzureV2TestFailoverInput(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2TestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2TestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2TestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2TestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2TestFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2TestFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2TestFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2TestFailoverInput.TypeConverter.cs index 701389a554d3..fea2d6f05691 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2TestFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2TestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2TestFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2TestFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2TestFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2TestFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2TestFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2TestFailoverInput.cs similarity index 84% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2TestFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2TestFailoverInput.cs index 708b22594ec2..ea1165af7e45 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2TestFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2TestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageAzureV2 provider specific input for test failover. public partial class InMageAzureV2TestFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2TestFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2TestFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2TestFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2TestFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _recoveryPointId; @@ -54,7 +54,7 @@ public InMageAzureV2TestFailoverInput() /// InMageAzureV2 provider specific input for test failover. public partial interface IInMageAzureV2TestFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput { /// /// The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, @@ -71,7 +71,7 @@ public partial interface IInMageAzureV2TestFailoverInput : } /// InMageAzureV2 provider specific input for test failover. internal partial interface IInMageAzureV2TestFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal { /// /// The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2TestFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2TestFailoverInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2TestFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2TestFailoverInput.json.cs index d5addef39002..3e7fdcb79abf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2TestFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2TestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2TestFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2TestFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2TestFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2TestFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2TestFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2TestFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2TestFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2TestFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageAzureV2TestFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput(json); + __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput(json); {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UnplannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UnplannedFailoverInput.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UnplannedFailoverInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UnplannedFailoverInput.PowerShell.cs index 105f10049448..9f2b1acac68f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UnplannedFailoverInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2UnplannedFailoverInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2UnplannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UnplannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2UnplannedFailoverInput(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.Migrate.Models.Api20220501.IInMageAzureV2UnplannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UnplannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2UnplannedFailoverInput(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UnplannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UnplannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,17 +107,17 @@ internal InMageAzureV2UnplannedFailoverInput(global::System.Collections.IDiction // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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,11 +132,11 @@ internal InMageAzureV2UnplannedFailoverInput(global::System.Management.Automatio // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UnplannedFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UnplannedFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UnplannedFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UnplannedFailoverInput.TypeConverter.cs index 2a5829caba8a..a200bee19fb6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UnplannedFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageAzureV2UnplannedFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UnplannedFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UnplannedFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UnplannedFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UnplannedFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UnplannedFailoverInput.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UnplannedFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UnplannedFailoverInput.cs index b401dab795a4..519d018171ee 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UnplannedFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageAzureV2 provider specific input for unplanned failover. public partial class InMageAzureV2UnplannedFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UnplannedFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UnplannedFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UnplannedFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UnplannedFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _recoveryPointId; @@ -54,7 +54,7 @@ public InMageAzureV2UnplannedFailoverInput() /// InMageAzureV2 provider specific input for unplanned failover. public partial interface IInMageAzureV2UnplannedFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput { /// /// The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null @@ -71,7 +71,7 @@ public partial interface IInMageAzureV2UnplannedFailoverInput : } /// InMageAzureV2 provider specific input for unplanned failover. internal partial interface IInMageAzureV2UnplannedFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal { /// /// The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UnplannedFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UnplannedFailoverInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UnplannedFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UnplannedFailoverInput.json.cs index 487abbbf81f5..3c9e781ebac5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UnplannedFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2UnplannedFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UnplannedFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UnplannedFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UnplannedFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UnplannedFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UnplannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UnplannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2UnplannedFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageAzureV2UnplannedFailoverInput(Microsoft.Azure.PowerShell.Cmdlets. { return; } - __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput(json); + __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput(json); {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInput.PowerShell.cs new file mode 100644 index 000000000000..062f8feb021c --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInput.PowerShell.cs @@ -0,0 +1,229 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMage Azure V2 input to update replication protected item. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2UpdateReplicationProtectedItemInputTypeConverter))] + public partial class InMageAzureV2UpdateReplicationProtectedItemInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageAzureV2UpdateReplicationProtectedItemInput(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.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageAzureV2UpdateReplicationProtectedItemInput(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.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageAzureV2UpdateReplicationProtectedItemInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryAzureV1ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureV2ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("UseManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).UseManagedDisk, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateDiskInputTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, 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 InMageAzureV2UpdateReplicationProtectedItemInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryAzureV1ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV1ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV1ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureV2ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId = (string) content.GetValueForProperty("RecoveryAzureV2ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).RecoveryAzureV2ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("UseManagedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).UseManagedDisk = (string) content.GetValueForProperty("UseManagedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).UseManagedDisk, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetManagedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags) content.GetValueForProperty("TargetManagedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetManagedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateDiskInputTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMage Azure V2 input to update replication protected item. + [System.ComponentModel.TypeConverter(typeof(InMageAzureV2UpdateReplicationProtectedItemInputTypeConverter))] + public partial interface IInMageAzureV2UpdateReplicationProtectedItemInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInput.TypeConverter.cs index 05132de0b778..2eafa6038c70 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInput.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInput.cs index 03c04aeaa0fa..1dc903b3eb1f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMage Azure V2 input to update replication protected item. public partial class InMageAzureV2UpdateReplicationProtectedItemInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType = value ; } /// Backing field for property. private string _recoveryAzureV1ResourceGroupId; @@ -52,18 +52,18 @@ public partial class InMageAzureV2UpdateReplicationProtectedItemInput : public string TargetAvailabilityZone { get => this._targetAvailabilityZone; set => this._targetAvailabilityZone = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags _targetManagedDiskTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags _targetManagedDiskTag; /// The tags for the target managed disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags TargetManagedDiskTag { get => (this._targetManagedDiskTag = this._targetManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags()); set => this._targetManagedDiskTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags TargetManagedDiskTag { get => (this._targetManagedDiskTag = this._targetManagedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags()); set => this._targetManagedDiskTag = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags _targetNicTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags _targetNicTag; /// The tags for the target NICs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags()); set => this._targetNicTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags()); set => this._targetNicTag = value; } /// Backing field for property. private string _targetProximityPlacementGroupId; @@ -73,11 +73,11 @@ public partial class InMageAzureV2UpdateReplicationProtectedItemInput : public string TargetProximityPlacementGroupId { get => this._targetProximityPlacementGroupId; set => this._targetProximityPlacementGroupId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags _targetVMTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags _targetVMTag; /// The target VM tags. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags()); set => this._targetVMTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags()); set => this._targetVMTag = value; } /// Backing field for property. private string _useManagedDisk; @@ -87,11 +87,11 @@ public partial class InMageAzureV2UpdateReplicationProtectedItemInput : public string UseManagedDisk { get => this._useManagedDisk; set => this._useManagedDisk = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput[] _vMDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput[] _vMDisk; /// The list of disk update properties. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } /// /// Creates an new instance. @@ -116,7 +116,7 @@ public InMageAzureV2UpdateReplicationProtectedItemInput() /// InMage Azure V2 input to update replication protected item. public partial interface IInMageAzureV2UpdateReplicationProtectedItemInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput { /// The recovery Azure resource group Id for classic deployment. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -156,16 +156,16 @@ public partial interface IInMageAzureV2UpdateReplicationProtectedItemInput : ReadOnly = false, Description = @"The tags for the target managed disks.", SerializedName = @"targetManagedDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } /// The tags for the target NICs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The tags for the target NICs.", SerializedName = @"targetNicTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags TargetNicTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags TargetNicTag { get; set; } /// The target proximity placement group Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -180,8 +180,8 @@ public partial interface IInMageAzureV2UpdateReplicationProtectedItemInput : ReadOnly = false, Description = @"The target VM tags.", SerializedName = @"targetVmTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags TargetVMTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags TargetVMTag { get; set; } /// A value indicating whether managed disks should be used during failover. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -196,13 +196,13 @@ public partial interface IInMageAzureV2UpdateReplicationProtectedItemInput : ReadOnly = false, Description = @"The list of disk update properties.", SerializedName = @"vmDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput[] VMDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput[] VMDisk { get; set; } } /// InMage Azure V2 input to update replication protected item. internal partial interface IInMageAzureV2UpdateReplicationProtectedItemInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal { /// The recovery Azure resource group Id for classic deployment. string RecoveryAzureV1ResourceGroupId { get; set; } @@ -213,17 +213,17 @@ internal partial interface IInMageAzureV2UpdateReplicationProtectedItemInputInte /// The target availability zone. string TargetAvailabilityZone { get; set; } /// The tags for the target managed disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags TargetManagedDiskTag { get; set; } /// The tags for the target NICs. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags TargetNicTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags TargetNicTag { get; set; } /// The target proximity placement group Id. string TargetProximityPlacementGroupId { get; set; } /// The target VM tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags TargetVMTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags TargetVMTag { get; set; } /// A value indicating whether managed disks should be used during failover. string UseManagedDisk { get; set; } /// The list of disk update properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput[] VMDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput[] VMDisk { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInput.json.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInput.json.cs index 94a9a303acd1..4df7fdc742bb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2UpdateReplicationProtectedItemInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2UpdateReplicationProtectedItemInput(json) : null; } @@ -78,17 +78,17 @@ internal InMageAzureV2UpdateReplicationProtectedItemInput(Microsoft.Azure.PowerS { return; } - __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInput(json); + __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInput(json); {_recoveryAzureV1ResourceGroupId = If( json?.PropertyT("recoveryAzureV1ResourceGroupId"), out var __jsonRecoveryAzureV1ResourceGroupId) ? (string)__jsonRecoveryAzureV1ResourceGroupId : (string)RecoveryAzureV1ResourceGroupId;} {_recoveryAzureV2ResourceGroupId = If( json?.PropertyT("recoveryAzureV2ResourceGroupId"), out var __jsonRecoveryAzureV2ResourceGroupId) ? (string)__jsonRecoveryAzureV2ResourceGroupId : (string)RecoveryAzureV2ResourceGroupId;} {_useManagedDisk = If( json?.PropertyT("useManagedDisks"), out var __jsonUseManagedDisks) ? (string)__jsonUseManagedDisks : (string)UseManagedDisk;} {_targetProximityPlacementGroupId = If( json?.PropertyT("targetProximityPlacementGroupId"), out var __jsonTargetProximityPlacementGroupId) ? (string)__jsonTargetProximityPlacementGroupId : (string)TargetProximityPlacementGroupId;} {_targetAvailabilityZone = If( json?.PropertyT("targetAvailabilityZone"), out var __jsonTargetAvailabilityZone) ? (string)__jsonTargetAvailabilityZone : (string)TargetAvailabilityZone;} - {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.FromJson(__jsonTargetVMTags) : TargetVMTag;} - {_targetManagedDiskTag = If( json?.PropertyT("targetManagedDiskTags"), out var __jsonTargetManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.FromJson(__jsonTargetManagedDiskTags) : TargetManagedDiskTag;} - {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} + {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.FromJson(__jsonTargetVMTags) : TargetVMTag;} + {_targetManagedDiskTag = If( json?.PropertyT("targetManagedDiskTags"), out var __jsonTargetManagedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.FromJson(__jsonTargetManagedDiskTags) : TargetManagedDiskTag;} + {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} {_sqlServerLicenseType = If( json?.PropertyT("sqlServerLicenseType"), out var __jsonSqlServerLicenseType) ? (string)__jsonSqlServerLicenseType : (string)SqlServerLicenseType;} - {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateDiskInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateDiskInput.FromJson(__u) )) ))() : null : VMDisk;} + {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IUpdateDiskInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateDiskInput.FromJson(__u) )) ))() : null : VMDisk;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.PowerShell.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.PowerShell.cs index 0c9ebf44bbf7..54f59abf71b3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2UpdateReplicationProtectedItemInputTargetManag partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags(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.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags(g } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.TypeConverter.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.TypeConverter.cs index cd6c2366b41f..e609d764886d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if /// there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.cs index 85f2169c6e1b..79593de93c12 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target managed disks. public partial class InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.dictionary.cs index 8eb5139f64f8..2bd50bb03e27 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.json.cs index a85b8b797f89..769744a4dbd1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2UpdateReplicationProtectedItemInputTargetManag partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2UpdateReplicationProtectedItemInputTargetManagedDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.PowerShell.cs index 455ddbab1ef3..a0dbc6577c41 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTa partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags(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.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags(global::S } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.TypeConverter.cs index 40d15d60cc47..f5f0a16ebbf9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is /// no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.cs index 16e66751ac48..4318679c9d6f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target NICs. public partial class InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.dictionary.cs index 8bd895293d3d..e92485ba058e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.json.cs index b7744bd79306..cca3656fdd6d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTa partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2UpdateReplicationProtectedItemInputTargetNicTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.PowerShell.cs index 9121a401cad2..f57b8a115a38 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTag partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags(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.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags(global::Sy } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.TypeConverter.cs index 07579a545702..648b936b6b2c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is /// no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.cs index aeaa019a78cf..be50619f5f9b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The target VM tags. public partial class InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.dictionary.cs index 7b8f5dbac2dd..8f3ca2e0bd81 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.json.cs index 43a66a0bacd4..825d79899eb2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTag partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageAzureV2UpdateReplicationProtectedItemInputTargetVMTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageBasePolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageBasePolicyDetails.PowerShell.cs new file mode 100644 index 000000000000..9907d1f44a83 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageBasePolicyDetails.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Base class for the policies of providers using InMage replication. + [System.ComponentModel.TypeConverter(typeof(InMageBasePolicyDetailsTypeConverter))] + public partial class InMageBasePolicyDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageBasePolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageBasePolicyDetails(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.Migrate.Models.Api202301.IInMageBasePolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageBasePolicyDetails(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.Migrate.Models.Api202301.IInMageBasePolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageBasePolicyDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointThresholdInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 InMageBasePolicyDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointThresholdInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Base class for the policies of providers using InMage replication. + [System.ComponentModel.TypeConverter(typeof(InMageBasePolicyDetailsTypeConverter))] + public partial interface IInMageBasePolicyDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageBasePolicyDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageBasePolicyDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageBasePolicyDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageBasePolicyDetails.TypeConverter.cs index cbcb7bbcaaa5..2365602d8b03 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageBasePolicyDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageBasePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageBasePolicyDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageBasePolicyDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageBasePolicyDetails.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMageBasePolicyDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageBasePolicyDetails.cs index 9291bf86d34a..d4736cd98a78 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageBasePolicyDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageBasePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Base class for the policies of providers using InMage replication. public partial class InMageBasePolicyDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(); /// Backing field for property. private int? _appConsistentFrequencyInMinute; @@ -28,7 +28,7 @@ public partial class InMageBasePolicyDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _multiVMSyncStatus; @@ -72,7 +72,7 @@ public InMageBasePolicyDetails() /// Base class for the policies of providers using InMage replication. public partial interface IInMageBasePolicyDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails { /// The app consistent snapshot frequency in minutes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -110,7 +110,7 @@ public partial interface IInMageBasePolicyDetails : } /// Base class for the policies of providers using InMage replication. internal partial interface IInMageBasePolicyDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal { /// The app consistent snapshot frequency in minutes. int? AppConsistentFrequencyInMinute { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageBasePolicyDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageBasePolicyDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageBasePolicyDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageBasePolicyDetails.json.cs index f8e049ef292e..7a8024880b7e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageBasePolicyDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageBasePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageBasePolicyDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageBasePolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageBasePolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageBasePolicyDetails(json) : null; } @@ -77,7 +77,7 @@ internal InMageBasePolicyDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(json); + __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(json); {_recoveryPointThresholdInMinute = If( json?.PropertyT("recoveryPointThresholdInMinutes"), out var __jsonRecoveryPointThresholdInMinutes) ? (int?)__jsonRecoveryPointThresholdInMinutes : RecoveryPointThresholdInMinute;} {_recoveryPointHistory = If( json?.PropertyT("recoveryPointHistory"), out var __jsonRecoveryPointHistory) ? (int?)__jsonRecoveryPointHistory : RecoveryPointHistory;} {_appConsistentFrequencyInMinute = If( json?.PropertyT("appConsistentFrequencyInMinutes"), out var __jsonAppConsistentFrequencyInMinutes) ? (int?)__jsonAppConsistentFrequencyInMinutes : AppConsistentFrequencyInMinute;} diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDisableProtectionProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageDisableProtectionProviderSpecificInput.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/InMageDisableProtectionProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageDisableProtectionProviderSpecificInput.PowerShell.cs index 126ad1dbc627..f9db2ffdf37d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDisableProtectionProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageDisableProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageDisableProtectionProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageDisableProtectionProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDisableProtectionProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageDisableProtectionProviderSpecificInput(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.Migrate.Models.Api20220501.IInMageDisableProtectionProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDisableProtectionProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageDisableProtectionProviderSpecificInput(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDisableProtectionProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDisableProtectionProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,17 +108,17 @@ internal InMageDisableProtectionProviderSpecificInput(global::System.Collections // actually deserialize if (content.Contains("ReplicaVMDeletionStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDisableProtectionProviderSpecificInputInternal)this).ReplicaVMDeletionStatus = (string) content.GetValueForProperty("ReplicaVMDeletionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDisableProtectionProviderSpecificInputInternal)this).ReplicaVMDeletionStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDisableProtectionProviderSpecificInputInternal)this).ReplicaVMDeletionStatus = (string) content.GetValueForProperty("ReplicaVMDeletionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDisableProtectionProviderSpecificInputInternal)this).ReplicaVMDeletionStatus, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInputInternal)this).InstanceType, 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. @@ -133,11 +133,11 @@ internal InMageDisableProtectionProviderSpecificInput(global::System.Management. // actually deserialize if (content.Contains("ReplicaVMDeletionStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDisableProtectionProviderSpecificInputInternal)this).ReplicaVMDeletionStatus = (string) content.GetValueForProperty("ReplicaVMDeletionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDisableProtectionProviderSpecificInputInternal)this).ReplicaVMDeletionStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDisableProtectionProviderSpecificInputInternal)this).ReplicaVMDeletionStatus = (string) content.GetValueForProperty("ReplicaVMDeletionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDisableProtectionProviderSpecificInputInternal)this).ReplicaVMDeletionStatus, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDisableProtectionProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageDisableProtectionProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageDisableProtectionProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageDisableProtectionProviderSpecificInput.TypeConverter.cs index 3dffb28770eb..5c00ffdb1e71 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDisableProtectionProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageDisableProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageDisableProtectionProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDisableProtectionProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDisableProtectionProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDisableProtectionProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDisableProtectionProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageDisableProtectionProviderSpecificInput.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/InMageDisableProtectionProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageDisableProtectionProviderSpecificInput.cs index 3efec4066e7a..872389d627d2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDisableProtectionProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageDisableProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMage disable protection provider specific input. public partial class InMageDisableProtectionProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDisableProtectionProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDisableProtectionProviderSpecificInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDisableProtectionProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDisableProtectionProviderSpecificInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput __disableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput __disableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInputInternal)__disableProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInputInternal)__disableProtectionProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInputInternal)__disableProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInputInternal)__disableProtectionProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _replicaVMDeletionStatus; @@ -55,7 +55,7 @@ public InMageDisableProtectionProviderSpecificInput() /// InMage disable protection provider specific input. public partial interface IInMageDisableProtectionProviderSpecificInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInput { /// /// A value indicating whether the replica VM should be destroyed or retained. Values from Delete and Retain. @@ -71,7 +71,7 @@ public partial interface IInMageDisableProtectionProviderSpecificInput : } /// InMage disable protection provider specific input. internal partial interface IInMageDisableProtectionProviderSpecificInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisableProtectionProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisableProtectionProviderSpecificInputInternal { /// /// A value indicating whether the replica VM should be destroyed or retained. Values from Delete and Retain. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDisableProtectionProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageDisableProtectionProviderSpecificInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageDisableProtectionProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageDisableProtectionProviderSpecificInput.json.cs index 0b2efbbb5fe7..f48c143e1dbb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDisableProtectionProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageDisableProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageDisableProtectionProviderSpecificInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDisableProtectionProviderSpecificInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDisableProtectionProviderSpecificInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDisableProtectionProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDisableProtectionProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDisableProtectionProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDisableProtectionProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageDisableProtectionProviderSpecificInput(json) : null; } @@ -78,7 +78,7 @@ internal InMageDisableProtectionProviderSpecificInput(Microsoft.Azure.PowerShell { return; } - __disableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DisableProtectionProviderSpecificInput(json); + __disableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisableProtectionProviderSpecificInput(json); {_replicaVMDeletionStatus = If( json?.PropertyT("replicaVmDeletionStatus"), out var __jsonReplicaVMDeletionStatus) ? (string)__jsonReplicaVMDeletionStatus : (string)ReplicaVMDeletionStatus;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageDiskDetails.PowerShell.cs new file mode 100644 index 000000000000..3f2c5a475ab6 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageDiskDetails.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMware/Physical specific Disk Details. + [System.ComponentModel.TypeConverter(typeof(InMageDiskDetailsTypeConverter))] + public partial class InMageDiskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageDiskDetails(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.Migrate.Models.Api202301.IInMageDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageDiskDetails(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.Migrate.Models.Api202301.IInMageDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageDiskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("DiskSizeInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskSizeInMb = (string) content.GetValueForProperty("DiskSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskSizeInMb, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskType = (string) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskType, global::System.Convert.ToString); + } + if (content.Contains("DiskConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskConfiguration = (string) content.GetValueForProperty("DiskConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskConfiguration, global::System.Convert.ToString); + } + if (content.Contains("VolumeList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).VolumeList = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails[]) content.GetValueForProperty("VolumeList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).VolumeList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskVolumeDetailsTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageDiskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("DiskSizeInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskSizeInMb = (string) content.GetValueForProperty("DiskSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskSizeInMb, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskType = (string) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskType, global::System.Convert.ToString); + } + if (content.Contains("DiskConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskConfiguration = (string) content.GetValueForProperty("DiskConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).DiskConfiguration, global::System.Convert.ToString); + } + if (content.Contains("VolumeList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).VolumeList = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails[]) content.GetValueForProperty("VolumeList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal)this).VolumeList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskVolumeDetailsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// VMware/Physical specific Disk Details. + [System.ComponentModel.TypeConverter(typeof(InMageDiskDetailsTypeConverter))] + public partial interface IInMageDiskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageDiskDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageDiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageDiskDetails.TypeConverter.cs index f50a124edf9f..321dda92d7e3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageDiskDetails.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageDiskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageDiskDetails.cs index a2d33278a0a1..4d9d61f3af4e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDiskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMware/Physical specific Disk Details. public partial class InMageDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetailsInternal { /// Backing field for property. @@ -49,11 +49,11 @@ public partial class InMageDiskDetails : public string DiskType { get => this._diskType; set => this._diskType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetails[] _volumeList; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails[] _volumeList; /// Volumes of the disk. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetails[] VolumeList { get => this._volumeList; set => this._volumeList = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails[] VolumeList { get => this._volumeList; set => this._volumeList = value; } /// Creates an new instance. public InMageDiskDetails() @@ -111,8 +111,8 @@ public partial interface IInMageDiskDetails : ReadOnly = false, Description = @"Volumes of the disk.", SerializedName = @"volumeList", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetails[] VolumeList { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails[] VolumeList { get; set; } } /// VMware/Physical specific Disk Details. @@ -130,7 +130,7 @@ internal partial interface IInMageDiskDetailsInternal /// Whether disk is system disk or data disk. string DiskType { get; set; } /// Volumes of the disk. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDiskVolumeDetails[] VolumeList { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskVolumeDetails[] VolumeList { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageDiskDetails.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/InMageDiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageDiskDetails.json.cs index 1d6bdd5b3f61..8381045cefd1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageDiskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageDiskDetails(json) : null; } @@ -82,7 +82,7 @@ internal InMageDiskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js {_diskSizeInMb = If( json?.PropertyT("diskSizeInMB"), out var __jsonDiskSizeInMb) ? (string)__jsonDiskSizeInMb : (string)DiskSizeInMb;} {_diskType = If( json?.PropertyT("diskType"), out var __jsonDiskType) ? (string)__jsonDiskType : (string)DiskType;} {_diskConfiguration = If( json?.PropertyT("diskConfiguration"), out var __jsonDiskConfiguration) ? (string)__jsonDiskConfiguration : (string)DiskConfiguration;} - {_volumeList = If( json?.PropertyT("volumeList"), out var __jsonVolumeList) ? If( __jsonVolumeList as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IDiskVolumeDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DiskVolumeDetails.FromJson(__u) )) ))() : null : VolumeList;} + {_volumeList = If( json?.PropertyT("volumeList"), out var __jsonVolumeList) ? If( __jsonVolumeList as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IDiskVolumeDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskVolumeDetails.FromJson(__u) )) ))() : null : VolumeList;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageDiskExclusionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageDiskExclusionInput.PowerShell.cs new file mode 100644 index 000000000000..d369d863ecf0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageDiskExclusionInput.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// + /// DiskExclusionInput when doing enable protection of virtual machine in InMage provider. + /// + [System.ComponentModel.TypeConverter(typeof(InMageDiskExclusionInputTypeConverter))] + public partial class InMageDiskExclusionInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageDiskExclusionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageDiskExclusionInput(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.Migrate.Models.Api202301.IInMageDiskExclusionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageDiskExclusionInput(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.Migrate.Models.Api202301.IInMageDiskExclusionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageDiskExclusionInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VolumeOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)this).VolumeOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[]) content.GetValueForProperty("VolumeOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)this).VolumeOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageVolumeExclusionOptionsTypeConverter.ConvertFrom)); + } + if (content.Contains("DiskSignatureOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)this).DiskSignatureOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[]) content.GetValueForProperty("DiskSignatureOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)this).DiskSignatureOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskSignatureExclusionOptionsTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageDiskExclusionInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VolumeOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)this).VolumeOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[]) content.GetValueForProperty("VolumeOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)this).VolumeOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageVolumeExclusionOptionsTypeConverter.ConvertFrom)); + } + if (content.Contains("DiskSignatureOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)this).DiskSignatureOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[]) content.GetValueForProperty("DiskSignatureOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)this).DiskSignatureOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskSignatureExclusionOptionsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// DiskExclusionInput when doing enable protection of virtual machine in InMage provider. + [System.ComponentModel.TypeConverter(typeof(InMageDiskExclusionInputTypeConverter))] + public partial interface IInMageDiskExclusionInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDiskExclusionInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageDiskExclusionInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageDiskExclusionInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageDiskExclusionInput.TypeConverter.cs index 8ecb1d62b579..d220a49b765d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDiskExclusionInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageDiskExclusionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageDiskExclusionInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDiskExclusionInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageDiskExclusionInput.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/InMageDiskExclusionInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageDiskExclusionInput.cs index 78b256d72bbb..9c3f2173eeb3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDiskExclusionInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageDiskExclusionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,23 +11,23 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// DiskExclusionInput when doing enable protection of virtual machine in InMage provider. /// public partial class InMageDiskExclusionInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[] _diskSignatureOption; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[] _diskSignatureOption; /// The guest disk signature based option for disk exclusion. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[] DiskSignatureOption { get => this._diskSignatureOption; set => this._diskSignatureOption = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[] DiskSignatureOption { get => this._diskSignatureOption; set => this._diskSignatureOption = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[] _volumeOption; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[] _volumeOption; /// The volume label based option for disk exclusion. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[] VolumeOption { get => this._volumeOption; set => this._volumeOption = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[] VolumeOption { get => this._volumeOption; set => this._volumeOption = value; } /// Creates an new instance. public InMageDiskExclusionInput() @@ -45,16 +45,16 @@ public partial interface IInMageDiskExclusionInput : ReadOnly = false, Description = @"The guest disk signature based option for disk exclusion.", SerializedName = @"diskSignatureOptions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[] DiskSignatureOption { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[] DiskSignatureOption { get; set; } /// The volume label based option for disk exclusion. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The volume label based option for disk exclusion.", SerializedName = @"volumeOptions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[] VolumeOption { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[] VolumeOption { get; set; } } /// DiskExclusionInput when doing enable protection of virtual machine in InMage provider. @@ -62,9 +62,9 @@ internal partial interface IInMageDiskExclusionInputInternal { /// The guest disk signature based option for disk exclusion. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[] DiskSignatureOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[] DiskSignatureOption { get; set; } /// The volume label based option for disk exclusion. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[] VolumeOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[] VolumeOption { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDiskExclusionInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageDiskExclusionInput.json.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/InMageDiskExclusionInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageDiskExclusionInput.json.cs index dd1ec6cffcae..6cfe1666d763 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDiskExclusionInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageDiskExclusionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class InMageDiskExclusionInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageDiskExclusionInput(json) : null; } @@ -79,8 +79,8 @@ internal InMageDiskExclusionInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - {_volumeOption = If( json?.PropertyT("volumeOptions"), out var __jsonVolumeOptions) ? If( __jsonVolumeOptions as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageVolumeExclusionOptions.FromJson(__u) )) ))() : null : VolumeOption;} - {_diskSignatureOption = If( json?.PropertyT("diskSignatureOptions"), out var __jsonDiskSignatureOptions) ? If( __jsonDiskSignatureOptions as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskSignatureExclusionOptions.FromJson(__p) )) ))() : null : DiskSignatureOption;} + {_volumeOption = If( json?.PropertyT("volumeOptions"), out var __jsonVolumeOptions) ? If( __jsonVolumeOptions as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IInMageVolumeExclusionOptions) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageVolumeExclusionOptions.FromJson(__u) )) ))() : null : VolumeOption;} + {_diskSignatureOption = If( json?.PropertyT("diskSignatureOptions"), out var __jsonDiskSignatureOptions) ? If( __jsonDiskSignatureOptions as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskSignatureExclusionOptions.FromJson(__p) )) ))() : null : DiskSignatureOption;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDiskSignatureExclusionOptions.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageDiskSignatureExclusionOptions.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/InMageDiskSignatureExclusionOptions.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageDiskSignatureExclusionOptions.PowerShell.cs index 54c2067861ce..5fae1053a7b4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDiskSignatureExclusionOptions.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageDiskSignatureExclusionOptions.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -57,29 +57,29 @@ public partial class InMageDiskSignatureExclusionOptions partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageDiskSignatureExclusionOptions(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.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageDiskSignatureExclusionOptions(content); } @@ -91,10 +91,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -109,13 +109,13 @@ internal InMageDiskSignatureExclusionOptions(global::System.Collections.IDiction // actually deserialize if (content.Contains("DiskSignature")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptionsInternal)this).DiskSignature = (string) content.GetValueForProperty("DiskSignature",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptionsInternal)this).DiskSignature, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptionsInternal)this).DiskSignature = (string) content.GetValueForProperty("DiskSignature",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptionsInternal)this).DiskSignature, 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. @@ -130,7 +130,7 @@ internal InMageDiskSignatureExclusionOptions(global::System.Management.Automatio // actually deserialize if (content.Contains("DiskSignature")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptionsInternal)this).DiskSignature = (string) content.GetValueForProperty("DiskSignature",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptionsInternal)this).DiskSignature, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptionsInternal)this).DiskSignature = (string) content.GetValueForProperty("DiskSignature",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptionsInternal)this).DiskSignature, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDiskSignatureExclusionOptions.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageDiskSignatureExclusionOptions.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageDiskSignatureExclusionOptions.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageDiskSignatureExclusionOptions.TypeConverter.cs index 1440bef6a5c4..282e61598bf8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDiskSignatureExclusionOptions.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageDiskSignatureExclusionOptions.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDiskSignatureExclusionOptions.cs b/src/Migrate/generated/api/Models/Api202301/InMageDiskSignatureExclusionOptions.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageDiskSignatureExclusionOptions.cs rename to src/Migrate/generated/api/Models/Api202301/InMageDiskSignatureExclusionOptions.cs index 680fa24ceefd..00761c335e02 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDiskSignatureExclusionOptions.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageDiskSignatureExclusionOptions.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// Guest disk signature based disk exclusion option when doing enable protection of virtual machine in InMage provider. /// public partial class InMageDiskSignatureExclusionOptions : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptionsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptionsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageDiskSignatureExclusionOptions.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageDiskSignatureExclusionOptions.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageDiskSignatureExclusionOptions.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageDiskSignatureExclusionOptions.json.cs index 48e2fba38adc..0b99b7e99886 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageDiskSignatureExclusionOptions.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageDiskSignatureExclusionOptions.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class InMageDiskSignatureExclusionOptions partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageDiskSignatureExclusionOptions(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageEnableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageEnableProtectionInput.PowerShell.cs new file mode 100644 index 000000000000..9041b2d6f4bb --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageEnableProtectionInput.PowerShell.cs @@ -0,0 +1,240 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMware Azure specific enable protection input. + [System.ComponentModel.TypeConverter(typeof(InMageEnableProtectionInputTypeConverter))] + public partial class InMageEnableProtectionInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageEnableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageEnableProtectionInput(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.Migrate.Models.Api202301.IInMageEnableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageEnableProtectionInput(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.Migrate.Models.Api202301.IInMageEnableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageEnableProtectionInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskExclusionInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DiskExclusionInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput) content.GetValueForProperty("DiskExclusionInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DiskExclusionInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskExclusionInputTypeConverter.ConvertFrom); + } + if (content.Contains("VMFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).VMFriendlyName = (string) content.GetValueForProperty("VMFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).VMFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("MasterTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).MasterTargetId, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("RetentionDrive")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).RetentionDrive = (string) content.GetValueForProperty("RetentionDrive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).RetentionDrive, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("DatastoreName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DatastoreName = (string) content.GetValueForProperty("DatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DatastoreName, global::System.Convert.ToString); + } + if (content.Contains("DisksToInclude")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("DiskExclusionInputVolumeOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DiskExclusionInputVolumeOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputVolumeOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DiskExclusionInputVolumeOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageVolumeExclusionOptionsTypeConverter.ConvertFrom)); + } + if (content.Contains("DiskExclusionInputDiskSignatureOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DiskExclusionInputDiskSignatureOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputDiskSignatureOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DiskExclusionInputDiskSignatureOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskSignatureExclusionOptionsTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageEnableProtectionInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskExclusionInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DiskExclusionInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput) content.GetValueForProperty("DiskExclusionInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DiskExclusionInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskExclusionInputTypeConverter.ConvertFrom); + } + if (content.Contains("VMFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).VMFriendlyName = (string) content.GetValueForProperty("VMFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).VMFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("MasterTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).MasterTargetId, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("RetentionDrive")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).RetentionDrive = (string) content.GetValueForProperty("RetentionDrive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).RetentionDrive, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("DatastoreName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DatastoreName = (string) content.GetValueForProperty("DatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DatastoreName, global::System.Convert.ToString); + } + if (content.Contains("DisksToInclude")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("DiskExclusionInputVolumeOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DiskExclusionInputVolumeOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputVolumeOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DiskExclusionInputVolumeOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageVolumeExclusionOptionsTypeConverter.ConvertFrom)); + } + if (content.Contains("DiskExclusionInputDiskSignatureOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DiskExclusionInputDiskSignatureOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputDiskSignatureOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal)this).DiskExclusionInputDiskSignatureOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskSignatureExclusionOptionsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// VMware Azure specific enable protection input. + [System.ComponentModel.TypeConverter(typeof(InMageEnableProtectionInputTypeConverter))] + public partial interface IInMageEnableProtectionInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageEnableProtectionInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageEnableProtectionInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageEnableProtectionInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageEnableProtectionInput.TypeConverter.cs index 7914fae9316e..f8b69ebf8327 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageEnableProtectionInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageEnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageEnableProtectionInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageEnableProtectionInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageEnableProtectionInput.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/InMageEnableProtectionInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageEnableProtectionInput.cs index 2c0627ca10a4..0b16f47b7e77 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageEnableProtectionInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageEnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMware Azure specific enable protection input. public partial class InMageEnableProtectionInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput(); /// Backing field for property. private string _datastoreName; @@ -27,19 +27,19 @@ public partial class InMageEnableProtectionInput : public string DatastoreName { get => this._datastoreName; set => this._datastoreName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput _diskExclusionInput; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput _diskExclusionInput; /// The enable disk exclusion input. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput DiskExclusionInput { get => (this._diskExclusionInput = this._diskExclusionInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskExclusionInput()); set => this._diskExclusionInput = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput DiskExclusionInput { get => (this._diskExclusionInput = this._diskExclusionInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskExclusionInput()); set => this._diskExclusionInput = value; } /// The guest disk signature based option for disk exclusion. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[] DiskExclusionInputDiskSignatureOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)DiskExclusionInput).DiskSignatureOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)DiskExclusionInput).DiskSignatureOption = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[] DiskExclusionInputDiskSignatureOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)DiskExclusionInput).DiskSignatureOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)DiskExclusionInput).DiskSignatureOption = value ?? null /* arrayOf */; } /// The volume label based option for disk exclusion. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[] DiskExclusionInputVolumeOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)DiskExclusionInput).VolumeOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)DiskExclusionInput).VolumeOption = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[] DiskExclusionInputVolumeOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)DiskExclusionInput).VolumeOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)DiskExclusionInput).VolumeOption = value ?? null /* arrayOf */; } /// Backing field for property. private string[] _disksToInclude; @@ -50,7 +50,7 @@ public partial class InMageEnableProtectionInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _masterTargetId; @@ -60,7 +60,7 @@ public partial class InMageEnableProtectionInput : public string MasterTargetId { get => this._masterTargetId; set => this._masterTargetId = value; } /// Internal Acessors for DiskExclusionInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInputInternal.DiskExclusionInput { get => (this._diskExclusionInput = this._diskExclusionInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskExclusionInput()); set { {_diskExclusionInput = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInputInternal.DiskExclusionInput { get => (this._diskExclusionInput = this._diskExclusionInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskExclusionInput()); set { {_diskExclusionInput = value;} } } /// Backing field for property. private string _multiVMGroupId; @@ -125,7 +125,7 @@ public InMageEnableProtectionInput() /// VMware Azure specific enable protection input. public partial interface IInMageEnableProtectionInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput { /// The target datastore name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -141,16 +141,16 @@ public partial interface IInMageEnableProtectionInput : ReadOnly = false, Description = @"The guest disk signature based option for disk exclusion.", SerializedName = @"diskSignatureOptions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[] DiskExclusionInputDiskSignatureOption { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[] DiskExclusionInputDiskSignatureOption { get; set; } /// The volume label based option for disk exclusion. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The volume label based option for disk exclusion.", SerializedName = @"volumeOptions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[] DiskExclusionInputVolumeOption { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[] DiskExclusionInputVolumeOption { get; set; } /// The disks to include list. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -219,16 +219,16 @@ public partial interface IInMageEnableProtectionInput : } /// VMware Azure specific enable protection input. internal partial interface IInMageEnableProtectionInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal { /// The target datastore name. string DatastoreName { get; set; } /// The enable disk exclusion input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput DiskExclusionInput { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput DiskExclusionInput { get; set; } /// The guest disk signature based option for disk exclusion. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[] DiskExclusionInputDiskSignatureOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[] DiskExclusionInputDiskSignatureOption { get; set; } /// The volume label based option for disk exclusion. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[] DiskExclusionInputVolumeOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[] DiskExclusionInputVolumeOption { get; set; } /// The disks to include list. string[] DisksToInclude { get; set; } /// The Master Target Id. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageEnableProtectionInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageEnableProtectionInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageEnableProtectionInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageEnableProtectionInput.json.cs index 25bbc2e11beb..db3817042b81 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageEnableProtectionInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageEnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageEnableProtectionInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageEnableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageEnableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageEnableProtectionInput(json) : null; } @@ -77,8 +77,8 @@ internal InMageEnableProtectionInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput(json); - {_diskExclusionInput = If( json?.PropertyT("diskExclusionInput"), out var __jsonDiskExclusionInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskExclusionInput.FromJson(__jsonDiskExclusionInput) : DiskExclusionInput;} + __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput(json); + {_diskExclusionInput = If( json?.PropertyT("diskExclusionInput"), out var __jsonDiskExclusionInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskExclusionInput.FromJson(__jsonDiskExclusionInput) : DiskExclusionInput;} {_vMFriendlyName = If( json?.PropertyT("vmFriendlyName"), out var __jsonVMFriendlyName) ? (string)__jsonVMFriendlyName : (string)VMFriendlyName;} {_masterTargetId = If( json?.PropertyT("masterTargetId"), out var __jsonMasterTargetId) ? (string)__jsonMasterTargetId : (string)MasterTargetId;} {_processServerId = If( json?.PropertyT("processServerId"), out var __jsonProcessServerId) ? (string)__jsonProcessServerId : (string)ProcessServerId;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetails.PowerShell.cs new file mode 100644 index 000000000000..f39b07157913 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetails.PowerShell.cs @@ -0,0 +1,189 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageFabric switch provider blocking error details. + [System.ComponentModel.TypeConverter(typeof(InMageFabricSwitchProviderBlockingErrorDetailsTypeConverter))] + public partial class InMageFabricSwitchProviderBlockingErrorDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageFabricSwitchProviderBlockingErrorDetails(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.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageFabricSwitchProviderBlockingErrorDetails(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.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageFabricSwitchProviderBlockingErrorDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessageParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); + } + if (content.Contains("ErrorTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorTagsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageFabricSwitchProviderBlockingErrorDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessageParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); + } + if (content.Contains("ErrorTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorTagsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageFabric switch provider blocking error details. + [System.ComponentModel.TypeConverter(typeof(InMageFabricSwitchProviderBlockingErrorDetailsTypeConverter))] + public partial interface IInMageFabricSwitchProviderBlockingErrorDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetails.TypeConverter.cs index d559a42f9a2a..199ef099c2c3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetails.cs new file mode 100644 index 000000000000..ede0998c55fa --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetails.cs @@ -0,0 +1,156 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// InMageFabric switch provider blocking error details. + public partial class InMageFabricSwitchProviderBlockingErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal + { + + /// Backing field for property. + private string _errorCode; + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ErrorCode { get => this._errorCode; } + + /// Backing field for property. + private string _errorMessage; + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ErrorMessage { get => this._errorMessage; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters _errorMessageParameter; + + /// The error message parameters. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters()); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags _errorTag; + + /// The error tags. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorTags()); } + + /// Internal Acessors for ErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal.ErrorCode { get => this._errorCode; set { {_errorCode = value;} } } + + /// Internal Acessors for ErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal.ErrorMessage { get => this._errorMessage; set { {_errorMessage = value;} } } + + /// Internal Acessors for ErrorMessageParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal.ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters()); set { {_errorMessageParameter = value;} } } + + /// Internal Acessors for ErrorTag + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal.ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorTags()); set { {_errorTag = value;} } } + + /// Internal Acessors for PossibleCaus + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal.PossibleCaus { get => this._possibleCaus; set { {_possibleCaus = value;} } } + + /// Internal Acessors for RecommendedAction + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsInternal.RecommendedAction { get => this._recommendedAction; set { {_recommendedAction = value;} } } + + /// Backing field for property. + private string _possibleCaus; + + /// The possible causes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PossibleCaus { get => this._possibleCaus; } + + /// Backing field for property. + private string _recommendedAction; + + /// The recommended action. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecommendedAction { get => this._recommendedAction; } + + /// + /// Creates an new instance. + /// + public InMageFabricSwitchProviderBlockingErrorDetails() + { + + } + } + /// InMageFabric switch provider blocking error details. + public partial interface IInMageFabricSwitchProviderBlockingErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error code.", + SerializedName = @"errorCode", + PossibleTypes = new [] { typeof(string) })] + string ErrorCode { get; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message.", + SerializedName = @"errorMessage", + PossibleTypes = new [] { typeof(string) })] + string ErrorMessage { get; } + /// The error message parameters. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message parameters.", + SerializedName = @"errorMessageParameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; } + /// The error tags. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error tags.", + SerializedName = @"errorTags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get; } + /// The possible causes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The possible causes.", + SerializedName = @"possibleCauses", + PossibleTypes = new [] { typeof(string) })] + string PossibleCaus { get; } + /// The recommended action. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The recommended action.", + SerializedName = @"recommendedAction", + PossibleTypes = new [] { typeof(string) })] + string RecommendedAction { get; } + + } + /// InMageFabric switch provider blocking error details. + internal partial interface IInMageFabricSwitchProviderBlockingErrorDetailsInternal + + { + /// The error code. + string ErrorCode { get; set; } + /// The error message. + string ErrorMessage { get; set; } + /// The error message parameters. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; set; } + /// The error tags. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get; set; } + /// The possible causes. + string PossibleCaus { get; set; } + /// The recommended action. + string RecommendedAction { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetails.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetails.json.cs index 53b1c1b9f0f9..b9ef416c639e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageFabricSwitchProviderBlockingErrorDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageFabricSwitchProviderBlockingErrorDetails(json) : null; } @@ -82,8 +82,8 @@ internal InMageFabricSwitchProviderBlockingErrorDetails(Microsoft.Azure.PowerShe {_errorMessage = If( json?.PropertyT("errorMessage"), out var __jsonErrorMessage) ? (string)__jsonErrorMessage : (string)ErrorMessage;} {_possibleCaus = If( json?.PropertyT("possibleCauses"), out var __jsonPossibleCauses) ? (string)__jsonPossibleCauses : (string)PossibleCaus;} {_recommendedAction = If( json?.PropertyT("recommendedAction"), out var __jsonRecommendedAction) ? (string)__jsonRecommendedAction : (string)RecommendedAction;} - {_errorMessageParameter = If( json?.PropertyT("errorMessageParameters"), out var __jsonErrorMessageParameters) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.FromJson(__jsonErrorMessageParameters) : ErrorMessageParameter;} - {_errorTag = If( json?.PropertyT("errorTags"), out var __jsonErrorTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.FromJson(__jsonErrorTags) : ErrorTag;} + {_errorMessageParameter = If( json?.PropertyT("errorMessageParameters"), out var __jsonErrorMessageParameters) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.FromJson(__jsonErrorMessageParameters) : ErrorMessageParameter;} + {_errorTag = If( json?.PropertyT("errorTags"), out var __jsonErrorTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.FromJson(__jsonErrorTags) : ErrorTag;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs index 318850d11578..6a35a930d9e9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageP partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters(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.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters(gl } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs index b88288451a52..53f0fdd4f90f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if /// there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.cs b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.cs rename to src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.cs index 9544aa8b3dae..7976269fedad 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The error message parameters. public partial class InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParametersInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs index 049410e3d022..25270f7e4d46 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs index ac6552ff6d9b..91940cd37a0f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageP partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs index dac287c513e1..6ead8472991d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageFabricSwitchProviderBlockingErrorDetailsErrorTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageFabricSwitchProviderBlockingErrorDetailsErrorTags(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.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageFabricSwitchProviderBlockingErrorDetailsErrorTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageFabricSwitchProviderBlockingErrorDetailsErrorTags(global::System. } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs index 344721c9cebd..bca149a2b2fb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.cs index 1fe16b290ca1..0f512cb3e12d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The error tags. public partial class InMageFabricSwitchProviderBlockingErrorDetailsErrorTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs index a09d7a0e7d9e..117c015facd7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetailsErrorTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsErrorTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.json.cs index 3f4709251bdb..6e10c955a070 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageFabricSwitchProviderBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageFabricSwitchProviderBlockingErrorDetailsErrorTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetailsErrorTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageFabricSwitchProviderBlockingErrorDetailsErrorTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMagePolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMagePolicyDetails.PowerShell.cs new file mode 100644 index 000000000000..e1c93c7f686d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMagePolicyDetails.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMage specific protection profile details. + [System.ComponentModel.TypeConverter(typeof(InMagePolicyDetailsTypeConverter))] + public partial class InMagePolicyDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMagePolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMagePolicyDetails(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.Migrate.Models.Api202301.IInMagePolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMagePolicyDetails(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.Migrate.Models.Api202301.IInMagePolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMagePolicyDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointThresholdInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 InMagePolicyDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointThresholdInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMage specific protection profile details. + [System.ComponentModel.TypeConverter(typeof(InMagePolicyDetailsTypeConverter))] + public partial interface IInMagePolicyDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMagePolicyDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMagePolicyDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMagePolicyDetails.TypeConverter.cs index 26ecafb0b921..6cd3c7369aa0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMagePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMagePolicyDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMagePolicyDetails.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMagePolicyDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMagePolicyDetails.cs index a07dd9a73002..b6928fd57735 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMagePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMage specific protection profile details. public partial class InMagePolicyDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(); /// Backing field for property. private int? _appConsistentFrequencyInMinute; @@ -28,7 +28,7 @@ public partial class InMagePolicyDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _multiVMSyncStatus; @@ -72,7 +72,7 @@ public InMagePolicyDetails() /// InMage specific protection profile details. public partial interface IInMagePolicyDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails { /// The app consistent snapshot frequency in minutes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -110,7 +110,7 @@ public partial interface IInMagePolicyDetails : } /// InMage specific protection profile details. internal partial interface IInMagePolicyDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal { /// The app consistent snapshot frequency in minutes. int? AppConsistentFrequencyInMinute { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMagePolicyDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMagePolicyDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMagePolicyDetails.json.cs index 51382f0f340b..9290e35c811e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMagePolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMagePolicyDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMagePolicyDetails(json) : null; } @@ -77,7 +77,7 @@ internal InMagePolicyDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime. { return; } - __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(json); + __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(json); {_recoveryPointThresholdInMinute = If( json?.PropertyT("recoveryPointThresholdInMinutes"), out var __jsonRecoveryPointThresholdInMinutes) ? (int?)__jsonRecoveryPointThresholdInMinutes : RecoveryPointThresholdInMinute;} {_recoveryPointHistory = If( json?.PropertyT("recoveryPointHistory"), out var __jsonRecoveryPointHistory) ? (int?)__jsonRecoveryPointHistory : RecoveryPointHistory;} {_appConsistentFrequencyInMinute = If( json?.PropertyT("appConsistentFrequencyInMinutes"), out var __jsonAppConsistentFrequencyInMinutes) ? (int?)__jsonAppConsistentFrequencyInMinutes : AppConsistentFrequencyInMinute;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMagePolicyInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMagePolicyInput.PowerShell.cs new file mode 100644 index 000000000000..48bd40f74812 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMagePolicyInput.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMWare Azure specific protection profile Input. + [System.ComponentModel.TypeConverter(typeof(InMagePolicyInputTypeConverter))] + public partial class InMagePolicyInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMagePolicyInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMagePolicyInput(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.Migrate.Models.Api202301.IInMagePolicyInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMagePolicyInput(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.Migrate.Models.Api202301.IInMagePolicyInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMagePolicyInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointThresholdInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 InMagePolicyInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointThresholdInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).RecoveryPointThresholdInMinute = (int?) content.GetValueForProperty("RecoveryPointThresholdInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).RecoveryPointThresholdInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// VMWare Azure specific protection profile Input. + [System.ComponentModel.TypeConverter(typeof(InMagePolicyInputTypeConverter))] + public partial interface IInMagePolicyInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMagePolicyInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMagePolicyInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMagePolicyInput.TypeConverter.cs index 9bbc5699ea7f..df48c6759023 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMagePolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMagePolicyInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyInput.cs b/src/Migrate/generated/api/Models/Api202301/InMagePolicyInput.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/InMagePolicyInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMagePolicyInput.cs index 9af1dd8d98ff..069370a9fde8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMagePolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMWare Azure specific protection profile Input. public partial class InMagePolicyInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(); /// Backing field for property. private int? _appConsistentFrequencyInMinute; @@ -28,7 +28,7 @@ public partial class InMagePolicyInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus _multiVMSyncStatus; @@ -74,7 +74,7 @@ public InMagePolicyInput() /// VMWare Azure specific protection profile Input. public partial interface IInMagePolicyInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput { /// The app consistent snapshot frequency (in minutes). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -114,7 +114,7 @@ public partial interface IInMagePolicyInput : } /// VMWare Azure specific protection profile Input. internal partial interface IInMagePolicyInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal { /// The app consistent snapshot frequency (in minutes). int? AppConsistentFrequencyInMinute { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMagePolicyInput.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMagePolicyInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMagePolicyInput.json.cs index 5cfa21633d91..42c2dfdb6581 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMagePolicyInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMagePolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMagePolicyInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMagePolicyInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMagePolicyInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMagePolicyInput(json) : null; } @@ -77,7 +77,7 @@ internal InMagePolicyInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js { return; } - __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(json); + __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(json); {_recoveryPointThresholdInMinute = If( json?.PropertyT("recoveryPointThresholdInMinutes"), out var __jsonRecoveryPointThresholdInMinutes) ? (int?)__jsonRecoveryPointThresholdInMinutes : RecoveryPointThresholdInMinute;} {_recoveryPointHistory = If( json?.PropertyT("recoveryPointHistory"), out var __jsonRecoveryPointHistory) ? (int?)__jsonRecoveryPointHistory : RecoveryPointHistory;} {_appConsistentFrequencyInMinute = If( json?.PropertyT("appConsistentFrequencyInMinutes"), out var __jsonAppConsistentFrequencyInMinutes) ? (int?)__jsonAppConsistentFrequencyInMinutes : AppConsistentFrequencyInMinute;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageProtectedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageProtectedDiskDetails.PowerShell.cs new file mode 100644 index 000000000000..433c99e6040e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageProtectedDiskDetails.PowerShell.cs @@ -0,0 +1,312 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMage protected disk details. + [System.ComponentModel.TypeConverter(typeof(InMageProtectedDiskDetailsTypeConverter))] + public partial class InMageProtectedDiskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageProtectedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageProtectedDiskDetails(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.Migrate.Models.Api202301.IInMageProtectedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageProtectedDiskDetails(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.Migrate.Models.Api202301.IInMageProtectedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageProtectedDiskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("ProtectionStage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); + } + if (content.Contains("HealthErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).HealthErrorCode = (string) content.GetValueForProperty("HealthErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).HealthErrorCode, global::System.Convert.ToString); + } + if (content.Contains("RpoInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); + } + if (content.Contains("ResyncProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResyncDurationInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncDurationInSecond = (long?) content.GetValueForProperty("ResyncDurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncDurationInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("DiskCapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("FileSystemCapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).FileSystemCapacityInByte = (long?) content.GetValueForProperty("FileSystemCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).FileSystemCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("SourceDataInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).SourceDataInMb = (double?) content.GetValueForProperty("SourceDataInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).SourceDataInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("PsDataInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).PsDataInMb = (double?) content.GetValueForProperty("PsDataInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).PsDataInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("TargetDataInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).TargetDataInMb = (double?) content.GetValueForProperty("TargetDataInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).TargetDataInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DiskResized")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskResized, global::System.Convert.ToString); + } + if (content.Contains("LastRpoCalculatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResyncProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncTotalTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte = (long?) content.GetValueForProperty("ResyncTotalTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncLast15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncLastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ResyncLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResyncStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncStartTime = (global::System.DateTime?) content.GetValueForProperty("ResyncStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ProgressHealth = (string) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ProgressHealth, global::System.Convert.ToString); + } + if (content.Contains("ProgressStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ProgressStatus = (string) content.GetValueForProperty("ProgressStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ProgressStatus, 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 InMageProtectedDiskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("ProtectionStage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); + } + if (content.Contains("HealthErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).HealthErrorCode = (string) content.GetValueForProperty("HealthErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).HealthErrorCode, global::System.Convert.ToString); + } + if (content.Contains("RpoInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); + } + if (content.Contains("ResyncProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResyncDurationInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncDurationInSecond = (long?) content.GetValueForProperty("ResyncDurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncDurationInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("DiskCapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskCapacityInByte = (long?) content.GetValueForProperty("DiskCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("FileSystemCapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).FileSystemCapacityInByte = (long?) content.GetValueForProperty("FileSystemCapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).FileSystemCapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("SourceDataInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).SourceDataInMb = (double?) content.GetValueForProperty("SourceDataInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).SourceDataInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("PsDataInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).PsDataInMb = (double?) content.GetValueForProperty("PsDataInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).PsDataInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("TargetDataInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).TargetDataInMb = (double?) content.GetValueForProperty("TargetDataInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).TargetDataInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DiskResized")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).DiskResized, global::System.Convert.ToString); + } + if (content.Contains("LastRpoCalculatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResyncProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncTotalTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte = (long?) content.GetValueForProperty("ResyncTotalTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncTotalTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncLast15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncLastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc = (global::System.DateTime?) content.GetValueForProperty("ResyncLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncLastDataTransferTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResyncStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncStartTime = (global::System.DateTime?) content.GetValueForProperty("ResyncStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ResyncStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ProgressHealth = (string) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ProgressHealth, global::System.Convert.ToString); + } + if (content.Contains("ProgressStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ProgressStatus = (string) content.GetValueForProperty("ProgressStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal)this).ProgressStatus, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMage protected disk details. + [System.ComponentModel.TypeConverter(typeof(InMageProtectedDiskDetailsTypeConverter))] + public partial interface IInMageProtectedDiskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageProtectedDiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageProtectedDiskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageProtectedDiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageProtectedDiskDetails.TypeConverter.cs index fd9db2e53b3f..c007a9cf4116 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageProtectedDiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageProtectedDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageProtectedDiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageProtectedDiskDetails.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/InMageProtectedDiskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageProtectedDiskDetails.cs index 8ee306cb0387..8b7f435b79fe 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageProtectedDiskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMage protected disk details. public partial class InMageProtectedDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageProtectedDiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageProtectedDiskDetails.json.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageProtectedDiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageProtectedDiskDetails.json.cs index 4fdec0a53f29..7901ffdb367f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageProtectedDiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageProtectedDiskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageProtectedDiskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetails.PowerShell.cs new file mode 100644 index 000000000000..e656153c5ad1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetails.PowerShell.cs @@ -0,0 +1,189 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm source agent upgrade blocking error details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmAgentUpgradeBlockingErrorDetailsTypeConverter))] + public partial class InMageRcmAgentUpgradeBlockingErrorDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmAgentUpgradeBlockingErrorDetails(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.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmAgentUpgradeBlockingErrorDetails(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.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmAgentUpgradeBlockingErrorDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessageParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); + } + if (content.Contains("ErrorTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTagsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageRcmAgentUpgradeBlockingErrorDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessageParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); + } + if (content.Contains("ErrorTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTagsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm source agent upgrade blocking error details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmAgentUpgradeBlockingErrorDetailsTypeConverter))] + public partial interface IInMageRcmAgentUpgradeBlockingErrorDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetails.TypeConverter.cs index dcdfe34389be..9d7f2d37662e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetails.cs new file mode 100644 index 000000000000..6f3fe36d6335 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetails.cs @@ -0,0 +1,156 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// InMageRcm source agent upgrade blocking error details. + public partial class InMageRcmAgentUpgradeBlockingErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal + { + + /// Backing field for property. + private string _errorCode; + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ErrorCode { get => this._errorCode; } + + /// Backing field for property. + private string _errorMessage; + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ErrorMessage { get => this._errorMessage; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters _errorMessageParameter; + + /// The error message parameters. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters()); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags _errorTag; + + /// The error tags. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags()); } + + /// Internal Acessors for ErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal.ErrorCode { get => this._errorCode; set { {_errorCode = value;} } } + + /// Internal Acessors for ErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal.ErrorMessage { get => this._errorMessage; set { {_errorMessage = value;} } } + + /// Internal Acessors for ErrorMessageParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal.ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters()); set { {_errorMessageParameter = value;} } } + + /// Internal Acessors for ErrorTag + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal.ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags()); set { {_errorTag = value;} } } + + /// Internal Acessors for PossibleCaus + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal.PossibleCaus { get => this._possibleCaus; set { {_possibleCaus = value;} } } + + /// Internal Acessors for RecommendedAction + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsInternal.RecommendedAction { get => this._recommendedAction; set { {_recommendedAction = value;} } } + + /// Backing field for property. + private string _possibleCaus; + + /// The possible causes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PossibleCaus { get => this._possibleCaus; } + + /// Backing field for property. + private string _recommendedAction; + + /// The recommended action. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecommendedAction { get => this._recommendedAction; } + + /// + /// Creates an new instance. + /// + public InMageRcmAgentUpgradeBlockingErrorDetails() + { + + } + } + /// InMageRcm source agent upgrade blocking error details. + public partial interface IInMageRcmAgentUpgradeBlockingErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error code.", + SerializedName = @"errorCode", + PossibleTypes = new [] { typeof(string) })] + string ErrorCode { get; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message.", + SerializedName = @"errorMessage", + PossibleTypes = new [] { typeof(string) })] + string ErrorMessage { get; } + /// The error message parameters. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message parameters.", + SerializedName = @"errorMessageParameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; } + /// The error tags. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error tags.", + SerializedName = @"errorTags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags ErrorTag { get; } + /// The possible causes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The possible causes.", + SerializedName = @"possibleCauses", + PossibleTypes = new [] { typeof(string) })] + string PossibleCaus { get; } + /// The recommended action. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The recommended action.", + SerializedName = @"recommendedAction", + PossibleTypes = new [] { typeof(string) })] + string RecommendedAction { get; } + + } + /// InMageRcm source agent upgrade blocking error details. + internal partial interface IInMageRcmAgentUpgradeBlockingErrorDetailsInternal + + { + /// The error code. + string ErrorCode { get; set; } + /// The error message. + string ErrorMessage { get; set; } + /// The error message parameters. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; set; } + /// The error tags. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags ErrorTag { get; set; } + /// The possible causes. + string PossibleCaus { get; set; } + /// The recommended action. + string RecommendedAction { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetails.json.cs index b3e3e36a0717..ed87913790c9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmAgentUpgradeBlockingErrorDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmAgentUpgradeBlockingErrorDetails(json) : null; } @@ -81,8 +81,8 @@ internal InMageRcmAgentUpgradeBlockingErrorDetails(Microsoft.Azure.PowerShell.Cm {_errorMessage = If( json?.PropertyT("errorMessage"), out var __jsonErrorMessage) ? (string)__jsonErrorMessage : (string)ErrorMessage;} {_possibleCaus = If( json?.PropertyT("possibleCauses"), out var __jsonPossibleCauses) ? (string)__jsonPossibleCauses : (string)PossibleCaus;} {_recommendedAction = If( json?.PropertyT("recommendedAction"), out var __jsonRecommendedAction) ? (string)__jsonRecommendedAction : (string)RecommendedAction;} - {_errorMessageParameter = If( json?.PropertyT("errorMessageParameters"), out var __jsonErrorMessageParameters) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.FromJson(__jsonErrorMessageParameters) : ErrorMessageParameter;} - {_errorTag = If( json?.PropertyT("errorTags"), out var __jsonErrorTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.FromJson(__jsonErrorTags) : ErrorTag;} + {_errorMessageParameter = If( json?.PropertyT("errorMessageParameters"), out var __jsonErrorMessageParameters) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.FromJson(__jsonErrorMessageParameters) : ErrorMessageParameter;} + {_errorTag = If( json?.PropertyT("errorTags"), out var __jsonErrorTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.FromJson(__jsonErrorTags) : ErrorTag;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.PowerShell.cs index f0b6d5f1fa8a..74e0a255797d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParame partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters(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.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters(global: } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs index 4c81ef44204e..ef6ba58f92ed 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there /// is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.cs index 3a2660ad6dd1..3615e856a8f8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The error message parameters. public partial class InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParametersInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.dictionary.cs index f98590a8b8ad..43160f700a3b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.json.cs index e8a28814ed26..a7b4a37534de 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParame partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmAgentUpgradeBlockingErrorDetailsErrorMessageParameters(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.PowerShell.cs index d25797aedbde..e4ccf3f0066c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags(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.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags(global::System.Colle } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.TypeConverter.cs index ca96d06163b7..477ade21cf75 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.cs index 429cc93a9933..9520bf2c4179 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The error tags. public partial class InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.dictionary.cs index a614d8f7600b..3dcfd9fbddcf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.json.cs index e863d1e98cf9..bea5eb109d1a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetailsErrorTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmAgentUpgradeBlockingErrorDetailsErrorTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceDetails.PowerShell.cs new file mode 100644 index 000000000000..81f779773520 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceDetails.PowerShell.cs @@ -0,0 +1,696 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm appliance details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmApplianceDetailsTypeConverter))] + public partial class InMageRcmApplianceDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmApplianceDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmApplianceDetails(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.Migrate.Models.Api202301.IInMageRcmApplianceDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmApplianceDetails(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.Migrate.Models.Api202301.IInMageRcmApplianceDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmApplianceDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RcmProxy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxy = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails) content.GetValueForProperty("RcmProxy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxy, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RcmProxyDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("PushInstaller")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstaller = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails) content.GetValueForProperty("PushInstaller",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstaller, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PushInstallerDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ReplicationAgent")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails) content.GetValueForProperty("ReplicationAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationAgentDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ReprotectAgent")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails) content.GetValueForProperty("ReprotectAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReprotectAgentDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("MarsAgent")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarsAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails) content.GetValueForProperty("MarsAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarsAgent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MarsAgentDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Dra")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).Dra = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails) content.GetValueForProperty("Dra",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).Dra, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DraDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("FabricArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).FabricArmId = (string) content.GetValueForProperty("FabricArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).FabricArmId, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderBlockingErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).SwitchProviderBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails[]) content.GetValueForProperty("SwitchProviderBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).SwitchProviderBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("ProcessServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ProcessServer, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RcmProxyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyId = (string) content.GetValueForProperty("RcmProxyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyId, global::System.Convert.ToString); + } + if (content.Contains("RcmProxyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyName = (string) content.GetValueForProperty("RcmProxyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyName, global::System.Convert.ToString); + } + if (content.Contains("RcmProxyBiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyBiosId = (string) content.GetValueForProperty("RcmProxyBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyBiosId, global::System.Convert.ToString); + } + if (content.Contains("RcmProxyFabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyFabricObjectId = (string) content.GetValueForProperty("RcmProxyFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyFabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("RcmProxyFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyFqdn = (string) content.GetValueForProperty("RcmProxyFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyFqdn, global::System.Convert.ToString); + } + if (content.Contains("RcmProxyClientAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyClientAuthenticationType = (string) content.GetValueForProperty("RcmProxyClientAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyClientAuthenticationType, global::System.Convert.ToString); + } + if (content.Contains("RcmProxyVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyVersion = (string) content.GetValueForProperty("RcmProxyVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyVersion, global::System.Convert.ToString); + } + if (content.Contains("RcmProxyLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("RcmProxyLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RcmProxyHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("RcmProxyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("RcmProxyHealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("RcmProxyHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("PushInstallerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerId = (string) content.GetValueForProperty("PushInstallerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerId, global::System.Convert.ToString); + } + if (content.Contains("PushInstallerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerName = (string) content.GetValueForProperty("PushInstallerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerName, global::System.Convert.ToString); + } + if (content.Contains("PushInstallerBiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerBiosId = (string) content.GetValueForProperty("PushInstallerBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerBiosId, global::System.Convert.ToString); + } + if (content.Contains("PushInstallerFabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerFabricObjectId = (string) content.GetValueForProperty("PushInstallerFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerFabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("PushInstallerFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerFqdn = (string) content.GetValueForProperty("PushInstallerFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerFqdn, global::System.Convert.ToString); + } + if (content.Contains("PushInstallerVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerVersion = (string) content.GetValueForProperty("PushInstallerVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerVersion, global::System.Convert.ToString); + } + if (content.Contains("PushInstallerLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("PushInstallerLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("PushInstallerHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("PushInstallerHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("PushInstallerHealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("PushInstallerHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ReplicationAgentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentId = (string) content.GetValueForProperty("ReplicationAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentId, global::System.Convert.ToString); + } + if (content.Contains("ReplicationAgentName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentName = (string) content.GetValueForProperty("ReplicationAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentName, global::System.Convert.ToString); + } + if (content.Contains("ReplicationAgentBiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentBiosId = (string) content.GetValueForProperty("ReplicationAgentBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentBiosId, global::System.Convert.ToString); + } + if (content.Contains("ReplicationAgentFabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFabricObjectId = (string) content.GetValueForProperty("ReplicationAgentFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("ReplicationAgentFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFqdn = (string) content.GetValueForProperty("ReplicationAgentFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFqdn, global::System.Convert.ToString); + } + if (content.Contains("ReplicationAgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentVersion = (string) content.GetValueForProperty("ReplicationAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentVersion, global::System.Convert.ToString); + } + if (content.Contains("ReplicationAgentLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("ReplicationAgentLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ReplicationAgentHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("ReplicationAgentHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("ReplicationAgentHealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("ReplicationAgentHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ReprotectAgentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentId = (string) content.GetValueForProperty("ReprotectAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentId, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentName = (string) content.GetValueForProperty("ReprotectAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentName, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentBiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentBiosId = (string) content.GetValueForProperty("ReprotectAgentBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentBiosId, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentFabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFabricObjectId = (string) content.GetValueForProperty("ReprotectAgentFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFqdn = (string) content.GetValueForProperty("ReprotectAgentFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFqdn, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVersion = (string) content.GetValueForProperty("ReprotectAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVersion, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("ReprotectAgentLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ReprotectAgentHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("ReprotectAgentHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("ReprotectAgentHealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("ReprotectAgentHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ReprotectAgentProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentProtectedItemCount = (int?) content.GetValueForProperty("ReprotectAgentProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReprotectAgentAccessibleDatastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentAccessibleDatastore = (string[]) content.GetValueForProperty("ReprotectAgentAccessibleDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentAccessibleDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ReprotectAgentVcenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVcenterId = (string) content.GetValueForProperty("ReprotectAgentVcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVcenterId, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentLastDiscoveryInUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastDiscoveryInUtc = (global::System.DateTime?) content.GetValueForProperty("ReprotectAgentLastDiscoveryInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastDiscoveryInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MarAgentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentId = (string) content.GetValueForProperty("MarAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentId, global::System.Convert.ToString); + } + if (content.Contains("MarAgentName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentName = (string) content.GetValueForProperty("MarAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentName, global::System.Convert.ToString); + } + if (content.Contains("MarAgentBiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentBiosId = (string) content.GetValueForProperty("MarAgentBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentBiosId, global::System.Convert.ToString); + } + if (content.Contains("MarAgentFabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentFabricObjectId = (string) content.GetValueForProperty("MarAgentFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentFabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("MarAgentFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentFqdn = (string) content.GetValueForProperty("MarAgentFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentFqdn, global::System.Convert.ToString); + } + if (content.Contains("MarAgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentVersion = (string) content.GetValueForProperty("MarAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentVersion, global::System.Convert.ToString); + } + if (content.Contains("MarAgentLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("MarAgentLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MarAgentHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("MarAgentHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("MarAgentHealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("MarAgentHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("DraId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraId = (string) content.GetValueForProperty("DraId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraId, global::System.Convert.ToString); + } + if (content.Contains("DraName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraName = (string) content.GetValueForProperty("DraName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraName, global::System.Convert.ToString); + } + if (content.Contains("DraBiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraBiosId = (string) content.GetValueForProperty("DraBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraBiosId, global::System.Convert.ToString); + } + if (content.Contains("DraVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraVersion = (string) content.GetValueForProperty("DraVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraVersion, global::System.Convert.ToString); + } + if (content.Contains("DraLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("DraLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DraHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("DraHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("DraHealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("DraHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("DraForwardProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraForwardProtectedItemCount = (int?) content.GetValueForProperty("DraForwardProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraForwardProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DraReverseProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraReverseProtectedItemCount = (int?) content.GetValueForProperty("DraReverseProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraReverseProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageRcmApplianceDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RcmProxy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxy = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails) content.GetValueForProperty("RcmProxy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxy, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RcmProxyDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("PushInstaller")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstaller = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails) content.GetValueForProperty("PushInstaller",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstaller, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PushInstallerDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ReplicationAgent")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails) content.GetValueForProperty("ReplicationAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationAgentDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ReprotectAgent")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails) content.GetValueForProperty("ReprotectAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReprotectAgentDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("MarsAgent")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarsAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails) content.GetValueForProperty("MarsAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarsAgent, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MarsAgentDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Dra")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).Dra = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails) content.GetValueForProperty("Dra",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).Dra, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DraDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("FabricArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).FabricArmId = (string) content.GetValueForProperty("FabricArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).FabricArmId, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderBlockingErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).SwitchProviderBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails[]) content.GetValueForProperty("SwitchProviderBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).SwitchProviderBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("ProcessServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ProcessServer, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RcmProxyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyId = (string) content.GetValueForProperty("RcmProxyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyId, global::System.Convert.ToString); + } + if (content.Contains("RcmProxyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyName = (string) content.GetValueForProperty("RcmProxyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyName, global::System.Convert.ToString); + } + if (content.Contains("RcmProxyBiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyBiosId = (string) content.GetValueForProperty("RcmProxyBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyBiosId, global::System.Convert.ToString); + } + if (content.Contains("RcmProxyFabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyFabricObjectId = (string) content.GetValueForProperty("RcmProxyFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyFabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("RcmProxyFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyFqdn = (string) content.GetValueForProperty("RcmProxyFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyFqdn, global::System.Convert.ToString); + } + if (content.Contains("RcmProxyClientAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyClientAuthenticationType = (string) content.GetValueForProperty("RcmProxyClientAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyClientAuthenticationType, global::System.Convert.ToString); + } + if (content.Contains("RcmProxyVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyVersion = (string) content.GetValueForProperty("RcmProxyVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyVersion, global::System.Convert.ToString); + } + if (content.Contains("RcmProxyLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("RcmProxyLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RcmProxyHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("RcmProxyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("RcmProxyHealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("RcmProxyHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).RcmProxyHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("PushInstallerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerId = (string) content.GetValueForProperty("PushInstallerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerId, global::System.Convert.ToString); + } + if (content.Contains("PushInstallerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerName = (string) content.GetValueForProperty("PushInstallerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerName, global::System.Convert.ToString); + } + if (content.Contains("PushInstallerBiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerBiosId = (string) content.GetValueForProperty("PushInstallerBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerBiosId, global::System.Convert.ToString); + } + if (content.Contains("PushInstallerFabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerFabricObjectId = (string) content.GetValueForProperty("PushInstallerFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerFabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("PushInstallerFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerFqdn = (string) content.GetValueForProperty("PushInstallerFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerFqdn, global::System.Convert.ToString); + } + if (content.Contains("PushInstallerVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerVersion = (string) content.GetValueForProperty("PushInstallerVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerVersion, global::System.Convert.ToString); + } + if (content.Contains("PushInstallerLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("PushInstallerLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("PushInstallerHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("PushInstallerHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("PushInstallerHealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("PushInstallerHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).PushInstallerHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ReplicationAgentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentId = (string) content.GetValueForProperty("ReplicationAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentId, global::System.Convert.ToString); + } + if (content.Contains("ReplicationAgentName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentName = (string) content.GetValueForProperty("ReplicationAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentName, global::System.Convert.ToString); + } + if (content.Contains("ReplicationAgentBiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentBiosId = (string) content.GetValueForProperty("ReplicationAgentBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentBiosId, global::System.Convert.ToString); + } + if (content.Contains("ReplicationAgentFabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFabricObjectId = (string) content.GetValueForProperty("ReplicationAgentFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("ReplicationAgentFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFqdn = (string) content.GetValueForProperty("ReplicationAgentFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentFqdn, global::System.Convert.ToString); + } + if (content.Contains("ReplicationAgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentVersion = (string) content.GetValueForProperty("ReplicationAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentVersion, global::System.Convert.ToString); + } + if (content.Contains("ReplicationAgentLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("ReplicationAgentLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ReplicationAgentHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("ReplicationAgentHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("ReplicationAgentHealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("ReplicationAgentHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReplicationAgentHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ReprotectAgentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentId = (string) content.GetValueForProperty("ReprotectAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentId, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentName = (string) content.GetValueForProperty("ReprotectAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentName, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentBiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentBiosId = (string) content.GetValueForProperty("ReprotectAgentBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentBiosId, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentFabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFabricObjectId = (string) content.GetValueForProperty("ReprotectAgentFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFqdn = (string) content.GetValueForProperty("ReprotectAgentFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentFqdn, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVersion = (string) content.GetValueForProperty("ReprotectAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVersion, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("ReprotectAgentLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ReprotectAgentHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("ReprotectAgentHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("ReprotectAgentHealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("ReprotectAgentHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ReprotectAgentProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentProtectedItemCount = (int?) content.GetValueForProperty("ReprotectAgentProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ReprotectAgentAccessibleDatastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentAccessibleDatastore = (string[]) content.GetValueForProperty("ReprotectAgentAccessibleDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentAccessibleDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ReprotectAgentVcenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVcenterId = (string) content.GetValueForProperty("ReprotectAgentVcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentVcenterId, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentLastDiscoveryInUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastDiscoveryInUtc = (global::System.DateTime?) content.GetValueForProperty("ReprotectAgentLastDiscoveryInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).ReprotectAgentLastDiscoveryInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MarAgentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentId = (string) content.GetValueForProperty("MarAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentId, global::System.Convert.ToString); + } + if (content.Contains("MarAgentName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentName = (string) content.GetValueForProperty("MarAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentName, global::System.Convert.ToString); + } + if (content.Contains("MarAgentBiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentBiosId = (string) content.GetValueForProperty("MarAgentBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentBiosId, global::System.Convert.ToString); + } + if (content.Contains("MarAgentFabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentFabricObjectId = (string) content.GetValueForProperty("MarAgentFabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentFabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("MarAgentFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentFqdn = (string) content.GetValueForProperty("MarAgentFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentFqdn, global::System.Convert.ToString); + } + if (content.Contains("MarAgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentVersion = (string) content.GetValueForProperty("MarAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentVersion, global::System.Convert.ToString); + } + if (content.Contains("MarAgentLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("MarAgentLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MarAgentHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("MarAgentHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("MarAgentHealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("MarAgentHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).MarAgentHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("DraId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraId = (string) content.GetValueForProperty("DraId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraId, global::System.Convert.ToString); + } + if (content.Contains("DraName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraName = (string) content.GetValueForProperty("DraName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraName, global::System.Convert.ToString); + } + if (content.Contains("DraBiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraBiosId = (string) content.GetValueForProperty("DraBiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraBiosId, global::System.Convert.ToString); + } + if (content.Contains("DraVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraVersion = (string) content.GetValueForProperty("DraVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraVersion, global::System.Convert.ToString); + } + if (content.Contains("DraLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("DraLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DraHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("DraHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("DraHealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraHealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("DraHealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraHealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("DraForwardProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraForwardProtectedItemCount = (int?) content.GetValueForProperty("DraForwardProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraForwardProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DraReverseProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraReverseProtectedItemCount = (int?) content.GetValueForProperty("DraReverseProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal)this).DraReverseProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm appliance details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmApplianceDetailsTypeConverter))] + public partial interface IInMageRcmApplianceDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceDetails.TypeConverter.cs index f2ce136fb46b..78d596534e8a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmApplianceDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceDetails.cs new file mode 100644 index 000000000000..0f900134d809 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceDetails.cs @@ -0,0 +1,1209 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// InMageRcm appliance details. + public partial class InMageRcmApplianceDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails _dra; + + /// The DRA. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails Dra { get => (this._dra = this._dra ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DraDetails()); } + + /// The DRA Bios Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DraBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).BiosId; } + + /// The count of protected items which are protected in forward direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public int? DraForwardProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).ForwardProtectedItemCount; } + + /// The health. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? DraHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).Health; } + + /// The health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] DraHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).HealthError; } + + /// The DRA Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DraId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).Id; } + + /// The last heartbeat received from the DRA. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? DraLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).LastHeartbeatUtc; } + + /// The DRA name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DraName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).Name; } + + /// The count of protected items which are protected in reverse direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public int? DraReverseProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).ReverseProtectedItemCount; } + + /// The version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DraVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).Version; } + + /// Backing field for property. + private string _fabricArmId; + + /// The fabric ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string FabricArmId { get => this._fabricArmId; } + + /// Backing field for property. + private string _id; + + /// The appliance Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// The Mars agent Bios Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string MarAgentBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).BiosId; } + + /// The fabric object Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string MarAgentFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).FabricObjectId; } + + /// The Mars agent Fqdn. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string MarAgentFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Fqdn; } + + /// The health of the Mars agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? MarAgentHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Health; } + + /// The health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] MarAgentHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).HealthError; } + + /// The Mars agent Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string MarAgentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Id; } + + /// The last heartbeat received from the Mars agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? MarAgentLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).LastHeartbeatUtc; } + + /// The Mars agent name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string MarAgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Name; } + + /// The version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string MarAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Version; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails _marsAgent; + + /// The Mars agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails MarsAgent { get => (this._marsAgent = this._marsAgent ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MarsAgentDetails()); } + + /// Internal Acessors for Dra + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.Dra { get => (this._dra = this._dra ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DraDetails()); set { {_dra = value;} } } + + /// Internal Acessors for DraBiosId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.DraBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).BiosId = value; } + + /// Internal Acessors for DraForwardProtectedItemCount + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.DraForwardProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).ForwardProtectedItemCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).ForwardProtectedItemCount = value; } + + /// Internal Acessors for DraHealth + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.DraHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).Health = value; } + + /// Internal Acessors for DraHealthError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.DraHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).HealthError = value; } + + /// Internal Acessors for DraId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.DraId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).Id = value; } + + /// Internal Acessors for DraLastHeartbeatUtc + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.DraLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).LastHeartbeatUtc = value; } + + /// Internal Acessors for DraName + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.DraName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).Name = value; } + + /// Internal Acessors for DraReverseProtectedItemCount + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.DraReverseProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).ReverseProtectedItemCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).ReverseProtectedItemCount = value; } + + /// Internal Acessors for DraVersion + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.DraVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetailsInternal)Dra).Version = value; } + + /// Internal Acessors for FabricArmId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.FabricArmId { get => this._fabricArmId; set { {_fabricArmId = value;} } } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for MarAgentBiosId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.MarAgentBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).BiosId = value; } + + /// Internal Acessors for MarAgentFabricObjectId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.MarAgentFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).FabricObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).FabricObjectId = value; } + + /// Internal Acessors for MarAgentFqdn + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.MarAgentFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Fqdn = value; } + + /// Internal Acessors for MarAgentHealth + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.MarAgentHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Health = value; } + + /// Internal Acessors for MarAgentHealthError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.MarAgentHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).HealthError = value; } + + /// Internal Acessors for MarAgentId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.MarAgentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Id = value; } + + /// Internal Acessors for MarAgentLastHeartbeatUtc + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.MarAgentLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).LastHeartbeatUtc = value; } + + /// Internal Acessors for MarAgentName + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.MarAgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Name = value; } + + /// Internal Acessors for MarAgentVersion + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.MarAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)MarsAgent).Version = value; } + + /// Internal Acessors for MarsAgent + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.MarsAgent { get => (this._marsAgent = this._marsAgent ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MarsAgentDetails()); set { {_marsAgent = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for ProcessServer + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ProcessServer { get => (this._processServer = this._processServer ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerDetails()); set { {_processServer = value;} } } + + /// Internal Acessors for PushInstaller + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.PushInstaller { get => (this._pushInstaller = this._pushInstaller ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PushInstallerDetails()); set { {_pushInstaller = value;} } } + + /// Internal Acessors for PushInstallerBiosId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.PushInstallerBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).BiosId = value; } + + /// Internal Acessors for PushInstallerFabricObjectId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.PushInstallerFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).FabricObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).FabricObjectId = value; } + + /// Internal Acessors for PushInstallerFqdn + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.PushInstallerFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Fqdn = value; } + + /// Internal Acessors for PushInstallerHealth + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.PushInstallerHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Health = value; } + + /// Internal Acessors for PushInstallerHealthError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.PushInstallerHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).HealthError = value; } + + /// Internal Acessors for PushInstallerId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.PushInstallerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Id = value; } + + /// Internal Acessors for PushInstallerLastHeartbeatUtc + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.PushInstallerLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).LastHeartbeatUtc = value; } + + /// Internal Acessors for PushInstallerName + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.PushInstallerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Name = value; } + + /// Internal Acessors for PushInstallerVersion + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.PushInstallerVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Version = value; } + + /// Internal Acessors for RcmProxy + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.RcmProxy { get => (this._rcmProxy = this._rcmProxy ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RcmProxyDetails()); set { {_rcmProxy = value;} } } + + /// Internal Acessors for RcmProxyBiosId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.RcmProxyBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).BiosId = value; } + + /// Internal Acessors for RcmProxyClientAuthenticationType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.RcmProxyClientAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).ClientAuthenticationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).ClientAuthenticationType = value; } + + /// Internal Acessors for RcmProxyFabricObjectId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.RcmProxyFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).FabricObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).FabricObjectId = value; } + + /// Internal Acessors for RcmProxyFqdn + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.RcmProxyFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Fqdn = value; } + + /// Internal Acessors for RcmProxyHealth + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.RcmProxyHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Health = value; } + + /// Internal Acessors for RcmProxyHealthError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.RcmProxyHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).HealthError = value; } + + /// Internal Acessors for RcmProxyId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.RcmProxyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Id = value; } + + /// Internal Acessors for RcmProxyLastHeartbeatUtc + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.RcmProxyLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).LastHeartbeatUtc = value; } + + /// Internal Acessors for RcmProxyName + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.RcmProxyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Name = value; } + + /// Internal Acessors for RcmProxyVersion + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.RcmProxyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Version = value; } + + /// Internal Acessors for ReplicationAgent + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReplicationAgent { get => (this._replicationAgent = this._replicationAgent ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationAgentDetails()); set { {_replicationAgent = value;} } } + + /// Internal Acessors for ReplicationAgentBiosId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReplicationAgentBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).BiosId = value; } + + /// Internal Acessors for ReplicationAgentFabricObjectId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReplicationAgentFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).FabricObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).FabricObjectId = value; } + + /// Internal Acessors for ReplicationAgentFqdn + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReplicationAgentFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Fqdn = value; } + + /// Internal Acessors for ReplicationAgentHealth + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReplicationAgentHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Health = value; } + + /// Internal Acessors for ReplicationAgentHealthError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReplicationAgentHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).HealthError = value; } + + /// Internal Acessors for ReplicationAgentId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReplicationAgentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Id = value; } + + /// Internal Acessors for ReplicationAgentLastHeartbeatUtc + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReplicationAgentLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).LastHeartbeatUtc = value; } + + /// Internal Acessors for ReplicationAgentName + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReplicationAgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Name = value; } + + /// Internal Acessors for ReplicationAgentVersion + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReplicationAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Version = value; } + + /// Internal Acessors for ReprotectAgent + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReprotectAgent { get => (this._reprotectAgent = this._reprotectAgent ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReprotectAgentDetails()); set { {_reprotectAgent = value;} } } + + /// Internal Acessors for ReprotectAgentAccessibleDatastore + string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReprotectAgentAccessibleDatastore { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).AccessibleDatastore; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).AccessibleDatastore = value; } + + /// Internal Acessors for ReprotectAgentBiosId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReprotectAgentBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).BiosId = value; } + + /// Internal Acessors for ReprotectAgentFabricObjectId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReprotectAgentFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).FabricObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).FabricObjectId = value; } + + /// Internal Acessors for ReprotectAgentFqdn + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReprotectAgentFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Fqdn = value; } + + /// Internal Acessors for ReprotectAgentHealth + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReprotectAgentHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Health = value; } + + /// Internal Acessors for ReprotectAgentHealthError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReprotectAgentHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).HealthError = value; } + + /// Internal Acessors for ReprotectAgentId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReprotectAgentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Id = value; } + + /// Internal Acessors for ReprotectAgentLastDiscoveryInUtc + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReprotectAgentLastDiscoveryInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).LastDiscoveryInUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).LastDiscoveryInUtc = value; } + + /// Internal Acessors for ReprotectAgentLastHeartbeatUtc + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReprotectAgentLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).LastHeartbeatUtc = value; } + + /// Internal Acessors for ReprotectAgentName + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReprotectAgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Name = value; } + + /// Internal Acessors for ReprotectAgentProtectedItemCount + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReprotectAgentProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).ProtectedItemCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).ProtectedItemCount = value; } + + /// Internal Acessors for ReprotectAgentVcenterId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReprotectAgentVcenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).VcenterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).VcenterId = value; } + + /// Internal Acessors for ReprotectAgentVersion + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.ReprotectAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Version = value; } + + /// Internal Acessors for SwitchProviderBlockingErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetailsInternal.SwitchProviderBlockingErrorDetail { get => this._switchProviderBlockingErrorDetail; set { {_switchProviderBlockingErrorDetail = value;} } } + + /// Backing field for property. + private string _name; + + /// The appliance name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails _processServer; + + /// The process server. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails ProcessServer { get => (this._processServer = this._processServer ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerDetails()); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails _pushInstaller; + + /// The push installer. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails PushInstaller { get => (this._pushInstaller = this._pushInstaller ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PushInstallerDetails()); } + + /// The push installer Bios Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PushInstallerBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).BiosId; } + + /// The fabric object Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PushInstallerFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).FabricObjectId; } + + /// The push installer Fqdn. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PushInstallerFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Fqdn; } + + /// The health of the push installer. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? PushInstallerHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Health; } + + /// The health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] PushInstallerHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).HealthError; } + + /// The push installer Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PushInstallerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Id; } + + /// The last heartbeat received from the push installer. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? PushInstallerLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).LastHeartbeatUtc; } + + /// The push installer name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PushInstallerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Name; } + + /// The version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PushInstallerVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)PushInstaller).Version; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails _rcmProxy; + + /// The of RCM proxy. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails RcmProxy { get => (this._rcmProxy = this._rcmProxy ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RcmProxyDetails()); } + + /// The RCM proxy Bios Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RcmProxyBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).BiosId; } + + /// The client authentication type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RcmProxyClientAuthenticationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).ClientAuthenticationType; } + + /// The fabric object Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RcmProxyFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).FabricObjectId; } + + /// The RCM proxy Fqdn. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RcmProxyFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Fqdn; } + + /// The health of the RCM proxy. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? RcmProxyHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Health; } + + /// The health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] RcmProxyHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).HealthError; } + + /// The RCM proxy Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RcmProxyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Id; } + + /// The last heartbeat received from the RCM proxy. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? RcmProxyLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).LastHeartbeatUtc; } + + /// The RCM proxy name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RcmProxyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Name; } + + /// The version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RcmProxyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)RcmProxy).Version; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails _replicationAgent; + + /// The replication agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails ReplicationAgent { get => (this._replicationAgent = this._replicationAgent ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationAgentDetails()); } + + /// The replication agent Bios Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReplicationAgentBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).BiosId; } + + /// The fabric object Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReplicationAgentFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).FabricObjectId; } + + /// The replication agent Fqdn. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReplicationAgentFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Fqdn; } + + /// The health of the replication agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? ReplicationAgentHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Health; } + + /// The health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ReplicationAgentHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).HealthError; } + + /// The replication agent Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReplicationAgentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Id; } + + /// The last heartbeat received from the replication agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? ReplicationAgentLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).LastHeartbeatUtc; } + + /// The replication agent name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReplicationAgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Name; } + + /// The version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReplicationAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)ReplicationAgent).Version; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails _reprotectAgent; + + /// The reprotect agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails ReprotectAgent { get => (this._reprotectAgent = this._reprotectAgent ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReprotectAgentDetails()); } + + /// The list of accessible datastores fetched from discovery. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string[] ReprotectAgentAccessibleDatastore { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).AccessibleDatastore; } + + /// The reprotect agent Bios Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReprotectAgentBiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).BiosId; } + + /// The fabric object Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReprotectAgentFabricObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).FabricObjectId; } + + /// The reprotect agent Fqdn. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReprotectAgentFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Fqdn; } + + /// The health of the reprotect agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? ReprotectAgentHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Health; } + + /// The health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ReprotectAgentHealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).HealthError; } + + /// The reprotect agent Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReprotectAgentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Id; } + + /// The last time when SDS information discovered in SRS. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? ReprotectAgentLastDiscoveryInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).LastDiscoveryInUtc; } + + /// The last heartbeat received from the reprotect agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? ReprotectAgentLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).LastHeartbeatUtc; } + + /// The reprotect agent name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReprotectAgentName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Name; } + + /// The protected item count. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public int? ReprotectAgentProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).ProtectedItemCount; } + + /// The Vcenter Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReprotectAgentVcenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).VcenterId; } + + /// The version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReprotectAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)ReprotectAgent).Version; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails[] _switchProviderBlockingErrorDetail; + + /// The switch provider blocking error information. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get => this._switchProviderBlockingErrorDetail; } + + /// Creates an new instance. + public InMageRcmApplianceDetails() + { + + } + } + /// InMageRcm appliance details. + public partial interface IInMageRcmApplianceDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The DRA Bios Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The DRA Bios Id.", + SerializedName = @"biosId", + PossibleTypes = new [] { typeof(string) })] + string DraBiosId { get; } + /// The count of protected items which are protected in forward direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The count of protected items which are protected in forward direction.", + SerializedName = @"forwardProtectedItemCount", + PossibleTypes = new [] { typeof(int) })] + int? DraForwardProtectedItemCount { get; } + /// The health. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The health.", + SerializedName = @"health", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? DraHealth { get; } + /// The health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The health errors.", + SerializedName = @"healthErrors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] DraHealthError { get; } + /// The DRA Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The DRA Id.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string DraId { get; } + /// The last heartbeat received from the DRA. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The last heartbeat received from the DRA.", + SerializedName = @"lastHeartbeatUtc", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? DraLastHeartbeatUtc { get; } + /// The DRA name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The DRA name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string DraName { get; } + /// The count of protected items which are protected in reverse direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The count of protected items which are protected in reverse direction.", + SerializedName = @"reverseProtectedItemCount", + PossibleTypes = new [] { typeof(int) })] + int? DraReverseProtectedItemCount { get; } + /// The version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The version.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string DraVersion { get; } + /// The fabric ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The fabric ARM Id.", + SerializedName = @"fabricArmId", + PossibleTypes = new [] { typeof(string) })] + string FabricArmId { get; } + /// The appliance Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The appliance Id.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// The Mars agent Bios Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Mars agent Bios Id.", + SerializedName = @"biosId", + PossibleTypes = new [] { typeof(string) })] + string MarAgentBiosId { get; } + /// The fabric object Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The fabric object Id.", + SerializedName = @"fabricObjectId", + PossibleTypes = new [] { typeof(string) })] + string MarAgentFabricObjectId { get; } + /// The Mars agent Fqdn. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Mars agent Fqdn.", + SerializedName = @"fqdn", + PossibleTypes = new [] { typeof(string) })] + string MarAgentFqdn { get; } + /// The health of the Mars agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The health of the Mars agent.", + SerializedName = @"health", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? MarAgentHealth { get; } + /// The health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The health errors.", + SerializedName = @"healthErrors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] MarAgentHealthError { get; } + /// The Mars agent Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Mars agent Id.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string MarAgentId { get; } + /// The last heartbeat received from the Mars agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The last heartbeat received from the Mars agent.", + SerializedName = @"lastHeartbeatUtc", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? MarAgentLastHeartbeatUtc { get; } + /// The Mars agent name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Mars agent name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string MarAgentName { get; } + /// The version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The version.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string MarAgentVersion { get; } + /// The appliance name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The appliance name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// The process server. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The process server.", + SerializedName = @"processServer", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails ProcessServer { get; } + /// The push installer Bios Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The push installer Bios Id.", + SerializedName = @"biosId", + PossibleTypes = new [] { typeof(string) })] + string PushInstallerBiosId { get; } + /// The fabric object Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The fabric object Id.", + SerializedName = @"fabricObjectId", + PossibleTypes = new [] { typeof(string) })] + string PushInstallerFabricObjectId { get; } + /// The push installer Fqdn. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The push installer Fqdn.", + SerializedName = @"fqdn", + PossibleTypes = new [] { typeof(string) })] + string PushInstallerFqdn { get; } + /// The health of the push installer. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The health of the push installer.", + SerializedName = @"health", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? PushInstallerHealth { get; } + /// The health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The health errors.", + SerializedName = @"healthErrors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] PushInstallerHealthError { get; } + /// The push installer Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The push installer Id.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string PushInstallerId { get; } + /// The last heartbeat received from the push installer. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The last heartbeat received from the push installer.", + SerializedName = @"lastHeartbeatUtc", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? PushInstallerLastHeartbeatUtc { get; } + /// The push installer name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The push installer name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string PushInstallerName { get; } + /// The version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The version.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string PushInstallerVersion { get; } + /// The RCM proxy Bios Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The RCM proxy Bios Id.", + SerializedName = @"biosId", + PossibleTypes = new [] { typeof(string) })] + string RcmProxyBiosId { get; } + /// The client authentication type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The client authentication type.", + SerializedName = @"clientAuthenticationType", + PossibleTypes = new [] { typeof(string) })] + string RcmProxyClientAuthenticationType { get; } + /// The fabric object Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The fabric object Id.", + SerializedName = @"fabricObjectId", + PossibleTypes = new [] { typeof(string) })] + string RcmProxyFabricObjectId { get; } + /// The RCM proxy Fqdn. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The RCM proxy Fqdn.", + SerializedName = @"fqdn", + PossibleTypes = new [] { typeof(string) })] + string RcmProxyFqdn { get; } + /// The health of the RCM proxy. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The health of the RCM proxy.", + SerializedName = @"health", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? RcmProxyHealth { get; } + /// The health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The health errors.", + SerializedName = @"healthErrors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] RcmProxyHealthError { get; } + /// The RCM proxy Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The RCM proxy Id.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string RcmProxyId { get; } + /// The last heartbeat received from the RCM proxy. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The last heartbeat received from the RCM proxy.", + SerializedName = @"lastHeartbeatUtc", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? RcmProxyLastHeartbeatUtc { get; } + /// The RCM proxy name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The RCM proxy name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string RcmProxyName { get; } + /// The version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The version.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string RcmProxyVersion { get; } + /// The replication agent Bios Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The replication agent Bios Id.", + SerializedName = @"biosId", + PossibleTypes = new [] { typeof(string) })] + string ReplicationAgentBiosId { get; } + /// The fabric object Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The fabric object Id.", + SerializedName = @"fabricObjectId", + PossibleTypes = new [] { typeof(string) })] + string ReplicationAgentFabricObjectId { get; } + /// The replication agent Fqdn. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The replication agent Fqdn.", + SerializedName = @"fqdn", + PossibleTypes = new [] { typeof(string) })] + string ReplicationAgentFqdn { get; } + /// The health of the replication agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The health of the replication agent.", + SerializedName = @"health", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? ReplicationAgentHealth { get; } + /// The health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The health errors.", + SerializedName = @"healthErrors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ReplicationAgentHealthError { get; } + /// The replication agent Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The replication agent Id.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string ReplicationAgentId { get; } + /// The last heartbeat received from the replication agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The last heartbeat received from the replication agent.", + SerializedName = @"lastHeartbeatUtc", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ReplicationAgentLastHeartbeatUtc { get; } + /// The replication agent name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The replication agent name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string ReplicationAgentName { get; } + /// The version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The version.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string ReplicationAgentVersion { get; } + /// The list of accessible datastores fetched from discovery. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The list of accessible datastores fetched from discovery.", + SerializedName = @"accessibleDatastores", + PossibleTypes = new [] { typeof(string) })] + string[] ReprotectAgentAccessibleDatastore { get; } + /// The reprotect agent Bios Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The reprotect agent Bios Id.", + SerializedName = @"biosId", + PossibleTypes = new [] { typeof(string) })] + string ReprotectAgentBiosId { get; } + /// The fabric object Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The fabric object Id.", + SerializedName = @"fabricObjectId", + PossibleTypes = new [] { typeof(string) })] + string ReprotectAgentFabricObjectId { get; } + /// The reprotect agent Fqdn. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The reprotect agent Fqdn.", + SerializedName = @"fqdn", + PossibleTypes = new [] { typeof(string) })] + string ReprotectAgentFqdn { get; } + /// The health of the reprotect agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The health of the reprotect agent.", + SerializedName = @"health", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? ReprotectAgentHealth { get; } + /// The health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The health errors.", + SerializedName = @"healthErrors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ReprotectAgentHealthError { get; } + /// The reprotect agent Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The reprotect agent Id.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string ReprotectAgentId { get; } + /// The last time when SDS information discovered in SRS. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The last time when SDS information discovered in SRS.", + SerializedName = @"lastDiscoveryInUtc", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ReprotectAgentLastDiscoveryInUtc { get; } + /// The last heartbeat received from the reprotect agent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The last heartbeat received from the reprotect agent.", + SerializedName = @"lastHeartbeatUtc", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ReprotectAgentLastHeartbeatUtc { get; } + /// The reprotect agent name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The reprotect agent name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string ReprotectAgentName { get; } + /// The protected item count. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The protected item count.", + SerializedName = @"protectedItemCount", + PossibleTypes = new [] { typeof(int) })] + int? ReprotectAgentProtectedItemCount { get; } + /// The Vcenter Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The Vcenter Id.", + SerializedName = @"vcenterId", + PossibleTypes = new [] { typeof(string) })] + string ReprotectAgentVcenterId { get; } + /// The version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The version.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string ReprotectAgentVersion { get; } + /// The switch provider blocking error information. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The switch provider blocking error information.", + SerializedName = @"switchProviderBlockingErrorDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get; } + + } + /// InMageRcm appliance details. + internal partial interface IInMageRcmApplianceDetailsInternal + + { + /// The DRA. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails Dra { get; set; } + /// The DRA Bios Id. + string DraBiosId { get; set; } + /// The count of protected items which are protected in forward direction. + int? DraForwardProtectedItemCount { get; set; } + /// The health. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? DraHealth { get; set; } + /// The health errors. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] DraHealthError { get; set; } + /// The DRA Id. + string DraId { get; set; } + /// The last heartbeat received from the DRA. + global::System.DateTime? DraLastHeartbeatUtc { get; set; } + /// The DRA name. + string DraName { get; set; } + /// The count of protected items which are protected in reverse direction. + int? DraReverseProtectedItemCount { get; set; } + /// The version. + string DraVersion { get; set; } + /// The fabric ARM Id. + string FabricArmId { get; set; } + /// The appliance Id. + string Id { get; set; } + /// The Mars agent Bios Id. + string MarAgentBiosId { get; set; } + /// The fabric object Id. + string MarAgentFabricObjectId { get; set; } + /// The Mars agent Fqdn. + string MarAgentFqdn { get; set; } + /// The health of the Mars agent. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? MarAgentHealth { get; set; } + /// The health errors. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] MarAgentHealthError { get; set; } + /// The Mars agent Id. + string MarAgentId { get; set; } + /// The last heartbeat received from the Mars agent. + global::System.DateTime? MarAgentLastHeartbeatUtc { get; set; } + /// The Mars agent name. + string MarAgentName { get; set; } + /// The version. + string MarAgentVersion { get; set; } + /// The Mars agent. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails MarsAgent { get; set; } + /// The appliance name. + string Name { get; set; } + /// The process server. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails ProcessServer { get; set; } + /// The push installer. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails PushInstaller { get; set; } + /// The push installer Bios Id. + string PushInstallerBiosId { get; set; } + /// The fabric object Id. + string PushInstallerFabricObjectId { get; set; } + /// The push installer Fqdn. + string PushInstallerFqdn { get; set; } + /// The health of the push installer. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? PushInstallerHealth { get; set; } + /// The health errors. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] PushInstallerHealthError { get; set; } + /// The push installer Id. + string PushInstallerId { get; set; } + /// The last heartbeat received from the push installer. + global::System.DateTime? PushInstallerLastHeartbeatUtc { get; set; } + /// The push installer name. + string PushInstallerName { get; set; } + /// The version. + string PushInstallerVersion { get; set; } + /// The of RCM proxy. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails RcmProxy { get; set; } + /// The RCM proxy Bios Id. + string RcmProxyBiosId { get; set; } + /// The client authentication type. + string RcmProxyClientAuthenticationType { get; set; } + /// The fabric object Id. + string RcmProxyFabricObjectId { get; set; } + /// The RCM proxy Fqdn. + string RcmProxyFqdn { get; set; } + /// The health of the RCM proxy. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? RcmProxyHealth { get; set; } + /// The health errors. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] RcmProxyHealthError { get; set; } + /// The RCM proxy Id. + string RcmProxyId { get; set; } + /// The last heartbeat received from the RCM proxy. + global::System.DateTime? RcmProxyLastHeartbeatUtc { get; set; } + /// The RCM proxy name. + string RcmProxyName { get; set; } + /// The version. + string RcmProxyVersion { get; set; } + /// The replication agent. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails ReplicationAgent { get; set; } + /// The replication agent Bios Id. + string ReplicationAgentBiosId { get; set; } + /// The fabric object Id. + string ReplicationAgentFabricObjectId { get; set; } + /// The replication agent Fqdn. + string ReplicationAgentFqdn { get; set; } + /// The health of the replication agent. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? ReplicationAgentHealth { get; set; } + /// The health errors. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ReplicationAgentHealthError { get; set; } + /// The replication agent Id. + string ReplicationAgentId { get; set; } + /// The last heartbeat received from the replication agent. + global::System.DateTime? ReplicationAgentLastHeartbeatUtc { get; set; } + /// The replication agent name. + string ReplicationAgentName { get; set; } + /// The version. + string ReplicationAgentVersion { get; set; } + /// The reprotect agent. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails ReprotectAgent { get; set; } + /// The list of accessible datastores fetched from discovery. + string[] ReprotectAgentAccessibleDatastore { get; set; } + /// The reprotect agent Bios Id. + string ReprotectAgentBiosId { get; set; } + /// The fabric object Id. + string ReprotectAgentFabricObjectId { get; set; } + /// The reprotect agent Fqdn. + string ReprotectAgentFqdn { get; set; } + /// The health of the reprotect agent. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? ReprotectAgentHealth { get; set; } + /// The health errors. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ReprotectAgentHealthError { get; set; } + /// The reprotect agent Id. + string ReprotectAgentId { get; set; } + /// The last time when SDS information discovered in SRS. + global::System.DateTime? ReprotectAgentLastDiscoveryInUtc { get; set; } + /// The last heartbeat received from the reprotect agent. + global::System.DateTime? ReprotectAgentLastHeartbeatUtc { get; set; } + /// The reprotect agent name. + string ReprotectAgentName { get; set; } + /// The protected item count. + int? ReprotectAgentProtectedItemCount { get; set; } + /// The Vcenter Id. + string ReprotectAgentVcenterId { get; set; } + /// The version. + string ReprotectAgentVersion { get; set; } + /// The switch provider blocking error information. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceDetails.json.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceDetails.json.cs index 7bac1ad07255..d1c13c21ea3e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmApplianceDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmApplianceDetails(json) : null; } @@ -77,17 +77,17 @@ internal InMageRcmApplianceDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - {_rcmProxy = If( json?.PropertyT("rcmProxy"), out var __jsonRcmProxy) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RcmProxyDetails.FromJson(__jsonRcmProxy) : RcmProxy;} - {_pushInstaller = If( json?.PropertyT("pushInstaller"), out var __jsonPushInstaller) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PushInstallerDetails.FromJson(__jsonPushInstaller) : PushInstaller;} - {_replicationAgent = If( json?.PropertyT("replicationAgent"), out var __jsonReplicationAgent) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationAgentDetails.FromJson(__jsonReplicationAgent) : ReplicationAgent;} - {_reprotectAgent = If( json?.PropertyT("reprotectAgent"), out var __jsonReprotectAgent) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReprotectAgentDetails.FromJson(__jsonReprotectAgent) : ReprotectAgent;} - {_marsAgent = If( json?.PropertyT("marsAgent"), out var __jsonMarsAgent) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MarsAgentDetails.FromJson(__jsonMarsAgent) : MarsAgent;} - {_dra = If( json?.PropertyT("dra"), out var __jsonDra) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DraDetails.FromJson(__jsonDra) : Dra;} + {_rcmProxy = If( json?.PropertyT("rcmProxy"), out var __jsonRcmProxy) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RcmProxyDetails.FromJson(__jsonRcmProxy) : RcmProxy;} + {_pushInstaller = If( json?.PropertyT("pushInstaller"), out var __jsonPushInstaller) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PushInstallerDetails.FromJson(__jsonPushInstaller) : PushInstaller;} + {_replicationAgent = If( json?.PropertyT("replicationAgent"), out var __jsonReplicationAgent) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationAgentDetails.FromJson(__jsonReplicationAgent) : ReplicationAgent;} + {_reprotectAgent = If( json?.PropertyT("reprotectAgent"), out var __jsonReprotectAgent) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReprotectAgentDetails.FromJson(__jsonReprotectAgent) : ReprotectAgent;} + {_marsAgent = If( json?.PropertyT("marsAgent"), out var __jsonMarsAgent) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MarsAgentDetails.FromJson(__jsonMarsAgent) : MarsAgent;} + {_dra = If( json?.PropertyT("dra"), out var __jsonDra) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DraDetails.FromJson(__jsonDra) : Dra;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_fabricArmId = If( json?.PropertyT("fabricArmId"), out var __jsonFabricArmId) ? (string)__jsonFabricArmId : (string)FabricArmId;} - {_switchProviderBlockingErrorDetail = If( json?.PropertyT("switchProviderBlockingErrorDetails"), out var __jsonSwitchProviderBlockingErrorDetails) ? If( __jsonSwitchProviderBlockingErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetails.FromJson(__u) )) ))() : null : SwitchProviderBlockingErrorDetail;} - {_processServer = If( json?.PropertyT("processServer"), out var __jsonProcessServer) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerDetails.FromJson(__jsonProcessServer) : ProcessServer;} + {_switchProviderBlockingErrorDetail = If( json?.PropertyT("switchProviderBlockingErrorDetails"), out var __jsonSwitchProviderBlockingErrorDetails) ? If( __jsonSwitchProviderBlockingErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetails.FromJson(__u) )) ))() : null : SwitchProviderBlockingErrorDetail;} + {_processServer = If( json?.PropertyT("processServer"), out var __jsonProcessServer) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerDetails.FromJson(__jsonProcessServer) : ProcessServer;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceSpecificDetails.PowerShell.cs new file mode 100644 index 000000000000..cecb39879250 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceSpecificDetails.PowerShell.cs @@ -0,0 +1,156 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm appliance specific details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmApplianceSpecificDetailsTypeConverter))] + public partial class InMageRcmApplianceSpecificDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmApplianceSpecificDetails(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.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmApplianceSpecificDetails(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.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmApplianceSpecificDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Appliance")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetailsInternal)this).Appliance = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetails[]) content.GetValueForProperty("Appliance",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetailsInternal)this).Appliance, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmApplianceDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetailsInternal)this).InstanceType, 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 InMageRcmApplianceSpecificDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Appliance")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetailsInternal)this).Appliance = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetails[]) content.GetValueForProperty("Appliance",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetailsInternal)this).Appliance, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmApplianceDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm appliance specific details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmApplianceSpecificDetailsTypeConverter))] + public partial interface IInMageRcmApplianceSpecificDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceSpecificDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceSpecificDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceSpecificDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceSpecificDetails.TypeConverter.cs index a8635046d79e..6ad4ffe25e9c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceSpecificDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceSpecificDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceSpecificDetails.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceSpecificDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceSpecificDetails.cs index 963a38eca3ec..dc5d0fe93921 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceSpecificDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceSpecificDetails.cs @@ -3,35 +3,35 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm appliance specific details. public partial class InMageRcmApplianceSpecificDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails __applianceSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails __applianceSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceSpecificDetails(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetails[] _appliance; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetails[] _appliance; /// The list of appliances. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetails[] Appliance { get => this._appliance; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetails[] Appliance { get => this._appliance; } /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetailsInternal)__applianceSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetailsInternal)__applianceSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetailsInternal)__applianceSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetailsInternal)__applianceSpecificDetails).InstanceType = value ; } /// Internal Acessors for Appliance - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetailsInternal.Appliance { get => this._appliance; set { {_appliance = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetailsInternal.Appliance { get => this._appliance; set { {_appliance = value;} } } /// Creates an new instance. public InMageRcmApplianceSpecificDetails() @@ -54,7 +54,7 @@ public InMageRcmApplianceSpecificDetails() /// InMageRcm appliance specific details. public partial interface IInMageRcmApplianceSpecificDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails { /// The list of appliances. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -62,16 +62,16 @@ public partial interface IInMageRcmApplianceSpecificDetails : ReadOnly = true, Description = @"The list of appliances.", SerializedName = @"appliances", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetails[] Appliance { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetails[] Appliance { get; } } /// InMageRcm appliance specific details. internal partial interface IInMageRcmApplianceSpecificDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplianceSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetailsInternal { /// The list of appliances. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceDetails[] Appliance { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceDetails[] Appliance { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceSpecificDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceSpecificDetails.json.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceSpecificDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceSpecificDetails.json.cs index 7e52679ffd66..5328504a691d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplianceSpecificDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplianceSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmApplianceSpecificDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplianceSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplianceSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmApplianceSpecificDetails(json) : null; } @@ -77,8 +77,8 @@ internal InMageRcmApplianceSpecificDetails(Microsoft.Azure.PowerShell.Cmdlets.Mi { return; } - __applianceSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceSpecificDetails(json); - {_appliance = If( json?.PropertyT("appliances"), out var __jsonAppliances) ? If( __jsonAppliances as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmApplianceDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmApplianceDetails.FromJson(__u) )) ))() : null : Appliance;} + __applianceSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceSpecificDetails(json); + {_appliance = If( json?.PropertyT("appliances"), out var __jsonAppliances) ? If( __jsonAppliances as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IInMageRcmApplianceDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmApplianceDetails.FromJson(__u) )) ))() : null : Appliance;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplyRecoveryPointInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplyRecoveryPointInput.PowerShell.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmApplyRecoveryPointInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmApplyRecoveryPointInput.PowerShell.cs index ebd0e05681a4..291146fb0d22 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplyRecoveryPointInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageRcmApplyRecoveryPointInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageRcmApplyRecoveryPointInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplyRecoveryPointInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageRcmApplyRecoveryPointInput(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.Migrate.Models.Api20220501.IInMageRcmApplyRecoveryPointInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplyRecoveryPointInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageRcmApplyRecoveryPointInput(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplyRecoveryPointInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplyRecoveryPointInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,17 +105,17 @@ internal InMageRcmApplyRecoveryPointInput(global::System.Collections.IDictionary // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplyRecoveryPointInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplyRecoveryPointInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplyRecoveryPointInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplyRecoveryPointInputInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, 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. @@ -130,11 +130,11 @@ internal InMageRcmApplyRecoveryPointInput(global::System.Management.Automation.P // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplyRecoveryPointInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplyRecoveryPointInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplyRecoveryPointInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplyRecoveryPointInputInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplyRecoveryPointInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplyRecoveryPointInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmApplyRecoveryPointInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmApplyRecoveryPointInput.TypeConverter.cs index 73874f032bc1..250ea10693e7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplyRecoveryPointInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmApplyRecoveryPointInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplyRecoveryPointInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplyRecoveryPointInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplyRecoveryPointInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplyRecoveryPointInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplyRecoveryPointInput.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmApplyRecoveryPointInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmApplyRecoveryPointInput.cs index fa6427d7d268..5291f99caf70 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplyRecoveryPointInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// ApplyRecoveryPoint input specific to InMageRcm provider. public partial class InMageRcmApplyRecoveryPointInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplyRecoveryPointInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplyRecoveryPointInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplyRecoveryPointInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplyRecoveryPointInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal)__applyRecoveryPointProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _recoveryPointId; @@ -51,7 +51,7 @@ public InMageRcmApplyRecoveryPointInput() /// ApplyRecoveryPoint input specific to InMageRcm provider. public partial interface IInMageRcmApplyRecoveryPointInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInput { /// The recovery point Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IInMageRcmApplyRecoveryPointInput : } /// ApplyRecoveryPoint input specific to InMageRcm provider. internal partial interface IInMageRcmApplyRecoveryPointInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IApplyRecoveryPointProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplyRecoveryPointProviderSpecificInputInternal { /// The recovery point Id. string RecoveryPointId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplyRecoveryPointInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplyRecoveryPointInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmApplyRecoveryPointInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmApplyRecoveryPointInput.json.cs index 55ea0239a44d..395ba263e5bf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmApplyRecoveryPointInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmApplyRecoveryPointInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmApplyRecoveryPointInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplyRecoveryPointInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplyRecoveryPointInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplyRecoveryPointInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplyRecoveryPointInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmApplyRecoveryPointInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmApplyRecoveryPointInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmApplyRecoveryPointInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageRcmApplyRecoveryPointInput(Microsoft.Azure.PowerShell.Cmdlets.Mig { return; } - __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplyRecoveryPointProviderSpecificInput(json); + __applyRecoveryPointProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplyRecoveryPointProviderSpecificInput(json); {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmDiscoveredProtectedVMDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiscoveredProtectedVMDetails.PowerShell.cs new file mode 100644 index 000000000000..ccc4e8ca0f20 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiscoveredProtectedVMDetails.PowerShell.cs @@ -0,0 +1,237 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm discovered protected VM details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmDiscoveredProtectedVMDetailsTypeConverter))] + public partial class InMageRcmDiscoveredProtectedVMDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmDiscoveredProtectedVMDetails(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.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmDiscoveredProtectedVMDetails(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.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmDiscoveredProtectedVMDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VCenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterId = (string) content.GetValueForProperty("VCenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterId, global::System.Convert.ToString); + } + if (content.Contains("VCenterFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn = (string) content.GetValueForProperty("VCenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn, global::System.Convert.ToString); + } + if (content.Contains("Datastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IPAddress = (string[]) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("VmwareToolsStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus = (string) content.GetValueForProperty("VmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus, global::System.Convert.ToString); + } + if (content.Contains("PowerStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).PowerStatus = (string) content.GetValueForProperty("PowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).PowerStatus, global::System.Convert.ToString); + } + if (content.Contains("VMFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VMFqdn = (string) content.GetValueForProperty("VMFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VMFqdn, global::System.Convert.ToString); + } + if (content.Contains("OSName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).OSName = (string) content.GetValueForProperty("OSName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).OSName, global::System.Convert.ToString); + } + if (content.Contains("CreatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("CreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("UpdatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("UpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("IsDeleted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IsDeleted = (bool?) content.GetValueForProperty("IsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("LastDiscoveryTimeInUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("LastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageRcmDiscoveredProtectedVMDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VCenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterId = (string) content.GetValueForProperty("VCenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterId, global::System.Convert.ToString); + } + if (content.Contains("VCenterFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn = (string) content.GetValueForProperty("VCenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn, global::System.Convert.ToString); + } + if (content.Contains("Datastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IPAddress = (string[]) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("VmwareToolsStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus = (string) content.GetValueForProperty("VmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus, global::System.Convert.ToString); + } + if (content.Contains("PowerStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).PowerStatus = (string) content.GetValueForProperty("PowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).PowerStatus, global::System.Convert.ToString); + } + if (content.Contains("VMFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VMFqdn = (string) content.GetValueForProperty("VMFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).VMFqdn, global::System.Convert.ToString); + } + if (content.Contains("OSName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).OSName = (string) content.GetValueForProperty("OSName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).OSName, global::System.Convert.ToString); + } + if (content.Contains("CreatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("CreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("UpdatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("UpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("IsDeleted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IsDeleted = (bool?) content.GetValueForProperty("IsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).IsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("LastDiscoveryTimeInUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("LastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm discovered protected VM details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmDiscoveredProtectedVMDetailsTypeConverter))] + public partial interface IInMageRcmDiscoveredProtectedVMDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiscoveredProtectedVMDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiscoveredProtectedVMDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmDiscoveredProtectedVMDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmDiscoveredProtectedVMDetails.TypeConverter.cs index be9aea011f9c..9a542b1e9bb8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiscoveredProtectedVMDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiscoveredProtectedVMDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiscoveredProtectedVMDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiscoveredProtectedVMDetails.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmDiscoveredProtectedVMDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmDiscoveredProtectedVMDetails.cs index 17d7d8d887d0..171b9b2232bf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiscoveredProtectedVMDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiscoveredProtectedVMDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm discovered protected VM details. public partial class InMageRcmDiscoveredProtectedVMDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal { /// Backing field for property. @@ -49,40 +49,40 @@ public partial class InMageRcmDiscoveredProtectedVMDetails : public global::System.DateTime? LastDiscoveryTimeInUtc { get => this._lastDiscoveryTimeInUtc; } /// Internal Acessors for CreatedTimestamp - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal.CreatedTimestamp { get => this._createdTimestamp; set { {_createdTimestamp = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal.CreatedTimestamp { get => this._createdTimestamp; set { {_createdTimestamp = value;} } } /// Internal Acessors for Datastore - string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal.Datastore { get => this._datastore; set { {_datastore = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal.Datastore { get => this._datastore; set { {_datastore = value;} } } /// Internal Acessors for IPAddress - string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal.IPAddress { get => this._iPAddress; set { {_iPAddress = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal.IPAddress { get => this._iPAddress; set { {_iPAddress = value;} } } /// Internal Acessors for IsDeleted - bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal.IsDeleted { get => this._isDeleted; set { {_isDeleted = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal.IsDeleted { get => this._isDeleted; set { {_isDeleted = value;} } } /// Internal Acessors for LastDiscoveryTimeInUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal.LastDiscoveryTimeInUtc { get => this._lastDiscoveryTimeInUtc; set { {_lastDiscoveryTimeInUtc = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal.LastDiscoveryTimeInUtc { get => this._lastDiscoveryTimeInUtc; set { {_lastDiscoveryTimeInUtc = value;} } } /// Internal Acessors for OSName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal.OSName { get => this._oSName; set { {_oSName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal.OSName { get => this._oSName; set { {_oSName = value;} } } /// Internal Acessors for PowerStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal.PowerStatus { get => this._powerStatus; set { {_powerStatus = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal.PowerStatus { get => this._powerStatus; set { {_powerStatus = value;} } } /// Internal Acessors for UpdatedTimestamp - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal.UpdatedTimestamp { get => this._updatedTimestamp; set { {_updatedTimestamp = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal.UpdatedTimestamp { get => this._updatedTimestamp; set { {_updatedTimestamp = value;} } } /// Internal Acessors for VCenterFqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal.VCenterFqdn { get => this._vCenterFqdn; set { {_vCenterFqdn = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal.VCenterFqdn { get => this._vCenterFqdn; set { {_vCenterFqdn = value;} } } /// Internal Acessors for VCenterId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal.VCenterId { get => this._vCenterId; set { {_vCenterId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal.VCenterId { get => this._vCenterId; set { {_vCenterId = value;} } } /// Internal Acessors for VMFqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal.VMFqdn { get => this._vMFqdn; set { {_vMFqdn = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal.VMFqdn { get => this._vMFqdn; set { {_vMFqdn = value;} } } /// Internal Acessors for VmwareToolsStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal.VmwareToolsStatus { get => this._vmwareToolsStatus; set { {_vmwareToolsStatus = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal.VmwareToolsStatus { get => this._vmwareToolsStatus; set { {_vmwareToolsStatus = value;} } } /// Backing field for property. private string _oSName; diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiscoveredProtectedVMDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiscoveredProtectedVMDetails.json.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmDiscoveredProtectedVMDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmDiscoveredProtectedVMDetails.json.cs index 2c669ddbc227..0967006af057 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiscoveredProtectedVMDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiscoveredProtectedVMDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmDiscoveredProtectedVMDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmDiscoveredProtectedVMDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmDiskInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiskInput.PowerShell.cs new file mode 100644 index 000000000000..bc9fc11bf236 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiskInput.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm disk input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmDiskInputTypeConverter))] + public partial class InMageRcmDiskInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmDiskInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmDiskInput(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.Migrate.Models.Api202301.IInMageRcmDiskInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmDiskInput(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.Migrate.Models.Api202301.IInMageRcmDiskInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmDiskInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).DiskEncryptionSetId, 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 InMageRcmDiskInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal)this).DiskEncryptionSetId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm disk input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmDiskInputTypeConverter))] + public partial interface IInMageRcmDiskInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiskInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiskInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmDiskInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmDiskInput.TypeConverter.cs index 787751cbabf3..a603f80951d9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiskInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiskInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmDiskInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiskInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiskInput.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmDiskInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmDiskInput.cs index 790b3e969d62..d4fd3fdcb9c1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiskInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiskInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm disk input. public partial class InMageRcmDiskInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiskInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiskInput.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmDiskInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmDiskInput.json.cs index f6a0fa5c15cd..c7f62cc9a03e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDiskInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmDiskInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmDiskInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmDiskInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmDisksDefaultInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmDisksDefaultInput.PowerShell.cs new file mode 100644 index 000000000000..0fa76f6b4cd8 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmDisksDefaultInput.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm disk input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmDisksDefaultInputTypeConverter))] + public partial class InMageRcmDisksDefaultInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmDisksDefaultInput(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.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmDisksDefaultInput(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.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmDisksDefaultInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)this).DiskEncryptionSetId, 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 InMageRcmDisksDefaultInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)this).DiskEncryptionSetId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm disk input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmDisksDefaultInputTypeConverter))] + public partial interface IInMageRcmDisksDefaultInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDisksDefaultInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmDisksDefaultInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmDisksDefaultInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmDisksDefaultInput.TypeConverter.cs index b14ae7be57db..61147f1324b0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDisksDefaultInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmDisksDefaultInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDisksDefaultInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmDisksDefaultInput.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmDisksDefaultInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmDisksDefaultInput.cs index cca0e4ab50bb..dbc7f227a1d7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDisksDefaultInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmDisksDefaultInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm disk input. public partial class InMageRcmDisksDefaultInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDisksDefaultInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmDisksDefaultInput.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmDisksDefaultInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmDisksDefaultInput.json.cs index 0ad834de032b..019b862794cc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmDisksDefaultInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmDisksDefaultInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmDisksDefaultInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmDisksDefaultInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmEnableProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmEnableProtectionInput.PowerShell.cs new file mode 100644 index 000000000000..5f8bfd0ce79f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmEnableProtectionInput.PowerShell.cs @@ -0,0 +1,314 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm specific enable protection input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmEnableProtectionInputTypeConverter))] + public partial class InMageRcmEnableProtectionInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmEnableProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmEnableProtectionInput(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.Migrate.Models.Api202301.IInMageRcmEnableProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmEnableProtectionInput(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.Migrate.Models.Api202301.IInMageRcmEnableProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmEnableProtectionInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DisksDefault")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DisksDefault = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput) content.GetValueForProperty("DisksDefault",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DisksDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDisksDefaultInputTypeConverter.ConvertFrom); + } + if (content.Contains("FabricDiscoveryMachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).FabricDiscoveryMachineId = (string) content.GetValueForProperty("FabricDiscoveryMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).FabricDiscoveryMachineId, global::System.Convert.ToString); + } + if (content.Contains("DisksToInclude")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DisksToInclude = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInput[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDiskInputTypeConverter.ConvertFrom)); + } + if (content.Contains("TargetResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TestNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TestNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TargetSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TestSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetVMName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetBootDiagnosticsStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("DiskDefaultLogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultLogStorageAccountId = (string) content.GetValueForProperty("DiskDefaultLogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultLogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskDefaultDiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType) content.GetValueForProperty("DiskDefaultDiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DiskDefaultDiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskEncryptionSetId = (string) content.GetValueForProperty("DiskDefaultDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskEncryptionSetId, 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 InMageRcmEnableProtectionInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DisksDefault")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DisksDefault = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput) content.GetValueForProperty("DisksDefault",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DisksDefault, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDisksDefaultInputTypeConverter.ConvertFrom); + } + if (content.Contains("FabricDiscoveryMachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).FabricDiscoveryMachineId = (string) content.GetValueForProperty("FabricDiscoveryMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).FabricDiscoveryMachineId, global::System.Convert.ToString); + } + if (content.Contains("DisksToInclude")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DisksToInclude = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInput[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDiskInputTypeConverter.ConvertFrom)); + } + if (content.Contains("TargetResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TestNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TestNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TargetSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TestSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetVMName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetBootDiagnosticsStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("DiskDefaultLogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultLogStorageAccountId = (string) content.GetValueForProperty("DiskDefaultLogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultLogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskDefaultDiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType) content.GetValueForProperty("DiskDefaultDiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DiskDefaultDiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskEncryptionSetId = (string) content.GetValueForProperty("DiskDefaultDiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal)this).DiskDefaultDiskEncryptionSetId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm specific enable protection input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmEnableProtectionInputTypeConverter))] + public partial interface IInMageRcmEnableProtectionInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEnableProtectionInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmEnableProtectionInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmEnableProtectionInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmEnableProtectionInput.TypeConverter.cs index 418a3a5b6644..44bf486535af 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEnableProtectionInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmEnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEnableProtectionInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmEnableProtectionInput.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmEnableProtectionInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmEnableProtectionInput.cs index 79c1cdd95f94..c35d0d09e544 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEnableProtectionInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmEnableProtectionInput.cs @@ -3,47 +3,47 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm specific enable protection input. public partial class InMageRcmEnableProtectionInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput(); /// The DiskEncryptionSet ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskDefaultDiskEncryptionSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)DisksDefault).DiskEncryptionSetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)DisksDefault).DiskEncryptionSetId = value ?? null; } + public string DiskDefaultDiskEncryptionSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)DisksDefault).DiskEncryptionSetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)DisksDefault).DiskEncryptionSetId = value ?? null; } /// The disk type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType? DiskDefaultDiskType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)DisksDefault).DiskType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)DisksDefault).DiskType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType? DiskDefaultDiskType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)DisksDefault).DiskType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)DisksDefault).DiskType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType)""); } /// The log storage account ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiskDefaultLogStorageAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)DisksDefault).LogStorageAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInputInternal)DisksDefault).LogStorageAccountId = value ?? null; } + public string DiskDefaultLogStorageAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)DisksDefault).LogStorageAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInputInternal)DisksDefault).LogStorageAccountId = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput _disksDefault; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput _disksDefault; /// The default disk input. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput DisksDefault { get => (this._disksDefault = this._disksDefault ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDisksDefaultInput()); set => this._disksDefault = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput DisksDefault { get => (this._disksDefault = this._disksDefault ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDisksDefaultInput()); set => this._disksDefault = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInput[] _disksToInclude; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInput[] _disksToInclude; /// The disks to include list. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInput[] DisksToInclude { get => this._disksToInclude; set => this._disksToInclude = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInput[] DisksToInclude { get => this._disksToInclude; set => this._disksToInclude = value; } /// Backing field for property. private string _fabricDiscoveryMachineId; @@ -54,7 +54,7 @@ public partial class InMageRcmEnableProtectionInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal)__enableProtectionProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? _licenseType; @@ -64,7 +64,7 @@ public partial class InMageRcmEnableProtectionInput : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get => this._licenseType; set => this._licenseType = value; } /// Internal Acessors for DisksDefault - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInputInternal.DisksDefault { get => (this._disksDefault = this._disksDefault ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDisksDefaultInput()); set { {_disksDefault = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInputInternal.DisksDefault { get => (this._disksDefault = this._disksDefault ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDisksDefaultInput()); set { {_disksDefault = value;} } } /// Backing field for property. private string _multiVMGroupName; @@ -187,7 +187,7 @@ public InMageRcmEnableProtectionInput() /// InMageRcm specific enable protection input. public partial interface IInMageRcmEnableProtectionInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInput { /// The DiskEncryptionSet ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -219,8 +219,8 @@ public partial interface IInMageRcmEnableProtectionInput : ReadOnly = false, Description = @"The disks to include list.", SerializedName = @"disksToInclude", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInput[] DisksToInclude { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInput[] DisksToInclude { get; set; } /// The ARM Id of discovered machine. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, @@ -353,7 +353,7 @@ public partial interface IInMageRcmEnableProtectionInput : } /// InMageRcm specific enable protection input. internal partial interface IInMageRcmEnableProtectionInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableProtectionProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableProtectionProviderSpecificInputInternal { /// The DiskEncryptionSet ARM Id. string DiskDefaultDiskEncryptionSetId { get; set; } @@ -362,9 +362,9 @@ internal partial interface IInMageRcmEnableProtectionInputInternal : /// The log storage account ARM Id. string DiskDefaultLogStorageAccountId { get; set; } /// The default disk input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDisksDefaultInput DisksDefault { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDisksDefaultInput DisksDefault { get; set; } /// The disks to include list. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiskInput[] DisksToInclude { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiskInput[] DisksToInclude { get; set; } /// The ARM Id of discovered machine. string FabricDiscoveryMachineId { get; set; } /// The license type. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEnableProtectionInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmEnableProtectionInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmEnableProtectionInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmEnableProtectionInput.json.cs index 0139e819c3c1..9f33d765d5a9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEnableProtectionInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmEnableProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmEnableProtectionInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEnableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEnableProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmEnableProtectionInput(json) : null; } @@ -77,10 +77,10 @@ internal InMageRcmEnableProtectionInput(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableProtectionProviderSpecificInput(json); - {_disksDefault = If( json?.PropertyT("disksDefault"), out var __jsonDisksDefault) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDisksDefaultInput.FromJson(__jsonDisksDefault) : DisksDefault;} + __enableProtectionProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableProtectionProviderSpecificInput(json); + {_disksDefault = If( json?.PropertyT("disksDefault"), out var __jsonDisksDefault) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDisksDefaultInput.FromJson(__jsonDisksDefault) : DisksDefault;} {_fabricDiscoveryMachineId = If( json?.PropertyT("fabricDiscoveryMachineId"), out var __jsonFabricDiscoveryMachineId) ? (string)__jsonFabricDiscoveryMachineId : (string)FabricDiscoveryMachineId;} - {_disksToInclude = If( json?.PropertyT("disksToInclude"), out var __jsonDisksToInclude) ? If( __jsonDisksToInclude as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmDiskInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDiskInput.FromJson(__u) )) ))() : null : DisksToInclude;} + {_disksToInclude = If( json?.PropertyT("disksToInclude"), out var __jsonDisksToInclude) ? If( __jsonDisksToInclude as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IInMageRcmDiskInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDiskInput.FromJson(__u) )) ))() : null : DisksToInclude;} {_targetResourceGroupId = If( json?.PropertyT("targetResourceGroupId"), out var __jsonTargetResourceGroupId) ? (string)__jsonTargetResourceGroupId : (string)TargetResourceGroupId;} {_targetNetworkId = If( json?.PropertyT("targetNetworkId"), out var __jsonTargetNetworkId) ? (string)__jsonTargetNetworkId : (string)TargetNetworkId;} {_testNetworkId = If( json?.PropertyT("testNetworkId"), out var __jsonTestNetworkId) ? (string)__jsonTestNetworkId : (string)TestNetworkId;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmEventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmEventDetails.PowerShell.cs new file mode 100644 index 000000000000..a8159f07a47c --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmEventDetails.PowerShell.cs @@ -0,0 +1,208 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Event details for InMageRcm provider. + [System.ComponentModel.TypeConverter(typeof(InMageRcmEventDetailsTypeConverter))] + public partial class InMageRcmEventDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmEventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmEventDetails(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.Migrate.Models.Api202301.IInMageRcmEventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmEventDetails(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.Migrate.Models.Api202301.IInMageRcmEventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmEventDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProtectedItemName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ProtectedItemName = (string) content.GetValueForProperty("ProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ProtectedItemName, global::System.Convert.ToString); + } + if (content.Contains("VMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).VMName, global::System.Convert.ToString); + } + if (content.Contains("LatestAgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).LatestAgentVersion = (string) content.GetValueForProperty("LatestAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).LatestAgentVersion, global::System.Convert.ToString); + } + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("FabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).FabricName, global::System.Convert.ToString); + } + if (content.Contains("ApplianceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ApplianceName = (string) content.GetValueForProperty("ApplianceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ApplianceName, global::System.Convert.ToString); + } + if (content.Contains("ServerType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ServerType = (string) content.GetValueForProperty("ServerType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ServerType, global::System.Convert.ToString); + } + if (content.Contains("ComponentDisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ComponentDisplayName = (string) content.GetValueForProperty("ComponentDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ComponentDisplayName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 InMageRcmEventDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProtectedItemName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ProtectedItemName = (string) content.GetValueForProperty("ProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ProtectedItemName, global::System.Convert.ToString); + } + if (content.Contains("VMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).VMName, global::System.Convert.ToString); + } + if (content.Contains("LatestAgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).LatestAgentVersion = (string) content.GetValueForProperty("LatestAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).LatestAgentVersion, global::System.Convert.ToString); + } + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("FabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).FabricName = (string) content.GetValueForProperty("FabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).FabricName, global::System.Convert.ToString); + } + if (content.Contains("ApplianceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ApplianceName = (string) content.GetValueForProperty("ApplianceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ApplianceName, global::System.Convert.ToString); + } + if (content.Contains("ServerType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ServerType = (string) content.GetValueForProperty("ServerType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ServerType, global::System.Convert.ToString); + } + if (content.Contains("ComponentDisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ComponentDisplayName = (string) content.GetValueForProperty("ComponentDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal)this).ComponentDisplayName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Event details for InMageRcm provider. + [System.ComponentModel.TypeConverter(typeof(InMageRcmEventDetailsTypeConverter))] + public partial interface IInMageRcmEventDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEventDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmEventDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmEventDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmEventDetails.TypeConverter.cs index 76b28a651775..fabb5b941bff 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEventDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmEventDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEventDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmEventDetails.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmEventDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmEventDetails.cs index 584e7a3e40d3..b074457f06c1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEventDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Event details for InMageRcm provider. public partial class InMageRcmEventDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(); /// Backing field for property. private string _applianceName; @@ -42,7 +42,7 @@ public partial class InMageRcmEventDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _jobId; @@ -59,28 +59,28 @@ public partial class InMageRcmEventDetails : public string LatestAgentVersion { get => this._latestAgentVersion; } /// Internal Acessors for ApplianceName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal.ApplianceName { get => this._applianceName; set { {_applianceName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal.ApplianceName { get => this._applianceName; set { {_applianceName = value;} } } /// Internal Acessors for ComponentDisplayName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal.ComponentDisplayName { get => this._componentDisplayName; set { {_componentDisplayName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal.ComponentDisplayName { get => this._componentDisplayName; set { {_componentDisplayName = value;} } } /// Internal Acessors for FabricName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal.FabricName { get => this._fabricName; set { {_fabricName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal.FabricName { get => this._fabricName; set { {_fabricName = value;} } } /// Internal Acessors for JobId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal.JobId { get => this._jobId; set { {_jobId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal.JobId { get => this._jobId; set { {_jobId = value;} } } /// Internal Acessors for LatestAgentVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal.LatestAgentVersion { get => this._latestAgentVersion; set { {_latestAgentVersion = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal.LatestAgentVersion { get => this._latestAgentVersion; set { {_latestAgentVersion = value;} } } /// Internal Acessors for ProtectedItemName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal.ProtectedItemName { get => this._protectedItemName; set { {_protectedItemName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal.ProtectedItemName { get => this._protectedItemName; set { {_protectedItemName = value;} } } /// Internal Acessors for ServerType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal.ServerType { get => this._serverType; set { {_serverType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal.ServerType { get => this._serverType; set { {_serverType = value;} } } /// Internal Acessors for VMName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetailsInternal.VMName { get => this._vMName; set { {_vMName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetailsInternal.VMName { get => this._vMName; set { {_vMName = value;} } } /// Backing field for property. private string _protectedItemName; @@ -124,7 +124,7 @@ public InMageRcmEventDetails() /// Event details for InMageRcm provider. public partial interface IInMageRcmEventDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails { /// The appliance name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -194,7 +194,7 @@ public partial interface IInMageRcmEventDetails : } /// Event details for InMageRcm provider. internal partial interface IInMageRcmEventDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal { /// The appliance name. string ApplianceName { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEventDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmEventDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmEventDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmEventDetails.json.cs index 52b10932e80f..e755800bbfcc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmEventDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmEventDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmEventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmEventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmEventDetails(json) : null; } @@ -77,7 +77,7 @@ internal InMageRcmEventDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(json); + __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(json); {_protectedItemName = If( json?.PropertyT("protectedItemName"), out var __jsonProtectedItemName) ? (string)__jsonProtectedItemName : (string)ProtectedItemName;} {_vMName = If( json?.PropertyT("vmName"), out var __jsonVMName) ? (string)__jsonVMName : (string)VMName;} {_latestAgentVersion = If( json?.PropertyT("latestAgentVersion"), out var __jsonLatestAgentVersion) ? (string)__jsonLatestAgentVersion : (string)LatestAgentVersion;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricCreationInput.PowerShell.cs new file mode 100644 index 000000000000..f434a57fddd0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricCreationInput.PowerShell.cs @@ -0,0 +1,208 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm fabric provider specific settings. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFabricCreationInputTypeConverter))] + public partial class InMageRcmFabricCreationInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmFabricCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmFabricCreationInput(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.Migrate.Models.Api202301.IInMageRcmFabricCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmFabricCreationInput(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.Migrate.Models.Api202301.IInMageRcmFabricCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmFabricCreationInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceAgentIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput) content.GetValueForProperty("SourceAgentIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("VmwareSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).VmwareSiteId, global::System.Convert.ToString); + } + if (content.Contains("PhysicalSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).PhysicalSiteId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityTenantId = (string) content.GetValueForProperty("SourceAgentIdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityApplicationId = (string) content.GetValueForProperty("SourceAgentIdentityApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityApplicationId, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityObjectId = (string) content.GetValueForProperty("SourceAgentIdentityObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityObjectId, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAudience = (string) content.GetValueForProperty("SourceAgentIdentityAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAudience, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAadAuthority = (string) content.GetValueForProperty("SourceAgentIdentityAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAadAuthority, 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 InMageRcmFabricCreationInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceAgentIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput) content.GetValueForProperty("SourceAgentIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentity, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("VmwareSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).VmwareSiteId, global::System.Convert.ToString); + } + if (content.Contains("PhysicalSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).PhysicalSiteId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityTenantId = (string) content.GetValueForProperty("SourceAgentIdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityApplicationId = (string) content.GetValueForProperty("SourceAgentIdentityApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityApplicationId, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityObjectId = (string) content.GetValueForProperty("SourceAgentIdentityObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityObjectId, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAudience = (string) content.GetValueForProperty("SourceAgentIdentityAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAudience, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAadAuthority = (string) content.GetValueForProperty("SourceAgentIdentityAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal)this).SourceAgentIdentityAadAuthority, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm fabric provider specific settings. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFabricCreationInputTypeConverter))] + public partial interface IInMageRcmFabricCreationInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricCreationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricCreationInput.TypeConverter.cs index 35951119cddd..3e72e35a3e98 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFabricCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricCreationInput.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricCreationInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricCreationInput.cs index 9fffaf13746c..9eeaed31179d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricCreationInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm fabric provider specific settings. public partial class InMageRcmFabricCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput __fabricSpecificCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput __fabricSpecificCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInput(); /// Gets the class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)__fabricSpecificCreationInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)__fabricSpecificCreationInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)__fabricSpecificCreationInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)__fabricSpecificCreationInput).InstanceType = value ; } /// Internal Acessors for SourceAgentIdentity - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInputInternal.SourceAgentIdentity { get => (this._sourceAgentIdentity = this._sourceAgentIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInput()); set { {_sourceAgentIdentity = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInputInternal.SourceAgentIdentity { get => (this._sourceAgentIdentity = this._sourceAgentIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInput()); set { {_sourceAgentIdentity = value;} } } /// Backing field for property. private string _physicalSiteId; @@ -34,43 +34,43 @@ public partial class InMageRcmFabricCreationInput : public string PhysicalSiteId { get => this._physicalSiteId; set => this._physicalSiteId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput _sourceAgentIdentity; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput _sourceAgentIdentity; /// The identity provider input for source agent authentication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput SourceAgentIdentity { get => (this._sourceAgentIdentity = this._sourceAgentIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInput()); set => this._sourceAgentIdentity = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput SourceAgentIdentity { get => (this._sourceAgentIdentity = this._sourceAgentIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInput()); set => this._sourceAgentIdentity = value; } /// The base authority for Azure Active Directory authentication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SourceAgentIdentityAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)SourceAgentIdentity).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)SourceAgentIdentity).AadAuthority = value ; } + public string SourceAgentIdentityAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)SourceAgentIdentity).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)SourceAgentIdentity).AadAuthority = value ; } /// /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SourceAgentIdentityApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)SourceAgentIdentity).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)SourceAgentIdentity).ApplicationId = value ; } + public string SourceAgentIdentityApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)SourceAgentIdentity).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)SourceAgentIdentity).ApplicationId = value ; } /// /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SourceAgentIdentityAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)SourceAgentIdentity).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)SourceAgentIdentity).Audience = value ; } + public string SourceAgentIdentityAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)SourceAgentIdentity).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)SourceAgentIdentity).Audience = value ; } /// /// The object Id of the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SourceAgentIdentityObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)SourceAgentIdentity).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)SourceAgentIdentity).ObjectId = value ; } + public string SourceAgentIdentityObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)SourceAgentIdentity).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)SourceAgentIdentity).ObjectId = value ; } /// /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SourceAgentIdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)SourceAgentIdentity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInputInternal)SourceAgentIdentity).TenantId = value ; } + public string SourceAgentIdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)SourceAgentIdentity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInputInternal)SourceAgentIdentity).TenantId = value ; } /// Backing field for property. private string _vmwareSiteId; @@ -100,7 +100,7 @@ public InMageRcmFabricCreationInput() /// InMageRcm fabric provider specific settings. public partial interface IInMageRcmFabricCreationInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput { /// The ARM Id of the physical site. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -174,12 +174,12 @@ public partial interface IInMageRcmFabricCreationInput : } /// InMageRcm fabric provider specific settings. internal partial interface IInMageRcmFabricCreationInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal { /// The ARM Id of the physical site. string PhysicalSiteId { get; set; } /// The identity provider input for source agent authentication. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderInput SourceAgentIdentity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderInput SourceAgentIdentity { get; set; } /// The base authority for Azure Active Directory authentication. string SourceAgentIdentityAadAuthority { get; set; } /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricCreationInput.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricCreationInput.json.cs index e4e641ecd8eb..5ddc61010945 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFabricCreationInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFabricCreationInput(json) : null; } @@ -77,8 +77,8 @@ internal InMageRcmFabricCreationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - __fabricSpecificCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInput(json); - {_sourceAgentIdentity = If( json?.PropertyT("sourceAgentIdentity"), out var __jsonSourceAgentIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderInput.FromJson(__jsonSourceAgentIdentity) : SourceAgentIdentity;} + __fabricSpecificCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInput(json); + {_sourceAgentIdentity = If( json?.PropertyT("sourceAgentIdentity"), out var __jsonSourceAgentIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderInput.FromJson(__jsonSourceAgentIdentity) : SourceAgentIdentity;} {_vmwareSiteId = If( json?.PropertyT("vmwareSiteId"), out var __jsonVmwareSiteId) ? (string)__jsonVmwareSiteId : (string)VmwareSiteId;} {_physicalSiteId = If( json?.PropertyT("physicalSiteId"), out var __jsonPhysicalSiteId) ? (string)__jsonPhysicalSiteId : (string)PhysicalSiteId;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSpecificDetails.PowerShell.cs new file mode 100644 index 000000000000..e740784682dd --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSpecificDetails.PowerShell.cs @@ -0,0 +1,314 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm fabric specific details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFabricSpecificDetailsTypeConverter))] + public partial class InMageRcmFabricSpecificDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmFabricSpecificDetails(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.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmFabricSpecificDetails(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.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmFabricSpecificDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceAgentIdentityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails) content.GetValueForProperty("SourceAgentIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("VmwareSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).VmwareSiteId, global::System.Convert.ToString); + } + if (content.Contains("PhysicalSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).PhysicalSiteId, global::System.Convert.ToString); + } + if (content.Contains("ServiceEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ServiceEndpoint = (string) content.GetValueForProperty("ServiceEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ServiceEndpoint, global::System.Convert.ToString); + } + if (content.Contains("ServiceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ServiceResourceId = (string) content.GetValueForProperty("ServiceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ServiceResourceId, global::System.Convert.ToString); + } + if (content.Contains("ServiceContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ServiceContainerId = (string) content.GetValueForProperty("ServiceContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ServiceContainerId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).DataPlaneUri = (string) content.GetValueForProperty("DataPlaneUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).DataPlaneUri, global::System.Convert.ToString); + } + if (content.Contains("ControlPlaneUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ControlPlaneUri = (string) content.GetValueForProperty("ControlPlaneUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ControlPlaneUri, global::System.Convert.ToString); + } + if (content.Contains("ProcessServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails[]) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ProcessServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RcmProxy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).RcmProxy = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails[]) content.GetValueForProperty("RcmProxy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).RcmProxy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RcmProxyDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("PushInstaller")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).PushInstaller = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails[]) content.GetValueForProperty("PushInstaller",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).PushInstaller, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PushInstallerDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("ReplicationAgent")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ReplicationAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails[]) content.GetValueForProperty("ReplicationAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ReplicationAgent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationAgentDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("ReprotectAgent")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ReprotectAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails[]) content.GetValueForProperty("ReprotectAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ReprotectAgent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReprotectAgentDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("MarsAgent")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).MarsAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails[]) content.GetValueForProperty("MarsAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).MarsAgent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MarsAgentDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("Dra")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).Dra = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails[]) content.GetValueForProperty("Dra",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).Dra, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DraDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("AgentDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).AgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails[]) content.GetValueForProperty("AgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).AgentDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AgentDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityDetailTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailTenantId = (string) content.GetValueForProperty("SourceAgentIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailTenantId, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityDetailApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailApplicationId = (string) content.GetValueForProperty("SourceAgentIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailApplicationId, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityDetailObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailObjectId = (string) content.GetValueForProperty("SourceAgentIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailObjectId, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityDetailAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAudience = (string) content.GetValueForProperty("SourceAgentIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAudience, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityDetailAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAadAuthority = (string) content.GetValueForProperty("SourceAgentIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAadAuthority, 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 InMageRcmFabricSpecificDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceAgentIdentityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails) content.GetValueForProperty("SourceAgentIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("VmwareSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).VmwareSiteId, global::System.Convert.ToString); + } + if (content.Contains("PhysicalSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).PhysicalSiteId, global::System.Convert.ToString); + } + if (content.Contains("ServiceEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ServiceEndpoint = (string) content.GetValueForProperty("ServiceEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ServiceEndpoint, global::System.Convert.ToString); + } + if (content.Contains("ServiceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ServiceResourceId = (string) content.GetValueForProperty("ServiceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ServiceResourceId, global::System.Convert.ToString); + } + if (content.Contains("ServiceContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ServiceContainerId = (string) content.GetValueForProperty("ServiceContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ServiceContainerId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).DataPlaneUri = (string) content.GetValueForProperty("DataPlaneUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).DataPlaneUri, global::System.Convert.ToString); + } + if (content.Contains("ControlPlaneUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ControlPlaneUri = (string) content.GetValueForProperty("ControlPlaneUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ControlPlaneUri, global::System.Convert.ToString); + } + if (content.Contains("ProcessServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails[]) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ProcessServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RcmProxy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).RcmProxy = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails[]) content.GetValueForProperty("RcmProxy",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).RcmProxy, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RcmProxyDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("PushInstaller")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).PushInstaller = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails[]) content.GetValueForProperty("PushInstaller",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).PushInstaller, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PushInstallerDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("ReplicationAgent")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ReplicationAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails[]) content.GetValueForProperty("ReplicationAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ReplicationAgent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationAgentDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("ReprotectAgent")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ReprotectAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails[]) content.GetValueForProperty("ReprotectAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).ReprotectAgent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReprotectAgentDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("MarsAgent")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).MarsAgent = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails[]) content.GetValueForProperty("MarsAgent",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).MarsAgent, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MarsAgentDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("Dra")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).Dra = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails[]) content.GetValueForProperty("Dra",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).Dra, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DraDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("AgentDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).AgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails[]) content.GetValueForProperty("AgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).AgentDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AgentDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityDetailTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailTenantId = (string) content.GetValueForProperty("SourceAgentIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailTenantId, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityDetailApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailApplicationId = (string) content.GetValueForProperty("SourceAgentIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailApplicationId, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityDetailObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailObjectId = (string) content.GetValueForProperty("SourceAgentIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailObjectId, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityDetailAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAudience = (string) content.GetValueForProperty("SourceAgentIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAudience, global::System.Convert.ToString); + } + if (content.Contains("SourceAgentIdentityDetailAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAadAuthority = (string) content.GetValueForProperty("SourceAgentIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal)this).SourceAgentIdentityDetailAadAuthority, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm fabric specific details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFabricSpecificDetailsTypeConverter))] + public partial interface IInMageRcmFabricSpecificDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSpecificDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSpecificDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSpecificDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSpecificDetails.TypeConverter.cs index 9e1789367333..cc136ae8e7a2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSpecificDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSpecificDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSpecificDetails.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSpecificDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSpecificDetails.cs index e0e5f43b66f9..4be587b52577 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSpecificDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm fabric specific details. public partial class InMageRcmFabricSpecificDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetails[] _agentDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails[] _agentDetail; /// The list of agent details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetails[] AgentDetail { get => this._agentDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails[] AgentDetail { get => this._agentDetail; } /// Backing field for property. private string _controlPlaneUri; @@ -41,70 +41,70 @@ public partial class InMageRcmFabricSpecificDetails : public string DataPlaneUri { get => this._dataPlaneUri; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails[] _dra; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails[] _dra; /// The list of DRAs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails[] Dra { get => this._dra; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails[] Dra { get => this._dra; } /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails[] _marsAgent; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails[] _marsAgent; /// The list of Mars agents. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails[] MarsAgent { get => this._marsAgent; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails[] MarsAgent { get => this._marsAgent; } /// Internal Acessors for AgentDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.AgentDetail { get => this._agentDetail; set { {_agentDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.AgentDetail { get => this._agentDetail; set { {_agentDetail = value;} } } /// Internal Acessors for ControlPlaneUri - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.ControlPlaneUri { get => this._controlPlaneUri; set { {_controlPlaneUri = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.ControlPlaneUri { get => this._controlPlaneUri; set { {_controlPlaneUri = value;} } } /// Internal Acessors for DataPlaneUri - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.DataPlaneUri { get => this._dataPlaneUri; set { {_dataPlaneUri = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.DataPlaneUri { get => this._dataPlaneUri; set { {_dataPlaneUri = value;} } } /// Internal Acessors for Dra - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.Dra { get => this._dra; set { {_dra = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.Dra { get => this._dra; set { {_dra = value;} } } /// Internal Acessors for MarsAgent - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.MarsAgent { get => this._marsAgent; set { {_marsAgent = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.MarsAgent { get => this._marsAgent; set { {_marsAgent = value;} } } /// Internal Acessors for PhysicalSiteId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.PhysicalSiteId { get => this._physicalSiteId; set { {_physicalSiteId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.PhysicalSiteId { get => this._physicalSiteId; set { {_physicalSiteId = value;} } } /// Internal Acessors for ProcessServer - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.ProcessServer { get => this._processServer; set { {_processServer = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.ProcessServer { get => this._processServer; set { {_processServer = value;} } } /// Internal Acessors for PushInstaller - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.PushInstaller { get => this._pushInstaller; set { {_pushInstaller = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.PushInstaller { get => this._pushInstaller; set { {_pushInstaller = value;} } } /// Internal Acessors for RcmProxy - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.RcmProxy { get => this._rcmProxy; set { {_rcmProxy = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.RcmProxy { get => this._rcmProxy; set { {_rcmProxy = value;} } } /// Internal Acessors for ReplicationAgent - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.ReplicationAgent { get => this._replicationAgent; set { {_replicationAgent = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.ReplicationAgent { get => this._replicationAgent; set { {_replicationAgent = value;} } } /// Internal Acessors for ReprotectAgent - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.ReprotectAgent { get => this._reprotectAgent; set { {_reprotectAgent = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.ReprotectAgent { get => this._reprotectAgent; set { {_reprotectAgent = value;} } } /// Internal Acessors for ServiceContainerId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.ServiceContainerId { get => this._serviceContainerId; set { {_serviceContainerId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.ServiceContainerId { get => this._serviceContainerId; set { {_serviceContainerId = value;} } } /// Internal Acessors for ServiceEndpoint - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.ServiceEndpoint { get => this._serviceEndpoint; set { {_serviceEndpoint = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.ServiceEndpoint { get => this._serviceEndpoint; set { {_serviceEndpoint = value;} } } /// Internal Acessors for ServiceResourceId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.ServiceResourceId { get => this._serviceResourceId; set { {_serviceResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.ServiceResourceId { get => this._serviceResourceId; set { {_serviceResourceId = value;} } } /// Internal Acessors for SourceAgentIdentityDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.SourceAgentIdentityDetail { get => (this._sourceAgentIdentityDetail = this._sourceAgentIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetails()); set { {_sourceAgentIdentityDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.SourceAgentIdentityDetail { get => (this._sourceAgentIdentityDetail = this._sourceAgentIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetails()); set { {_sourceAgentIdentityDetail = value;} } } /// Internal Acessors for VmwareSiteId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetailsInternal.VmwareSiteId { get => this._vmwareSiteId; set { {_vmwareSiteId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetailsInternal.VmwareSiteId { get => this._vmwareSiteId; set { {_vmwareSiteId = value;} } } /// Backing field for property. private string _physicalSiteId; @@ -114,39 +114,39 @@ public partial class InMageRcmFabricSpecificDetails : public string PhysicalSiteId { get => this._physicalSiteId; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails[] _processServer; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails[] _processServer; /// The list of process servers. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails[] ProcessServer { get => this._processServer; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails[] ProcessServer { get => this._processServer; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails[] _pushInstaller; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails[] _pushInstaller; /// The list of push installers. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails[] PushInstaller { get => this._pushInstaller; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails[] PushInstaller { get => this._pushInstaller; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails[] _rcmProxy; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails[] _rcmProxy; /// The list of RCM proxies. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails[] RcmProxy { get => this._rcmProxy; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails[] RcmProxy { get => this._rcmProxy; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails[] _replicationAgent; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails[] _replicationAgent; /// The list of replication agents. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails[] ReplicationAgent { get => this._replicationAgent; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails[] ReplicationAgent { get => this._replicationAgent; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails[] _reprotectAgent; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails[] _reprotectAgent; /// The list of reprotect agents. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails[] ReprotectAgent { get => this._reprotectAgent; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails[] ReprotectAgent { get => this._reprotectAgent; } /// Backing field for property. private string _serviceContainerId; @@ -170,43 +170,43 @@ public partial class InMageRcmFabricSpecificDetails : public string ServiceResourceId { get => this._serviceResourceId; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails _sourceAgentIdentityDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails _sourceAgentIdentityDetail; /// The source agent identity details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails SourceAgentIdentityDetail { get => (this._sourceAgentIdentityDetail = this._sourceAgentIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetails()); set => this._sourceAgentIdentityDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails SourceAgentIdentityDetail { get => (this._sourceAgentIdentityDetail = this._sourceAgentIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetails()); set => this._sourceAgentIdentityDetail = value; } /// The base authority for Azure Active Directory authentication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SourceAgentIdentityDetailAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).AadAuthority = value ?? null; } + public string SourceAgentIdentityDetailAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).AadAuthority = value ?? null; } /// /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SourceAgentIdentityDetailApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).ApplicationId = value ?? null; } + public string SourceAgentIdentityDetailApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).ApplicationId = value ?? null; } /// /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SourceAgentIdentityDetailAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).Audience = value ?? null; } + public string SourceAgentIdentityDetailAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).Audience = value ?? null; } /// /// The object Id of the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SourceAgentIdentityDetailObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).ObjectId = value ?? null; } + public string SourceAgentIdentityDetailObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).ObjectId = value ?? null; } /// /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string SourceAgentIdentityDetailTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).TenantId = value ?? null; } + public string SourceAgentIdentityDetailTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)SourceAgentIdentityDetail).TenantId = value ?? null; } /// Backing field for property. private string _vmwareSiteId; @@ -236,7 +236,7 @@ public InMageRcmFabricSpecificDetails() /// InMageRcm fabric specific details. public partial interface IInMageRcmFabricSpecificDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails { /// The list of agent details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -244,8 +244,8 @@ public partial interface IInMageRcmFabricSpecificDetails : ReadOnly = true, Description = @"The list of agent details.", SerializedName = @"agentDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetails[] AgentDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails[] AgentDetail { get; } /// The control plane Uri. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -268,16 +268,16 @@ public partial interface IInMageRcmFabricSpecificDetails : ReadOnly = true, Description = @"The list of DRAs.", SerializedName = @"dras", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails[] Dra { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails[] Dra { get; } /// The list of Mars agents. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = true, Description = @"The list of Mars agents.", SerializedName = @"marsAgents", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails[] MarsAgent { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails[] MarsAgent { get; } /// The ARM Id of the physical site. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -292,40 +292,40 @@ public partial interface IInMageRcmFabricSpecificDetails : ReadOnly = true, Description = @"The list of process servers.", SerializedName = @"processServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails[] ProcessServer { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails[] ProcessServer { get; } /// The list of push installers. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = true, Description = @"The list of push installers.", SerializedName = @"pushInstallers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails[] PushInstaller { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails[] PushInstaller { get; } /// The list of RCM proxies. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = true, Description = @"The list of RCM proxies.", SerializedName = @"rcmProxies", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails[] RcmProxy { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails[] RcmProxy { get; } /// The list of replication agents. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = true, Description = @"The list of replication agents.", SerializedName = @"replicationAgents", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails[] ReplicationAgent { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails[] ReplicationAgent { get; } /// The list of reprotect agents. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = true, Description = @"The list of reprotect agents.", SerializedName = @"reprotectAgents", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails[] ReprotectAgent { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails[] ReprotectAgent { get; } /// The service container Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -414,30 +414,30 @@ public partial interface IInMageRcmFabricSpecificDetails : } /// InMageRcm fabric specific details. internal partial interface IInMageRcmFabricSpecificDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal { /// The list of agent details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetails[] AgentDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails[] AgentDetail { get; set; } /// The control plane Uri. string ControlPlaneUri { get; set; } /// The data plane Uri. string DataPlaneUri { get; set; } /// The list of DRAs. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails[] Dra { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails[] Dra { get; set; } /// The list of Mars agents. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails[] MarsAgent { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails[] MarsAgent { get; set; } /// The ARM Id of the physical site. string PhysicalSiteId { get; set; } /// The list of process servers. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails[] ProcessServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails[] ProcessServer { get; set; } /// The list of push installers. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails[] PushInstaller { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails[] PushInstaller { get; set; } /// The list of RCM proxies. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails[] RcmProxy { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails[] RcmProxy { get; set; } /// The list of replication agents. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails[] ReplicationAgent { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails[] ReplicationAgent { get; set; } /// The list of reprotect agents. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails[] ReprotectAgent { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails[] ReprotectAgent { get; set; } /// The service container Id. string ServiceContainerId { get; set; } /// The service endpoint. @@ -445,7 +445,7 @@ internal partial interface IInMageRcmFabricSpecificDetailsInternal : /// The service resource Id. string ServiceResourceId { get; set; } /// The source agent identity details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails SourceAgentIdentityDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails SourceAgentIdentityDetail { get; set; } /// The base authority for Azure Active Directory authentication. string SourceAgentIdentityDetailAadAuthority { get; set; } /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSpecificDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSpecificDetails.json.cs similarity index 84% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSpecificDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSpecificDetails.json.cs index 2211183f0ddd..1dd8e77ffca5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSpecificDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFabricSpecificDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFabricSpecificDetails(json) : null; } @@ -77,8 +77,8 @@ internal InMageRcmFabricSpecificDetails(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails(json); - {_sourceAgentIdentityDetail = If( json?.PropertyT("sourceAgentIdentityDetails"), out var __jsonSourceAgentIdentityDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetails.FromJson(__jsonSourceAgentIdentityDetails) : SourceAgentIdentityDetail;} + __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails(json); + {_sourceAgentIdentityDetail = If( json?.PropertyT("sourceAgentIdentityDetails"), out var __jsonSourceAgentIdentityDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetails.FromJson(__jsonSourceAgentIdentityDetails) : SourceAgentIdentityDetail;} {_vmwareSiteId = If( json?.PropertyT("vmwareSiteId"), out var __jsonVmwareSiteId) ? (string)__jsonVmwareSiteId : (string)VmwareSiteId;} {_physicalSiteId = If( json?.PropertyT("physicalSiteId"), out var __jsonPhysicalSiteId) ? (string)__jsonPhysicalSiteId : (string)PhysicalSiteId;} {_serviceEndpoint = If( json?.PropertyT("serviceEndpoint"), out var __jsonServiceEndpoint) ? (string)__jsonServiceEndpoint : (string)ServiceEndpoint;} @@ -86,14 +86,14 @@ internal InMageRcmFabricSpecificDetails(Microsoft.Azure.PowerShell.Cmdlets.Migra {_serviceContainerId = If( json?.PropertyT("serviceContainerId"), out var __jsonServiceContainerId) ? (string)__jsonServiceContainerId : (string)ServiceContainerId;} {_dataPlaneUri = If( json?.PropertyT("dataPlaneUri"), out var __jsonDataPlaneUri) ? (string)__jsonDataPlaneUri : (string)DataPlaneUri;} {_controlPlaneUri = If( json?.PropertyT("controlPlaneUri"), out var __jsonControlPlaneUri) ? (string)__jsonControlPlaneUri : (string)ControlPlaneUri;} - {_processServer = If( json?.PropertyT("processServers"), out var __jsonProcessServers) ? If( __jsonProcessServers as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProcessServerDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerDetails.FromJson(__u) )) ))() : null : ProcessServer;} - {_rcmProxy = If( json?.PropertyT("rcmProxies"), out var __jsonRcmProxies) ? If( __jsonRcmProxies as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RcmProxyDetails.FromJson(__p) )) ))() : null : RcmProxy;} - {_pushInstaller = If( json?.PropertyT("pushInstallers"), out var __jsonPushInstallers) ? If( __jsonPushInstallers as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PushInstallerDetails.FromJson(__k) )) ))() : null : PushInstaller;} - {_replicationAgent = If( json?.PropertyT("replicationAgents"), out var __jsonReplicationAgents) ? If( __jsonReplicationAgents as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationAgentDetails.FromJson(__f) )) ))() : null : ReplicationAgent;} - {_reprotectAgent = If( json?.PropertyT("reprotectAgents"), out var __jsonReprotectAgents) ? If( __jsonReprotectAgents as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __b) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__b, (__a)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReprotectAgentDetails.FromJson(__a) )) ))() : null : ReprotectAgent;} - {_marsAgent = If( json?.PropertyT("marsAgents"), out var __jsonMarsAgents) ? If( __jsonMarsAgents as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(___w, (___v)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MarsAgentDetails.FromJson(___v) )) ))() : null : MarsAgent;} - {_dra = If( json?.PropertyT("dras"), out var __jsonDras) ? If( __jsonDras as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var ___r) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(___r, (___q)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDraDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DraDetails.FromJson(___q) )) ))() : null : Dra;} - {_agentDetail = If( json?.PropertyT("agentDetails"), out var __jsonAgentDetails) ? If( __jsonAgentDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var ___m) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(___m, (___l)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAgentDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AgentDetails.FromJson(___l) )) ))() : null : AgentDetail;} + {_processServer = If( json?.PropertyT("processServers"), out var __jsonProcessServers) ? If( __jsonProcessServers as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IProcessServerDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerDetails.FromJson(__u) )) ))() : null : ProcessServer;} + {_rcmProxy = If( json?.PropertyT("rcmProxies"), out var __jsonRcmProxies) ? If( __jsonRcmProxies as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RcmProxyDetails.FromJson(__p) )) ))() : null : RcmProxy;} + {_pushInstaller = If( json?.PropertyT("pushInstallers"), out var __jsonPushInstallers) ? If( __jsonPushInstallers as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PushInstallerDetails.FromJson(__k) )) ))() : null : PushInstaller;} + {_replicationAgent = If( json?.PropertyT("replicationAgents"), out var __jsonReplicationAgents) ? If( __jsonReplicationAgents as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationAgentDetails.FromJson(__f) )) ))() : null : ReplicationAgent;} + {_reprotectAgent = If( json?.PropertyT("reprotectAgents"), out var __jsonReprotectAgents) ? If( __jsonReprotectAgents as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __b) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__b, (__a)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReprotectAgentDetails.FromJson(__a) )) ))() : null : ReprotectAgent;} + {_marsAgent = If( json?.PropertyT("marsAgents"), out var __jsonMarsAgents) ? If( __jsonMarsAgents as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var ___w) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(___w, (___v)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MarsAgentDetails.FromJson(___v) )) ))() : null : MarsAgent;} + {_dra = If( json?.PropertyT("dras"), out var __jsonDras) ? If( __jsonDras as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var ___r) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(___r, (___q)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDraDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DraDetails.FromJson(___q) )) ))() : null : Dra;} + {_agentDetail = If( json?.PropertyT("agentDetails"), out var __jsonAgentDetails) ? If( __jsonAgentDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var ___m) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(___m, (___l)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAgentDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AgentDetails.FromJson(___l) )) ))() : null : AgentDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetails.PowerShell.cs new file mode 100644 index 000000000000..bfa2e1cc0431 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetails.PowerShell.cs @@ -0,0 +1,189 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcmFabric switch provider blocking error details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFabricSwitchProviderBlockingErrorDetailsTypeConverter))] + public partial class InMageRcmFabricSwitchProviderBlockingErrorDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmFabricSwitchProviderBlockingErrorDetails(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.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmFabricSwitchProviderBlockingErrorDetails(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.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmFabricSwitchProviderBlockingErrorDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessageParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); + } + if (content.Contains("ErrorTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTagsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageRcmFabricSwitchProviderBlockingErrorDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessageParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); + } + if (content.Contains("ErrorTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTagsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcmFabric switch provider blocking error details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFabricSwitchProviderBlockingErrorDetailsTypeConverter))] + public partial interface IInMageRcmFabricSwitchProviderBlockingErrorDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetails.TypeConverter.cs index 980c2b0315b1..846969da4971 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetails.cs new file mode 100644 index 000000000000..0caef09043b1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetails.cs @@ -0,0 +1,156 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// InMageRcmFabric switch provider blocking error details. + public partial class InMageRcmFabricSwitchProviderBlockingErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal + { + + /// Backing field for property. + private string _errorCode; + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ErrorCode { get => this._errorCode; } + + /// Backing field for property. + private string _errorMessage; + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ErrorMessage { get => this._errorMessage; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters _errorMessageParameter; + + /// The error message parameters. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters()); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags _errorTag; + + /// The error tags. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags()); } + + /// Internal Acessors for ErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal.ErrorCode { get => this._errorCode; set { {_errorCode = value;} } } + + /// Internal Acessors for ErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal.ErrorMessage { get => this._errorMessage; set { {_errorMessage = value;} } } + + /// Internal Acessors for ErrorMessageParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal.ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters()); set { {_errorMessageParameter = value;} } } + + /// Internal Acessors for ErrorTag + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal.ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags()); set { {_errorTag = value;} } } + + /// Internal Acessors for PossibleCaus + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal.PossibleCaus { get => this._possibleCaus; set { {_possibleCaus = value;} } } + + /// Internal Acessors for RecommendedAction + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal.RecommendedAction { get => this._recommendedAction; set { {_recommendedAction = value;} } } + + /// Backing field for property. + private string _possibleCaus; + + /// The possible causes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PossibleCaus { get => this._possibleCaus; } + + /// Backing field for property. + private string _recommendedAction; + + /// The recommended action. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecommendedAction { get => this._recommendedAction; } + + /// + /// Creates an new instance. + /// + public InMageRcmFabricSwitchProviderBlockingErrorDetails() + { + + } + } + /// InMageRcmFabric switch provider blocking error details. + public partial interface IInMageRcmFabricSwitchProviderBlockingErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error code.", + SerializedName = @"errorCode", + PossibleTypes = new [] { typeof(string) })] + string ErrorCode { get; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message.", + SerializedName = @"errorMessage", + PossibleTypes = new [] { typeof(string) })] + string ErrorMessage { get; } + /// The error message parameters. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message parameters.", + SerializedName = @"errorMessageParameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; } + /// The error tags. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error tags.", + SerializedName = @"errorTags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get; } + /// The possible causes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The possible causes.", + SerializedName = @"possibleCauses", + PossibleTypes = new [] { typeof(string) })] + string PossibleCaus { get; } + /// The recommended action. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The recommended action.", + SerializedName = @"recommendedAction", + PossibleTypes = new [] { typeof(string) })] + string RecommendedAction { get; } + + } + /// InMageRcmFabric switch provider blocking error details. + internal partial interface IInMageRcmFabricSwitchProviderBlockingErrorDetailsInternal + + { + /// The error code. + string ErrorCode { get; set; } + /// The error message. + string ErrorMessage { get; set; } + /// The error message parameters. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ErrorMessageParameter { get; set; } + /// The error tags. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags ErrorTag { get; set; } + /// The possible causes. + string PossibleCaus { get; set; } + /// The recommended action. + string RecommendedAction { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetails.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetails.json.cs index 1c23e8f52aa0..e5c2bbd1106c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFabricSwitchProviderBlockingErrorDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFabricSwitchProviderBlockingErrorDetails(json) : null; } @@ -82,8 +82,8 @@ internal InMageRcmFabricSwitchProviderBlockingErrorDetails(Microsoft.Azure.Power {_errorMessage = If( json?.PropertyT("errorMessage"), out var __jsonErrorMessage) ? (string)__jsonErrorMessage : (string)ErrorMessage;} {_possibleCaus = If( json?.PropertyT("possibleCauses"), out var __jsonPossibleCauses) ? (string)__jsonPossibleCauses : (string)PossibleCaus;} {_recommendedAction = If( json?.PropertyT("recommendedAction"), out var __jsonRecommendedAction) ? (string)__jsonRecommendedAction : (string)RecommendedAction;} - {_errorMessageParameter = If( json?.PropertyT("errorMessageParameters"), out var __jsonErrorMessageParameters) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.FromJson(__jsonErrorMessageParameters) : ErrorMessageParameter;} - {_errorTag = If( json?.PropertyT("errorTags"), out var __jsonErrorTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.FromJson(__jsonErrorTags) : ErrorTag;} + {_errorMessageParameter = If( json?.PropertyT("errorMessageParameters"), out var __jsonErrorMessageParameters) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.FromJson(__jsonErrorMessageParameters) : ErrorMessageParameter;} + {_errorTag = If( json?.PropertyT("errorTags"), out var __jsonErrorTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.FromJson(__jsonErrorTags) : ErrorTag;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs index 301776425d37..3ed693ee0c1d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessa partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters(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.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs index 8c70f987a51e..eec494d7c2fd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null /// if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.cs index 97d772f60d99..028636947cd8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The error message parameters. public partial class InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParametersInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs index ac630b2d65d3..2b084111b979 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs index 3407091db551..14fb8856a3cd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessa partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorMessageParameters(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs index 7a72cce1af8e..1a79d6f88542 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags(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.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags(global::Syst } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs index ff24b651c6a6..dbb337aea22b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no /// suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.cs index 1cad6e56237e..50dba5f384ef 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The error tags. public partial class InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs index bd16693391c9..6b0d057a9f5b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.json.cs index 0c2aad92e960..53f28b26a376 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFabricSwitchProviderBlockingErrorDetailsErrorTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackDiscoveredProtectedVMDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackDiscoveredProtectedVMDetails.PowerShell.cs new file mode 100644 index 000000000000..c0cd7f3f4ea6 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackDiscoveredProtectedVMDetails.PowerShell.cs @@ -0,0 +1,237 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcmFailback discovered VM details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackDiscoveredProtectedVMDetailsTypeConverter))] + public partial class InMageRcmFailbackDiscoveredProtectedVMDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmFailbackDiscoveredProtectedVMDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmFailbackDiscoveredProtectedVMDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmFailbackDiscoveredProtectedVMDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VCenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterId = (string) content.GetValueForProperty("VCenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterId, global::System.Convert.ToString); + } + if (content.Contains("VCenterFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn = (string) content.GetValueForProperty("VCenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn, global::System.Convert.ToString); + } + if (content.Contains("Datastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IPAddress = (string[]) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("VmwareToolsStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus = (string) content.GetValueForProperty("VmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus, global::System.Convert.ToString); + } + if (content.Contains("PowerStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).PowerStatus = (string) content.GetValueForProperty("PowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).PowerStatus, global::System.Convert.ToString); + } + if (content.Contains("VMFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VMFqdn = (string) content.GetValueForProperty("VMFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VMFqdn, global::System.Convert.ToString); + } + if (content.Contains("OSName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).OSName = (string) content.GetValueForProperty("OSName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).OSName, global::System.Convert.ToString); + } + if (content.Contains("CreatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("CreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("UpdatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("UpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("IsDeleted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IsDeleted = (bool?) content.GetValueForProperty("IsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("LastDiscoveryTimeInUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("LastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageRcmFailbackDiscoveredProtectedVMDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VCenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterId = (string) content.GetValueForProperty("VCenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterId, global::System.Convert.ToString); + } + if (content.Contains("VCenterFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn = (string) content.GetValueForProperty("VCenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VCenterFqdn, global::System.Convert.ToString); + } + if (content.Contains("Datastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IPAddress = (string[]) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("VmwareToolsStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus = (string) content.GetValueForProperty("VmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VmwareToolsStatus, global::System.Convert.ToString); + } + if (content.Contains("PowerStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).PowerStatus = (string) content.GetValueForProperty("PowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).PowerStatus, global::System.Convert.ToString); + } + if (content.Contains("VMFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VMFqdn = (string) content.GetValueForProperty("VMFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).VMFqdn, global::System.Convert.ToString); + } + if (content.Contains("OSName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).OSName = (string) content.GetValueForProperty("OSName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).OSName, global::System.Convert.ToString); + } + if (content.Contains("CreatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("CreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).CreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("UpdatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("UpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).UpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("IsDeleted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IsDeleted = (bool?) content.GetValueForProperty("IsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).IsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("LastDiscoveryTimeInUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("LastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)this).LastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcmFailback discovered VM details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackDiscoveredProtectedVMDetailsTypeConverter))] + public partial interface IInMageRcmFailbackDiscoveredProtectedVMDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackDiscoveredProtectedVMDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackDiscoveredProtectedVMDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackDiscoveredProtectedVMDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackDiscoveredProtectedVMDetails.TypeConverter.cs index 1b6ac92646e3..57a78f63122d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackDiscoveredProtectedVMDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackDiscoveredProtectedVMDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackDiscoveredProtectedVMDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackDiscoveredProtectedVMDetails.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackDiscoveredProtectedVMDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackDiscoveredProtectedVMDetails.cs index 0fe0080da0d2..0da1ca14dfa9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackDiscoveredProtectedVMDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackDiscoveredProtectedVMDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcmFailback discovered VM details. public partial class InMageRcmFailbackDiscoveredProtectedVMDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal { /// Backing field for property. @@ -49,40 +49,40 @@ public partial class InMageRcmFailbackDiscoveredProtectedVMDetails : public global::System.DateTime? LastDiscoveryTimeInUtc { get => this._lastDiscoveryTimeInUtc; } /// Internal Acessors for CreatedTimestamp - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.CreatedTimestamp { get => this._createdTimestamp; set { {_createdTimestamp = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.CreatedTimestamp { get => this._createdTimestamp; set { {_createdTimestamp = value;} } } /// Internal Acessors for Datastore - string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.Datastore { get => this._datastore; set { {_datastore = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.Datastore { get => this._datastore; set { {_datastore = value;} } } /// Internal Acessors for IPAddress - string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.IPAddress { get => this._iPAddress; set { {_iPAddress = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.IPAddress { get => this._iPAddress; set { {_iPAddress = value;} } } /// Internal Acessors for IsDeleted - bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.IsDeleted { get => this._isDeleted; set { {_isDeleted = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.IsDeleted { get => this._isDeleted; set { {_isDeleted = value;} } } /// Internal Acessors for LastDiscoveryTimeInUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.LastDiscoveryTimeInUtc { get => this._lastDiscoveryTimeInUtc; set { {_lastDiscoveryTimeInUtc = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.LastDiscoveryTimeInUtc { get => this._lastDiscoveryTimeInUtc; set { {_lastDiscoveryTimeInUtc = value;} } } /// Internal Acessors for OSName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.OSName { get => this._oSName; set { {_oSName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.OSName { get => this._oSName; set { {_oSName = value;} } } /// Internal Acessors for PowerStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.PowerStatus { get => this._powerStatus; set { {_powerStatus = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.PowerStatus { get => this._powerStatus; set { {_powerStatus = value;} } } /// Internal Acessors for UpdatedTimestamp - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.UpdatedTimestamp { get => this._updatedTimestamp; set { {_updatedTimestamp = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.UpdatedTimestamp { get => this._updatedTimestamp; set { {_updatedTimestamp = value;} } } /// Internal Acessors for VCenterFqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.VCenterFqdn { get => this._vCenterFqdn; set { {_vCenterFqdn = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.VCenterFqdn { get => this._vCenterFqdn; set { {_vCenterFqdn = value;} } } /// Internal Acessors for VCenterId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.VCenterId { get => this._vCenterId; set { {_vCenterId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.VCenterId { get => this._vCenterId; set { {_vCenterId = value;} } } /// Internal Acessors for VMFqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.VMFqdn { get => this._vMFqdn; set { {_vMFqdn = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.VMFqdn { get => this._vMFqdn; set { {_vMFqdn = value;} } } /// Internal Acessors for VmwareToolsStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.VmwareToolsStatus { get => this._vmwareToolsStatus; set { {_vmwareToolsStatus = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal.VmwareToolsStatus { get => this._vmwareToolsStatus; set { {_vmwareToolsStatus = value;} } } /// Backing field for property. private string _oSName; diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackDiscoveredProtectedVMDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackDiscoveredProtectedVMDetails.json.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackDiscoveredProtectedVMDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackDiscoveredProtectedVMDetails.json.cs index 2c086f87ddda..ffeb34a3bbc3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackDiscoveredProtectedVMDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackDiscoveredProtectedVMDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFailbackDiscoveredProtectedVMDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFailbackDiscoveredProtectedVMDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackEventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackEventDetails.PowerShell.cs new file mode 100644 index 000000000000..43af7fa9d7cb --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackEventDetails.PowerShell.cs @@ -0,0 +1,186 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Event details for InMageRcmFailback provider. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackEventDetailsTypeConverter))] + public partial class InMageRcmFailbackEventDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmFailbackEventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmFailbackEventDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackEventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmFailbackEventDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackEventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmFailbackEventDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProtectedItemName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ProtectedItemName = (string) content.GetValueForProperty("ProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ProtectedItemName, global::System.Convert.ToString); + } + if (content.Contains("VMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).VMName, global::System.Convert.ToString); + } + if (content.Contains("ApplianceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ApplianceName = (string) content.GetValueForProperty("ApplianceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ApplianceName, global::System.Convert.ToString); + } + if (content.Contains("ServerType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ServerType = (string) content.GetValueForProperty("ServerType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ServerType, global::System.Convert.ToString); + } + if (content.Contains("ComponentDisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ComponentDisplayName = (string) content.GetValueForProperty("ComponentDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ComponentDisplayName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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 InMageRcmFailbackEventDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProtectedItemName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ProtectedItemName = (string) content.GetValueForProperty("ProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ProtectedItemName, global::System.Convert.ToString); + } + if (content.Contains("VMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).VMName, global::System.Convert.ToString); + } + if (content.Contains("ApplianceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ApplianceName = (string) content.GetValueForProperty("ApplianceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ApplianceName, global::System.Convert.ToString); + } + if (content.Contains("ServerType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ServerType = (string) content.GetValueForProperty("ServerType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ServerType, global::System.Convert.ToString); + } + if (content.Contains("ComponentDisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ComponentDisplayName = (string) content.GetValueForProperty("ComponentDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal)this).ComponentDisplayName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Event details for InMageRcmFailback provider. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackEventDetailsTypeConverter))] + public partial interface IInMageRcmFailbackEventDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackEventDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackEventDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackEventDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackEventDetails.TypeConverter.cs index c746d2022572..0cd9ef30a500 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackEventDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackEventDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackEventDetails.cs similarity index 84% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackEventDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackEventDetails.cs index 4f9320dd4b67..43b2428ee119 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackEventDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Event details for InMageRcmFailback provider. public partial class InMageRcmFailbackEventDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(); /// Backing field for property. private string _applianceName; @@ -35,22 +35,22 @@ public partial class InMageRcmFailbackEventDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } /// Internal Acessors for ApplianceName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal.ApplianceName { get => this._applianceName; set { {_applianceName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal.ApplianceName { get => this._applianceName; set { {_applianceName = value;} } } /// Internal Acessors for ComponentDisplayName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal.ComponentDisplayName { get => this._componentDisplayName; set { {_componentDisplayName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal.ComponentDisplayName { get => this._componentDisplayName; set { {_componentDisplayName = value;} } } /// Internal Acessors for ProtectedItemName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal.ProtectedItemName { get => this._protectedItemName; set { {_protectedItemName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal.ProtectedItemName { get => this._protectedItemName; set { {_protectedItemName = value;} } } /// Internal Acessors for ServerType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal.ServerType { get => this._serverType; set { {_serverType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal.ServerType { get => this._serverType; set { {_serverType = value;} } } /// Internal Acessors for VMName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetailsInternal.VMName { get => this._vMName; set { {_vMName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetailsInternal.VMName { get => this._vMName; set { {_vMName = value;} } } /// Backing field for property. private string _protectedItemName; @@ -94,7 +94,7 @@ public InMageRcmFailbackEventDetails() /// Event details for InMageRcmFailback provider. public partial interface IInMageRcmFailbackEventDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails { /// The appliance name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -140,7 +140,7 @@ public partial interface IInMageRcmFailbackEventDetails : } /// Event details for InMageRcmFailback provider. internal partial interface IInMageRcmFailbackEventDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal { /// The appliance name. string ApplianceName { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackEventDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackEventDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackEventDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackEventDetails.json.cs index 48ee3af47fbd..f6844277c379 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackEventDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFailbackEventDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackEventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackEventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFailbackEventDetails(json) : null; } @@ -77,7 +77,7 @@ internal InMageRcmFailbackEventDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(json); + __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(json); {_protectedItemName = If( json?.PropertyT("protectedItemName"), out var __jsonProtectedItemName) ? (string)__jsonProtectedItemName : (string)ProtectedItemName;} {_vMName = If( json?.PropertyT("vmName"), out var __jsonVMName) ? (string)__jsonVMName : (string)VMName;} {_applianceName = If( json?.PropertyT("applianceName"), out var __jsonApplianceName) ? (string)__jsonApplianceName : (string)ApplianceName;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackMobilityAgentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackMobilityAgentDetails.PowerShell.cs new file mode 100644 index 000000000000..4008b9a3ad3e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackMobilityAgentDetails.PowerShell.cs @@ -0,0 +1,213 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcmFailback mobility agent details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackMobilityAgentDetailsTypeConverter))] + public partial class InMageRcmFailbackMobilityAgentDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmFailbackMobilityAgentDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmFailbackMobilityAgentDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmFailbackMobilityAgentDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LatestVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestVersion = (string) content.GetValueForProperty("LatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestVersion, global::System.Convert.ToString); + } + if (content.Contains("DriverVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersion = (string) content.GetValueForProperty("DriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersion, global::System.Convert.ToString); + } + if (content.Contains("LatestUpgradableVersionWithoutReboot")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("LatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); + } + if (content.Contains("AgentVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).AgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).AgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DriverVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("DriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ReasonsBlockingUpgrade")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("ReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); + } + if (content.Contains("IsUpgradeable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).IsUpgradeable = (string) content.GetValueForProperty("IsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).IsUpgradeable, 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 InMageRcmFailbackMobilityAgentDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LatestVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestVersion = (string) content.GetValueForProperty("LatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestVersion, global::System.Convert.ToString); + } + if (content.Contains("DriverVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersion = (string) content.GetValueForProperty("DriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersion, global::System.Convert.ToString); + } + if (content.Contains("LatestUpgradableVersionWithoutReboot")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("LatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); + } + if (content.Contains("AgentVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).AgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).AgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DriverVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("DriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).DriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ReasonsBlockingUpgrade")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("ReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); + } + if (content.Contains("IsUpgradeable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).IsUpgradeable = (string) content.GetValueForProperty("IsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)this).IsUpgradeable, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcmFailback mobility agent details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackMobilityAgentDetailsTypeConverter))] + public partial interface IInMageRcmFailbackMobilityAgentDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackMobilityAgentDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackMobilityAgentDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackMobilityAgentDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackMobilityAgentDetails.TypeConverter.cs index 20e32976037f..f289aaff75e1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackMobilityAgentDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackMobilityAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackMobilityAgentDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackMobilityAgentDetails.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackMobilityAgentDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackMobilityAgentDetails.cs index a19ce2c8fd58..0c39bee20056 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackMobilityAgentDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackMobilityAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcmFailback mobility agent details. public partial class InMageRcmFailbackMobilityAgentDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal { /// Backing field for property. @@ -63,31 +63,31 @@ public partial class InMageRcmFailbackMobilityAgentDetails : public string LatestVersion { get => this._latestVersion; } /// Internal Acessors for AgentVersionExpiryDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal.AgentVersionExpiryDate { get => this._agentVersionExpiryDate; set { {_agentVersionExpiryDate = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal.AgentVersionExpiryDate { get => this._agentVersionExpiryDate; set { {_agentVersionExpiryDate = value;} } } /// Internal Acessors for DriverVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal.DriverVersion { get => this._driverVersion; set { {_driverVersion = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal.DriverVersion { get => this._driverVersion; set { {_driverVersion = value;} } } /// Internal Acessors for DriverVersionExpiryDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal.DriverVersionExpiryDate { get => this._driverVersionExpiryDate; set { {_driverVersionExpiryDate = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal.DriverVersionExpiryDate { get => this._driverVersionExpiryDate; set { {_driverVersionExpiryDate = value;} } } /// Internal Acessors for IsUpgradeable - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal.IsUpgradeable { get => this._isUpgradeable; set { {_isUpgradeable = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal.IsUpgradeable { get => this._isUpgradeable; set { {_isUpgradeable = value;} } } /// Internal Acessors for LastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } /// Internal Acessors for LatestUpgradableVersionWithoutReboot - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal.LatestUpgradableVersionWithoutReboot { get => this._latestUpgradableVersionWithoutReboot; set { {_latestUpgradableVersionWithoutReboot = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal.LatestUpgradableVersionWithoutReboot { get => this._latestUpgradableVersionWithoutReboot; set { {_latestUpgradableVersionWithoutReboot = value;} } } /// Internal Acessors for LatestVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal.LatestVersion { get => this._latestVersion; set { {_latestVersion = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal.LatestVersion { get => this._latestVersion; set { {_latestVersion = value;} } } /// Internal Acessors for ReasonsBlockingUpgrade - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal.ReasonsBlockingUpgrade { get => this._reasonsBlockingUpgrade; set { {_reasonsBlockingUpgrade = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal.ReasonsBlockingUpgrade { get => this._reasonsBlockingUpgrade; set { {_reasonsBlockingUpgrade = value;} } } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal.Version { get => this._version; set { {_version = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal.Version { get => this._version; set { {_version = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[] _reasonsBlockingUpgrade; diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackMobilityAgentDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackMobilityAgentDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackMobilityAgentDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackMobilityAgentDetails.json.cs index f0524e6bfe5f..8b82b04f50b7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackMobilityAgentDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackMobilityAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFailbackMobilityAgentDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFailbackMobilityAgentDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackNicDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackNicDetails.PowerShell.cs new file mode 100644 index 000000000000..d529d1ee5ccc --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackNicDetails.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcmFailback NIC details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackNicDetailsTypeConverter))] + public partial class InMageRcmFailbackNicDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmFailbackNicDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmFailbackNicDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmFailbackNicDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MacAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).MacAddress = (string) content.GetValueForProperty("MacAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).MacAddress, global::System.Convert.ToString); + } + if (content.Contains("NetworkName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).NetworkName = (string) content.GetValueForProperty("NetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).NetworkName, global::System.Convert.ToString); + } + if (content.Contains("AdapterType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).AdapterType = (string) content.GetValueForProperty("AdapterType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).AdapterType, global::System.Convert.ToString); + } + if (content.Contains("SourceIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).SourceIPAddress = (string) content.GetValueForProperty("SourceIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).SourceIPAddress, 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 InMageRcmFailbackNicDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MacAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).MacAddress = (string) content.GetValueForProperty("MacAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).MacAddress, global::System.Convert.ToString); + } + if (content.Contains("NetworkName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).NetworkName = (string) content.GetValueForProperty("NetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).NetworkName, global::System.Convert.ToString); + } + if (content.Contains("AdapterType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).AdapterType = (string) content.GetValueForProperty("AdapterType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).AdapterType, global::System.Convert.ToString); + } + if (content.Contains("SourceIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).SourceIPAddress = (string) content.GetValueForProperty("SourceIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal)this).SourceIPAddress, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcmFailback NIC details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackNicDetailsTypeConverter))] + public partial interface IInMageRcmFailbackNicDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackNicDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackNicDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackNicDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackNicDetails.TypeConverter.cs index 0f64d744fc37..a47016aab4a8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackNicDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackNicDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackNicDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackNicDetails.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackNicDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackNicDetails.cs index a9df5a50c2f7..d84cce1131f1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackNicDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackNicDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcmFailback NIC details. public partial class InMageRcmFailbackNicDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal { /// Backing field for property. @@ -28,16 +28,16 @@ public partial class InMageRcmFailbackNicDetails : public string MacAddress { get => this._macAddress; } /// Internal Acessors for AdapterType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal.AdapterType { get => this._adapterType; set { {_adapterType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal.AdapterType { get => this._adapterType; set { {_adapterType = value;} } } /// Internal Acessors for MacAddress - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal.MacAddress { get => this._macAddress; set { {_macAddress = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal.MacAddress { get => this._macAddress; set { {_macAddress = value;} } } /// Internal Acessors for NetworkName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal.NetworkName { get => this._networkName; set { {_networkName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal.NetworkName { get => this._networkName; set { {_networkName = value;} } } /// Internal Acessors for SourceIPAddress - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetailsInternal.SourceIPAddress { get => this._sourceIPAddress; set { {_sourceIPAddress = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetailsInternal.SourceIPAddress { get => this._sourceIPAddress; set { {_sourceIPAddress = value;} } } /// Backing field for property. private string _networkName; diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackNicDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackNicDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackNicDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackNicDetails.json.cs index c28aaabd059a..ee560df4bc2b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackNicDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackNicDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFailbackNicDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFailbackNicDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPlannedFailoverProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPlannedFailoverProviderInput.PowerShell.cs new file mode 100644 index 000000000000..d9d3dddf1c48 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPlannedFailoverProviderInput.PowerShell.cs @@ -0,0 +1,157 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Provider specific input for InMageRcmFailback failover. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackPlannedFailoverProviderInputTypeConverter))] + public partial class InMageRcmFailbackPlannedFailoverProviderInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmFailbackPlannedFailoverProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmFailbackPlannedFailoverProviderInput(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.Migrate.Models.Api202301.IInMageRcmFailbackPlannedFailoverProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmFailbackPlannedFailoverProviderInput(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.Migrate.Models.Api202301.IInMageRcmFailbackPlannedFailoverProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmFailbackPlannedFailoverProviderInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPlannedFailoverProviderInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPlannedFailoverProviderInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, 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 InMageRcmFailbackPlannedFailoverProviderInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPlannedFailoverProviderInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPlannedFailoverProviderInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Provider specific input for InMageRcmFailback failover. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackPlannedFailoverProviderInputTypeConverter))] + public partial interface IInMageRcmFailbackPlannedFailoverProviderInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPlannedFailoverProviderInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPlannedFailoverProviderInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPlannedFailoverProviderInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPlannedFailoverProviderInput.TypeConverter.cs index c8ded4b5d6cd..51d24fe1aa16 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPlannedFailoverProviderInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPlannedFailoverProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFailbackPlannedFailoverProviderInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPlannedFailoverProviderInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPlannedFailoverProviderInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPlannedFailoverProviderInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPlannedFailoverProviderInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPlannedFailoverProviderInput.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPlannedFailoverProviderInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPlannedFailoverProviderInput.cs index 5e1ed0e4884f..fad19b5b841d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPlannedFailoverProviderInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPlannedFailoverProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific input for InMageRcmFailback failover. public partial class InMageRcmFailbackPlannedFailoverProviderInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPlannedFailoverProviderInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPlannedFailoverProviderInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPlannedFailoverProviderInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPlannedFailoverProviderInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput __plannedFailoverProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput __plannedFailoverProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)__plannedFailoverProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)__plannedFailoverProviderSpecificFailoverInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)__plannedFailoverProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)__plannedFailoverProviderSpecificFailoverInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType _recoveryPointType; @@ -53,7 +53,7 @@ public InMageRcmFailbackPlannedFailoverProviderInput() /// Provider specific input for InMageRcmFailback failover. public partial interface IInMageRcmFailbackPlannedFailoverProviderInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput { /// The recovery point type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -67,7 +67,7 @@ public partial interface IInMageRcmFailbackPlannedFailoverProviderInput : } /// Provider specific input for InMageRcmFailback failover. internal partial interface IInMageRcmFailbackPlannedFailoverProviderInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal { /// The recovery point type. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType RecoveryPointType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPlannedFailoverProviderInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPlannedFailoverProviderInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPlannedFailoverProviderInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPlannedFailoverProviderInput.json.cs index 243572225336..2cee998cff15 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPlannedFailoverProviderInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPlannedFailoverProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFailbackPlannedFailoverProviderInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPlannedFailoverProviderInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPlannedFailoverProviderInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPlannedFailoverProviderInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPlannedFailoverProviderInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPlannedFailoverProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPlannedFailoverProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFailbackPlannedFailoverProviderInput(json) : null; } @@ -78,7 +78,7 @@ internal InMageRcmFailbackPlannedFailoverProviderInput(Microsoft.Azure.PowerShel { return; } - __plannedFailoverProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInput(json); + __plannedFailoverProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInput(json); {_recoveryPointType = If( json?.PropertyT("recoveryPointType"), out var __jsonRecoveryPointType) ? (string)__jsonRecoveryPointType : (string)RecoveryPointType;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyCreationInput.PowerShell.cs new file mode 100644 index 000000000000..e63357adf2e9 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyCreationInput.PowerShell.cs @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcmFailback policy creation input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackPolicyCreationInputTypeConverter))] + public partial class InMageRcmFailbackPolicyCreationInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmFailbackPolicyCreationInput(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.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmFailbackPolicyCreationInput(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.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmFailbackPolicyCreationInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 InMageRcmFailbackPolicyCreationInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcmFailback policy creation input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackPolicyCreationInputTypeConverter))] + public partial interface IInMageRcmFailbackPolicyCreationInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyCreationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyCreationInput.TypeConverter.cs index 5c8d81aa70fa..e3a3d2056f2b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyCreationInput.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyCreationInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyCreationInput.cs index f724edccee6a..1bf3f2d904c9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyCreationInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcmFailback policy creation input. public partial class InMageRcmFailbackPolicyCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(); /// Backing field for property. private int? _appConsistentFrequencyInMinute; @@ -35,7 +35,7 @@ public partial class InMageRcmFailbackPolicyCreationInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } /// Creates an new instance. public InMageRcmFailbackPolicyCreationInput() @@ -58,7 +58,7 @@ public InMageRcmFailbackPolicyCreationInput() /// InMageRcmFailback policy creation input. public partial interface IInMageRcmFailbackPolicyCreationInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput { /// The app consistent snapshot frequency (in minutes). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -80,7 +80,7 @@ public partial interface IInMageRcmFailbackPolicyCreationInput : } /// InMageRcmFailback policy creation input. internal partial interface IInMageRcmFailbackPolicyCreationInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal { /// The app consistent snapshot frequency (in minutes). int? AppConsistentFrequencyInMinute { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyCreationInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyCreationInput.json.cs index a900780ce0a1..29b89c34bc16 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFailbackPolicyCreationInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFailbackPolicyCreationInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageRcmFailbackPolicyCreationInput(Microsoft.Azure.PowerShell.Cmdlets { return; } - __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(json); + __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(json); {_crashConsistentFrequencyInMinute = If( json?.PropertyT("crashConsistentFrequencyInMinutes"), out var __jsonCrashConsistentFrequencyInMinutes) ? (int?)__jsonCrashConsistentFrequencyInMinutes : CrashConsistentFrequencyInMinute;} {_appConsistentFrequencyInMinute = If( json?.PropertyT("appConsistentFrequencyInMinutes"), out var __jsonAppConsistentFrequencyInMinutes) ? (int?)__jsonAppConsistentFrequencyInMinutes : AppConsistentFrequencyInMinute;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyDetails.PowerShell.cs new file mode 100644 index 000000000000..502e5b0c5496 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyDetails.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm failback specific policy details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackPolicyDetailsTypeConverter))] + public partial class InMageRcmFailbackPolicyDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmFailbackPolicyDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmFailbackPolicyDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmFailbackPolicyDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 InMageRcmFailbackPolicyDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm failback specific policy details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackPolicyDetailsTypeConverter))] + public partial interface IInMageRcmFailbackPolicyDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyDetails.TypeConverter.cs index b42c4ebefe96..bff86761661a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyDetails.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyDetails.cs index 2151d1584399..eb49610a7832 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm failback specific policy details. public partial class InMageRcmFailbackPolicyDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(); /// Backing field for property. private int? _appConsistentFrequencyInMinute; @@ -35,7 +35,7 @@ public partial class InMageRcmFailbackPolicyDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } /// Creates an new instance. public InMageRcmFailbackPolicyDetails() @@ -58,7 +58,7 @@ public InMageRcmFailbackPolicyDetails() /// InMageRcm failback specific policy details. public partial interface IInMageRcmFailbackPolicyDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails { /// The app consistent snapshot frequency in minutes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -80,7 +80,7 @@ public partial interface IInMageRcmFailbackPolicyDetails : } /// InMageRcm failback specific policy details. internal partial interface IInMageRcmFailbackPolicyDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal { /// The app consistent snapshot frequency in minutes. int? AppConsistentFrequencyInMinute { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyDetails.json.cs index b1032b7f0ffe..834771e60897 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackPolicyDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackPolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFailbackPolicyDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackPolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackPolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFailbackPolicyDetails(json) : null; } @@ -77,7 +77,7 @@ internal InMageRcmFailbackPolicyDetails(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(json); + __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(json); {_appConsistentFrequencyInMinute = If( json?.PropertyT("appConsistentFrequencyInMinutes"), out var __jsonAppConsistentFrequencyInMinutes) ? (int?)__jsonAppConsistentFrequencyInMinutes : AppConsistentFrequencyInMinute;} {_crashConsistentFrequencyInMinute = If( json?.PropertyT("crashConsistentFrequencyInMinutes"), out var __jsonCrashConsistentFrequencyInMinutes) ? (int?)__jsonCrashConsistentFrequencyInMinutes : CrashConsistentFrequencyInMinute;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackProtectedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackProtectedDiskDetails.PowerShell.cs new file mode 100644 index 000000000000..cd71d47db776 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackProtectedDiskDetails.PowerShell.cs @@ -0,0 +1,357 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcmFailback protected disk details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackProtectedDiskDetailsTypeConverter))] + public partial class InMageRcmFailbackProtectedDiskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmFailbackProtectedDiskDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmFailbackProtectedDiskDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmFailbackProtectedDiskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("IrDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails) content.GetValueForProperty("IrDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackSyncDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ResyncDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails) content.GetValueForProperty("ResyncDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackSyncDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("IsOSDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); + } + if (content.Contains("CapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("DiskUuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskUuid = (string) content.GetValueForProperty("DiskUuid",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskUuid, global::System.Convert.ToString); + } + if (content.Contains("DataPendingInLogDataStoreInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb = (double?) content.GetValueForProperty("DataPendingInLogDataStoreInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DataPendingAtSourceAgentInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("IsInitialReplicationComplete")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsInitialReplicationComplete = (string) content.GetValueForProperty("IsInitialReplicationComplete",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsInitialReplicationComplete, global::System.Convert.ToString); + } + if (content.Contains("LastSyncTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).LastSyncTime = (global::System.DateTime?) content.GetValueForProperty("LastSyncTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).LastSyncTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("IrDetailProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("IrDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); + } + if (content.Contains("IrDetailTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailTransferredByte = (long?) content.GetValueForProperty("IrDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("IrDetailLast15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("IrDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("IrDetailLastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("IrDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("IrDetailProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProcessedByte = (long?) content.GetValueForProperty("IrDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("IrDetailStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailStartTime = (string) content.GetValueForProperty("IrDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailStartTime, global::System.Convert.ToString); + } + if (content.Contains("IrDetailLastRefreshTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime = (string) content.GetValueForProperty("IrDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime, global::System.Convert.ToString); + } + if (content.Contains("IrDetailProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressPercentage = (int?) content.GetValueForProperty("IrDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResyncDetailProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ResyncDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); + } + if (content.Contains("ResyncDetailTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte = (long?) content.GetValueForProperty("ResyncDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncDetailLast15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncDetailLastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("ResyncDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte = (long?) content.GetValueForProperty("ResyncDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncDetailStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailStartTime = (string) content.GetValueForProperty("ResyncDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailStartTime, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailLastRefreshTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime = (string) content.GetValueForProperty("ResyncDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage = (int?) content.GetValueForProperty("ResyncDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageRcmFailbackProtectedDiskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("IrDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails) content.GetValueForProperty("IrDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackSyncDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ResyncDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails) content.GetValueForProperty("ResyncDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackSyncDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("IsOSDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); + } + if (content.Contains("CapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("DiskUuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskUuid = (string) content.GetValueForProperty("DiskUuid",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DiskUuid, global::System.Convert.ToString); + } + if (content.Contains("DataPendingInLogDataStoreInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb = (double?) content.GetValueForProperty("DataPendingInLogDataStoreInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DataPendingAtSourceAgentInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("IsInitialReplicationComplete")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsInitialReplicationComplete = (string) content.GetValueForProperty("IsInitialReplicationComplete",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IsInitialReplicationComplete, global::System.Convert.ToString); + } + if (content.Contains("LastSyncTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).LastSyncTime = (global::System.DateTime?) content.GetValueForProperty("LastSyncTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).LastSyncTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("IrDetailProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("IrDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); + } + if (content.Contains("IrDetailTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailTransferredByte = (long?) content.GetValueForProperty("IrDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("IrDetailLast15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("IrDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("IrDetailLastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("IrDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("IrDetailProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProcessedByte = (long?) content.GetValueForProperty("IrDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("IrDetailStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailStartTime = (string) content.GetValueForProperty("IrDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailStartTime, global::System.Convert.ToString); + } + if (content.Contains("IrDetailLastRefreshTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime = (string) content.GetValueForProperty("IrDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime, global::System.Convert.ToString); + } + if (content.Contains("IrDetailProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressPercentage = (int?) content.GetValueForProperty("IrDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).IrDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResyncDetailProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ResyncDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); + } + if (content.Contains("ResyncDetailTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte = (long?) content.GetValueForProperty("ResyncDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncDetailLast15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncDetailLastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("ResyncDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte = (long?) content.GetValueForProperty("ResyncDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncDetailStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailStartTime = (string) content.GetValueForProperty("ResyncDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailStartTime, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailLastRefreshTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime = (string) content.GetValueForProperty("ResyncDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage = (int?) content.GetValueForProperty("ResyncDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcmFailback protected disk details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackProtectedDiskDetailsTypeConverter))] + public partial interface IInMageRcmFailbackProtectedDiskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackProtectedDiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackProtectedDiskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackProtectedDiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackProtectedDiskDetails.TypeConverter.cs index 6a9ab34f7efe..4355b709ed49 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackProtectedDiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackProtectedDiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackProtectedDiskDetails.cs new file mode 100644 index 000000000000..d67646b45d41 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackProtectedDiskDetails.cs @@ -0,0 +1,534 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// InMageRcmFailback protected disk details. + public partial class InMageRcmFailbackProtectedDiskDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal + { + + /// Backing field for property. + private long? _capacityInByte; + + /// The disk capacity in bytes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public long? CapacityInByte { get => this._capacityInByte; } + + /// Backing field for property. + private double? _dataPendingAtSourceAgentInMb; + + /// The data pending at source agent in MB. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public double? DataPendingAtSourceAgentInMb { get => this._dataPendingAtSourceAgentInMb; } + + /// Backing field for property. + private double? _dataPendingInLogDataStoreInMb; + + /// The data pending in log data store in MB. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public double? DataPendingInLogDataStoreInMb { get => this._dataPendingInLogDataStoreInMb; } + + /// Backing field for property. + private string _diskId; + + /// The disk Id (reported by source agent). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string DiskId { get => this._diskId; } + + /// Backing field for property. + private string _diskName; + + /// The disk name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string DiskName { get => this._diskName; } + + /// Backing field for property. + private string _diskUuid; + + /// The disk Uuid (reported by vCenter). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string DiskUuid { get => this._diskUuid; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails _irDetail; + + /// The initial replication details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails IrDetail { get => (this._irDetail = this._irDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackSyncDetails()); set => this._irDetail = value; } + + /// The bytes transferred in last 15 minutes from source VM to target. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public long? IrDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).Last15MinutesTransferredByte; } + + /// The time of the last data transfer from source VM to target. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string IrDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).LastDataTransferTimeUtc; } + + /// The last refresh time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string IrDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).LastRefreshTime; } + + /// + /// The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public long? IrDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProcessedByte; } + + /// The progress health. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? IrDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProgressHealth; } + + /// + /// Progress in percentage. Progress percentage is calculated based on processed bytes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public int? IrDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProgressPercentage; } + + /// The start time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string IrDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).StartTime; } + + /// The transferred bytes from source VM to azure for the disk. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public long? IrDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).TransferredByte; } + + /// Backing field for property. + private string _isInitialReplicationComplete; + + /// A value indicating whether initial replication is complete or not. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string IsInitialReplicationComplete { get => this._isInitialReplicationComplete; } + + /// Backing field for property. + private string _isOSDisk; + + /// A value indicating whether the disk is the OS disk. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string IsOSDisk { get => this._isOSDisk; } + + /// Backing field for property. + private global::System.DateTime? _lastSyncTime; + + /// The last sync time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public global::System.DateTime? LastSyncTime { get => this._lastSyncTime; } + + /// Internal Acessors for CapacityInByte + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.CapacityInByte { get => this._capacityInByte; set { {_capacityInByte = value;} } } + + /// Internal Acessors for DataPendingAtSourceAgentInMb + double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.DataPendingAtSourceAgentInMb { get => this._dataPendingAtSourceAgentInMb; set { {_dataPendingAtSourceAgentInMb = value;} } } + + /// Internal Acessors for DataPendingInLogDataStoreInMb + double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.DataPendingInLogDataStoreInMb { get => this._dataPendingInLogDataStoreInMb; set { {_dataPendingInLogDataStoreInMb = value;} } } + + /// Internal Acessors for DiskId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.DiskId { get => this._diskId; set { {_diskId = value;} } } + + /// Internal Acessors for DiskName + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.DiskName { get => this._diskName; set { {_diskName = value;} } } + + /// Internal Acessors for DiskUuid + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.DiskUuid { get => this._diskUuid; set { {_diskUuid = value;} } } + + /// Internal Acessors for IrDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetail { get => (this._irDetail = this._irDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackSyncDetails()); set { {_irDetail = value;} } } + + /// Internal Acessors for IrDetailLast15MinutesTransferredByte + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).Last15MinutesTransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).Last15MinutesTransferredByte = value; } + + /// Internal Acessors for IrDetailLastDataTransferTimeUtc + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).LastDataTransferTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).LastDataTransferTimeUtc = value; } + + /// Internal Acessors for IrDetailLastRefreshTime + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).LastRefreshTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).LastRefreshTime = value; } + + /// Internal Acessors for IrDetailProcessedByte + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProcessedByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProcessedByte = value; } + + /// Internal Acessors for IrDetailProgressHealth + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProgressHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProgressHealth = value; } + + /// Internal Acessors for IrDetailProgressPercentage + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).ProgressPercentage = value; } + + /// Internal Acessors for IrDetailStartTime + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).StartTime = value; } + + /// Internal Acessors for IrDetailTransferredByte + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.IrDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).TransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)IrDetail).TransferredByte = value; } + + /// Internal Acessors for IsInitialReplicationComplete + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.IsInitialReplicationComplete { get => this._isInitialReplicationComplete; set { {_isInitialReplicationComplete = value;} } } + + /// Internal Acessors for IsOSDisk + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.IsOSDisk { get => this._isOSDisk; set { {_isOSDisk = value;} } } + + /// Internal Acessors for LastSyncTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.LastSyncTime { get => this._lastSyncTime; set { {_lastSyncTime = value;} } } + + /// Internal Acessors for ResyncDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetail { get => (this._resyncDetail = this._resyncDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackSyncDetails()); set { {_resyncDetail = value;} } } + + /// Internal Acessors for ResyncDetailLast15MinutesTransferredByte + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).Last15MinutesTransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).Last15MinutesTransferredByte = value; } + + /// Internal Acessors for ResyncDetailLastDataTransferTimeUtc + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).LastDataTransferTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).LastDataTransferTimeUtc = value; } + + /// Internal Acessors for ResyncDetailLastRefreshTime + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).LastRefreshTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).LastRefreshTime = value; } + + /// Internal Acessors for ResyncDetailProcessedByte + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProcessedByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProcessedByte = value; } + + /// Internal Acessors for ResyncDetailProgressHealth + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProgressHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProgressHealth = value; } + + /// Internal Acessors for ResyncDetailProgressPercentage + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProgressPercentage = value; } + + /// Internal Acessors for ResyncDetailStartTime + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).StartTime = value; } + + /// Internal Acessors for ResyncDetailTransferredByte + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetailsInternal.ResyncDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).TransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).TransferredByte = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails _resyncDetail; + + /// The resync details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails ResyncDetail { get => (this._resyncDetail = this._resyncDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackSyncDetails()); set => this._resyncDetail = value; } + + /// The bytes transferred in last 15 minutes from source VM to target. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public long? ResyncDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).Last15MinutesTransferredByte; } + + /// The time of the last data transfer from source VM to target. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ResyncDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).LastDataTransferTimeUtc; } + + /// The last refresh time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ResyncDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).LastRefreshTime; } + + /// + /// The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public long? ResyncDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProcessedByte; } + + /// The progress health. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? ResyncDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProgressHealth; } + + /// + /// Progress in percentage. Progress percentage is calculated based on processed bytes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public int? ResyncDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).ProgressPercentage; } + + /// The start time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ResyncDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).StartTime; } + + /// The transferred bytes from source VM to azure for the disk. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public long? ResyncDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)ResyncDetail).TransferredByte; } + + /// Creates an new instance. + public InMageRcmFailbackProtectedDiskDetails() + { + + } + } + /// InMageRcmFailback protected disk details. + public partial interface IInMageRcmFailbackProtectedDiskDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The disk capacity in bytes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The disk capacity in bytes.", + SerializedName = @"capacityInBytes", + PossibleTypes = new [] { typeof(long) })] + long? CapacityInByte { get; } + /// The data pending at source agent in MB. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The data pending at source agent in MB.", + SerializedName = @"dataPendingAtSourceAgentInMB", + PossibleTypes = new [] { typeof(double) })] + double? DataPendingAtSourceAgentInMb { get; } + /// The data pending in log data store in MB. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The data pending in log data store in MB.", + SerializedName = @"dataPendingInLogDataStoreInMB", + PossibleTypes = new [] { typeof(double) })] + double? DataPendingInLogDataStoreInMb { get; } + /// The disk Id (reported by source agent). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The disk Id (reported by source agent).", + SerializedName = @"diskId", + PossibleTypes = new [] { typeof(string) })] + string DiskId { get; } + /// The disk name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The disk name.", + SerializedName = @"diskName", + PossibleTypes = new [] { typeof(string) })] + string DiskName { get; } + /// The disk Uuid (reported by vCenter). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The disk Uuid (reported by vCenter).", + SerializedName = @"diskUuid", + PossibleTypes = new [] { typeof(string) })] + string DiskUuid { get; } + /// The bytes transferred in last 15 minutes from source VM to target. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The bytes transferred in last 15 minutes from source VM to target.", + SerializedName = @"last15MinutesTransferredBytes", + PossibleTypes = new [] { typeof(long) })] + long? IrDetailLast15MinutesTransferredByte { get; } + /// The time of the last data transfer from source VM to target. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The time of the last data transfer from source VM to target.", + SerializedName = @"lastDataTransferTimeUtc", + PossibleTypes = new [] { typeof(string) })] + string IrDetailLastDataTransferTimeUtc { get; } + /// The last refresh time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The last refresh time.", + SerializedName = @"lastRefreshTime", + PossibleTypes = new [] { typeof(string) })] + string IrDetailLastRefreshTime { get; } + /// + /// The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes.", + SerializedName = @"processedBytes", + PossibleTypes = new [] { typeof(long) })] + long? IrDetailProcessedByte { get; } + /// The progress health. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The progress health.", + SerializedName = @"progressHealth", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? IrDetailProgressHealth { get; } + /// + /// Progress in percentage. Progress percentage is calculated based on processed bytes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Progress in percentage. Progress percentage is calculated based on processed bytes.", + SerializedName = @"progressPercentage", + PossibleTypes = new [] { typeof(int) })] + int? IrDetailProgressPercentage { get; } + /// The start time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The start time.", + SerializedName = @"startTime", + PossibleTypes = new [] { typeof(string) })] + string IrDetailStartTime { get; } + /// The transferred bytes from source VM to azure for the disk. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The transferred bytes from source VM to azure for the disk.", + SerializedName = @"transferredBytes", + PossibleTypes = new [] { typeof(long) })] + long? IrDetailTransferredByte { get; } + /// A value indicating whether initial replication is complete or not. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A value indicating whether initial replication is complete or not.", + SerializedName = @"isInitialReplicationComplete", + PossibleTypes = new [] { typeof(string) })] + string IsInitialReplicationComplete { get; } + /// A value indicating whether the disk is the OS disk. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A value indicating whether the disk is the OS disk.", + SerializedName = @"isOSDisk", + PossibleTypes = new [] { typeof(string) })] + string IsOSDisk { get; } + /// The last sync time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The last sync time.", + SerializedName = @"lastSyncTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastSyncTime { get; } + /// The bytes transferred in last 15 minutes from source VM to target. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The bytes transferred in last 15 minutes from source VM to target.", + SerializedName = @"last15MinutesTransferredBytes", + PossibleTypes = new [] { typeof(long) })] + long? ResyncDetailLast15MinutesTransferredByte { get; } + /// The time of the last data transfer from source VM to target. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The time of the last data transfer from source VM to target.", + SerializedName = @"lastDataTransferTimeUtc", + PossibleTypes = new [] { typeof(string) })] + string ResyncDetailLastDataTransferTimeUtc { get; } + /// The last refresh time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The last refresh time.", + SerializedName = @"lastRefreshTime", + PossibleTypes = new [] { typeof(string) })] + string ResyncDetailLastRefreshTime { get; } + /// + /// The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes.", + SerializedName = @"processedBytes", + PossibleTypes = new [] { typeof(long) })] + long? ResyncDetailProcessedByte { get; } + /// The progress health. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The progress health.", + SerializedName = @"progressHealth", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? ResyncDetailProgressHealth { get; } + /// + /// Progress in percentage. Progress percentage is calculated based on processed bytes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Progress in percentage. Progress percentage is calculated based on processed bytes.", + SerializedName = @"progressPercentage", + PossibleTypes = new [] { typeof(int) })] + int? ResyncDetailProgressPercentage { get; } + /// The start time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The start time.", + SerializedName = @"startTime", + PossibleTypes = new [] { typeof(string) })] + string ResyncDetailStartTime { get; } + /// The transferred bytes from source VM to azure for the disk. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The transferred bytes from source VM to azure for the disk.", + SerializedName = @"transferredBytes", + PossibleTypes = new [] { typeof(long) })] + long? ResyncDetailTransferredByte { get; } + + } + /// InMageRcmFailback protected disk details. + internal partial interface IInMageRcmFailbackProtectedDiskDetailsInternal + + { + /// The disk capacity in bytes. + long? CapacityInByte { get; set; } + /// The data pending at source agent in MB. + double? DataPendingAtSourceAgentInMb { get; set; } + /// The data pending in log data store in MB. + double? DataPendingInLogDataStoreInMb { get; set; } + /// The disk Id (reported by source agent). + string DiskId { get; set; } + /// The disk name. + string DiskName { get; set; } + /// The disk Uuid (reported by vCenter). + string DiskUuid { get; set; } + /// The initial replication details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails IrDetail { get; set; } + /// The bytes transferred in last 15 minutes from source VM to target. + long? IrDetailLast15MinutesTransferredByte { get; set; } + /// The time of the last data transfer from source VM to target. + string IrDetailLastDataTransferTimeUtc { get; set; } + /// The last refresh time. + string IrDetailLastRefreshTime { get; set; } + /// + /// The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes. + /// + long? IrDetailProcessedByte { get; set; } + /// The progress health. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? IrDetailProgressHealth { get; set; } + /// + /// Progress in percentage. Progress percentage is calculated based on processed bytes. + /// + int? IrDetailProgressPercentage { get; set; } + /// The start time. + string IrDetailStartTime { get; set; } + /// The transferred bytes from source VM to azure for the disk. + long? IrDetailTransferredByte { get; set; } + /// A value indicating whether initial replication is complete or not. + string IsInitialReplicationComplete { get; set; } + /// A value indicating whether the disk is the OS disk. + string IsOSDisk { get; set; } + /// The last sync time. + global::System.DateTime? LastSyncTime { get; set; } + /// The resync details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails ResyncDetail { get; set; } + /// The bytes transferred in last 15 minutes from source VM to target. + long? ResyncDetailLast15MinutesTransferredByte { get; set; } + /// The time of the last data transfer from source VM to target. + string ResyncDetailLastDataTransferTimeUtc { get; set; } + /// The last refresh time. + string ResyncDetailLastRefreshTime { get; set; } + /// + /// The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes. + /// + long? ResyncDetailProcessedByte { get; set; } + /// The progress health. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? ResyncDetailProgressHealth { get; set; } + /// + /// Progress in percentage. Progress percentage is calculated based on processed bytes. + /// + int? ResyncDetailProgressPercentage { get; set; } + /// The start time. + string ResyncDetailStartTime { get; set; } + /// The transferred bytes from source VM to azure for the disk. + long? ResyncDetailTransferredByte { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackProtectedDiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackProtectedDiskDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackProtectedDiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackProtectedDiskDetails.json.cs index 667e73ac3c5d..f8e94ad94b84 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackProtectedDiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFailbackProtectedDiskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFailbackProtectedDiskDetails(json) : null; } @@ -77,8 +77,8 @@ internal InMageRcmFailbackProtectedDiskDetails(Microsoft.Azure.PowerShell.Cmdlet { return; } - {_irDetail = If( json?.PropertyT("irDetails"), out var __jsonIrDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackSyncDetails.FromJson(__jsonIrDetails) : IrDetail;} - {_resyncDetail = If( json?.PropertyT("resyncDetails"), out var __jsonResyncDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackSyncDetails.FromJson(__jsonResyncDetails) : ResyncDetail;} + {_irDetail = If( json?.PropertyT("irDetails"), out var __jsonIrDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackSyncDetails.FromJson(__jsonIrDetails) : IrDetail;} + {_resyncDetail = If( json?.PropertyT("resyncDetails"), out var __jsonResyncDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackSyncDetails.FromJson(__jsonResyncDetails) : ResyncDetail;} {_diskId = If( json?.PropertyT("diskId"), out var __jsonDiskId) ? (string)__jsonDiskId : (string)DiskId;} {_diskName = If( json?.PropertyT("diskName"), out var __jsonDiskName) ? (string)__jsonDiskName : (string)DiskName;} {_isOSDisk = If( json?.PropertyT("isOSDisk"), out var __jsonIsOSDisk) ? (string)__jsonIsOSDisk : (string)IsOSDisk;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReplicationDetails.PowerShell.cs new file mode 100644 index 000000000000..cbbcb92f171e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReplicationDetails.PowerShell.cs @@ -0,0 +1,548 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcmFailback provider specific details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackReplicationDetailsTypeConverter))] + public partial class InMageRcmFailbackReplicationDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmFailbackReplicationDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmFailbackReplicationDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmFailbackReplicationDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MobilityAgentDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails) content.GetValueForProperty("MobilityAgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackMobilityAgentDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiscoveredVMDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails) content.GetValueForProperty("DiscoveredVMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackDiscoveredProtectedVMDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("InternalIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InternalIdentifier = (string) content.GetValueForProperty("InternalIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InternalIdentifier, global::System.Convert.ToString); + } + if (content.Contains("AzureVirtualMachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).AzureVirtualMachineId = (string) content.GetValueForProperty("AzureVirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).AzureVirtualMachineId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentId = (string) content.GetValueForProperty("ReprotectAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentId, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentName = (string) content.GetValueForProperty("ReprotectAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentName, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetvCenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).TargetvCenterId = (string) content.GetValueForProperty("TargetvCenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).TargetvCenterId, global::System.Convert.ToString); + } + if (content.Contains("TargetDataStoreName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).TargetDataStoreName = (string) content.GetValueForProperty("TargetDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).TargetDataStoreName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).TargetVMName, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressPercentage = (int?) content.GetValueForProperty("InitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InitialReplicationProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProcessedByte = (long?) content.GetValueForProperty("InitialReplicationProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("InitialReplicationTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationTransferredByte = (long?) content.GetValueForProperty("InitialReplicationTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("InitialReplicationProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("InitialReplicationProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); + } + if (content.Contains("ResyncProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResyncProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncTransferredByte = (long?) content.GetValueForProperty("ResyncTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("ResyncProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); + } + if (content.Contains("ResyncRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); + } + if (content.Contains("ResyncState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState?) content.GetValueForProperty("ResyncState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState.CreateFrom); + } + if (content.Contains("ProtectedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackProtectedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("LastPlannedFailoverStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStartTime = (global::System.DateTime?) content.GetValueForProperty("LastPlannedFailoverStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastPlannedFailoverStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PlannedFailoverStatus?) content.GetValueForProperty("LastPlannedFailoverStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PlannedFailoverStatus.CreateFrom); + } + if (content.Contains("LastUsedPolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyId = (string) content.GetValueForProperty("LastUsedPolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyId, global::System.Convert.ToString); + } + if (content.Contains("LastUsedPolicyFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyFriendlyName = (string) content.GetValueForProperty("LastUsedPolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("IsAgentRegistrationSuccessfulAfterFailover")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover = (bool?) content.GetValueForProperty("IsAgentRegistrationSuccessfulAfterFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailVersion = (string) content.GetValueForProperty("MobilityAgentDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailLatestVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion = (string) content.GetValueForProperty("MobilityAgentDetailLatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailDriverVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion = (string) content.GetValueForProperty("MobilityAgentDetailDriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailLatestUpgradableVersionWithoutReboot")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("MobilityAgentDetailLatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailAgentVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailAgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MobilityAgentDetailDriverVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailDriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MobilityAgentDetailLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MobilityAgentDetailReasonsBlockingUpgrade")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("MobilityAgentDetailReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); + } + if (content.Contains("MobilityAgentDetailIsUpgradeable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable = (string) content.GetValueForProperty("MobilityAgentDetailIsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailVcenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailVcenterFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailDatastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailDatastore = (string[]) content.GetValueForProperty("DiscoveredVMDetailDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("DiscoveredVMDetailIpaddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress = (string[]) content.GetValueForProperty("DiscoveredVMDetailIpaddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("DiscoveredVMDetailVmwareToolsStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus = (string) content.GetValueForProperty("DiscoveredVMDetailVmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailPowerStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus = (string) content.GetValueForProperty("DiscoveredVMDetailPowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailVmfqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVmfqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailOsname")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailOsname = (string) content.GetValueForProperty("DiscoveredVMDetailOsname",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailOsname, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailCreatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailCreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DiscoveredVMDetailUpdatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailUpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DiscoveredVMDetailIsDeleted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted = (bool?) content.GetValueForProperty("DiscoveredVMDetailIsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("DiscoveredVMDetailLastDiscoveryTimeInUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailLastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageRcmFailbackReplicationDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MobilityAgentDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails) content.GetValueForProperty("MobilityAgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackMobilityAgentDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiscoveredVMDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails) content.GetValueForProperty("DiscoveredVMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackDiscoveredProtectedVMDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("InternalIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InternalIdentifier = (string) content.GetValueForProperty("InternalIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InternalIdentifier, global::System.Convert.ToString); + } + if (content.Contains("AzureVirtualMachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).AzureVirtualMachineId = (string) content.GetValueForProperty("AzureVirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).AzureVirtualMachineId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentId = (string) content.GetValueForProperty("ReprotectAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentId, global::System.Convert.ToString); + } + if (content.Contains("ReprotectAgentName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentName = (string) content.GetValueForProperty("ReprotectAgentName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ReprotectAgentName, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetvCenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).TargetvCenterId = (string) content.GetValueForProperty("TargetvCenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).TargetvCenterId, global::System.Convert.ToString); + } + if (content.Contains("TargetDataStoreName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).TargetDataStoreName = (string) content.GetValueForProperty("TargetDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).TargetDataStoreName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).TargetVMName, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressPercentage = (int?) content.GetValueForProperty("InitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InitialReplicationProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProcessedByte = (long?) content.GetValueForProperty("InitialReplicationProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("InitialReplicationTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationTransferredByte = (long?) content.GetValueForProperty("InitialReplicationTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("InitialReplicationProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("InitialReplicationProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).InitialReplicationProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); + } + if (content.Contains("ResyncProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResyncProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncTransferredByte = (long?) content.GetValueForProperty("ResyncTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("ResyncProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); + } + if (content.Contains("ResyncRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); + } + if (content.Contains("ResyncState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState?) content.GetValueForProperty("ResyncState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ResyncState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState.CreateFrom); + } + if (content.Contains("ProtectedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackProtectedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("LastPlannedFailoverStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStartTime = (global::System.DateTime?) content.GetValueForProperty("LastPlannedFailoverStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastPlannedFailoverStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PlannedFailoverStatus?) content.GetValueForProperty("LastPlannedFailoverStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastPlannedFailoverStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PlannedFailoverStatus.CreateFrom); + } + if (content.Contains("LastUsedPolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyId = (string) content.GetValueForProperty("LastUsedPolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyId, global::System.Convert.ToString); + } + if (content.Contains("LastUsedPolicyFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyFriendlyName = (string) content.GetValueForProperty("LastUsedPolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).LastUsedPolicyFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("IsAgentRegistrationSuccessfulAfterFailover")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover = (bool?) content.GetValueForProperty("IsAgentRegistrationSuccessfulAfterFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailVersion = (string) content.GetValueForProperty("MobilityAgentDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailLatestVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion = (string) content.GetValueForProperty("MobilityAgentDetailLatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailDriverVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion = (string) content.GetValueForProperty("MobilityAgentDetailDriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailLatestUpgradableVersionWithoutReboot")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("MobilityAgentDetailLatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailAgentVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailAgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MobilityAgentDetailDriverVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailDriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MobilityAgentDetailLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MobilityAgentDetailReasonsBlockingUpgrade")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("MobilityAgentDetailReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); + } + if (content.Contains("MobilityAgentDetailIsUpgradeable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable = (string) content.GetValueForProperty("MobilityAgentDetailIsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailVcenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailVcenterFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailDatastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailDatastore = (string[]) content.GetValueForProperty("DiscoveredVMDetailDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("DiscoveredVMDetailIpaddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress = (string[]) content.GetValueForProperty("DiscoveredVMDetailIpaddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("DiscoveredVMDetailVmwareToolsStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus = (string) content.GetValueForProperty("DiscoveredVMDetailVmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailPowerStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus = (string) content.GetValueForProperty("DiscoveredVMDetailPowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailVmfqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVmfqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailOsname")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailOsname = (string) content.GetValueForProperty("DiscoveredVMDetailOsname",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailOsname, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailCreatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailCreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DiscoveredVMDetailUpdatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailUpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DiscoveredVMDetailIsDeleted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted = (bool?) content.GetValueForProperty("DiscoveredVMDetailIsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("DiscoveredVMDetailLastDiscoveryTimeInUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailLastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcmFailback provider specific details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackReplicationDetailsTypeConverter))] + public partial interface IInMageRcmFailbackReplicationDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReplicationDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReplicationDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReplicationDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReplicationDetails.TypeConverter.cs index 50db2abc81e7..36a53b7be517 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReplicationDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReplicationDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReplicationDetails.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReplicationDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReplicationDetails.cs index 00d788410dad..40922954a0f7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReplicationDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcmFailback provider specific details. public partial class InMageRcmFailbackReplicationDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(); /// Backing field for property. private string _azureVirtualMachineId; @@ -27,59 +27,59 @@ public partial class InMageRcmFailbackReplicationDetails : public string AzureVirtualMachineId { get => this._azureVirtualMachineId; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails _discoveredVMDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails _discoveredVMDetail; /// The discovered VM information. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails DiscoveredVMDetail { get => (this._discoveredVMDetail = this._discoveredVMDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackDiscoveredProtectedVMDetails()); set => this._discoveredVMDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails DiscoveredVMDetail { get => (this._discoveredVMDetail = this._discoveredVMDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackDiscoveredProtectedVMDetails()); set => this._discoveredVMDetail = value; } /// The SDS created timestamp. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? DiscoveredVMDetailCreatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).CreatedTimestamp; } + public global::System.DateTime? DiscoveredVMDetailCreatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).CreatedTimestamp; } /// The list of datastores. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] DiscoveredVMDetailDatastore { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).Datastore; } + public string[] DiscoveredVMDetailDatastore { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).Datastore; } /// The list of IP addresses. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] DiscoveredVMDetailIpaddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IPAddress; } + public string[] DiscoveredVMDetailIpaddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IPAddress; } /// A value indicating whether the VM is deleted. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public bool? DiscoveredVMDetailIsDeleted { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IsDeleted; } + public bool? DiscoveredVMDetailIsDeleted { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IsDeleted; } /// The last time when SDS information discovered in SRS. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? DiscoveredVMDetailLastDiscoveryTimeInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).LastDiscoveryTimeInUtc; } + public global::System.DateTime? DiscoveredVMDetailLastDiscoveryTimeInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).LastDiscoveryTimeInUtc; } /// The VM's OS name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiscoveredVMDetailOsname { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).OSName; } + public string DiscoveredVMDetailOsname { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).OSName; } /// The VM power status. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiscoveredVMDetailPowerStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).PowerStatus; } + public string DiscoveredVMDetailPowerStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).PowerStatus; } /// The SDS updated timestamp. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? DiscoveredVMDetailUpdatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).UpdatedTimestamp; } + public global::System.DateTime? DiscoveredVMDetailUpdatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).UpdatedTimestamp; } /// The VCenter fqdn. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiscoveredVMDetailVcenterFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterFqdn; } + public string DiscoveredVMDetailVcenterFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterFqdn; } /// The VCenter Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiscoveredVMDetailVcenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterId; } + public string DiscoveredVMDetailVcenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterId; } /// The VM fqdn. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiscoveredVMDetailVmfqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VMFqdn; } + public string DiscoveredVMDetailVmfqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VMFqdn; } /// The VMware tools status. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiscoveredVMDetailVmwareToolsStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VmwareToolsStatus; } + public string DiscoveredVMDetailVmwareToolsStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VmwareToolsStatus; } /// Backing field for property. private long? _initialReplicationProcessedByte; @@ -116,7 +116,7 @@ public partial class InMageRcmFailbackReplicationDetails : /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } /// Backing field for property. private string _internalIdentifier; @@ -170,191 +170,191 @@ public partial class InMageRcmFailbackReplicationDetails : public string LogStorageAccountId { get => this._logStorageAccountId; } /// Internal Acessors for AzureVirtualMachineId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.AzureVirtualMachineId { get => this._azureVirtualMachineId; set { {_azureVirtualMachineId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.AzureVirtualMachineId { get => this._azureVirtualMachineId; set { {_azureVirtualMachineId = value;} } } /// Internal Acessors for DiscoveredVMDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetail { get => (this._discoveredVMDetail = this._discoveredVMDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackDiscoveredProtectedVMDetails()); set { {_discoveredVMDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetail { get => (this._discoveredVMDetail = this._discoveredVMDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackDiscoveredProtectedVMDetails()); set { {_discoveredVMDetail = value;} } } /// Internal Acessors for DiscoveredVMDetailCreatedTimestamp - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailCreatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).CreatedTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).CreatedTimestamp = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailCreatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).CreatedTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).CreatedTimestamp = value; } /// Internal Acessors for DiscoveredVMDetailDatastore - string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailDatastore { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).Datastore; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).Datastore = value; } + string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailDatastore { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).Datastore; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).Datastore = value; } /// Internal Acessors for DiscoveredVMDetailIpaddress - string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailIpaddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IPAddress = value; } + string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailIpaddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IPAddress = value; } /// Internal Acessors for DiscoveredVMDetailIsDeleted - bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailIsDeleted { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IsDeleted; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IsDeleted = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailIsDeleted { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IsDeleted; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IsDeleted = value; } /// Internal Acessors for DiscoveredVMDetailLastDiscoveryTimeInUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailLastDiscoveryTimeInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).LastDiscoveryTimeInUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).LastDiscoveryTimeInUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailLastDiscoveryTimeInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).LastDiscoveryTimeInUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).LastDiscoveryTimeInUtc = value; } /// Internal Acessors for DiscoveredVMDetailOsname - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailOsname { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).OSName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).OSName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailOsname { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).OSName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).OSName = value; } /// Internal Acessors for DiscoveredVMDetailPowerStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailPowerStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).PowerStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).PowerStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailPowerStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).PowerStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).PowerStatus = value; } /// Internal Acessors for DiscoveredVMDetailUpdatedTimestamp - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailUpdatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).UpdatedTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).UpdatedTimestamp = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailUpdatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).UpdatedTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).UpdatedTimestamp = value; } /// Internal Acessors for DiscoveredVMDetailVcenterFqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailVcenterFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterFqdn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailVcenterFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterFqdn = value; } /// Internal Acessors for DiscoveredVMDetailVcenterId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailVcenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailVcenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterId = value; } /// Internal Acessors for DiscoveredVMDetailVmfqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailVmfqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VMFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VMFqdn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailVmfqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VMFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VMFqdn = value; } /// Internal Acessors for DiscoveredVMDetailVmwareToolsStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailVmwareToolsStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VmwareToolsStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VmwareToolsStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.DiscoveredVMDetailVmwareToolsStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VmwareToolsStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VmwareToolsStatus = value; } /// Internal Acessors for InitialReplicationProcessedByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.InitialReplicationProcessedByte { get => this._initialReplicationProcessedByte; set { {_initialReplicationProcessedByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.InitialReplicationProcessedByte { get => this._initialReplicationProcessedByte; set { {_initialReplicationProcessedByte = value;} } } /// Internal Acessors for InitialReplicationProgressHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.InitialReplicationProgressHealth { get => this._initialReplicationProgressHealth; set { {_initialReplicationProgressHealth = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.InitialReplicationProgressHealth { get => this._initialReplicationProgressHealth; set { {_initialReplicationProgressHealth = value;} } } /// Internal Acessors for InitialReplicationProgressPercentage - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.InitialReplicationProgressPercentage { get => this._initialReplicationProgressPercentage; set { {_initialReplicationProgressPercentage = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.InitialReplicationProgressPercentage { get => this._initialReplicationProgressPercentage; set { {_initialReplicationProgressPercentage = value;} } } /// Internal Acessors for InitialReplicationTransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.InitialReplicationTransferredByte { get => this._initialReplicationTransferredByte; set { {_initialReplicationTransferredByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.InitialReplicationTransferredByte { get => this._initialReplicationTransferredByte; set { {_initialReplicationTransferredByte = value;} } } /// Internal Acessors for InternalIdentifier - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.InternalIdentifier { get => this._internalIdentifier; set { {_internalIdentifier = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.InternalIdentifier { get => this._internalIdentifier; set { {_internalIdentifier = value;} } } /// Internal Acessors for IsAgentRegistrationSuccessfulAfterFailover - bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.IsAgentRegistrationSuccessfulAfterFailover { get => this._isAgentRegistrationSuccessfulAfterFailover; set { {_isAgentRegistrationSuccessfulAfterFailover = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.IsAgentRegistrationSuccessfulAfterFailover { get => this._isAgentRegistrationSuccessfulAfterFailover; set { {_isAgentRegistrationSuccessfulAfterFailover = value;} } } /// Internal Acessors for LastPlannedFailoverStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.LastPlannedFailoverStartTime { get => this._lastPlannedFailoverStartTime; set { {_lastPlannedFailoverStartTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.LastPlannedFailoverStartTime { get => this._lastPlannedFailoverStartTime; set { {_lastPlannedFailoverStartTime = value;} } } /// Internal Acessors for LastPlannedFailoverStatus - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PlannedFailoverStatus? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.LastPlannedFailoverStatus { get => this._lastPlannedFailoverStatus; set { {_lastPlannedFailoverStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PlannedFailoverStatus? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.LastPlannedFailoverStatus { get => this._lastPlannedFailoverStatus; set { {_lastPlannedFailoverStatus = value;} } } /// Internal Acessors for LastUsedPolicyFriendlyName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.LastUsedPolicyFriendlyName { get => this._lastUsedPolicyFriendlyName; set { {_lastUsedPolicyFriendlyName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.LastUsedPolicyFriendlyName { get => this._lastUsedPolicyFriendlyName; set { {_lastUsedPolicyFriendlyName = value;} } } /// Internal Acessors for LastUsedPolicyId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.LastUsedPolicyId { get => this._lastUsedPolicyId; set { {_lastUsedPolicyId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.LastUsedPolicyId { get => this._lastUsedPolicyId; set { {_lastUsedPolicyId = value;} } } /// Internal Acessors for LogStorageAccountId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.LogStorageAccountId { get => this._logStorageAccountId; set { {_logStorageAccountId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.LogStorageAccountId { get => this._logStorageAccountId; set { {_logStorageAccountId = value;} } } /// Internal Acessors for MobilityAgentDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetail { get => (this._mobilityAgentDetail = this._mobilityAgentDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackMobilityAgentDetails()); set { {_mobilityAgentDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetail { get => (this._mobilityAgentDetail = this._mobilityAgentDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackMobilityAgentDetails()); set { {_mobilityAgentDetail = value;} } } /// Internal Acessors for MobilityAgentDetailAgentVersionExpiryDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailAgentVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).AgentVersionExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).AgentVersionExpiryDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailAgentVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).AgentVersionExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).AgentVersionExpiryDate = value; } /// Internal Acessors for MobilityAgentDetailDriverVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailDriverVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailDriverVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersion = value; } /// Internal Acessors for MobilityAgentDetailDriverVersionExpiryDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailDriverVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersionExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersionExpiryDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailDriverVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersionExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersionExpiryDate = value; } /// Internal Acessors for MobilityAgentDetailIsUpgradeable - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailIsUpgradeable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).IsUpgradeable; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).IsUpgradeable = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailIsUpgradeable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).IsUpgradeable; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).IsUpgradeable = value; } /// Internal Acessors for MobilityAgentDetailLastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LastHeartbeatUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LastHeartbeatUtc = value; } /// Internal Acessors for MobilityAgentDetailLatestUpgradableVersionWithoutReboot - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailLatestUpgradableVersionWithoutReboot { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LatestUpgradableVersionWithoutReboot; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LatestUpgradableVersionWithoutReboot = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailLatestUpgradableVersionWithoutReboot { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LatestUpgradableVersionWithoutReboot; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LatestUpgradableVersionWithoutReboot = value; } /// Internal Acessors for MobilityAgentDetailLatestVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailLatestVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LatestVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LatestVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailLatestVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LatestVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LatestVersion = value; } /// Internal Acessors for MobilityAgentDetailReasonsBlockingUpgrade - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailReasonsBlockingUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).ReasonsBlockingUpgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).ReasonsBlockingUpgrade = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailReasonsBlockingUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).ReasonsBlockingUpgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).ReasonsBlockingUpgrade = value; } /// Internal Acessors for MobilityAgentDetailVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).Version = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.MobilityAgentDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).Version = value; } /// Internal Acessors for MultiVMGroupName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.MultiVMGroupName { get => this._multiVMGroupName; set { {_multiVMGroupName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.MultiVMGroupName { get => this._multiVMGroupName; set { {_multiVMGroupName = value;} } } /// Internal Acessors for OSType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.OSType { get => this._oSType; set { {_oSType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.OSType { get => this._oSType; set { {_oSType = value;} } } /// Internal Acessors for ReprotectAgentId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.ReprotectAgentId { get => this._reprotectAgentId; set { {_reprotectAgentId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.ReprotectAgentId { get => this._reprotectAgentId; set { {_reprotectAgentId = value;} } } /// Internal Acessors for ReprotectAgentName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.ReprotectAgentName { get => this._reprotectAgentName; set { {_reprotectAgentName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.ReprotectAgentName { get => this._reprotectAgentName; set { {_reprotectAgentName = value;} } } /// Internal Acessors for ResyncProcessedByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.ResyncProcessedByte { get => this._resyncProcessedByte; set { {_resyncProcessedByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.ResyncProcessedByte { get => this._resyncProcessedByte; set { {_resyncProcessedByte = value;} } } /// Internal Acessors for ResyncProgressHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.ResyncProgressHealth { get => this._resyncProgressHealth; set { {_resyncProgressHealth = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.ResyncProgressHealth { get => this._resyncProgressHealth; set { {_resyncProgressHealth = value;} } } /// Internal Acessors for ResyncProgressPercentage - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.ResyncProgressPercentage { get => this._resyncProgressPercentage; set { {_resyncProgressPercentage = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.ResyncProgressPercentage { get => this._resyncProgressPercentage; set { {_resyncProgressPercentage = value;} } } /// Internal Acessors for ResyncRequired - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.ResyncRequired { get => this._resyncRequired; set { {_resyncRequired = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.ResyncRequired { get => this._resyncRequired; set { {_resyncRequired = value;} } } /// Internal Acessors for ResyncState - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.ResyncState { get => this._resyncState; set { {_resyncState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.ResyncState { get => this._resyncState; set { {_resyncState = value;} } } /// Internal Acessors for ResyncTransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.ResyncTransferredByte { get => this._resyncTransferredByte; set { {_resyncTransferredByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.ResyncTransferredByte { get => this._resyncTransferredByte; set { {_resyncTransferredByte = value;} } } /// Internal Acessors for TargetDataStoreName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.TargetDataStoreName { get => this._targetDataStoreName; set { {_targetDataStoreName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.TargetDataStoreName { get => this._targetDataStoreName; set { {_targetDataStoreName = value;} } } /// Internal Acessors for TargetVMName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.TargetVMName { get => this._targetVMName; set { {_targetVMName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.TargetVMName { get => this._targetVMName; set { {_targetVMName = value;} } } /// Internal Acessors for TargetvCenterId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetailsInternal.TargetvCenterId { get => this._targetvCenterId; set { {_targetvCenterId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetailsInternal.TargetvCenterId { get => this._targetvCenterId; set { {_targetvCenterId = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails _mobilityAgentDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails _mobilityAgentDetail; /// The mobility agent information. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails MobilityAgentDetail { get => (this._mobilityAgentDetail = this._mobilityAgentDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackMobilityAgentDetails()); set => this._mobilityAgentDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails MobilityAgentDetail { get => (this._mobilityAgentDetail = this._mobilityAgentDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackMobilityAgentDetails()); set => this._mobilityAgentDetail = value; } /// The agent version expiry date. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? MobilityAgentDetailAgentVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).AgentVersionExpiryDate; } + public global::System.DateTime? MobilityAgentDetailAgentVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).AgentVersionExpiryDate; } /// The driver version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MobilityAgentDetailDriverVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersion; } + public string MobilityAgentDetailDriverVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersion; } /// The driver version expiry date. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? MobilityAgentDetailDriverVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersionExpiryDate; } + public global::System.DateTime? MobilityAgentDetailDriverVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersionExpiryDate; } /// A value indicating whether agent is upgradeable or not. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MobilityAgentDetailIsUpgradeable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).IsUpgradeable; } + public string MobilityAgentDetailIsUpgradeable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).IsUpgradeable; } /// The time of the last heartbeat received from the agent. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? MobilityAgentDetailLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LastHeartbeatUtc; } + public global::System.DateTime? MobilityAgentDetailLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LastHeartbeatUtc; } /// The latest upgradeable version available without reboot. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MobilityAgentDetailLatestUpgradableVersionWithoutReboot { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LatestUpgradableVersionWithoutReboot; } + public string MobilityAgentDetailLatestUpgradableVersionWithoutReboot { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LatestUpgradableVersionWithoutReboot; } /// The latest agent version available. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MobilityAgentDetailLatestVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LatestVersion; } + public string MobilityAgentDetailLatestVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).LatestVersion; } /// The whether update is possible or not. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[] MobilityAgentDetailReasonsBlockingUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).ReasonsBlockingUpgrade; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[] MobilityAgentDetailReasonsBlockingUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).ReasonsBlockingUpgrade; } /// The agent version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MobilityAgentDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).Version; } + public string MobilityAgentDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetailsInternal)MobilityAgentDetail).Version; } /// Backing field for property. private string _multiVMGroupName; @@ -371,11 +371,11 @@ public partial class InMageRcmFailbackReplicationDetails : public string OSType { get => this._oSType; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails[] _protectedDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails[] _protectedDisk; /// The list of protected disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails[] ProtectedDisk { get => this._protectedDisk; set => this._protectedDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails[] ProtectedDisk { get => this._protectedDisk; set => this._protectedDisk = value; } /// Backing field for property. private string _reprotectAgentId; @@ -460,11 +460,11 @@ public partial class InMageRcmFailbackReplicationDetails : public string TargetvCenterId { get => this._targetvCenterId; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails[] _vMNic; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails[] _vMNic; /// The network details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } /// Creates an new instance. public InMageRcmFailbackReplicationDetails() @@ -487,7 +487,7 @@ public InMageRcmFailbackReplicationDetails() /// InMageRcmFailback provider specific details. public partial interface IInMageRcmFailbackReplicationDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings { /// The ARM Id of the azure VM. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -780,8 +780,8 @@ public partial interface IInMageRcmFailbackReplicationDetails : ReadOnly = false, Description = @"The list of protected disks.", SerializedName = @"protectedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails[] ProtectedDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails[] ProtectedDisk { get; set; } /// The reprotect agent Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -881,18 +881,18 @@ public partial interface IInMageRcmFailbackReplicationDetails : ReadOnly = false, Description = @"The network details.", SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails[] VMNic { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails[] VMNic { get; set; } } /// InMageRcmFailback provider specific details. internal partial interface IInMageRcmFailbackReplicationDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal { /// The ARM Id of the azure VM. string AzureVirtualMachineId { get; set; } /// The discovered VM information. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackDiscoveredProtectedVMDetails DiscoveredVMDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackDiscoveredProtectedVMDetails DiscoveredVMDetail { get; set; } /// The SDS created timestamp. global::System.DateTime? DiscoveredVMDetailCreatedTimestamp { get; set; } /// The list of datastores. @@ -945,7 +945,7 @@ internal partial interface IInMageRcmFailbackReplicationDetailsInternal : /// The log storage account ARM Id. string LogStorageAccountId { get; set; } /// The mobility agent information. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackMobilityAgentDetails MobilityAgentDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackMobilityAgentDetails MobilityAgentDetail { get; set; } /// The agent version expiry date. global::System.DateTime? MobilityAgentDetailAgentVersionExpiryDate { get; set; } /// The driver version. @@ -969,7 +969,7 @@ internal partial interface IInMageRcmFailbackReplicationDetailsInternal : /// The type of the OS on the VM. string OSType { get; set; } /// The list of protected disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails[] ProtectedDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails[] ProtectedDisk { get; set; } /// The reprotect agent Id. string ReprotectAgentId { get; set; } /// The reprotect agent name. @@ -998,7 +998,7 @@ internal partial interface IInMageRcmFailbackReplicationDetailsInternal : /// The target vCenter Id. string TargetvCenterId { get; set; } /// The network details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails[] VMNic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails[] VMNic { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReplicationDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReplicationDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReplicationDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReplicationDetails.json.cs index 22e3f4070648..8f9fd25c032b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReplicationDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFailbackReplicationDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFailbackReplicationDetails(json) : null; } @@ -77,9 +77,9 @@ internal InMageRcmFailbackReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets. { return; } - __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(json); - {_mobilityAgentDetail = If( json?.PropertyT("mobilityAgentDetails"), out var __jsonMobilityAgentDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackMobilityAgentDetails.FromJson(__jsonMobilityAgentDetails) : MobilityAgentDetail;} - {_discoveredVMDetail = If( json?.PropertyT("discoveredVmDetails"), out var __jsonDiscoveredVMDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackDiscoveredProtectedVMDetails.FromJson(__jsonDiscoveredVMDetails) : DiscoveredVMDetail;} + __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(json); + {_mobilityAgentDetail = If( json?.PropertyT("mobilityAgentDetails"), out var __jsonMobilityAgentDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackMobilityAgentDetails.FromJson(__jsonMobilityAgentDetails) : MobilityAgentDetail;} + {_discoveredVMDetail = If( json?.PropertyT("discoveredVmDetails"), out var __jsonDiscoveredVMDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackDiscoveredProtectedVMDetails.FromJson(__jsonDiscoveredVMDetails) : DiscoveredVMDetail;} {_internalIdentifier = If( json?.PropertyT("internalIdentifier"), out var __jsonInternalIdentifier) ? (string)__jsonInternalIdentifier : (string)InternalIdentifier;} {_azureVirtualMachineId = If( json?.PropertyT("azureVirtualMachineId"), out var __jsonAzureVirtualMachineId) ? (string)__jsonAzureVirtualMachineId : (string)AzureVirtualMachineId;} {_multiVMGroupName = If( json?.PropertyT("multiVmGroupName"), out var __jsonMultiVMGroupName) ? (string)__jsonMultiVMGroupName : (string)MultiVMGroupName;} @@ -100,8 +100,8 @@ internal InMageRcmFailbackReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets. {_resyncProgressHealth = If( json?.PropertyT("resyncProgressHealth"), out var __jsonResyncProgressHealth) ? (string)__jsonResyncProgressHealth : (string)ResyncProgressHealth;} {_resyncRequired = If( json?.PropertyT("resyncRequired"), out var __jsonResyncRequired) ? (string)__jsonResyncRequired : (string)ResyncRequired;} {_resyncState = If( json?.PropertyT("resyncState"), out var __jsonResyncState) ? (string)__jsonResyncState : (string)ResyncState;} - {_protectedDisk = If( json?.PropertyT("protectedDisks"), out var __jsonProtectedDisks) ? If( __jsonProtectedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFailbackProtectedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackProtectedDiskDetails.FromJson(__u) )) ))() : null : ProtectedDisk;} - {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmFailbackNicDetails.FromJson(__p) )) ))() : null : VMNic;} + {_protectedDisk = If( json?.PropertyT("protectedDisks"), out var __jsonProtectedDisks) ? If( __jsonProtectedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IInMageRcmFailbackProtectedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackProtectedDiskDetails.FromJson(__u) )) ))() : null : ProtectedDisk;} + {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmFailbackNicDetails.FromJson(__p) )) ))() : null : VMNic;} {_lastPlannedFailoverStartTime = If( json?.PropertyT("lastPlannedFailoverStartTime"), out var __jsonLastPlannedFailoverStartTime) ? global::System.DateTime.TryParse((string)__jsonLastPlannedFailoverStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastPlannedFailoverStartTimeValue) ? __jsonLastPlannedFailoverStartTimeValue : LastPlannedFailoverStartTime : LastPlannedFailoverStartTime;} {_lastPlannedFailoverStatus = If( json?.PropertyT("lastPlannedFailoverStatus"), out var __jsonLastPlannedFailoverStatus) ? (string)__jsonLastPlannedFailoverStatus : (string)LastPlannedFailoverStatus;} {_lastUsedPolicyId = If( json?.PropertyT("lastUsedPolicyId"), out var __jsonLastUsedPolicyId) ? (string)__jsonLastUsedPolicyId : (string)LastUsedPolicyId;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReprotectInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReprotectInput.PowerShell.cs new file mode 100644 index 000000000000..c9192321b7a4 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReprotectInput.PowerShell.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcmFailback specific provider input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackReprotectInputTypeConverter))] + public partial class InMageRcmFailbackReprotectInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmFailbackReprotectInput(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.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmFailbackReprotectInput(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.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmFailbackReprotectInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInputInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInputInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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 InMageRcmFailbackReprotectInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInputInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInputInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcmFailback specific provider input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackReprotectInputTypeConverter))] + public partial interface IInMageRcmFailbackReprotectInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReprotectInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReprotectInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReprotectInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReprotectInput.TypeConverter.cs index d4a2f476a467..0d5112ef1e16 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReprotectInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReprotectInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReprotectInput.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReprotectInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReprotectInput.cs index 42217a15f6db..7e54c81093c5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReprotectInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcmFailback specific provider input. public partial class InMageRcmFailbackReprotectInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _policyId; @@ -65,7 +65,7 @@ public InMageRcmFailbackReprotectInput() /// InMageRcmFailback specific provider input. public partial interface IInMageRcmFailbackReprotectInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput { /// The Policy Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -95,7 +95,7 @@ public partial interface IInMageRcmFailbackReprotectInput : } /// InMageRcmFailback specific provider input. internal partial interface IInMageRcmFailbackReprotectInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal { /// The Policy Id. string PolicyId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReprotectInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReprotectInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReprotectInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReprotectInput.json.cs index d2b8921faedd..5b21d46dd315 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackReprotectInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFailbackReprotectInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackReprotectInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackReprotectInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFailbackReprotectInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageRcmFailbackReprotectInput(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput(json); + __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput(json); {_processServerId = If( json?.PropertyT("processServerId"), out var __jsonProcessServerId) ? (string)__jsonProcessServerId : (string)ProcessServerId;} {_runAsAccountId = If( json?.PropertyT("runAsAccountId"), out var __jsonRunAsAccountId) ? (string)__jsonRunAsAccountId : (string)RunAsAccountId;} {_policyId = If( json?.PropertyT("policyId"), out var __jsonPolicyId) ? (string)__jsonPolicyId : (string)PolicyId;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackSyncDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackSyncDetails.PowerShell.cs new file mode 100644 index 000000000000..83239f61bdb7 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackSyncDetails.PowerShell.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcmFailback disk level sync details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackSyncDetailsTypeConverter))] + public partial class InMageRcmFailbackSyncDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmFailbackSyncDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmFailbackSyncDetails(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.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmFailbackSyncDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).ProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).ProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); + } + if (content.Contains("TransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).TransferredByte = (long?) content.GetValueForProperty("TransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).TransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("Last15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).Last15MinutesTransferredByte = (long?) content.GetValueForProperty("Last15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).Last15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).LastDataTransferTimeUtc = (string) content.GetValueForProperty("LastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).LastDataTransferTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).ProcessedByte = (long?) content.GetValueForProperty("ProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).ProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).StartTime, global::System.Convert.ToString); + } + if (content.Contains("LastRefreshTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).LastRefreshTime = (string) content.GetValueForProperty("LastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).LastRefreshTime, global::System.Convert.ToString); + } + if (content.Contains("ProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).ProgressPercentage = (int?) content.GetValueForProperty("ProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).ProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageRcmFailbackSyncDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).ProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).ProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); + } + if (content.Contains("TransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).TransferredByte = (long?) content.GetValueForProperty("TransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).TransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("Last15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).Last15MinutesTransferredByte = (long?) content.GetValueForProperty("Last15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).Last15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).LastDataTransferTimeUtc = (string) content.GetValueForProperty("LastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).LastDataTransferTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).ProcessedByte = (long?) content.GetValueForProperty("ProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).ProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).StartTime, global::System.Convert.ToString); + } + if (content.Contains("LastRefreshTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).LastRefreshTime = (string) content.GetValueForProperty("LastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).LastRefreshTime, global::System.Convert.ToString); + } + if (content.Contains("ProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).ProgressPercentage = (int?) content.GetValueForProperty("ProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal)this).ProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcmFailback disk level sync details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmFailbackSyncDetailsTypeConverter))] + public partial interface IInMageRcmFailbackSyncDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackSyncDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackSyncDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackSyncDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackSyncDetails.TypeConverter.cs index f2fac2158e11..56ffeb6da49f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackSyncDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackSyncDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackSyncDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackSyncDetails.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackSyncDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackSyncDetails.cs index 9f61ddb14af1..529726c55cb6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackSyncDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackSyncDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcmFailback disk level sync details. public partial class InMageRcmFailbackSyncDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal { /// Backing field for property. @@ -35,28 +35,28 @@ public partial class InMageRcmFailbackSyncDetails : public string LastRefreshTime { get => this._lastRefreshTime; } /// Internal Acessors for Last15MinutesTransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal.Last15MinutesTransferredByte { get => this._last15MinutesTransferredByte; set { {_last15MinutesTransferredByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal.Last15MinutesTransferredByte { get => this._last15MinutesTransferredByte; set { {_last15MinutesTransferredByte = value;} } } /// Internal Acessors for LastDataTransferTimeUtc - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal.LastDataTransferTimeUtc { get => this._lastDataTransferTimeUtc; set { {_lastDataTransferTimeUtc = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal.LastDataTransferTimeUtc { get => this._lastDataTransferTimeUtc; set { {_lastDataTransferTimeUtc = value;} } } /// Internal Acessors for LastRefreshTime - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal.LastRefreshTime { get => this._lastRefreshTime; set { {_lastRefreshTime = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal.LastRefreshTime { get => this._lastRefreshTime; set { {_lastRefreshTime = value;} } } /// Internal Acessors for ProcessedByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal.ProcessedByte { get => this._processedByte; set { {_processedByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal.ProcessedByte { get => this._processedByte; set { {_processedByte = value;} } } /// Internal Acessors for ProgressHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal.ProgressHealth { get => this._progressHealth; set { {_progressHealth = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal.ProgressHealth { get => this._progressHealth; set { {_progressHealth = value;} } } /// Internal Acessors for ProgressPercentage - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal.ProgressPercentage { get => this._progressPercentage; set { {_progressPercentage = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal.ProgressPercentage { get => this._progressPercentage; set { {_progressPercentage = value;} } } /// Internal Acessors for StartTime - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } /// Internal Acessors for TransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetailsInternal.TransferredByte { get => this._transferredByte; set { {_transferredByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetailsInternal.TransferredByte { get => this._transferredByte; set { {_transferredByte = value;} } } /// Backing field for property. private long? _processedByte; diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackSyncDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackSyncDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackSyncDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackSyncDetails.json.cs index 7341cdacbe32..486a57b7ab31 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmFailbackSyncDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmFailbackSyncDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmFailbackSyncDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmFailbackSyncDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmFailbackSyncDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmFailbackSyncDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetails.PowerShell.cs new file mode 100644 index 000000000000..5d5010883e24 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetails.PowerShell.cs @@ -0,0 +1,189 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm last source agent upgrade error details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmLastAgentUpgradeErrorDetailsTypeConverter))] + public partial class InMageRcmLastAgentUpgradeErrorDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmLastAgentUpgradeErrorDetails(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.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmLastAgentUpgradeErrorDetails(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.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmLastAgentUpgradeErrorDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessageParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); + } + if (content.Contains("ErrorTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorTagsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageRcmLastAgentUpgradeErrorDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorCode, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessageParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessageParameter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters) content.GetValueForProperty("ErrorMessageParameter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorMessageParameter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParametersTypeConverter.ConvertFrom); + } + if (content.Contains("ErrorTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags) content.GetValueForProperty("ErrorTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal)this).ErrorTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorTagsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm last source agent upgrade error details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmLastAgentUpgradeErrorDetailsTypeConverter))] + public partial interface IInMageRcmLastAgentUpgradeErrorDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetails.TypeConverter.cs index 1e870647fb75..29896e13ca1c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetails.cs new file mode 100644 index 000000000000..fed14d739e8d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetails.cs @@ -0,0 +1,154 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// InMageRcm last source agent upgrade error details. + public partial class InMageRcmLastAgentUpgradeErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal + { + + /// Backing field for property. + private string _errorCode; + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ErrorCode { get => this._errorCode; } + + /// Backing field for property. + private string _errorMessage; + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ErrorMessage { get => this._errorMessage; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters _errorMessageParameter; + + /// The error message parameters. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters()); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags _errorTag; + + /// The error tags. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorTags()); } + + /// Internal Acessors for ErrorCode + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal.ErrorCode { get => this._errorCode; set { {_errorCode = value;} } } + + /// Internal Acessors for ErrorMessage + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal.ErrorMessage { get => this._errorMessage; set { {_errorMessage = value;} } } + + /// Internal Acessors for ErrorMessageParameter + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal.ErrorMessageParameter { get => (this._errorMessageParameter = this._errorMessageParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters()); set { {_errorMessageParameter = value;} } } + + /// Internal Acessors for ErrorTag + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal.ErrorTag { get => (this._errorTag = this._errorTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorTags()); set { {_errorTag = value;} } } + + /// Internal Acessors for PossibleCaus + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal.PossibleCaus { get => this._possibleCaus; set { {_possibleCaus = value;} } } + + /// Internal Acessors for RecommendedAction + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsInternal.RecommendedAction { get => this._recommendedAction; set { {_recommendedAction = value;} } } + + /// Backing field for property. + private string _possibleCaus; + + /// The possible causes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PossibleCaus { get => this._possibleCaus; } + + /// Backing field for property. + private string _recommendedAction; + + /// The recommended action. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecommendedAction { get => this._recommendedAction; } + + /// Creates an new instance. + public InMageRcmLastAgentUpgradeErrorDetails() + { + + } + } + /// InMageRcm last source agent upgrade error details. + public partial interface IInMageRcmLastAgentUpgradeErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error code.", + SerializedName = @"errorCode", + PossibleTypes = new [] { typeof(string) })] + string ErrorCode { get; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message.", + SerializedName = @"errorMessage", + PossibleTypes = new [] { typeof(string) })] + string ErrorMessage { get; } + /// The error message parameters. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message parameters.", + SerializedName = @"errorMessageParameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters ErrorMessageParameter { get; } + /// The error tags. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error tags.", + SerializedName = @"errorTags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags ErrorTag { get; } + /// The possible causes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The possible causes.", + SerializedName = @"possibleCauses", + PossibleTypes = new [] { typeof(string) })] + string PossibleCaus { get; } + /// The recommended action. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The recommended action.", + SerializedName = @"recommendedAction", + PossibleTypes = new [] { typeof(string) })] + string RecommendedAction { get; } + + } + /// InMageRcm last source agent upgrade error details. + internal partial interface IInMageRcmLastAgentUpgradeErrorDetailsInternal + + { + /// The error code. + string ErrorCode { get; set; } + /// The error message. + string ErrorMessage { get; set; } + /// The error message parameters. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters ErrorMessageParameter { get; set; } + /// The error tags. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags ErrorTag { get; set; } + /// The possible causes. + string PossibleCaus { get; set; } + /// The recommended action. + string RecommendedAction { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetails.json.cs index 637787aa0444..9ae107659e79 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmLastAgentUpgradeErrorDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmLastAgentUpgradeErrorDetails(json) : null; } @@ -81,8 +81,8 @@ internal InMageRcmLastAgentUpgradeErrorDetails(Microsoft.Azure.PowerShell.Cmdlet {_errorMessage = If( json?.PropertyT("errorMessage"), out var __jsonErrorMessage) ? (string)__jsonErrorMessage : (string)ErrorMessage;} {_possibleCaus = If( json?.PropertyT("possibleCauses"), out var __jsonPossibleCauses) ? (string)__jsonPossibleCauses : (string)PossibleCaus;} {_recommendedAction = If( json?.PropertyT("recommendedAction"), out var __jsonRecommendedAction) ? (string)__jsonRecommendedAction : (string)RecommendedAction;} - {_errorMessageParameter = If( json?.PropertyT("errorMessageParameters"), out var __jsonErrorMessageParameters) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.FromJson(__jsonErrorMessageParameters) : ErrorMessageParameter;} - {_errorTag = If( json?.PropertyT("errorTags"), out var __jsonErrorTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorTags.FromJson(__jsonErrorTags) : ErrorTag;} + {_errorMessageParameter = If( json?.PropertyT("errorMessageParameters"), out var __jsonErrorMessageParameters) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.FromJson(__jsonErrorMessageParameters) : ErrorMessageParameter;} + {_errorTag = If( json?.PropertyT("errorTags"), out var __jsonErrorTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorTags.FromJson(__jsonErrorTags) : ErrorTag;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.PowerShell.cs index d7d166ae8f70..0f7fc97aa48b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters(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.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters(global::Sys } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.TypeConverter.cs index 1ec7f03f5a38..0fbe681873f8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is /// no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.cs index 9f57a3180024..f1dc3abaca58 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The error message parameters. public partial class InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParametersInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.dictionary.cs index 7075beb5ad51..9d02233239b1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.json.cs index 37c7e1c47d07..d36d1dc17c0c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmLastAgentUpgradeErrorDetailsErrorMessageParameters(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.PowerShell.cs index 371b323a3138..1131ca10171f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageRcmLastAgentUpgradeErrorDetailsErrorTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageRcmLastAgentUpgradeErrorDetailsErrorTags(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.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageRcmLastAgentUpgradeErrorDetailsErrorTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageRcmLastAgentUpgradeErrorDetailsErrorTags(global::System.Collectio } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.TypeConverter.cs index 161a59966e27..d61831db4bc2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.cs index 36798fdf1f40..6ca95378b7e4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The error tags. public partial class InMageRcmLastAgentUpgradeErrorDetailsErrorTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.dictionary.cs index d41309d48917..76a86ce14d21 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetailsErrorTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsErrorTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.json.cs index 7c92501c47ea..0538c8d21aa6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmLastAgentUpgradeErrorDetailsErrorTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmLastAgentUpgradeErrorDetailsErrorTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetailsErrorTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmLastAgentUpgradeErrorDetailsErrorTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmMobilityAgentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmMobilityAgentDetails.PowerShell.cs new file mode 100644 index 000000000000..4fb46f83ae68 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmMobilityAgentDetails.PowerShell.cs @@ -0,0 +1,218 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm mobility agent details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmMobilityAgentDetailsTypeConverter))] + public partial class InMageRcmMobilityAgentDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmMobilityAgentDetails(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.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmMobilityAgentDetails(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.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmMobilityAgentDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LatestVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LatestVersion = (string) content.GetValueForProperty("LatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LatestVersion, global::System.Convert.ToString); + } + if (content.Contains("LatestAgentReleaseDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LatestAgentReleaseDate = (string) content.GetValueForProperty("LatestAgentReleaseDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LatestAgentReleaseDate, global::System.Convert.ToString); + } + if (content.Contains("DriverVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersion = (string) content.GetValueForProperty("DriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersion, global::System.Convert.ToString); + } + if (content.Contains("LatestUpgradableVersionWithoutReboot")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("LatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); + } + if (content.Contains("AgentVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).AgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).AgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DriverVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("DriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ReasonsBlockingUpgrade")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("ReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); + } + if (content.Contains("IsUpgradeable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).IsUpgradeable = (string) content.GetValueForProperty("IsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).IsUpgradeable, 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 InMageRcmMobilityAgentDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LatestVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LatestVersion = (string) content.GetValueForProperty("LatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LatestVersion, global::System.Convert.ToString); + } + if (content.Contains("LatestAgentReleaseDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LatestAgentReleaseDate = (string) content.GetValueForProperty("LatestAgentReleaseDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LatestAgentReleaseDate, global::System.Convert.ToString); + } + if (content.Contains("DriverVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersion = (string) content.GetValueForProperty("DriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersion, global::System.Convert.ToString); + } + if (content.Contains("LatestUpgradableVersionWithoutReboot")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("LatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); + } + if (content.Contains("AgentVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).AgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).AgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DriverVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("DriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).DriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ReasonsBlockingUpgrade")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("ReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).ReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); + } + if (content.Contains("IsUpgradeable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).IsUpgradeable = (string) content.GetValueForProperty("IsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)this).IsUpgradeable, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm mobility agent details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmMobilityAgentDetailsTypeConverter))] + public partial interface IInMageRcmMobilityAgentDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmMobilityAgentDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmMobilityAgentDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmMobilityAgentDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmMobilityAgentDetails.TypeConverter.cs index 510c79a1bd5e..8421ff6ade0e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmMobilityAgentDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmMobilityAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmMobilityAgentDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmMobilityAgentDetails.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmMobilityAgentDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmMobilityAgentDetails.cs index 663d37f7ebe1..e00480a0f70d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmMobilityAgentDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmMobilityAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm mobility agent details. public partial class InMageRcmMobilityAgentDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal { /// Backing field for property. @@ -70,34 +70,34 @@ public partial class InMageRcmMobilityAgentDetails : public string LatestVersion { get => this._latestVersion; } /// Internal Acessors for AgentVersionExpiryDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal.AgentVersionExpiryDate { get => this._agentVersionExpiryDate; set { {_agentVersionExpiryDate = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal.AgentVersionExpiryDate { get => this._agentVersionExpiryDate; set { {_agentVersionExpiryDate = value;} } } /// Internal Acessors for DriverVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal.DriverVersion { get => this._driverVersion; set { {_driverVersion = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal.DriverVersion { get => this._driverVersion; set { {_driverVersion = value;} } } /// Internal Acessors for DriverVersionExpiryDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal.DriverVersionExpiryDate { get => this._driverVersionExpiryDate; set { {_driverVersionExpiryDate = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal.DriverVersionExpiryDate { get => this._driverVersionExpiryDate; set { {_driverVersionExpiryDate = value;} } } /// Internal Acessors for IsUpgradeable - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal.IsUpgradeable { get => this._isUpgradeable; set { {_isUpgradeable = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal.IsUpgradeable { get => this._isUpgradeable; set { {_isUpgradeable = value;} } } /// Internal Acessors for LastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } /// Internal Acessors for LatestAgentReleaseDate - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal.LatestAgentReleaseDate { get => this._latestAgentReleaseDate; set { {_latestAgentReleaseDate = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal.LatestAgentReleaseDate { get => this._latestAgentReleaseDate; set { {_latestAgentReleaseDate = value;} } } /// Internal Acessors for LatestUpgradableVersionWithoutReboot - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal.LatestUpgradableVersionWithoutReboot { get => this._latestUpgradableVersionWithoutReboot; set { {_latestUpgradableVersionWithoutReboot = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal.LatestUpgradableVersionWithoutReboot { get => this._latestUpgradableVersionWithoutReboot; set { {_latestUpgradableVersionWithoutReboot = value;} } } /// Internal Acessors for LatestVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal.LatestVersion { get => this._latestVersion; set { {_latestVersion = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal.LatestVersion { get => this._latestVersion; set { {_latestVersion = value;} } } /// Internal Acessors for ReasonsBlockingUpgrade - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal.ReasonsBlockingUpgrade { get => this._reasonsBlockingUpgrade; set { {_reasonsBlockingUpgrade = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal.ReasonsBlockingUpgrade { get => this._reasonsBlockingUpgrade; set { {_reasonsBlockingUpgrade = value;} } } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal.Version { get => this._version; set { {_version = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal.Version { get => this._version; set { {_version = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[] _reasonsBlockingUpgrade; diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmMobilityAgentDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmMobilityAgentDetails.json.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmMobilityAgentDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmMobilityAgentDetails.json.cs index 977285cab1f4..fe36df2b7af7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmMobilityAgentDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmMobilityAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmMobilityAgentDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmMobilityAgentDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmNicDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicDetails.PowerShell.cs new file mode 100644 index 000000000000..3d74d6a54d7c --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicDetails.PowerShell.cs @@ -0,0 +1,240 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm NIC details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmNicDetailsTypeConverter))] + public partial class InMageRcmNicDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmNicDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmNicDetails(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.Migrate.Models.Api202301.IInMageRcmNicDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmNicDetails(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.Migrate.Models.Api202301.IInMageRcmNicDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmNicDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).NicId, global::System.Convert.ToString); + } + if (content.Contains("IsPrimaryNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).IsPrimaryNic, global::System.Convert.ToString); + } + if (content.Contains("IsSelectedForFailover")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).IsSelectedForFailover = (string) content.GetValueForProperty("IsSelectedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).IsSelectedForFailover, global::System.Convert.ToString); + } + if (content.Contains("SourceIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceIPAddress = (string) content.GetValueForProperty("SourceIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceIPAddress, global::System.Convert.ToString); + } + if (content.Contains("SourceIPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("SourceIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); + } + if (content.Contains("SourceNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceNetworkId = (string) content.GetValueForProperty("SourceNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SourceSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceSubnetName = (string) content.GetValueForProperty("SourceSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TargetIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TargetIPAddress = (string) content.GetValueForProperty("TargetIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TargetIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TargetIPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TargetIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TargetIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TargetIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); + } + if (content.Contains("TargetSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TargetSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TestSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TestIPAddress = (string) content.GetValueForProperty("TestIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TestIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TestIPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TestIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TestIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TestIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageRcmNicDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).NicId, global::System.Convert.ToString); + } + if (content.Contains("IsPrimaryNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).IsPrimaryNic, global::System.Convert.ToString); + } + if (content.Contains("IsSelectedForFailover")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).IsSelectedForFailover = (string) content.GetValueForProperty("IsSelectedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).IsSelectedForFailover, global::System.Convert.ToString); + } + if (content.Contains("SourceIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceIPAddress = (string) content.GetValueForProperty("SourceIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceIPAddress, global::System.Convert.ToString); + } + if (content.Contains("SourceIPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("SourceIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); + } + if (content.Contains("SourceNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceNetworkId = (string) content.GetValueForProperty("SourceNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SourceSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceSubnetName = (string) content.GetValueForProperty("SourceSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).SourceSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TargetIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TargetIPAddress = (string) content.GetValueForProperty("TargetIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TargetIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TargetIPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TargetIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TargetIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TargetIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); + } + if (content.Contains("TargetSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TargetSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TestSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TestIPAddress = (string) content.GetValueForProperty("TestIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TestIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TestIPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TestIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TestIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal)this).TestIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm NIC details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmNicDetailsTypeConverter))] + public partial interface IInMageRcmNicDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmNicDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmNicDetails.TypeConverter.cs index 17b9388b6768..e349dfd9818a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmNicDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicDetails.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmNicDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmNicDetails.cs index 3f166c096668..536205f3acd2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm NIC details. public partial class InMageRcmNicDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal { /// Backing field for property. @@ -28,19 +28,19 @@ public partial class InMageRcmNicDetails : public string IsSelectedForFailover { get => this._isSelectedForFailover; set => this._isSelectedForFailover = value; } /// Internal Acessors for NicId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal.NicId { get => this._nicId; set { {_nicId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal.NicId { get => this._nicId; set { {_nicId = value;} } } /// Internal Acessors for SourceIPAddress - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal.SourceIPAddress { get => this._sourceIPAddress; set { {_sourceIPAddress = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal.SourceIPAddress { get => this._sourceIPAddress; set { {_sourceIPAddress = value;} } } /// Internal Acessors for SourceIPAddressType - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal.SourceIPAddressType { get => this._sourceIPAddressType; set { {_sourceIPAddressType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal.SourceIPAddressType { get => this._sourceIPAddressType; set { {_sourceIPAddressType = value;} } } /// Internal Acessors for SourceNetworkId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal.SourceNetworkId { get => this._sourceNetworkId; set { {_sourceNetworkId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal.SourceNetworkId { get => this._sourceNetworkId; set { {_sourceNetworkId = value;} } } /// Internal Acessors for SourceSubnetName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetailsInternal.SourceSubnetName { get => this._sourceSubnetName; set { {_sourceSubnetName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetailsInternal.SourceSubnetName { get => this._sourceSubnetName; set { {_sourceSubnetName = value;} } } /// Backing field for property. private string _nicId; diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicDetails.json.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmNicDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmNicDetails.json.cs index 26947dfad638..915645ce714d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmNicDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmNicDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmNicInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicInput.PowerShell.cs new file mode 100644 index 000000000000..354567272cad --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicInput.PowerShell.cs @@ -0,0 +1,192 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm NIC input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmNicInputTypeConverter))] + public partial class InMageRcmNicInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmNicInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmNicInput(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.Migrate.Models.Api202301.IInMageRcmNicInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmNicInput(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.Migrate.Models.Api202301.IInMageRcmNicInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmNicInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).NicId, global::System.Convert.ToString); + } + if (content.Contains("IsPrimaryNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).IsPrimaryNic, global::System.Convert.ToString); + } + if (content.Contains("IsSelectedForFailover")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).IsSelectedForFailover = (string) content.GetValueForProperty("IsSelectedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).IsSelectedForFailover, global::System.Convert.ToString); + } + if (content.Contains("TargetSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TargetSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TargetStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TargetStaticIPAddress = (string) content.GetValueForProperty("TargetStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TargetStaticIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TestSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TestSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TestStaticIPAddress = (string) content.GetValueForProperty("TestStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TestStaticIPAddress, 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 InMageRcmNicInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).NicId, global::System.Convert.ToString); + } + if (content.Contains("IsPrimaryNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).IsPrimaryNic, global::System.Convert.ToString); + } + if (content.Contains("IsSelectedForFailover")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).IsSelectedForFailover = (string) content.GetValueForProperty("IsSelectedForFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).IsSelectedForFailover, global::System.Convert.ToString); + } + if (content.Contains("TargetSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TargetSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TargetStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TargetStaticIPAddress = (string) content.GetValueForProperty("TargetStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TargetStaticIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TestSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TestSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TestStaticIPAddress = (string) content.GetValueForProperty("TestStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal)this).TestStaticIPAddress, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm NIC input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmNicInputTypeConverter))] + public partial interface IInMageRcmNicInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmNicInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmNicInput.TypeConverter.cs index b883ba9da241..50a65021b53a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmNicInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicInput.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmNicInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmNicInput.cs index 330cc3bb7268..da798c0cb876 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm NIC input. public partial class InMageRcmNicInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicInput.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmNicInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmNicInput.json.cs index f178dc2a7ab4..2a7d3e892cdc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmNicInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmNicInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmNicInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmNicInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyCreationInput.PowerShell.cs new file mode 100644 index 000000000000..c014556624ad --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyCreationInput.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm policy creation input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmPolicyCreationInputTypeConverter))] + public partial class InMageRcmPolicyCreationInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmPolicyCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmPolicyCreationInput(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.Migrate.Models.Api202301.IInMageRcmPolicyCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmPolicyCreationInput(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.Migrate.Models.Api202301.IInMageRcmPolicyCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmPolicyCreationInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointHistoryInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("EnableMultiVMSync")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).EnableMultiVMSync = (string) content.GetValueForProperty("EnableMultiVMSync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).EnableMultiVMSync, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 InMageRcmPolicyCreationInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointHistoryInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("EnableMultiVMSync")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).EnableMultiVMSync = (string) content.GetValueForProperty("EnableMultiVMSync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal)this).EnableMultiVMSync, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm policy creation input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmPolicyCreationInputTypeConverter))] + public partial interface IInMageRcmPolicyCreationInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyCreationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyCreationInput.TypeConverter.cs index 9b22a4b8d007..580de2c82e70 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyCreationInput.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyCreationInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyCreationInput.cs index f78c8c7c7a92..bf53895b5878 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyCreationInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm policy creation input. public partial class InMageRcmPolicyCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(); /// Backing field for property. private int? _appConsistentFrequencyInMinute; @@ -42,7 +42,7 @@ public partial class InMageRcmPolicyCreationInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private int? _recoveryPointHistoryInMinute; @@ -72,7 +72,7 @@ public InMageRcmPolicyCreationInput() /// InMageRcm policy creation input. public partial interface IInMageRcmPolicyCreationInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput { /// The app consistent snapshot frequency (in minutes). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -110,7 +110,7 @@ public partial interface IInMageRcmPolicyCreationInput : } /// InMageRcm policy creation input. internal partial interface IInMageRcmPolicyCreationInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal { /// The app consistent snapshot frequency (in minutes). int? AppConsistentFrequencyInMinute { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyCreationInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyCreationInput.json.cs index 6f67fd646acb..186a709b0775 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmPolicyCreationInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmPolicyCreationInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageRcmPolicyCreationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(json); + __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(json); {_recoveryPointHistoryInMinute = If( json?.PropertyT("recoveryPointHistoryInMinutes"), out var __jsonRecoveryPointHistoryInMinutes) ? (int?)__jsonRecoveryPointHistoryInMinutes : RecoveryPointHistoryInMinute;} {_crashConsistentFrequencyInMinute = If( json?.PropertyT("crashConsistentFrequencyInMinutes"), out var __jsonCrashConsistentFrequencyInMinutes) ? (int?)__jsonCrashConsistentFrequencyInMinutes : CrashConsistentFrequencyInMinute;} {_appConsistentFrequencyInMinute = If( json?.PropertyT("appConsistentFrequencyInMinutes"), out var __jsonAppConsistentFrequencyInMinutes) ? (int?)__jsonAppConsistentFrequencyInMinutes : AppConsistentFrequencyInMinute;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyDetails.PowerShell.cs new file mode 100644 index 000000000000..714c893c081e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyDetails.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm specific policy details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmPolicyDetailsTypeConverter))] + public partial class InMageRcmPolicyDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmPolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmPolicyDetails(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.Migrate.Models.Api202301.IInMageRcmPolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmPolicyDetails(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.Migrate.Models.Api202301.IInMageRcmPolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmPolicyDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointHistoryInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("EnableMultiVMSync")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).EnableMultiVMSync = (string) content.GetValueForProperty("EnableMultiVMSync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).EnableMultiVMSync, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 InMageRcmPolicyDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointHistoryInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("EnableMultiVMSync")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).EnableMultiVMSync = (string) content.GetValueForProperty("EnableMultiVMSync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal)this).EnableMultiVMSync, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm specific policy details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmPolicyDetailsTypeConverter))] + public partial interface IInMageRcmPolicyDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyDetails.TypeConverter.cs index bcea19490b82..ddd40fdebcc2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmPolicyDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyDetails.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyDetails.cs index d036cd6bbc4f..dc897882da59 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm specific policy details. public partial class InMageRcmPolicyDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(); /// Backing field for property. private int? _appConsistentFrequencyInMinute; @@ -42,7 +42,7 @@ public partial class InMageRcmPolicyDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private int? _recoveryPointHistoryInMinute; @@ -72,7 +72,7 @@ public InMageRcmPolicyDetails() /// InMageRcm specific policy details. public partial interface IInMageRcmPolicyDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails { /// The app consistent snapshot frequency in minutes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -110,7 +110,7 @@ public partial interface IInMageRcmPolicyDetails : } /// InMageRcm specific policy details. internal partial interface IInMageRcmPolicyDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal { /// The app consistent snapshot frequency in minutes. int? AppConsistentFrequencyInMinute { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyDetails.json.cs index 6e8dcf9a3102..db1d1d4ffded 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmPolicyDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmPolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmPolicyDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmPolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmPolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmPolicyDetails(json) : null; } @@ -77,7 +77,7 @@ internal InMageRcmPolicyDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(json); + __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(json); {_recoveryPointHistoryInMinute = If( json?.PropertyT("recoveryPointHistoryInMinutes"), out var __jsonRecoveryPointHistoryInMinutes) ? (int?)__jsonRecoveryPointHistoryInMinutes : RecoveryPointHistoryInMinute;} {_appConsistentFrequencyInMinute = If( json?.PropertyT("appConsistentFrequencyInMinutes"), out var __jsonAppConsistentFrequencyInMinutes) ? (int?)__jsonAppConsistentFrequencyInMinutes : AppConsistentFrequencyInMinute;} {_crashConsistentFrequencyInMinute = If( json?.PropertyT("crashConsistentFrequencyInMinutes"), out var __jsonCrashConsistentFrequencyInMinutes) ? (int?)__jsonCrashConsistentFrequencyInMinutes : CrashConsistentFrequencyInMinute;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectedDiskDetails.PowerShell.cs new file mode 100644 index 000000000000..3929b6b6cfeb --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectedDiskDetails.PowerShell.cs @@ -0,0 +1,386 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm protected disk details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmProtectedDiskDetailsTypeConverter))] + public partial class InMageRcmProtectedDiskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmProtectedDiskDetails(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.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmProtectedDiskDetails(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.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmProtectedDiskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("IrDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails) content.GetValueForProperty("IrDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmSyncDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ResyncDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails) content.GetValueForProperty("ResyncDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmSyncDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("IsOSDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); + } + if (content.Contains("CapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("SeedManagedDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); + } + if (content.Contains("SeedBlobUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).SeedBlobUri = (string) content.GetValueForProperty("SeedBlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).SeedBlobUri, global::System.Convert.ToString); + } + if (content.Contains("TargetManagedDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).TargetManagedDiskId = (string) content.GetValueForProperty("TargetManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).TargetManagedDiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DataPendingInLogDataStoreInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb = (double?) content.GetValueForProperty("DataPendingInLogDataStoreInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DataPendingAtSourceAgentInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("IsInitialReplicationComplete")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IsInitialReplicationComplete = (string) content.GetValueForProperty("IsInitialReplicationComplete",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IsInitialReplicationComplete, global::System.Convert.ToString); + } + if (content.Contains("IrDetailProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("IrDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); + } + if (content.Contains("IrDetailTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailTransferredByte = (long?) content.GetValueForProperty("IrDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("IrDetailLast15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("IrDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("IrDetailLastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("IrDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("IrDetailProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProcessedByte = (long?) content.GetValueForProperty("IrDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("IrDetailStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailStartTime = (string) content.GetValueForProperty("IrDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailStartTime, global::System.Convert.ToString); + } + if (content.Contains("IrDetailLastRefreshTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime = (string) content.GetValueForProperty("IrDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime, global::System.Convert.ToString); + } + if (content.Contains("IrDetailProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressPercentage = (int?) content.GetValueForProperty("IrDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResyncDetailProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ResyncDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); + } + if (content.Contains("ResyncDetailTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte = (long?) content.GetValueForProperty("ResyncDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncDetailLast15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncDetailLastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("ResyncDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte = (long?) content.GetValueForProperty("ResyncDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncDetailStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailStartTime = (string) content.GetValueForProperty("ResyncDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailStartTime, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailLastRefreshTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime = (string) content.GetValueForProperty("ResyncDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage = (int?) content.GetValueForProperty("ResyncDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageRcmProtectedDiskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("IrDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails) content.GetValueForProperty("IrDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmSyncDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ResyncDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails) content.GetValueForProperty("ResyncDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmSyncDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("IsOSDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); + } + if (content.Contains("CapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("SeedManagedDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); + } + if (content.Contains("SeedBlobUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).SeedBlobUri = (string) content.GetValueForProperty("SeedBlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).SeedBlobUri, global::System.Convert.ToString); + } + if (content.Contains("TargetManagedDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).TargetManagedDiskId = (string) content.GetValueForProperty("TargetManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).TargetManagedDiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DataPendingInLogDataStoreInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb = (double?) content.GetValueForProperty("DataPendingInLogDataStoreInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingInLogDataStoreInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("DataPendingAtSourceAgentInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb = (double?) content.GetValueForProperty("DataPendingAtSourceAgentInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).DataPendingAtSourceAgentInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("IsInitialReplicationComplete")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IsInitialReplicationComplete = (string) content.GetValueForProperty("IsInitialReplicationComplete",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IsInitialReplicationComplete, global::System.Convert.ToString); + } + if (content.Contains("IrDetailProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("IrDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); + } + if (content.Contains("IrDetailTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailTransferredByte = (long?) content.GetValueForProperty("IrDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("IrDetailLast15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("IrDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("IrDetailLastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("IrDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastDataTransferTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("IrDetailProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProcessedByte = (long?) content.GetValueForProperty("IrDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("IrDetailStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailStartTime = (string) content.GetValueForProperty("IrDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailStartTime, global::System.Convert.ToString); + } + if (content.Contains("IrDetailLastRefreshTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime = (string) content.GetValueForProperty("IrDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailLastRefreshTime, global::System.Convert.ToString); + } + if (content.Contains("IrDetailProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressPercentage = (int?) content.GetValueForProperty("IrDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).IrDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResyncDetailProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ResyncDetailProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); + } + if (content.Contains("ResyncDetailTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte = (long?) content.GetValueForProperty("ResyncDetailTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncDetailLast15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte = (long?) content.GetValueForProperty("ResyncDetailLast15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLast15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncDetailLastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc = (string) content.GetValueForProperty("ResyncDetailLastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastDataTransferTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte = (long?) content.GetValueForProperty("ResyncDetailProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncDetailStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailStartTime = (string) content.GetValueForProperty("ResyncDetailStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailStartTime, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailLastRefreshTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime = (string) content.GetValueForProperty("ResyncDetailLastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailLastRefreshTime, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage = (int?) content.GetValueForProperty("ResyncDetailProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal)this).ResyncDetailProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm protected disk details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmProtectedDiskDetailsTypeConverter))] + public partial interface IInMageRcmProtectedDiskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectedDiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectedDiskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectedDiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmProtectedDiskDetails.TypeConverter.cs index a078d8dc4e79..ee7ad7d6066d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectedDiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectedDiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectedDiskDetails.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectedDiskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmProtectedDiskDetails.cs index 650a8f702e6e..e6c83fa88121 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectedDiskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm protected disk details. public partial class InMageRcmProtectedDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal { /// Backing field for property. @@ -63,47 +63,47 @@ public partial class InMageRcmProtectedDiskDetails : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType? DiskType { get => this._diskType; set => this._diskType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails _irDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails _irDetail; /// The initial replication details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails IrDetail { get => (this._irDetail = this._irDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmSyncDetails()); set => this._irDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails IrDetail { get => (this._irDetail = this._irDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmSyncDetails()); set => this._irDetail = value; } /// The bytes transferred in last 15 minutes from source VM to azure. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public long? IrDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).Last15MinutesTransferredByte; } + public long? IrDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).Last15MinutesTransferredByte; } /// The time of the last data transfer from source VM to azure. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string IrDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).LastDataTransferTimeUtc; } + public string IrDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).LastDataTransferTimeUtc; } /// The last refresh time. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string IrDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).LastRefreshTime; } + public string IrDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).LastRefreshTime; } /// /// The total processed bytes. This includes bytes that are transferred from source VM to azure and matched bytes. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public long? IrDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).ProcessedByte; } + public long? IrDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).ProcessedByte; } /// The progress health. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? IrDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).ProgressHealth; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? IrDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).ProgressHealth; } /// /// Progress in percentage. Progress percentage is calculated based on processed bytes. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? IrDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).ProgressPercentage; } + public int? IrDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).ProgressPercentage; } /// The start time. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string IrDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).StartTime; } + public string IrDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).StartTime; } /// The transferred bytes from source VM to azure for the disk. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public long? IrDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).TransferredByte; } + public long? IrDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).TransferredByte; } /// Backing field for property. private string _isInitialReplicationComplete; @@ -127,137 +127,137 @@ public partial class InMageRcmProtectedDiskDetails : public string LogStorageAccountId { get => this._logStorageAccountId; } /// Internal Acessors for CapacityInByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.CapacityInByte { get => this._capacityInByte; set { {_capacityInByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.CapacityInByte { get => this._capacityInByte; set { {_capacityInByte = value;} } } /// Internal Acessors for DataPendingAtSourceAgentInMb - double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.DataPendingAtSourceAgentInMb { get => this._dataPendingAtSourceAgentInMb; set { {_dataPendingAtSourceAgentInMb = value;} } } + double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.DataPendingAtSourceAgentInMb { get => this._dataPendingAtSourceAgentInMb; set { {_dataPendingAtSourceAgentInMb = value;} } } /// Internal Acessors for DataPendingInLogDataStoreInMb - double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.DataPendingInLogDataStoreInMb { get => this._dataPendingInLogDataStoreInMb; set { {_dataPendingInLogDataStoreInMb = value;} } } + double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.DataPendingInLogDataStoreInMb { get => this._dataPendingInLogDataStoreInMb; set { {_dataPendingInLogDataStoreInMb = value;} } } /// Internal Acessors for DiskEncryptionSetId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.DiskEncryptionSetId { get => this._diskEncryptionSetId; set { {_diskEncryptionSetId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.DiskEncryptionSetId { get => this._diskEncryptionSetId; set { {_diskEncryptionSetId = value;} } } /// Internal Acessors for DiskId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.DiskId { get => this._diskId; set { {_diskId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.DiskId { get => this._diskId; set { {_diskId = value;} } } /// Internal Acessors for DiskName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.DiskName { get => this._diskName; set { {_diskName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.DiskName { get => this._diskName; set { {_diskName = value;} } } /// Internal Acessors for IrDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.IrDetail { get => (this._irDetail = this._irDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmSyncDetails()); set { {_irDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.IrDetail { get => (this._irDetail = this._irDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmSyncDetails()); set { {_irDetail = value;} } } /// Internal Acessors for IrDetailLast15MinutesTransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.IrDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).Last15MinutesTransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).Last15MinutesTransferredByte = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.IrDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).Last15MinutesTransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).Last15MinutesTransferredByte = value; } /// Internal Acessors for IrDetailLastDataTransferTimeUtc - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.IrDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).LastDataTransferTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).LastDataTransferTimeUtc = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.IrDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).LastDataTransferTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).LastDataTransferTimeUtc = value; } /// Internal Acessors for IrDetailLastRefreshTime - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.IrDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).LastRefreshTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).LastRefreshTime = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.IrDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).LastRefreshTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).LastRefreshTime = value; } /// Internal Acessors for IrDetailProcessedByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.IrDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).ProcessedByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).ProcessedByte = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.IrDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).ProcessedByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).ProcessedByte = value; } /// Internal Acessors for IrDetailProgressHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.IrDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).ProgressHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).ProgressHealth = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.IrDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).ProgressHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).ProgressHealth = value; } /// Internal Acessors for IrDetailProgressPercentage - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.IrDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).ProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).ProgressPercentage = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.IrDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).ProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).ProgressPercentage = value; } /// Internal Acessors for IrDetailStartTime - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.IrDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).StartTime = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.IrDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).StartTime = value; } /// Internal Acessors for IrDetailTransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.IrDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).TransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)IrDetail).TransferredByte = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.IrDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).TransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)IrDetail).TransferredByte = value; } /// Internal Acessors for IsInitialReplicationComplete - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.IsInitialReplicationComplete { get => this._isInitialReplicationComplete; set { {_isInitialReplicationComplete = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.IsInitialReplicationComplete { get => this._isInitialReplicationComplete; set { {_isInitialReplicationComplete = value;} } } /// Internal Acessors for IsOSDisk - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.IsOSDisk { get => this._isOSDisk; set { {_isOSDisk = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.IsOSDisk { get => this._isOSDisk; set { {_isOSDisk = value;} } } /// Internal Acessors for LogStorageAccountId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.LogStorageAccountId { get => this._logStorageAccountId; set { {_logStorageAccountId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.LogStorageAccountId { get => this._logStorageAccountId; set { {_logStorageAccountId = value;} } } /// Internal Acessors for ResyncDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.ResyncDetail { get => (this._resyncDetail = this._resyncDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmSyncDetails()); set { {_resyncDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.ResyncDetail { get => (this._resyncDetail = this._resyncDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmSyncDetails()); set { {_resyncDetail = value;} } } /// Internal Acessors for ResyncDetailLast15MinutesTransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).Last15MinutesTransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).Last15MinutesTransferredByte = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).Last15MinutesTransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).Last15MinutesTransferredByte = value; } /// Internal Acessors for ResyncDetailLastDataTransferTimeUtc - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).LastDataTransferTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).LastDataTransferTimeUtc = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).LastDataTransferTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).LastDataTransferTimeUtc = value; } /// Internal Acessors for ResyncDetailLastRefreshTime - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).LastRefreshTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).LastRefreshTime = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).LastRefreshTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).LastRefreshTime = value; } /// Internal Acessors for ResyncDetailProcessedByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).ProcessedByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).ProcessedByte = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).ProcessedByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).ProcessedByte = value; } /// Internal Acessors for ResyncDetailProgressHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).ProgressHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).ProgressHealth = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).ProgressHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).ProgressHealth = value; } /// Internal Acessors for ResyncDetailProgressPercentage - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).ProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).ProgressPercentage = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).ProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).ProgressPercentage = value; } /// Internal Acessors for ResyncDetailStartTime - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).StartTime = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).StartTime = value; } /// Internal Acessors for ResyncDetailTransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).TransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).TransferredByte = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.ResyncDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).TransferredByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).TransferredByte = value; } /// Internal Acessors for SeedBlobUri - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.SeedBlobUri { get => this._seedBlobUri; set { {_seedBlobUri = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.SeedBlobUri { get => this._seedBlobUri; set { {_seedBlobUri = value;} } } /// Internal Acessors for SeedManagedDiskId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.SeedManagedDiskId { get => this._seedManagedDiskId; set { {_seedManagedDiskId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.SeedManagedDiskId { get => this._seedManagedDiskId; set { {_seedManagedDiskId = value;} } } /// Internal Acessors for TargetManagedDiskId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetailsInternal.TargetManagedDiskId { get => this._targetManagedDiskId; set { {_targetManagedDiskId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetailsInternal.TargetManagedDiskId { get => this._targetManagedDiskId; set { {_targetManagedDiskId = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails _resyncDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails _resyncDetail; /// The resync details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails ResyncDetail { get => (this._resyncDetail = this._resyncDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmSyncDetails()); set => this._resyncDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails ResyncDetail { get => (this._resyncDetail = this._resyncDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmSyncDetails()); set => this._resyncDetail = value; } /// The bytes transferred in last 15 minutes from source VM to azure. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public long? ResyncDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).Last15MinutesTransferredByte; } + public long? ResyncDetailLast15MinutesTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).Last15MinutesTransferredByte; } /// The time of the last data transfer from source VM to azure. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResyncDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).LastDataTransferTimeUtc; } + public string ResyncDetailLastDataTransferTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).LastDataTransferTimeUtc; } /// The last refresh time. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResyncDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).LastRefreshTime; } + public string ResyncDetailLastRefreshTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).LastRefreshTime; } /// /// The total processed bytes. This includes bytes that are transferred from source VM to azure and matched bytes. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public long? ResyncDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).ProcessedByte; } + public long? ResyncDetailProcessedByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).ProcessedByte; } /// The progress health. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? ResyncDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).ProgressHealth; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? ResyncDetailProgressHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).ProgressHealth; } /// /// Progress in percentage. Progress percentage is calculated based on processed bytes. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? ResyncDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).ProgressPercentage; } + public int? ResyncDetailProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).ProgressPercentage; } /// The start time. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResyncDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).StartTime; } + public string ResyncDetailStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).StartTime; } /// The transferred bytes from source VM to azure for the disk. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public long? ResyncDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal)ResyncDetail).TransferredByte; } + public long? ResyncDetailTransferredByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)ResyncDetail).TransferredByte; } /// Backing field for property. private string _seedBlobUri; @@ -551,7 +551,7 @@ internal partial interface IInMageRcmProtectedDiskDetailsInternal /// The disk type. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType? DiskType { get; set; } /// The initial replication details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails IrDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails IrDetail { get; set; } /// The bytes transferred in last 15 minutes from source VM to azure. long? IrDetailLast15MinutesTransferredByte { get; set; } /// The time of the last data transfer from source VM to azure. @@ -579,7 +579,7 @@ internal partial interface IInMageRcmProtectedDiskDetailsInternal /// The log storage account ARM Id. string LogStorageAccountId { get; set; } /// The resync details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails ResyncDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails ResyncDetail { get; set; } /// The bytes transferred in last 15 minutes from source VM to azure. long? ResyncDetailLast15MinutesTransferredByte { get; set; } /// The time of the last data transfer from source VM to azure. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectedDiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectedDiskDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectedDiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmProtectedDiskDetails.json.cs index 730d1012ceec..a063532c3805 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectedDiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmProtectedDiskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmProtectedDiskDetails(json) : null; } @@ -77,8 +77,8 @@ internal InMageRcmProtectedDiskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - {_irDetail = If( json?.PropertyT("irDetails"), out var __jsonIrDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmSyncDetails.FromJson(__jsonIrDetails) : IrDetail;} - {_resyncDetail = If( json?.PropertyT("resyncDetails"), out var __jsonResyncDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmSyncDetails.FromJson(__jsonResyncDetails) : ResyncDetail;} + {_irDetail = If( json?.PropertyT("irDetails"), out var __jsonIrDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmSyncDetails.FromJson(__jsonIrDetails) : IrDetail;} + {_resyncDetail = If( json?.PropertyT("resyncDetails"), out var __jsonResyncDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmSyncDetails.FromJson(__jsonResyncDetails) : ResyncDetail;} {_diskId = If( json?.PropertyT("diskId"), out var __jsonDiskId) ? (string)__jsonDiskId : (string)DiskId;} {_diskName = If( json?.PropertyT("diskName"), out var __jsonDiskName) ? (string)__jsonDiskName : (string)DiskName;} {_isOSDisk = If( json?.PropertyT("isOSDisk"), out var __jsonIsOSDisk) ? (string)__jsonIsOSDisk : (string)IsOSDisk;} diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectionContainerMappingDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectionContainerMappingDetails.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectionContainerMappingDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmProtectionContainerMappingDetails.PowerShell.cs index 180f402dda4e..7e0eced1a22e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectionContainerMappingDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectionContainerMappingDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageRcmProtectionContainerMappingDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageRcmProtectionContainerMappingDetails(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.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageRcmProtectionContainerMappingDetails(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,17 +108,17 @@ internal InMageRcmProtectionContainerMappingDetails(global::System.Collections.I // actually deserialize if (content.Contains("EnableAgentAutoUpgrade")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetailsInternal)this).EnableAgentAutoUpgrade = (string) content.GetValueForProperty("EnableAgentAutoUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetailsInternal)this).EnableAgentAutoUpgrade, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetailsInternal)this).EnableAgentAutoUpgrade = (string) content.GetValueForProperty("EnableAgentAutoUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetailsInternal)this).EnableAgentAutoUpgrade, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, 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. @@ -133,11 +133,11 @@ internal InMageRcmProtectionContainerMappingDetails(global::System.Management.Au // actually deserialize if (content.Contains("EnableAgentAutoUpgrade")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetailsInternal)this).EnableAgentAutoUpgrade = (string) content.GetValueForProperty("EnableAgentAutoUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetailsInternal)this).EnableAgentAutoUpgrade, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetailsInternal)this).EnableAgentAutoUpgrade = (string) content.GetValueForProperty("EnableAgentAutoUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetailsInternal)this).EnableAgentAutoUpgrade, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectionContainerMappingDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectionContainerMappingDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectionContainerMappingDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmProtectionContainerMappingDetails.TypeConverter.cs index 5f269ca24db2..88e7d9f6a4bf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectionContainerMappingDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectionContainerMappingDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectionContainerMappingDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectionContainerMappingDetails.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectionContainerMappingDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmProtectionContainerMappingDetails.cs index e60f203aa505..9d0fabe12cfc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectionContainerMappingDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectionContainerMappingDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm provider specific container mapping details. public partial class InMageRcmProtectionContainerMappingDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails __protectionContainerMappingProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails __protectionContainerMappingProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProviderSpecificDetails(); /// Backing field for property. private string _enableAgentAutoUpgrade; @@ -28,10 +28,10 @@ public partial class InMageRcmProtectionContainerMappingDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)__protectionContainerMappingProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)__protectionContainerMappingProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)__protectionContainerMappingProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)__protectionContainerMappingProviderSpecificDetails).InstanceType = value ; } /// Internal Acessors for EnableAgentAutoUpgrade - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetailsInternal.EnableAgentAutoUpgrade { get => this._enableAgentAutoUpgrade; set { {_enableAgentAutoUpgrade = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetailsInternal.EnableAgentAutoUpgrade { get => this._enableAgentAutoUpgrade; set { {_enableAgentAutoUpgrade = value;} } } /// /// Creates an new instance. @@ -56,7 +56,7 @@ public InMageRcmProtectionContainerMappingDetails() /// InMageRcm provider specific container mapping details. public partial interface IInMageRcmProtectionContainerMappingDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails { /// A value indicating whether the flag for enable agent auto upgrade. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -70,7 +70,7 @@ public partial interface IInMageRcmProtectionContainerMappingDetails : } /// InMageRcm provider specific container mapping details. internal partial interface IInMageRcmProtectionContainerMappingDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal { /// A value indicating whether the flag for enable agent auto upgrade. string EnableAgentAutoUpgrade { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectionContainerMappingDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectionContainerMappingDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectionContainerMappingDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmProtectionContainerMappingDetails.json.cs index a69499e73ae8..2d2c50a8ba8b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmProtectionContainerMappingDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmProtectionContainerMappingDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmProtectionContainerMappingDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectionContainerMappingDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectionContainerMappingDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmProtectionContainerMappingDetails(json) : null; } @@ -77,7 +77,7 @@ internal InMageRcmProtectionContainerMappingDetails(Microsoft.Azure.PowerShell.C { return; } - __protectionContainerMappingProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProviderSpecificDetails(json); + __protectionContainerMappingProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProviderSpecificDetails(json); {_enableAgentAutoUpgrade = If( json?.PropertyT("enableAgentAutoUpgrade"), out var __jsonEnableAgentAutoUpgrade) ? (string)__jsonEnableAgentAutoUpgrade : (string)EnableAgentAutoUpgrade;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmRecoveryPointDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmRecoveryPointDetails.PowerShell.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmRecoveryPointDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmRecoveryPointDetails.PowerShell.cs index 679229fbbba6..634007500ee7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmRecoveryPointDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmRecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageRcmRecoveryPointDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageRcmRecoveryPointDetails(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.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageRcmRecoveryPointDetails(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,17 +105,17 @@ internal InMageRcmRecoveryPointDetails(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("IsMultiVMSyncPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetailsInternal)this).IsMultiVMSyncPoint = (string) content.GetValueForProperty("IsMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetailsInternal)this).IsMultiVMSyncPoint, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetailsInternal)this).IsMultiVMSyncPoint = (string) content.GetValueForProperty("IsMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetailsInternal)this).IsMultiVMSyncPoint, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, 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. @@ -130,11 +130,11 @@ internal InMageRcmRecoveryPointDetails(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("IsMultiVMSyncPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetailsInternal)this).IsMultiVMSyncPoint = (string) content.GetValueForProperty("IsMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetailsInternal)this).IsMultiVMSyncPoint, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetailsInternal)this).IsMultiVMSyncPoint = (string) content.GetValueForProperty("IsMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetailsInternal)this).IsMultiVMSyncPoint, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmRecoveryPointDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmRecoveryPointDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmRecoveryPointDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmRecoveryPointDetails.TypeConverter.cs index 6f6fb7e1bc1b..0e214a4f7944 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmRecoveryPointDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmRecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmRecoveryPointDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmRecoveryPointDetails.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmRecoveryPointDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmRecoveryPointDetails.cs index 0f1a99493b58..40721927772b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmRecoveryPointDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmRecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm provider specific recovery point details. public partial class InMageRcmRecoveryPointDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails __providerSpecificRecoveryPointDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails __providerSpecificRecoveryPointDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetails(); /// Gets the provider type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)__providerSpecificRecoveryPointDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)__providerSpecificRecoveryPointDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)__providerSpecificRecoveryPointDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)__providerSpecificRecoveryPointDetails).InstanceType = value ; } /// Backing field for property. private string _isMultiVMSyncPoint; @@ -31,7 +31,7 @@ public partial class InMageRcmRecoveryPointDetails : public string IsMultiVMSyncPoint { get => this._isMultiVMSyncPoint; } /// Internal Acessors for IsMultiVMSyncPoint - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetailsInternal.IsMultiVMSyncPoint { get => this._isMultiVMSyncPoint; set { {_isMultiVMSyncPoint = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetailsInternal.IsMultiVMSyncPoint { get => this._isMultiVMSyncPoint; set { {_isMultiVMSyncPoint = value;} } } /// Creates an new instance. public InMageRcmRecoveryPointDetails() @@ -54,7 +54,7 @@ public InMageRcmRecoveryPointDetails() /// InMageRcm provider specific recovery point details. public partial interface IInMageRcmRecoveryPointDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails { /// A value indicating whether the recovery point is multi VM consistent. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -68,7 +68,7 @@ public partial interface IInMageRcmRecoveryPointDetails : } /// InMageRcm provider specific recovery point details. internal partial interface IInMageRcmRecoveryPointDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal { /// A value indicating whether the recovery point is multi VM consistent. string IsMultiVMSyncPoint { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmRecoveryPointDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmRecoveryPointDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmRecoveryPointDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmRecoveryPointDetails.json.cs index 98eb32f26936..b329e5eecfa9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmRecoveryPointDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmRecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmRecoveryPointDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmRecoveryPointDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmRecoveryPointDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmRecoveryPointDetails(json) : null; } @@ -77,7 +77,7 @@ internal InMageRcmRecoveryPointDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - __providerSpecificRecoveryPointDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetails(json); + __providerSpecificRecoveryPointDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetails(json); {_isMultiVMSyncPoint = If( json?.PropertyT("isMultiVmSyncPoint"), out var __jsonIsMultiVMSyncPoint) ? (string)__jsonIsMultiVMSyncPoint : (string)IsMultiVMSyncPoint;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmReplicationDetails.PowerShell.cs new file mode 100644 index 000000000000..b2c55345f222 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmReplicationDetails.PowerShell.cs @@ -0,0 +1,736 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm provider specific details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmReplicationDetailsTypeConverter))] + public partial class InMageRcmReplicationDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmReplicationDetails(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.Migrate.Models.Api202301.IInMageRcmReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmReplicationDetails(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.Migrate.Models.Api202301.IInMageRcmReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmReplicationDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MobilityAgentDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails) content.GetValueForProperty("MobilityAgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmMobilityAgentDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiscoveredVMDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails) content.GetValueForProperty("DiscoveredVMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDiscoveredProtectedVMDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("InternalIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InternalIdentifier = (string) content.GetValueForProperty("InternalIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InternalIdentifier, global::System.Convert.ToString); + } + if (content.Contains("FabricDiscoveryMachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).FabricDiscoveryMachineId = (string) content.GetValueForProperty("FabricDiscoveryMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).FabricDiscoveryMachineId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("DiscoveryType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("ProcessorCoreCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProcessorCoreCount = (int?) content.GetValueForProperty("ProcessorCoreCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProcessorCoreCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllocatedMemoryInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AllocatedMemoryInMb = (double?) content.GetValueForProperty("AllocatedMemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AllocatedMemoryInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ProcessServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProcessServerName = (string) content.GetValueForProperty("ProcessServerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProcessServerName, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("FirmwareType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).FirmwareType = (string) content.GetValueForProperty("FirmwareType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).FirmwareType, global::System.Convert.ToString); + } + if (content.Contains("PrimaryNicIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).PrimaryNicIPAddress = (string) content.GetValueForProperty("PrimaryNicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).PrimaryNicIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TargetGeneration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetGeneration = (string) content.GetValueForProperty("TargetGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetGeneration, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LicenseType, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetVMName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("TargetResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetLocation, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetBootDiagnosticsStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TestNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TestNetworkId, global::System.Convert.ToString); + } + if (content.Contains("FailoverRecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).FailoverRecoveryPointId = (string) content.GetValueForProperty("FailoverRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).FailoverRecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("LastRecoveryPointReceived")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastRpoInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRpoInSecond = (long?) content.GetValueForProperty("LastRpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LastRpoCalculatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastRecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointId = (string) content.GetValueForProperty("LastRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressPercentage = (int?) content.GetValueForProperty("InitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InitialReplicationProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProcessedByte = (long?) content.GetValueForProperty("InitialReplicationProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("InitialReplicationTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationTransferredByte = (long?) content.GetValueForProperty("InitialReplicationTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("InitialReplicationProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("InitialReplicationProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); + } + if (content.Contains("ResyncProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResyncProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncTransferredByte = (long?) content.GetValueForProperty("ResyncTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("ResyncProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); + } + if (content.Contains("ResyncRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); + } + if (content.Contains("ResyncState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState?) content.GetValueForProperty("ResyncState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState.CreateFrom); + } + if (content.Contains("AgentUpgradeState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MobilityAgentUpgradeState?) content.GetValueForProperty("AgentUpgradeState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MobilityAgentUpgradeState.CreateFrom); + } + if (content.Contains("LastAgentUpgradeType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeType = (string) content.GetValueForProperty("LastAgentUpgradeType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeType, global::System.Convert.ToString); + } + if (content.Contains("AgentUpgradeJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeJobId = (string) content.GetValueForProperty("AgentUpgradeJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeJobId, global::System.Convert.ToString); + } + if (content.Contains("AgentUpgradeAttemptToVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeAttemptToVersion = (string) content.GetValueForProperty("AgentUpgradeAttemptToVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeAttemptToVersion, global::System.Convert.ToString); + } + if (content.Contains("ProtectedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmProtectedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("IsLastUpgradeSuccessful")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).IsLastUpgradeSuccessful = (string) content.GetValueForProperty("IsLastUpgradeSuccessful",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).IsLastUpgradeSuccessful, global::System.Convert.ToString); + } + if (content.Contains("IsAgentRegistrationSuccessfulAfterFailover")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover = (bool?) content.GetValueForProperty("IsAgentRegistrationSuccessfulAfterFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("LastAgentUpgradeErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails[]) content.GetValueForProperty("LastAgentUpgradeErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("AgentUpgradeBlockingErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails[]) content.GetValueForProperty("AgentUpgradeBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailVersion = (string) content.GetValueForProperty("MobilityAgentDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailLatestVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion = (string) content.GetValueForProperty("MobilityAgentDetailLatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailLatestAgentReleaseDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestAgentReleaseDate = (string) content.GetValueForProperty("MobilityAgentDetailLatestAgentReleaseDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestAgentReleaseDate, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailDriverVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion = (string) content.GetValueForProperty("MobilityAgentDetailDriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailLatestUpgradableVersionWithoutReboot")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("MobilityAgentDetailLatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailAgentVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailAgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MobilityAgentDetailDriverVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailDriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MobilityAgentDetailLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MobilityAgentDetailReasonsBlockingUpgrade")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("MobilityAgentDetailReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); + } + if (content.Contains("MobilityAgentDetailIsUpgradeable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable = (string) content.GetValueForProperty("MobilityAgentDetailIsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailVcenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailVcenterFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailDatastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailDatastore = (string[]) content.GetValueForProperty("DiscoveredVMDetailDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("DiscoveredVMDetailIpaddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress = (string[]) content.GetValueForProperty("DiscoveredVMDetailIpaddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("DiscoveredVMDetailVmwareToolsStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus = (string) content.GetValueForProperty("DiscoveredVMDetailVmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailPowerStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus = (string) content.GetValueForProperty("DiscoveredVMDetailPowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailVmfqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVmfqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailOsname")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailOsname = (string) content.GetValueForProperty("DiscoveredVMDetailOsname",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailOsname, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailCreatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailCreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DiscoveredVMDetailUpdatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailUpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DiscoveredVMDetailIsDeleted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted = (bool?) content.GetValueForProperty("DiscoveredVMDetailIsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("DiscoveredVMDetailLastDiscoveryTimeInUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailLastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageRcmReplicationDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MobilityAgentDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails) content.GetValueForProperty("MobilityAgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmMobilityAgentDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DiscoveredVMDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails) content.GetValueForProperty("DiscoveredVMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDiscoveredProtectedVMDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("InternalIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InternalIdentifier = (string) content.GetValueForProperty("InternalIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InternalIdentifier, global::System.Convert.ToString); + } + if (content.Contains("FabricDiscoveryMachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).FabricDiscoveryMachineId = (string) content.GetValueForProperty("FabricDiscoveryMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).FabricDiscoveryMachineId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("DiscoveryType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("ProcessorCoreCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProcessorCoreCount = (int?) content.GetValueForProperty("ProcessorCoreCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProcessorCoreCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllocatedMemoryInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AllocatedMemoryInMb = (double?) content.GetValueForProperty("AllocatedMemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AllocatedMemoryInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ProcessServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProcessServerName = (string) content.GetValueForProperty("ProcessServerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProcessServerName, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("FirmwareType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).FirmwareType = (string) content.GetValueForProperty("FirmwareType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).FirmwareType, global::System.Convert.ToString); + } + if (content.Contains("PrimaryNicIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).PrimaryNicIPAddress = (string) content.GetValueForProperty("PrimaryNicIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).PrimaryNicIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TargetGeneration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetGeneration = (string) content.GetValueForProperty("TargetGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetGeneration, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LicenseType, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetVMName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("TargetResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetLocation, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetBootDiagnosticsStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TargetNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TestNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).TestNetworkId, global::System.Convert.ToString); + } + if (content.Contains("FailoverRecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).FailoverRecoveryPointId = (string) content.GetValueForProperty("FailoverRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).FailoverRecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("LastRecoveryPointReceived")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastRpoInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRpoInSecond = (long?) content.GetValueForProperty("LastRpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LastRpoCalculatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastRecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointId = (string) content.GetValueForProperty("LastRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastRecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InitialReplicationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressPercentage = (int?) content.GetValueForProperty("InitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InitialReplicationProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProcessedByte = (long?) content.GetValueForProperty("InitialReplicationProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("InitialReplicationTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationTransferredByte = (long?) content.GetValueForProperty("InitialReplicationTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("InitialReplicationProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("InitialReplicationProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).InitialReplicationProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); + } + if (content.Contains("ResyncProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResyncProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncProcessedByte = (long?) content.GetValueForProperty("ResyncProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncTransferredByte = (long?) content.GetValueForProperty("ResyncTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth?) content.GetValueForProperty("ResyncProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth.CreateFrom); + } + if (content.Contains("ResyncRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); + } + if (content.Contains("ResyncState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState?) content.GetValueForProperty("ResyncState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ResyncState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState.CreateFrom); + } + if (content.Contains("AgentUpgradeState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MobilityAgentUpgradeState?) content.GetValueForProperty("AgentUpgradeState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MobilityAgentUpgradeState.CreateFrom); + } + if (content.Contains("LastAgentUpgradeType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeType = (string) content.GetValueForProperty("LastAgentUpgradeType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeType, global::System.Convert.ToString); + } + if (content.Contains("AgentUpgradeJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeJobId = (string) content.GetValueForProperty("AgentUpgradeJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeJobId, global::System.Convert.ToString); + } + if (content.Contains("AgentUpgradeAttemptToVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeAttemptToVersion = (string) content.GetValueForProperty("AgentUpgradeAttemptToVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeAttemptToVersion, global::System.Convert.ToString); + } + if (content.Contains("ProtectedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmProtectedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("IsLastUpgradeSuccessful")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).IsLastUpgradeSuccessful = (string) content.GetValueForProperty("IsLastUpgradeSuccessful",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).IsLastUpgradeSuccessful, global::System.Convert.ToString); + } + if (content.Contains("IsAgentRegistrationSuccessfulAfterFailover")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover = (bool?) content.GetValueForProperty("IsAgentRegistrationSuccessfulAfterFailover",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).IsAgentRegistrationSuccessfulAfterFailover, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("LastAgentUpgradeErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails[]) content.GetValueForProperty("LastAgentUpgradeErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).LastAgentUpgradeErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("AgentUpgradeBlockingErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails[]) content.GetValueForProperty("AgentUpgradeBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).AgentUpgradeBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailVersion = (string) content.GetValueForProperty("MobilityAgentDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailLatestVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion = (string) content.GetValueForProperty("MobilityAgentDetailLatestVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestVersion, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailLatestAgentReleaseDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestAgentReleaseDate = (string) content.GetValueForProperty("MobilityAgentDetailLatestAgentReleaseDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestAgentReleaseDate, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailDriverVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion = (string) content.GetValueForProperty("MobilityAgentDetailDriverVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersion, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailLatestUpgradableVersionWithoutReboot")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot = (string) content.GetValueForProperty("MobilityAgentDetailLatestUpgradableVersionWithoutReboot",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLatestUpgradableVersionWithoutReboot, global::System.Convert.ToString); + } + if (content.Contains("MobilityAgentDetailAgentVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailAgentVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailAgentVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MobilityAgentDetailDriverVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailDriverVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailDriverVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MobilityAgentDetailLastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("MobilityAgentDetailLastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailLastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MobilityAgentDetailReasonsBlockingUpgrade")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[]) content.GetValueForProperty("MobilityAgentDetailReasonsBlockingUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailReasonsBlockingUpgrade, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason.CreateFrom)); + } + if (content.Contains("MobilityAgentDetailIsUpgradeable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable = (string) content.GetValueForProperty("MobilityAgentDetailIsUpgradeable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).MobilityAgentDetailIsUpgradeable, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailVcenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterId, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailVcenterFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVcenterFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVcenterFqdn, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailDatastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailDatastore = (string[]) content.GetValueForProperty("DiscoveredVMDetailDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("DiscoveredVMDetailIpaddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress = (string[]) content.GetValueForProperty("DiscoveredVMDetailIpaddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIpaddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("DiscoveredVMDetailVmwareToolsStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus = (string) content.GetValueForProperty("DiscoveredVMDetailVmwareToolsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmwareToolsStatus, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailPowerStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus = (string) content.GetValueForProperty("DiscoveredVMDetailPowerStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailPowerStatus, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailVmfqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn = (string) content.GetValueForProperty("DiscoveredVMDetailVmfqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailVmfqdn, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailOsname")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailOsname = (string) content.GetValueForProperty("DiscoveredVMDetailOsname",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailOsname, global::System.Convert.ToString); + } + if (content.Contains("DiscoveredVMDetailCreatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailCreatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailCreatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DiscoveredVMDetailUpdatedTimestamp")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailUpdatedTimestamp",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailUpdatedTimestamp, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DiscoveredVMDetailIsDeleted")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted = (bool?) content.GetValueForProperty("DiscoveredVMDetailIsDeleted",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailIsDeleted, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("DiscoveredVMDetailLastDiscoveryTimeInUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("DiscoveredVMDetailLastDiscoveryTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal)this).DiscoveredVMDetailLastDiscoveryTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm provider specific details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmReplicationDetailsTypeConverter))] + public partial interface IInMageRcmReplicationDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReplicationDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmReplicationDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmReplicationDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmReplicationDetails.TypeConverter.cs index 5485d3604a6b..edb6a1e50b20 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReplicationDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmReplicationDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReplicationDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmReplicationDetails.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmReplicationDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmReplicationDetails.cs index b9b199f90de0..14b26dcdc485 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReplicationDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm provider specific details. public partial class InMageRcmReplicationDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(); /// Backing field for property. private string _agentUpgradeAttemptToVersion; @@ -27,11 +27,11 @@ public partial class InMageRcmReplicationDetails : public string AgentUpgradeAttemptToVersion { get => this._agentUpgradeAttemptToVersion; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails[] _agentUpgradeBlockingErrorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails[] _agentUpgradeBlockingErrorDetail; /// The agent upgrade blocking error information. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails[] AgentUpgradeBlockingErrorDetail { get => this._agentUpgradeBlockingErrorDetail; set => this._agentUpgradeBlockingErrorDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails[] AgentUpgradeBlockingErrorDetail { get => this._agentUpgradeBlockingErrorDetail; set => this._agentUpgradeBlockingErrorDetail = value; } /// Backing field for property. private string _agentUpgradeJobId; @@ -55,59 +55,59 @@ public partial class InMageRcmReplicationDetails : public double? AllocatedMemoryInMb { get => this._allocatedMemoryInMb; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails _discoveredVMDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails _discoveredVMDetail; /// The discovered VM details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails DiscoveredVMDetail { get => (this._discoveredVMDetail = this._discoveredVMDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDiscoveredProtectedVMDetails()); set => this._discoveredVMDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails DiscoveredVMDetail { get => (this._discoveredVMDetail = this._discoveredVMDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDiscoveredProtectedVMDetails()); set => this._discoveredVMDetail = value; } /// The SDS created timestamp. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? DiscoveredVMDetailCreatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).CreatedTimestamp; } + public global::System.DateTime? DiscoveredVMDetailCreatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).CreatedTimestamp; } /// The list of datastores. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] DiscoveredVMDetailDatastore { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).Datastore; } + public string[] DiscoveredVMDetailDatastore { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).Datastore; } /// The list of IP addresses. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] DiscoveredVMDetailIpaddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IPAddress; } + public string[] DiscoveredVMDetailIpaddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IPAddress; } /// A value indicating whether the VM is deleted. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public bool? DiscoveredVMDetailIsDeleted { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IsDeleted; } + public bool? DiscoveredVMDetailIsDeleted { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IsDeleted; } /// The last time when SDS information discovered in SRS. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? DiscoveredVMDetailLastDiscoveryTimeInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).LastDiscoveryTimeInUtc; } + public global::System.DateTime? DiscoveredVMDetailLastDiscoveryTimeInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).LastDiscoveryTimeInUtc; } /// The VM's OS name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiscoveredVMDetailOsname { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).OSName; } + public string DiscoveredVMDetailOsname { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).OSName; } /// The VM power status. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiscoveredVMDetailPowerStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).PowerStatus; } + public string DiscoveredVMDetailPowerStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).PowerStatus; } /// The SDS updated timestamp. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? DiscoveredVMDetailUpdatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).UpdatedTimestamp; } + public global::System.DateTime? DiscoveredVMDetailUpdatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).UpdatedTimestamp; } /// The VCenter fqdn. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiscoveredVMDetailVcenterFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterFqdn; } + public string DiscoveredVMDetailVcenterFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterFqdn; } /// The VCenter Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiscoveredVMDetailVcenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterId; } + public string DiscoveredVMDetailVcenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterId; } /// The VM fqdn. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiscoveredVMDetailVmfqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VMFqdn; } + public string DiscoveredVMDetailVmfqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VMFqdn; } /// The VMware tools status. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DiscoveredVMDetailVmwareToolsStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VmwareToolsStatus; } + public string DiscoveredVMDetailVmwareToolsStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VmwareToolsStatus; } /// Backing field for property. private string _discoveryType; @@ -175,7 +175,7 @@ public partial class InMageRcmReplicationDetails : /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } /// Backing field for property. private string _internalIdentifier; @@ -201,11 +201,11 @@ public partial class InMageRcmReplicationDetails : public string IsLastUpgradeSuccessful { get => this._isLastUpgradeSuccessful; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails[] _lastAgentUpgradeErrorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails[] _lastAgentUpgradeErrorDetail; /// The last agent upgrade error information. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails[] LastAgentUpgradeErrorDetail { get => this._lastAgentUpgradeErrorDetail; set => this._lastAgentUpgradeErrorDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails[] LastAgentUpgradeErrorDetail { get => this._lastAgentUpgradeErrorDetail; set => this._lastAgentUpgradeErrorDetail = value; } /// Backing field for property. private string _lastAgentUpgradeType; @@ -250,228 +250,228 @@ public partial class InMageRcmReplicationDetails : public string LicenseType { get => this._licenseType; set => this._licenseType = value; } /// Internal Acessors for AgentUpgradeAttemptToVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.AgentUpgradeAttemptToVersion { get => this._agentUpgradeAttemptToVersion; set { {_agentUpgradeAttemptToVersion = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.AgentUpgradeAttemptToVersion { get => this._agentUpgradeAttemptToVersion; set { {_agentUpgradeAttemptToVersion = value;} } } /// Internal Acessors for AgentUpgradeJobId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.AgentUpgradeJobId { get => this._agentUpgradeJobId; set { {_agentUpgradeJobId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.AgentUpgradeJobId { get => this._agentUpgradeJobId; set { {_agentUpgradeJobId = value;} } } /// Internal Acessors for AgentUpgradeState - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MobilityAgentUpgradeState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.AgentUpgradeState { get => this._agentUpgradeState; set { {_agentUpgradeState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MobilityAgentUpgradeState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.AgentUpgradeState { get => this._agentUpgradeState; set { {_agentUpgradeState = value;} } } /// Internal Acessors for AllocatedMemoryInMb - double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.AllocatedMemoryInMb { get => this._allocatedMemoryInMb; set { {_allocatedMemoryInMb = value;} } } + double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.AllocatedMemoryInMb { get => this._allocatedMemoryInMb; set { {_allocatedMemoryInMb = value;} } } /// Internal Acessors for DiscoveredVMDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetail { get => (this._discoveredVMDetail = this._discoveredVMDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDiscoveredProtectedVMDetails()); set { {_discoveredVMDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetail { get => (this._discoveredVMDetail = this._discoveredVMDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDiscoveredProtectedVMDetails()); set { {_discoveredVMDetail = value;} } } /// Internal Acessors for DiscoveredVMDetailCreatedTimestamp - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailCreatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).CreatedTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).CreatedTimestamp = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailCreatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).CreatedTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).CreatedTimestamp = value; } /// Internal Acessors for DiscoveredVMDetailDatastore - string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailDatastore { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).Datastore; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).Datastore = value; } + string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailDatastore { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).Datastore; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).Datastore = value; } /// Internal Acessors for DiscoveredVMDetailIpaddress - string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailIpaddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IPAddress = value; } + string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailIpaddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IPAddress = value; } /// Internal Acessors for DiscoveredVMDetailIsDeleted - bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailIsDeleted { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IsDeleted; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IsDeleted = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailIsDeleted { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IsDeleted; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).IsDeleted = value; } /// Internal Acessors for DiscoveredVMDetailLastDiscoveryTimeInUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailLastDiscoveryTimeInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).LastDiscoveryTimeInUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).LastDiscoveryTimeInUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailLastDiscoveryTimeInUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).LastDiscoveryTimeInUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).LastDiscoveryTimeInUtc = value; } /// Internal Acessors for DiscoveredVMDetailOsname - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailOsname { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).OSName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).OSName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailOsname { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).OSName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).OSName = value; } /// Internal Acessors for DiscoveredVMDetailPowerStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailPowerStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).PowerStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).PowerStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailPowerStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).PowerStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).PowerStatus = value; } /// Internal Acessors for DiscoveredVMDetailUpdatedTimestamp - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailUpdatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).UpdatedTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).UpdatedTimestamp = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailUpdatedTimestamp { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).UpdatedTimestamp; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).UpdatedTimestamp = value; } /// Internal Acessors for DiscoveredVMDetailVcenterFqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailVcenterFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterFqdn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailVcenterFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterFqdn = value; } /// Internal Acessors for DiscoveredVMDetailVcenterId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailVcenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailVcenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VCenterId = value; } /// Internal Acessors for DiscoveredVMDetailVmfqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailVmfqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VMFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VMFqdn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailVmfqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VMFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VMFqdn = value; } /// Internal Acessors for DiscoveredVMDetailVmwareToolsStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailVmwareToolsStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VmwareToolsStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VmwareToolsStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.DiscoveredVMDetailVmwareToolsStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VmwareToolsStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetailsInternal)DiscoveredVMDetail).VmwareToolsStatus = value; } /// Internal Acessors for DiscoveryType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.DiscoveryType { get => this._discoveryType; set { {_discoveryType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.DiscoveryType { get => this._discoveryType; set { {_discoveryType = value;} } } /// Internal Acessors for FabricDiscoveryMachineId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.FabricDiscoveryMachineId { get => this._fabricDiscoveryMachineId; set { {_fabricDiscoveryMachineId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.FabricDiscoveryMachineId { get => this._fabricDiscoveryMachineId; set { {_fabricDiscoveryMachineId = value;} } } /// Internal Acessors for FailoverRecoveryPointId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.FailoverRecoveryPointId { get => this._failoverRecoveryPointId; set { {_failoverRecoveryPointId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.FailoverRecoveryPointId { get => this._failoverRecoveryPointId; set { {_failoverRecoveryPointId = value;} } } /// Internal Acessors for FirmwareType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.FirmwareType { get => this._firmwareType; set { {_firmwareType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.FirmwareType { get => this._firmwareType; set { {_firmwareType = value;} } } /// Internal Acessors for InitialReplicationProcessedByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.InitialReplicationProcessedByte { get => this._initialReplicationProcessedByte; set { {_initialReplicationProcessedByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.InitialReplicationProcessedByte { get => this._initialReplicationProcessedByte; set { {_initialReplicationProcessedByte = value;} } } /// Internal Acessors for InitialReplicationProgressHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.InitialReplicationProgressHealth { get => this._initialReplicationProgressHealth; set { {_initialReplicationProgressHealth = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.InitialReplicationProgressHealth { get => this._initialReplicationProgressHealth; set { {_initialReplicationProgressHealth = value;} } } /// Internal Acessors for InitialReplicationProgressPercentage - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.InitialReplicationProgressPercentage { get => this._initialReplicationProgressPercentage; set { {_initialReplicationProgressPercentage = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.InitialReplicationProgressPercentage { get => this._initialReplicationProgressPercentage; set { {_initialReplicationProgressPercentage = value;} } } /// Internal Acessors for InitialReplicationTransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.InitialReplicationTransferredByte { get => this._initialReplicationTransferredByte; set { {_initialReplicationTransferredByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.InitialReplicationTransferredByte { get => this._initialReplicationTransferredByte; set { {_initialReplicationTransferredByte = value;} } } /// Internal Acessors for InternalIdentifier - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.InternalIdentifier { get => this._internalIdentifier; set { {_internalIdentifier = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.InternalIdentifier { get => this._internalIdentifier; set { {_internalIdentifier = value;} } } /// Internal Acessors for IsAgentRegistrationSuccessfulAfterFailover - bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.IsAgentRegistrationSuccessfulAfterFailover { get => this._isAgentRegistrationSuccessfulAfterFailover; set { {_isAgentRegistrationSuccessfulAfterFailover = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.IsAgentRegistrationSuccessfulAfterFailover { get => this._isAgentRegistrationSuccessfulAfterFailover; set { {_isAgentRegistrationSuccessfulAfterFailover = value;} } } /// Internal Acessors for IsLastUpgradeSuccessful - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.IsLastUpgradeSuccessful { get => this._isLastUpgradeSuccessful; set { {_isLastUpgradeSuccessful = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.IsLastUpgradeSuccessful { get => this._isLastUpgradeSuccessful; set { {_isLastUpgradeSuccessful = value;} } } /// Internal Acessors for LastAgentUpgradeType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.LastAgentUpgradeType { get => this._lastAgentUpgradeType; set { {_lastAgentUpgradeType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.LastAgentUpgradeType { get => this._lastAgentUpgradeType; set { {_lastAgentUpgradeType = value;} } } /// Internal Acessors for LastRecoveryPointId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.LastRecoveryPointId { get => this._lastRecoveryPointId; set { {_lastRecoveryPointId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.LastRecoveryPointId { get => this._lastRecoveryPointId; set { {_lastRecoveryPointId = value;} } } /// Internal Acessors for LastRecoveryPointReceived - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.LastRecoveryPointReceived { get => this._lastRecoveryPointReceived; set { {_lastRecoveryPointReceived = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.LastRecoveryPointReceived { get => this._lastRecoveryPointReceived; set { {_lastRecoveryPointReceived = value;} } } /// Internal Acessors for LastRpoCalculatedTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.LastRpoCalculatedTime { get => this._lastRpoCalculatedTime; set { {_lastRpoCalculatedTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.LastRpoCalculatedTime { get => this._lastRpoCalculatedTime; set { {_lastRpoCalculatedTime = value;} } } /// Internal Acessors for LastRpoInSecond - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.LastRpoInSecond { get => this._lastRpoInSecond; set { {_lastRpoInSecond = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.LastRpoInSecond { get => this._lastRpoInSecond; set { {_lastRpoInSecond = value;} } } /// Internal Acessors for MobilityAgentDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.MobilityAgentDetail { get => (this._mobilityAgentDetail = this._mobilityAgentDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmMobilityAgentDetails()); set { {_mobilityAgentDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.MobilityAgentDetail { get => (this._mobilityAgentDetail = this._mobilityAgentDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmMobilityAgentDetails()); set { {_mobilityAgentDetail = value;} } } /// Internal Acessors for MobilityAgentDetailAgentVersionExpiryDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailAgentVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).AgentVersionExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).AgentVersionExpiryDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailAgentVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).AgentVersionExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).AgentVersionExpiryDate = value; } /// Internal Acessors for MobilityAgentDetailDriverVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailDriverVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailDriverVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersion = value; } /// Internal Acessors for MobilityAgentDetailDriverVersionExpiryDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailDriverVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersionExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersionExpiryDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailDriverVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersionExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersionExpiryDate = value; } /// Internal Acessors for MobilityAgentDetailIsUpgradeable - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailIsUpgradeable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).IsUpgradeable; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).IsUpgradeable = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailIsUpgradeable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).IsUpgradeable; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).IsUpgradeable = value; } /// Internal Acessors for MobilityAgentDetailLastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LastHeartbeatUtc = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LastHeartbeatUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LastHeartbeatUtc = value; } /// Internal Acessors for MobilityAgentDetailLatestAgentReleaseDate - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailLatestAgentReleaseDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestAgentReleaseDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestAgentReleaseDate = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailLatestAgentReleaseDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestAgentReleaseDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestAgentReleaseDate = value; } /// Internal Acessors for MobilityAgentDetailLatestUpgradableVersionWithoutReboot - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailLatestUpgradableVersionWithoutReboot { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestUpgradableVersionWithoutReboot; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestUpgradableVersionWithoutReboot = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailLatestUpgradableVersionWithoutReboot { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestUpgradableVersionWithoutReboot; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestUpgradableVersionWithoutReboot = value; } /// Internal Acessors for MobilityAgentDetailLatestVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailLatestVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailLatestVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestVersion = value; } /// Internal Acessors for MobilityAgentDetailReasonsBlockingUpgrade - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailReasonsBlockingUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).ReasonsBlockingUpgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).ReasonsBlockingUpgrade = value; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailReasonsBlockingUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).ReasonsBlockingUpgrade; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).ReasonsBlockingUpgrade = value; } /// Internal Acessors for MobilityAgentDetailVersion - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).Version = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.MobilityAgentDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).Version = value; } /// Internal Acessors for MultiVMGroupName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.MultiVMGroupName { get => this._multiVMGroupName; set { {_multiVMGroupName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.MultiVMGroupName { get => this._multiVMGroupName; set { {_multiVMGroupName = value;} } } /// Internal Acessors for OSType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.OSType { get => this._oSType; set { {_oSType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.OSType { get => this._oSType; set { {_oSType = value;} } } /// Internal Acessors for PrimaryNicIPAddress - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.PrimaryNicIPAddress { get => this._primaryNicIPAddress; set { {_primaryNicIPAddress = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.PrimaryNicIPAddress { get => this._primaryNicIPAddress; set { {_primaryNicIPAddress = value;} } } /// Internal Acessors for ProcessServerId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.ProcessServerId { get => this._processServerId; set { {_processServerId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.ProcessServerId { get => this._processServerId; set { {_processServerId = value;} } } /// Internal Acessors for ProcessServerName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.ProcessServerName { get => this._processServerName; set { {_processServerName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.ProcessServerName { get => this._processServerName; set { {_processServerName = value;} } } /// Internal Acessors for ProcessorCoreCount - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.ProcessorCoreCount { get => this._processorCoreCount; set { {_processorCoreCount = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.ProcessorCoreCount { get => this._processorCoreCount; set { {_processorCoreCount = value;} } } /// Internal Acessors for ResyncProcessedByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.ResyncProcessedByte { get => this._resyncProcessedByte; set { {_resyncProcessedByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.ResyncProcessedByte { get => this._resyncProcessedByte; set { {_resyncProcessedByte = value;} } } /// Internal Acessors for ResyncProgressHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.ResyncProgressHealth { get => this._resyncProgressHealth; set { {_resyncProgressHealth = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.VMReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.ResyncProgressHealth { get => this._resyncProgressHealth; set { {_resyncProgressHealth = value;} } } /// Internal Acessors for ResyncProgressPercentage - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.ResyncProgressPercentage { get => this._resyncProgressPercentage; set { {_resyncProgressPercentage = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.ResyncProgressPercentage { get => this._resyncProgressPercentage; set { {_resyncProgressPercentage = value;} } } /// Internal Acessors for ResyncRequired - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.ResyncRequired { get => this._resyncRequired; set { {_resyncRequired = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.ResyncRequired { get => this._resyncRequired; set { {_resyncRequired = value;} } } /// Internal Acessors for ResyncState - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.ResyncState { get => this._resyncState; set { {_resyncState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.ResyncState { get => this._resyncState; set { {_resyncState = value;} } } /// Internal Acessors for ResyncTransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.ResyncTransferredByte { get => this._resyncTransferredByte; set { {_resyncTransferredByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.ResyncTransferredByte { get => this._resyncTransferredByte; set { {_resyncTransferredByte = value;} } } /// Internal Acessors for RunAsAccountId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.RunAsAccountId { get => this._runAsAccountId; set { {_runAsAccountId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.RunAsAccountId { get => this._runAsAccountId; set { {_runAsAccountId = value;} } } /// Internal Acessors for StorageAccountId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.StorageAccountId { get => this._storageAccountId; set { {_storageAccountId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.StorageAccountId { get => this._storageAccountId; set { {_storageAccountId = value;} } } /// Internal Acessors for TargetGeneration - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetailsInternal.TargetGeneration { get => this._targetGeneration; set { {_targetGeneration = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetailsInternal.TargetGeneration { get => this._targetGeneration; set { {_targetGeneration = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails _mobilityAgentDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails _mobilityAgentDetail; /// The mobility agent information. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails MobilityAgentDetail { get => (this._mobilityAgentDetail = this._mobilityAgentDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmMobilityAgentDetails()); set => this._mobilityAgentDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails MobilityAgentDetail { get => (this._mobilityAgentDetail = this._mobilityAgentDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmMobilityAgentDetails()); set => this._mobilityAgentDetail = value; } /// The agent version expiry date. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? MobilityAgentDetailAgentVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).AgentVersionExpiryDate; } + public global::System.DateTime? MobilityAgentDetailAgentVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).AgentVersionExpiryDate; } /// The driver version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MobilityAgentDetailDriverVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersion; } + public string MobilityAgentDetailDriverVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersion; } /// The driver version expiry date. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? MobilityAgentDetailDriverVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersionExpiryDate; } + public global::System.DateTime? MobilityAgentDetailDriverVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).DriverVersionExpiryDate; } /// A value indicating whether agent is upgradeable or not. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MobilityAgentDetailIsUpgradeable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).IsUpgradeable; } + public string MobilityAgentDetailIsUpgradeable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).IsUpgradeable; } /// The time of the last heartbeat received from the agent. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? MobilityAgentDetailLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LastHeartbeatUtc; } + public global::System.DateTime? MobilityAgentDetailLastHeartbeatUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LastHeartbeatUtc; } /// The latest agent version release date. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MobilityAgentDetailLatestAgentReleaseDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestAgentReleaseDate; } + public string MobilityAgentDetailLatestAgentReleaseDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestAgentReleaseDate; } /// The latest upgradeable version available without reboot. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MobilityAgentDetailLatestUpgradableVersionWithoutReboot { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestUpgradableVersionWithoutReboot; } + public string MobilityAgentDetailLatestUpgradableVersionWithoutReboot { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestUpgradableVersionWithoutReboot; } /// The latest agent version available. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MobilityAgentDetailLatestVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestVersion; } + public string MobilityAgentDetailLatestVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).LatestVersion; } /// The whether update is possible or not. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[] MobilityAgentDetailReasonsBlockingUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).ReasonsBlockingUpgrade; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentUpgradeBlockedReason[] MobilityAgentDetailReasonsBlockingUpgrade { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).ReasonsBlockingUpgrade; } /// The agent version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MobilityAgentDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).Version; } + public string MobilityAgentDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetailsInternal)MobilityAgentDetail).Version; } /// Backing field for property. private string _multiVMGroupName; @@ -516,11 +516,11 @@ public partial class InMageRcmReplicationDetails : public int? ProcessorCoreCount { get => this._processorCoreCount; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails[] _protectedDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails[] _protectedDisk; /// The list of protected disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails[] ProtectedDisk { get => this._protectedDisk; set => this._protectedDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails[] ProtectedDisk { get => this._protectedDisk; set => this._protectedDisk = value; } /// Backing field for property. private long? _resyncProcessedByte; @@ -667,11 +667,11 @@ public partial class InMageRcmReplicationDetails : public string TestNetworkId { get => this._testNetworkId; set => this._testNetworkId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetails[] _vMNic; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetails[] _vMNic; /// The network details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } /// Creates an new instance. public InMageRcmReplicationDetails() @@ -694,7 +694,7 @@ public InMageRcmReplicationDetails() /// InMageRcm provider specific details. public partial interface IInMageRcmReplicationDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings { /// The agent version to which last agent upgrade was attempted. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -710,8 +710,8 @@ public partial interface IInMageRcmReplicationDetails : ReadOnly = false, Description = @"The agent upgrade blocking error information.", SerializedName = @"agentUpgradeBlockingErrorDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails[] AgentUpgradeBlockingErrorDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails[] AgentUpgradeBlockingErrorDetail { get; set; } /// The agent upgrade job Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -934,8 +934,8 @@ public partial interface IInMageRcmReplicationDetails : ReadOnly = false, Description = @"The last agent upgrade error information.", SerializedName = @"lastAgentUpgradeErrorDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails[] LastAgentUpgradeErrorDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails[] LastAgentUpgradeErrorDetail { get; set; } /// The last agent upgrade type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -1118,8 +1118,8 @@ public partial interface IInMageRcmReplicationDetails : ReadOnly = false, Description = @"The list of protected disks.", SerializedName = @"protectedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails[] ProtectedDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails[] ProtectedDisk { get; set; } /// /// The resync processed bytes. This includes sum of total bytes transferred and matched bytes on all selected disks in source /// VM. @@ -1287,18 +1287,18 @@ public partial interface IInMageRcmReplicationDetails : ReadOnly = false, Description = @"The network details.", SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetails[] VMNic { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetails[] VMNic { get; set; } } /// InMageRcm provider specific details. internal partial interface IInMageRcmReplicationDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal { /// The agent version to which last agent upgrade was attempted. string AgentUpgradeAttemptToVersion { get; set; } /// The agent upgrade blocking error information. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails[] AgentUpgradeBlockingErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails[] AgentUpgradeBlockingErrorDetail { get; set; } /// The agent upgrade job Id. string AgentUpgradeJobId { get; set; } /// The agent auto upgrade state. @@ -1306,7 +1306,7 @@ internal partial interface IInMageRcmReplicationDetailsInternal : /// The allocated memory in MB. double? AllocatedMemoryInMb { get; set; } /// The discovered VM details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmDiscoveredProtectedVMDetails DiscoveredVMDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmDiscoveredProtectedVMDetails DiscoveredVMDetail { get; set; } /// The SDS created timestamp. global::System.DateTime? DiscoveredVMDetailCreatedTimestamp { get; set; } /// The list of datastores. @@ -1362,7 +1362,7 @@ internal partial interface IInMageRcmReplicationDetailsInternal : /// A value indicating whether last agent upgrade was successful or not. string IsLastUpgradeSuccessful { get; set; } /// The last agent upgrade error information. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails[] LastAgentUpgradeErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails[] LastAgentUpgradeErrorDetail { get; set; } /// The last agent upgrade type. string LastAgentUpgradeType { get; set; } /// The last recovery point Id. @@ -1376,7 +1376,7 @@ internal partial interface IInMageRcmReplicationDetailsInternal : /// License Type of the VM to be used. string LicenseType { get; set; } /// The mobility agent information. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmMobilityAgentDetails MobilityAgentDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmMobilityAgentDetails MobilityAgentDetail { get; set; } /// The agent version expiry date. global::System.DateTime? MobilityAgentDetailAgentVersionExpiryDate { get; set; } /// The driver version. @@ -1410,7 +1410,7 @@ internal partial interface IInMageRcmReplicationDetailsInternal : /// The processor core count. int? ProcessorCoreCount { get; set; } /// The list of protected disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails[] ProtectedDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails[] ProtectedDisk { get; set; } /// /// The resync processed bytes. This includes sum of total bytes transferred and matched bytes on all selected disks in source /// VM. @@ -1459,7 +1459,7 @@ internal partial interface IInMageRcmReplicationDetailsInternal : /// The test network Id. string TestNetworkId { get; set; } /// The network details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetails[] VMNic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetails[] VMNic { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReplicationDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmReplicationDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmReplicationDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmReplicationDetails.json.cs index 6a0ea2065dee..84630f09c465 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReplicationDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmReplicationDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmReplicationDetails(json) : null; } @@ -77,9 +77,9 @@ internal InMageRcmReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(json); - {_mobilityAgentDetail = If( json?.PropertyT("mobilityAgentDetails"), out var __jsonMobilityAgentDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmMobilityAgentDetails.FromJson(__jsonMobilityAgentDetails) : MobilityAgentDetail;} - {_discoveredVMDetail = If( json?.PropertyT("discoveredVmDetails"), out var __jsonDiscoveredVMDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmDiscoveredProtectedVMDetails.FromJson(__jsonDiscoveredVMDetails) : DiscoveredVMDetail;} + __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(json); + {_mobilityAgentDetail = If( json?.PropertyT("mobilityAgentDetails"), out var __jsonMobilityAgentDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmMobilityAgentDetails.FromJson(__jsonMobilityAgentDetails) : MobilityAgentDetail;} + {_discoveredVMDetail = If( json?.PropertyT("discoveredVmDetails"), out var __jsonDiscoveredVMDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmDiscoveredProtectedVMDetails.FromJson(__jsonDiscoveredVMDetails) : DiscoveredVMDetail;} {_internalIdentifier = If( json?.PropertyT("internalIdentifier"), out var __jsonInternalIdentifier) ? (string)__jsonInternalIdentifier : (string)InternalIdentifier;} {_fabricDiscoveryMachineId = If( json?.PropertyT("fabricDiscoveryMachineId"), out var __jsonFabricDiscoveryMachineId) ? (string)__jsonFabricDiscoveryMachineId : (string)FabricDiscoveryMachineId;} {_multiVMGroupName = If( json?.PropertyT("multiVmGroupName"), out var __jsonMultiVMGroupName) ? (string)__jsonMultiVMGroupName : (string)MultiVMGroupName;} @@ -124,12 +124,12 @@ internal InMageRcmReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate. {_lastAgentUpgradeType = If( json?.PropertyT("lastAgentUpgradeType"), out var __jsonLastAgentUpgradeType) ? (string)__jsonLastAgentUpgradeType : (string)LastAgentUpgradeType;} {_agentUpgradeJobId = If( json?.PropertyT("agentUpgradeJobId"), out var __jsonAgentUpgradeJobId) ? (string)__jsonAgentUpgradeJobId : (string)AgentUpgradeJobId;} {_agentUpgradeAttemptToVersion = If( json?.PropertyT("agentUpgradeAttemptToVersion"), out var __jsonAgentUpgradeAttemptToVersion) ? (string)__jsonAgentUpgradeAttemptToVersion : (string)AgentUpgradeAttemptToVersion;} - {_protectedDisk = If( json?.PropertyT("protectedDisks"), out var __jsonProtectedDisks) ? If( __jsonProtectedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmProtectedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmProtectedDiskDetails.FromJson(__u) )) ))() : null : ProtectedDisk;} + {_protectedDisk = If( json?.PropertyT("protectedDisks"), out var __jsonProtectedDisks) ? If( __jsonProtectedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IInMageRcmProtectedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmProtectedDiskDetails.FromJson(__u) )) ))() : null : ProtectedDisk;} {_isLastUpgradeSuccessful = If( json?.PropertyT("isLastUpgradeSuccessful"), out var __jsonIsLastUpgradeSuccessful) ? (string)__jsonIsLastUpgradeSuccessful : (string)IsLastUpgradeSuccessful;} {_isAgentRegistrationSuccessfulAfterFailover = If( json?.PropertyT("isAgentRegistrationSuccessfulAfterFailover"), out var __jsonIsAgentRegistrationSuccessfulAfterFailover) ? (bool?)__jsonIsAgentRegistrationSuccessfulAfterFailover : IsAgentRegistrationSuccessfulAfterFailover;} - {_lastAgentUpgradeErrorDetail = If( json?.PropertyT("lastAgentUpgradeErrorDetails"), out var __jsonLastAgentUpgradeErrorDetails) ? If( __jsonLastAgentUpgradeErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmLastAgentUpgradeErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmLastAgentUpgradeErrorDetails.FromJson(__p) )) ))() : null : LastAgentUpgradeErrorDetail;} - {_agentUpgradeBlockingErrorDetail = If( json?.PropertyT("agentUpgradeBlockingErrorDetails"), out var __jsonAgentUpgradeBlockingErrorDetails) ? If( __jsonAgentUpgradeBlockingErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmAgentUpgradeBlockingErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmAgentUpgradeBlockingErrorDetails.FromJson(__k) )) ))() : null : AgentUpgradeBlockingErrorDetail;} - {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmNicDetails.FromJson(__f) )) ))() : null : VMNic;} + {_lastAgentUpgradeErrorDetail = If( json?.PropertyT("lastAgentUpgradeErrorDetails"), out var __jsonLastAgentUpgradeErrorDetails) ? If( __jsonLastAgentUpgradeErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmLastAgentUpgradeErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmLastAgentUpgradeErrorDetails.FromJson(__p) )) ))() : null : LastAgentUpgradeErrorDetail;} + {_agentUpgradeBlockingErrorDetail = If( json?.PropertyT("agentUpgradeBlockingErrorDetails"), out var __jsonAgentUpgradeBlockingErrorDetails) ? If( __jsonAgentUpgradeBlockingErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmAgentUpgradeBlockingErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmAgentUpgradeBlockingErrorDetails.FromJson(__k) )) ))() : null : AgentUpgradeBlockingErrorDetail;} + {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmNicDetails.FromJson(__f) )) ))() : null : VMNic;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmReprotectInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmReprotectInput.PowerShell.cs new file mode 100644 index 000000000000..23124b47c8b8 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmReprotectInput.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm specific provider input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmReprotectInputTypeConverter))] + public partial class InMageRcmReprotectInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmReprotectInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmReprotectInput(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.Migrate.Models.Api202301.IInMageRcmReprotectInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmReprotectInput(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.Migrate.Models.Api202301.IInMageRcmReprotectInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmReprotectInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ReprotectAgentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).ReprotectAgentId = (string) content.GetValueForProperty("ReprotectAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).ReprotectAgentId, global::System.Convert.ToString); + } + if (content.Contains("DatastoreName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).DatastoreName = (string) content.GetValueForProperty("DatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).DatastoreName, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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 InMageRcmReprotectInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ReprotectAgentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).ReprotectAgentId = (string) content.GetValueForProperty("ReprotectAgentId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).ReprotectAgentId, global::System.Convert.ToString); + } + if (content.Contains("DatastoreName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).DatastoreName = (string) content.GetValueForProperty("DatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).DatastoreName, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm specific provider input. + [System.ComponentModel.TypeConverter(typeof(InMageRcmReprotectInputTypeConverter))] + public partial interface IInMageRcmReprotectInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReprotectInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmReprotectInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmReprotectInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmReprotectInput.TypeConverter.cs index 0f1e848167f7..025844606dad 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReprotectInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmReprotectInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReprotectInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmReprotectInput.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmReprotectInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmReprotectInput.cs index 341011003c15..b1909b5f2d71 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReprotectInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm specific provider input. public partial class InMageRcmReprotectInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput(); /// Backing field for property. private string _datastoreName; @@ -28,7 +28,7 @@ public partial class InMageRcmReprotectInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _logStorageAccountId; @@ -72,7 +72,7 @@ public InMageRcmReprotectInput() /// InMageRcm specific provider input. public partial interface IInMageRcmReprotectInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput { /// The target datastore name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -110,7 +110,7 @@ public partial interface IInMageRcmReprotectInput : } /// InMageRcm specific provider input. internal partial interface IInMageRcmReprotectInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal { /// The target datastore name. string DatastoreName { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReprotectInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmReprotectInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmReprotectInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmReprotectInput.json.cs index d4fc26ce4928..4534df3c52c6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmReprotectInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmReprotectInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmReprotectInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmReprotectInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmReprotectInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageRcmReprotectInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput(json); + __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput(json); {_reprotectAgentId = If( json?.PropertyT("reprotectAgentId"), out var __jsonReprotectAgentId) ? (string)__jsonReprotectAgentId : (string)ReprotectAgentId;} {_datastoreName = If( json?.PropertyT("datastoreName"), out var __jsonDatastoreName) ? (string)__jsonDatastoreName : (string)DatastoreName;} {_logStorageAccountId = If( json?.PropertyT("logStorageAccountId"), out var __jsonLogStorageAccountId) ? (string)__jsonLogStorageAccountId : (string)LogStorageAccountId;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmSyncDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmSyncDetails.PowerShell.cs new file mode 100644 index 000000000000..c608e08c86ac --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmSyncDetails.PowerShell.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm disk level sync details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmSyncDetailsTypeConverter))] + public partial class InMageRcmSyncDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmSyncDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmSyncDetails(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.Migrate.Models.Api202301.IInMageRcmSyncDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmSyncDetails(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.Migrate.Models.Api202301.IInMageRcmSyncDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmSyncDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).ProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).ProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); + } + if (content.Contains("TransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).TransferredByte = (long?) content.GetValueForProperty("TransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).TransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("Last15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).Last15MinutesTransferredByte = (long?) content.GetValueForProperty("Last15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).Last15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).LastDataTransferTimeUtc = (string) content.GetValueForProperty("LastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).LastDataTransferTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).ProcessedByte = (long?) content.GetValueForProperty("ProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).ProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).StartTime, global::System.Convert.ToString); + } + if (content.Contains("LastRefreshTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).LastRefreshTime = (string) content.GetValueForProperty("LastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).LastRefreshTime, global::System.Convert.ToString); + } + if (content.Contains("ProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).ProgressPercentage = (int?) content.GetValueForProperty("ProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).ProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageRcmSyncDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).ProgressHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth?) content.GetValueForProperty("ProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).ProgressHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth.CreateFrom); + } + if (content.Contains("TransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).TransferredByte = (long?) content.GetValueForProperty("TransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).TransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("Last15MinutesTransferredByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).Last15MinutesTransferredByte = (long?) content.GetValueForProperty("Last15MinutesTransferredByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).Last15MinutesTransferredByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LastDataTransferTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).LastDataTransferTimeUtc = (string) content.GetValueForProperty("LastDataTransferTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).LastDataTransferTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ProcessedByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).ProcessedByte = (long?) content.GetValueForProperty("ProcessedByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).ProcessedByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).StartTime, global::System.Convert.ToString); + } + if (content.Contains("LastRefreshTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).LastRefreshTime = (string) content.GetValueForProperty("LastRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).LastRefreshTime, global::System.Convert.ToString); + } + if (content.Contains("ProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).ProgressPercentage = (int?) content.GetValueForProperty("ProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal)this).ProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm disk level sync details. + [System.ComponentModel.TypeConverter(typeof(InMageRcmSyncDetailsTypeConverter))] + public partial interface IInMageRcmSyncDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmSyncDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmSyncDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmSyncDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmSyncDetails.TypeConverter.cs index e6421e2cd3e2..51f85d76b91e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmSyncDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmSyncDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmSyncDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmSyncDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmSyncDetails.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmSyncDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmSyncDetails.cs index d69e35d188e1..814a13ab3b93 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmSyncDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmSyncDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm disk level sync details. public partial class InMageRcmSyncDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal { /// Backing field for property. @@ -35,28 +35,28 @@ public partial class InMageRcmSyncDetails : public string LastRefreshTime { get => this._lastRefreshTime; } /// Internal Acessors for Last15MinutesTransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal.Last15MinutesTransferredByte { get => this._last15MinutesTransferredByte; set { {_last15MinutesTransferredByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal.Last15MinutesTransferredByte { get => this._last15MinutesTransferredByte; set { {_last15MinutesTransferredByte = value;} } } /// Internal Acessors for LastDataTransferTimeUtc - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal.LastDataTransferTimeUtc { get => this._lastDataTransferTimeUtc; set { {_lastDataTransferTimeUtc = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal.LastDataTransferTimeUtc { get => this._lastDataTransferTimeUtc; set { {_lastDataTransferTimeUtc = value;} } } /// Internal Acessors for LastRefreshTime - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal.LastRefreshTime { get => this._lastRefreshTime; set { {_lastRefreshTime = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal.LastRefreshTime { get => this._lastRefreshTime; set { {_lastRefreshTime = value;} } } /// Internal Acessors for ProcessedByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal.ProcessedByte { get => this._processedByte; set { {_processedByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal.ProcessedByte { get => this._processedByte; set { {_processedByte = value;} } } /// Internal Acessors for ProgressHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal.ProgressHealth { get => this._progressHealth; set { {_progressHealth = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskReplicationProgressHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal.ProgressHealth { get => this._progressHealth; set { {_progressHealth = value;} } } /// Internal Acessors for ProgressPercentage - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal.ProgressPercentage { get => this._progressPercentage; set { {_progressPercentage = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal.ProgressPercentage { get => this._progressPercentage; set { {_progressPercentage = value;} } } /// Internal Acessors for StartTime - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } /// Internal Acessors for TransferredByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetailsInternal.TransferredByte { get => this._transferredByte; set { {_transferredByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetailsInternal.TransferredByte { get => this._transferredByte; set { {_transferredByte = value;} } } /// Backing field for property. private long? _processedByte; diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmSyncDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmSyncDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmSyncDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmSyncDetails.json.cs index 785d79ef1bb3..446c96719e09 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmSyncDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmSyncDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmSyncDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmSyncDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmSyncDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmSyncDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmTestFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmTestFailoverInput.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmTestFailoverInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmTestFailoverInput.PowerShell.cs index 6eb809cac4b1..883533191882 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmTestFailoverInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmTestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class InMageRcmTestFailoverInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageRcmTestFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageRcmTestFailoverInput(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.Migrate.Models.Api20220501.IInMageRcmTestFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageRcmTestFailoverInput(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,21 +103,21 @@ internal InMageRcmTestFailoverInput(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("NetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInputInternal)this).NetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInputInternal)this).NetworkId, global::System.Convert.ToString); } if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType, 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,15 +132,15 @@ internal InMageRcmTestFailoverInput(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("NetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInputInternal)this).NetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInputInternal)this).NetworkId, global::System.Convert.ToString); } if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmTestFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmTestFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmTestFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmTestFailoverInput.TypeConverter.cs index 08b49f922991..62b38ef186c1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmTestFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmTestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmTestFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmTestFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmTestFailoverInput.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmTestFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmTestFailoverInput.cs index 5399b5b7bf31..bb619be8c8d3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmTestFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmTestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm provider specific input for test failover. public partial class InMageRcmTestFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _networkId; @@ -61,7 +61,7 @@ public InMageRcmTestFailoverInput() /// InMageRcm provider specific input for test failover. public partial interface IInMageRcmTestFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput { /// The test network Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -86,7 +86,7 @@ public partial interface IInMageRcmTestFailoverInput : } /// InMageRcm provider specific input for test failover. internal partial interface IInMageRcmTestFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal { /// The test network Id. string NetworkId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmTestFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmTestFailoverInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmTestFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmTestFailoverInput.json.cs index bfc57410c4f1..fca9b4f81291 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmTestFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmTestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmTestFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmTestFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmTestFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmTestFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageRcmTestFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.R { return; } - __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput(json); + __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput(json); {_networkId = If( json?.PropertyT("networkId"), out var __jsonNetworkId) ? (string)__jsonNetworkId : (string)NetworkId;} {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmUnplannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUnplannedFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..e5930c379e5d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUnplannedFailoverInput.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm provider specific input for unplanned failover. + [System.ComponentModel.TypeConverter(typeof(InMageRcmUnplannedFailoverInputTypeConverter))] + public partial class InMageRcmUnplannedFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmUnplannedFailoverInput(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.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmUnplannedFailoverInput(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.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmUnplannedFailoverInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PerformShutdown")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInputInternal)this).PerformShutdown = (string) content.GetValueForProperty("PerformShutdown",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInputInternal)this).PerformShutdown, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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 InMageRcmUnplannedFailoverInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PerformShutdown")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInputInternal)this).PerformShutdown = (string) content.GetValueForProperty("PerformShutdown",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInputInternal)this).PerformShutdown, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm provider specific input for unplanned failover. + [System.ComponentModel.TypeConverter(typeof(InMageRcmUnplannedFailoverInputTypeConverter))] + public partial interface IInMageRcmUnplannedFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUnplannedFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUnplannedFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmUnplannedFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmUnplannedFailoverInput.TypeConverter.cs index 3199d09cbe0e..71959cec7009 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUnplannedFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUnplannedFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUnplannedFailoverInput.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmUnplannedFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmUnplannedFailoverInput.cs index 2c59e076515d..f5c2420818ae 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUnplannedFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm provider specific input for unplanned failover. public partial class InMageRcmUnplannedFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _performShutdown; @@ -61,7 +61,7 @@ public InMageRcmUnplannedFailoverInput() /// InMageRcm provider specific input for unplanned failover. public partial interface IInMageRcmUnplannedFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput { /// A value indicating whether VM is to be shutdown. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -86,7 +86,7 @@ public partial interface IInMageRcmUnplannedFailoverInput : } /// InMageRcm provider specific input for unplanned failover. internal partial interface IInMageRcmUnplannedFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal { /// A value indicating whether VM is to be shutdown. string PerformShutdown { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUnplannedFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUnplannedFailoverInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmUnplannedFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmUnplannedFailoverInput.json.cs index 78884ce9c133..b57843b4a2e1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUnplannedFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmUnplannedFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUnplannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUnplannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmUnplannedFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageRcmUnplannedFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput(json); + __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput(json); {_performShutdown = If( json?.PropertyT("performShutdown"), out var __jsonPerformShutdown) ? (string)__jsonPerformShutdown : (string)PerformShutdown;} {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateApplianceForReplicationProtectedItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateApplianceForReplicationProtectedItemInput.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateApplianceForReplicationProtectedItemInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateApplianceForReplicationProtectedItemInput.PowerShell.cs index 1aa4272d2695..a7705a265a97 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateApplianceForReplicationProtectedItemInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateApplianceForReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -57,29 +57,29 @@ public partial class InMageRcmUpdateApplianceForReplicationProtectedItemInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageRcmUpdateApplianceForReplicationProtectedItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateApplianceForReplicationProtectedItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageRcmUpdateApplianceForReplicationProtectedItemInput(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.Migrate.Models.Api20220501.IInMageRcmUpdateApplianceForReplicationProtectedItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateApplianceForReplicationProtectedItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageRcmUpdateApplianceForReplicationProtectedItemInput(content); } @@ -92,10 +92,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateApplianceForReplicationProtectedItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateApplianceForReplicationProtectedItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -110,17 +110,17 @@ internal InMageRcmUpdateApplianceForReplicationProtectedItemInput(global::System // actually deserialize if (content.Contains("RunAsAccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateApplianceForReplicationProtectedItemInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateApplianceForReplicationProtectedItemInputInternal)this).RunAsAccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateApplianceForReplicationProtectedItemInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateApplianceForReplicationProtectedItemInputInternal)this).RunAsAccountId, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType, 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. @@ -135,11 +135,11 @@ internal InMageRcmUpdateApplianceForReplicationProtectedItemInput(global::System // actually deserialize if (content.Contains("RunAsAccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateApplianceForReplicationProtectedItemInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateApplianceForReplicationProtectedItemInputInternal)this).RunAsAccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateApplianceForReplicationProtectedItemInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateApplianceForReplicationProtectedItemInputInternal)this).RunAsAccountId, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateApplianceForReplicationProtectedItemInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateApplianceForReplicationProtectedItemInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateApplianceForReplicationProtectedItemInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateApplianceForReplicationProtectedItemInput.TypeConverter.cs index 016844b6e260..fb734ac4527c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateApplianceForReplicationProtectedItemInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateApplianceForReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no /// suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateApplianceForReplicationProtectedItemInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateApplianceForReplicationProtectedItemInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateApplianceForReplicationProtectedItemInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateApplianceForReplicationProtectedItemInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateApplianceForReplicationProtectedItemInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateApplianceForReplicationProtectedItemInput.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateApplianceForReplicationProtectedItemInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateApplianceForReplicationProtectedItemInput.cs index 93559f98ec11..4b53ed1fd4c3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateApplianceForReplicationProtectedItemInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateApplianceForReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,19 +11,19 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// InMageRcm provider specific input to update appliance for replication protected item. /// public partial class InMageRcmUpdateApplianceForReplicationProtectedItemInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateApplianceForReplicationProtectedItemInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateApplianceForReplicationProtectedItemInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateApplianceForReplicationProtectedItemInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateApplianceForReplicationProtectedItemInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput __updateApplianceForReplicationProtectedItemProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput __updateApplianceForReplicationProtectedItemProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)__updateApplianceForReplicationProtectedItemProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)__updateApplianceForReplicationProtectedItemProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)__updateApplianceForReplicationProtectedItemProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)__updateApplianceForReplicationProtectedItemProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _runAsAccountId; @@ -55,7 +55,7 @@ public InMageRcmUpdateApplianceForReplicationProtectedItemInput() /// InMageRcm provider specific input to update appliance for replication protected item. public partial interface IInMageRcmUpdateApplianceForReplicationProtectedItemInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput { /// The run as account Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -69,7 +69,7 @@ public partial interface IInMageRcmUpdateApplianceForReplicationProtectedItemInp } /// InMageRcm provider specific input to update appliance for replication protected item. internal partial interface IInMageRcmUpdateApplianceForReplicationProtectedItemInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal { /// The run as account Id. string RunAsAccountId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateApplianceForReplicationProtectedItemInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateApplianceForReplicationProtectedItemInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateApplianceForReplicationProtectedItemInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateApplianceForReplicationProtectedItemInput.json.cs index 288280bdc31c..9674076fdf1f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateApplianceForReplicationProtectedItemInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateApplianceForReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class InMageRcmUpdateApplianceForReplicationProtectedItemInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateApplianceForReplicationProtectedItemInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateApplianceForReplicationProtectedItemInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateApplianceForReplicationProtectedItemInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateApplianceForReplicationProtectedItemInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateApplianceForReplicationProtectedItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateApplianceForReplicationProtectedItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmUpdateApplianceForReplicationProtectedItemInput(json) : null; } @@ -80,7 +80,7 @@ internal InMageRcmUpdateApplianceForReplicationProtectedItemInput(Microsoft.Azur { return; } - __updateApplianceForReplicationProtectedItemProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemProviderSpecificInput(json); + __updateApplianceForReplicationProtectedItemProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemProviderSpecificInput(json); {_runAsAccountId = If( json?.PropertyT("runAsAccountId"), out var __jsonRunAsAccountId) ? (string)__jsonRunAsAccountId : (string)RunAsAccountId;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateContainerMappingInput.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateContainerMappingInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateContainerMappingInput.PowerShell.cs index 2f7f3054be4d..d4b9ce712ff6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateContainerMappingInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageRcmUpdateContainerMappingInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageRcmUpdateContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageRcmUpdateContainerMappingInput(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.Migrate.Models.Api20220501.IInMageRcmUpdateContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageRcmUpdateContainerMappingInput(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,17 +107,17 @@ internal InMageRcmUpdateContainerMappingInput(global::System.Collections.IDictio // actually deserialize if (content.Contains("EnableAgentAutoUpgrade")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateContainerMappingInputInternal)this).EnableAgentAutoUpgrade = (string) content.GetValueForProperty("EnableAgentAutoUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateContainerMappingInputInternal)this).EnableAgentAutoUpgrade, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateContainerMappingInputInternal)this).EnableAgentAutoUpgrade = (string) content.GetValueForProperty("EnableAgentAutoUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateContainerMappingInputInternal)this).EnableAgentAutoUpgrade, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType, 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,11 +132,11 @@ internal InMageRcmUpdateContainerMappingInput(global::System.Management.Automati // actually deserialize if (content.Contains("EnableAgentAutoUpgrade")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateContainerMappingInputInternal)this).EnableAgentAutoUpgrade = (string) content.GetValueForProperty("EnableAgentAutoUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateContainerMappingInputInternal)this).EnableAgentAutoUpgrade, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateContainerMappingInputInternal)this).EnableAgentAutoUpgrade = (string) content.GetValueForProperty("EnableAgentAutoUpgrade",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateContainerMappingInputInternal)this).EnableAgentAutoUpgrade, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateContainerMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateContainerMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateContainerMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateContainerMappingInput.TypeConverter.cs index 4cdd06d6ac83..e2885b8487c7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateContainerMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmUpdateContainerMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateContainerMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateContainerMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateContainerMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateContainerMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateContainerMappingInput.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateContainerMappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateContainerMappingInput.cs index d251152244c9..8db6a95e6a43 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateContainerMappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm update protection container mapping. public partial class InMageRcmUpdateContainerMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateContainerMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateContainerMappingInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateContainerMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateContainerMappingInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput __replicationProviderSpecificUpdateContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificUpdateContainerMappingInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput __replicationProviderSpecificUpdateContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificUpdateContainerMappingInput(); /// Backing field for property. private string _enableAgentAutoUpgrade; @@ -28,7 +28,7 @@ public partial class InMageRcmUpdateContainerMappingInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)__replicationProviderSpecificUpdateContainerMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)__replicationProviderSpecificUpdateContainerMappingInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)__replicationProviderSpecificUpdateContainerMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)__replicationProviderSpecificUpdateContainerMappingInput).InstanceType = value ; } /// Creates an new instance. public InMageRcmUpdateContainerMappingInput() @@ -51,7 +51,7 @@ public InMageRcmUpdateContainerMappingInput() /// InMageRcm update protection container mapping. public partial interface IInMageRcmUpdateContainerMappingInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput { /// A value indicating whether agent auto upgrade has to be enabled. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IInMageRcmUpdateContainerMappingInput : } /// InMageRcm update protection container mapping. internal partial interface IInMageRcmUpdateContainerMappingInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal { /// A value indicating whether agent auto upgrade has to be enabled. string EnableAgentAutoUpgrade { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateContainerMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateContainerMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateContainerMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateContainerMappingInput.json.cs index 048685c7a64a..af116f83ab12 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateContainerMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmUpdateContainerMappingInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateContainerMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateContainerMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateContainerMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateContainerMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmUpdateContainerMappingInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageRcmUpdateContainerMappingInput(Microsoft.Azure.PowerShell.Cmdlets { return; } - __replicationProviderSpecificUpdateContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificUpdateContainerMappingInput(json); + __replicationProviderSpecificUpdateContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificUpdateContainerMappingInput(json); {_enableAgentAutoUpgrade = If( json?.PropertyT("enableAgentAutoUpgrade"), out var __jsonEnableAgentAutoUpgrade) ? (string)__jsonEnableAgentAutoUpgrade : (string)EnableAgentAutoUpgrade;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateReplicationProtectedItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateReplicationProtectedItemInput.PowerShell.cs new file mode 100644 index 000000000000..2a9bfe8f96df --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateReplicationProtectedItemInput.PowerShell.cs @@ -0,0 +1,237 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageRcm provider specific input to update replication protected item. + [System.ComponentModel.TypeConverter(typeof(InMageRcmUpdateReplicationProtectedItemInputTypeConverter))] + public partial class InMageRcmUpdateReplicationProtectedItemInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageRcmUpdateReplicationProtectedItemInput(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.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageRcmUpdateReplicationProtectedItemInput(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.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageRcmUpdateReplicationProtectedItemInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("TargetResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetBootDiagnosticsStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TestNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TestNetworkId, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInput[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmNicInputTypeConverter.ConvertFrom)); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, 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 InMageRcmUpdateReplicationProtectedItemInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("TargetResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetBootDiagnosticsStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TargetNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TestNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).TestNetworkId, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInput[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmNicInputTypeConverter.ConvertFrom)); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageRcm provider specific input to update replication protected item. + [System.ComponentModel.TypeConverter(typeof(InMageRcmUpdateReplicationProtectedItemInputTypeConverter))] + public partial interface IInMageRcmUpdateReplicationProtectedItemInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateReplicationProtectedItemInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateReplicationProtectedItemInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateReplicationProtectedItemInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateReplicationProtectedItemInput.TypeConverter.cs index 3644d44ce204..bb8f606f107e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateReplicationProtectedItemInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateReplicationProtectedItemInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateReplicationProtectedItemInput.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateReplicationProtectedItemInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateReplicationProtectedItemInput.cs index 92c1d79fb3e4..cf2d872b9343 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateReplicationProtectedItemInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageRcm provider specific input to update replication protected item. public partial class InMageRcmUpdateReplicationProtectedItemInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)__updateReplicationProtectedItemProviderInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? _licenseType; @@ -96,11 +96,11 @@ public partial class InMageRcmUpdateReplicationProtectedItemInput : public string TestNetworkId { get => this._testNetworkId; set => this._testNetworkId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInput[] _vMNic; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInput[] _vMNic; /// The list of NIC details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInput[] VMNic { get => this._vMNic; set => this._vMNic = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInput[] VMNic { get => this._vMNic; set => this._vMNic = value; } /// /// Creates an new instance. @@ -125,7 +125,7 @@ public InMageRcmUpdateReplicationProtectedItemInput() /// InMageRcm provider specific input to update replication protected item. public partial interface IInMageRcmUpdateReplicationProtectedItemInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput { /// The license type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -213,13 +213,13 @@ public partial interface IInMageRcmUpdateReplicationProtectedItemInput : ReadOnly = false, Description = @"The list of NIC details.", SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInput[] VMNic { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInput[] VMNic { get; set; } } /// InMageRcm provider specific input to update replication protected item. internal partial interface IInMageRcmUpdateReplicationProtectedItemInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal { /// The license type. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get; set; } @@ -242,7 +242,7 @@ internal partial interface IInMageRcmUpdateReplicationProtectedItemInputInternal /// The test network ARM Id. string TestNetworkId { get; set; } /// The list of NIC details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmNicInput[] VMNic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmNicInput[] VMNic { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateReplicationProtectedItemInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateReplicationProtectedItemInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateReplicationProtectedItemInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateReplicationProtectedItemInput.json.cs index 4751353ae331..56b2a18033dc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageRcmUpdateReplicationProtectedItemInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageRcmUpdateReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageRcmUpdateReplicationProtectedItemInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageRcmUpdateReplicationProtectedItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageRcmUpdateReplicationProtectedItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageRcmUpdateReplicationProtectedItemInput(json) : null; } @@ -78,7 +78,7 @@ internal InMageRcmUpdateReplicationProtectedItemInput(Microsoft.Azure.PowerShell { return; } - __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInput(json); + __updateReplicationProtectedItemProviderInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInput(json); {_targetVMName = If( json?.PropertyT("targetVmName"), out var __jsonTargetVMName) ? (string)__jsonTargetVMName : (string)TargetVMName;} {_targetVMSize = If( json?.PropertyT("targetVmSize"), out var __jsonTargetVMSize) ? (string)__jsonTargetVMSize : (string)TargetVMSize;} {_targetResourceGroupId = If( json?.PropertyT("targetResourceGroupId"), out var __jsonTargetResourceGroupId) ? (string)__jsonTargetResourceGroupId : (string)TargetResourceGroupId;} @@ -88,7 +88,7 @@ internal InMageRcmUpdateReplicationProtectedItemInput(Microsoft.Azure.PowerShell {_targetBootDiagnosticsStorageAccountId = If( json?.PropertyT("targetBootDiagnosticsStorageAccountId"), out var __jsonTargetBootDiagnosticsStorageAccountId) ? (string)__jsonTargetBootDiagnosticsStorageAccountId : (string)TargetBootDiagnosticsStorageAccountId;} {_targetNetworkId = If( json?.PropertyT("targetNetworkId"), out var __jsonTargetNetworkId) ? (string)__jsonTargetNetworkId : (string)TargetNetworkId;} {_testNetworkId = If( json?.PropertyT("testNetworkId"), out var __jsonTestNetworkId) ? (string)__jsonTestNetworkId : (string)TestNetworkId;} - {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageRcmNicInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageRcmNicInput.FromJson(__u) )) ))() : null : VMNic;} + {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IInMageRcmNicInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageRcmNicInput.FromJson(__u) )) ))() : null : VMNic;} {_licenseType = If( json?.PropertyT("licenseType"), out var __jsonLicenseType) ? (string)__jsonLicenseType : (string)LicenseType;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetails.PowerShell.cs new file mode 100644 index 000000000000..603fbb3ef46f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetails.PowerShell.cs @@ -0,0 +1,536 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMage provider specific settings. + [System.ComponentModel.TypeConverter(typeof(InMageReplicationDetailsTypeConverter))] + public partial class InMageReplicationDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageReplicationDetails(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.Migrate.Models.Api202301.IInMageReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageReplicationDetails(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.Migrate.Models.Api202301.IInMageReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageReplicationDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("OSDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDiskDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ResyncDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ResyncDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails) content.GetValueForProperty("ResyncDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ResyncDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("AgentDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetails) content.GetValueForProperty("AgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAgentDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ActiveSiteType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ActiveSiteType = (string) content.GetValueForProperty("ActiveSiteType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ActiveSiteType, global::System.Convert.ToString); + } + if (content.Contains("SourceVMCpuCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).SourceVMCpuCount = (int?) content.GetValueForProperty("SourceVMCpuCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).SourceVMCpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SourceVMRamSizeInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).SourceVMRamSizeInMb = (int?) content.GetValueForProperty("SourceVMRamSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).SourceVMRamSizeInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ProtectionStage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); + } + if (content.Contains("VMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("RetentionWindowStart")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RetentionWindowStart = (global::System.DateTime?) content.GetValueForProperty("RetentionWindowStart",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RetentionWindowStart, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RetentionWindowEnd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RetentionWindowEnd = (global::System.DateTime?) content.GetValueForProperty("RetentionWindowEnd",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RetentionWindowEnd, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("CompressedDataRateInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).CompressedDataRateInMb = (double?) content.GetValueForProperty("CompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).CompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("UncompressedDataRateInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).UncompressedDataRateInMb = (double?) content.GetValueForProperty("UncompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).UncompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("RpoInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ProtectedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageProtectedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("MasterTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MasterTargetId, global::System.Convert.ToString); + } + if (content.Contains("ConsistencyPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ConsistencyPoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints) content.GetValueForProperty("ConsistencyPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ConsistencyPoint, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageReplicationDetailsConsistencyPointsTypeConverter.ConvertFrom); + } + if (content.Contains("DiskResized")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).DiskResized, global::System.Convert.ToString); + } + if (content.Contains("RebootAfterUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RebootAfterUpdateStatus = (string) content.GetValueForProperty("RebootAfterUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RebootAfterUpdateStatus, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); + } + if (content.Contains("VCenterInfrastructureId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VCenterInfrastructureId = (string) content.GetValueForProperty("VCenterInfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VCenterInfrastructureId, global::System.Convert.ToString); + } + if (content.Contains("InfrastructureVMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).InfrastructureVMId = (string) content.GetValueForProperty("InfrastructureVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).InfrastructureVMId, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("DiscoveryType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); + } + if (content.Contains("AzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AzureStorageAccountId = (string) content.GetValueForProperty("AzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AzureStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("Datastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ValidationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("LastRpoCalculatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastUpdateReceivedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).LastUpdateReceivedTime = (global::System.DateTime?) content.GetValueForProperty("LastUpdateReceivedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).LastUpdateReceivedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ReplicaId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ReplicaId = (string) content.GetValueForProperty("ReplicaId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ReplicaId, global::System.Convert.ToString); + } + if (content.Contains("OSVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSVersion, global::System.Convert.ToString); + } + if (content.Contains("IsAdditionalStatsAvailable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).IsAdditionalStatsAvailable = (bool?) content.GetValueForProperty("IsAdditionalStatsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).IsAdditionalStatsAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TotalDataTransferred")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).TotalDataTransferred = (long?) content.GetValueForProperty("TotalDataTransferred",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).TotalDataTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("TotalProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).TotalProgressHealth = (string) content.GetValueForProperty("TotalProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).TotalProgressHealth, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsvhdId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetailOsvhdId = (string) content.GetValueForProperty("OSDetailOsvhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetailOsvhdId, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOstype")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); + } + if (content.Contains("OSDetailVhdName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetailVhdName = (string) content.GetValueForProperty("OSDetailVhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetailVhdName, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailInitialReplicationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationType = (string) content.GetValueForProperty("ResyncDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationType, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailInitialReplicationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("ResyncDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationProgressPercentage, global::System.Convert.ToString); + } + if (content.Contains("AgentDetailAgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailAgentVersion = (string) content.GetValueForProperty("AgentDetailAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailAgentVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentDetailAgentUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailAgentUpdateStatus = (string) content.GetValueForProperty("AgentDetailAgentUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailAgentUpdateStatus, global::System.Convert.ToString); + } + if (content.Contains("AgentDetailPostUpdateRebootStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailPostUpdateRebootStatus = (string) content.GetValueForProperty("AgentDetailPostUpdateRebootStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailPostUpdateRebootStatus, global::System.Convert.ToString); + } + if (content.Contains("AgentDetailAgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailAgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentDetailAgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailAgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageReplicationDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("OSDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDiskDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ResyncDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ResyncDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails) content.GetValueForProperty("ResyncDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ResyncDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("AgentDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetails) content.GetValueForProperty("AgentDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAgentDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ActiveSiteType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ActiveSiteType = (string) content.GetValueForProperty("ActiveSiteType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ActiveSiteType, global::System.Convert.ToString); + } + if (content.Contains("SourceVMCpuCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).SourceVMCpuCount = (int?) content.GetValueForProperty("SourceVMCpuCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).SourceVMCpuCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SourceVMRamSizeInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).SourceVMRamSizeInMb = (int?) content.GetValueForProperty("SourceVMRamSizeInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).SourceVMRamSizeInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ProtectionStage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ProtectionStage = (string) content.GetValueForProperty("ProtectionStage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ProtectionStage, global::System.Convert.ToString); + } + if (content.Contains("VMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMId, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMProtectionState = (string) content.GetValueForProperty("VMProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMProtectionState, global::System.Convert.ToString); + } + if (content.Contains("VMProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMProtectionStateDescription = (string) content.GetValueForProperty("VMProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("RetentionWindowStart")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RetentionWindowStart = (global::System.DateTime?) content.GetValueForProperty("RetentionWindowStart",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RetentionWindowStart, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RetentionWindowEnd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RetentionWindowEnd = (global::System.DateTime?) content.GetValueForProperty("RetentionWindowEnd",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RetentionWindowEnd, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("CompressedDataRateInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).CompressedDataRateInMb = (double?) content.GetValueForProperty("CompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).CompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("UncompressedDataRateInMb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).UncompressedDataRateInMb = (double?) content.GetValueForProperty("UncompressedDataRateInMb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).UncompressedDataRateInMb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("RpoInSecond")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RpoInSecond = (long?) content.GetValueForProperty("RpoInSecond",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RpoInSecond, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ProtectedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageProtectedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("MasterTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MasterTargetId, global::System.Convert.ToString); + } + if (content.Contains("ConsistencyPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ConsistencyPoint = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints) content.GetValueForProperty("ConsistencyPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ConsistencyPoint, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageReplicationDetailsConsistencyPointsTypeConverter.ConvertFrom); + } + if (content.Contains("DiskResized")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).DiskResized = (string) content.GetValueForProperty("DiskResized",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).DiskResized, global::System.Convert.ToString); + } + if (content.Contains("RebootAfterUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RebootAfterUpdateStatus = (string) content.GetValueForProperty("RebootAfterUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).RebootAfterUpdateStatus, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MultiVMGroupId = (string) content.GetValueForProperty("MultiVMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MultiVMGroupId, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MultiVMGroupName = (string) content.GetValueForProperty("MultiVMGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MultiVMGroupName, global::System.Convert.ToString); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MultiVMSyncStatus = (string) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).MultiVMSyncStatus, global::System.Convert.ToString); + } + if (content.Contains("VCenterInfrastructureId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VCenterInfrastructureId = (string) content.GetValueForProperty("VCenterInfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VCenterInfrastructureId, global::System.Convert.ToString); + } + if (content.Contains("InfrastructureVMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).InfrastructureVMId = (string) content.GetValueForProperty("InfrastructureVMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).InfrastructureVMId, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("DiscoveryType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); + } + if (content.Contains("AzureStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AzureStorageAccountId = (string) content.GetValueForProperty("AzureStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AzureStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("Datastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).Datastore = (string[]) content.GetValueForProperty("Datastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).Datastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ValidationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("LastRpoCalculatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).LastRpoCalculatedTime = (global::System.DateTime?) content.GetValueForProperty("LastRpoCalculatedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).LastRpoCalculatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastUpdateReceivedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).LastUpdateReceivedTime = (global::System.DateTime?) content.GetValueForProperty("LastUpdateReceivedTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).LastUpdateReceivedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ReplicaId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ReplicaId = (string) content.GetValueForProperty("ReplicaId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ReplicaId, global::System.Convert.ToString); + } + if (content.Contains("OSVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSVersion, global::System.Convert.ToString); + } + if (content.Contains("IsAdditionalStatsAvailable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).IsAdditionalStatsAvailable = (bool?) content.GetValueForProperty("IsAdditionalStatsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).IsAdditionalStatsAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TotalDataTransferred")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).TotalDataTransferred = (long?) content.GetValueForProperty("TotalDataTransferred",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).TotalDataTransferred, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("TotalProgressHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).TotalProgressHealth = (string) content.GetValueForProperty("TotalProgressHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).TotalProgressHealth, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsvhdId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetailOsvhdId = (string) content.GetValueForProperty("OSDetailOsvhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetailOsvhdId, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOstype")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); + } + if (content.Contains("OSDetailVhdName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetailVhdName = (string) content.GetValueForProperty("OSDetailVhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).OSDetailVhdName, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailInitialReplicationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationType = (string) content.GetValueForProperty("ResyncDetailInitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationType, global::System.Convert.ToString); + } + if (content.Contains("ResyncDetailInitialReplicationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationProgressPercentage = (string) content.GetValueForProperty("ResyncDetailInitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).ResyncDetailInitialReplicationProgressPercentage, global::System.Convert.ToString); + } + if (content.Contains("AgentDetailAgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailAgentVersion = (string) content.GetValueForProperty("AgentDetailAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailAgentVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentDetailAgentUpdateStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailAgentUpdateStatus = (string) content.GetValueForProperty("AgentDetailAgentUpdateStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailAgentUpdateStatus, global::System.Convert.ToString); + } + if (content.Contains("AgentDetailPostUpdateRebootStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailPostUpdateRebootStatus = (string) content.GetValueForProperty("AgentDetailPostUpdateRebootStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailPostUpdateRebootStatus, global::System.Convert.ToString); + } + if (content.Contains("AgentDetailAgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailAgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentDetailAgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal)this).AgentDetailAgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMage provider specific settings. + [System.ComponentModel.TypeConverter(typeof(InMageReplicationDetailsTypeConverter))] + public partial interface IInMageReplicationDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageReplicationDetails.TypeConverter.cs index 4a1c29442653..ab994aad7906 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageReplicationDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetails.cs b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetails.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InMageReplicationDetails.cs index 56af51658d8c..7eab47586ccd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMage provider specific settings. public partial class InMageReplicationDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(); /// Backing field for property. private string _activeSiteType; @@ -30,27 +30,27 @@ public partial class InMageReplicationDetails : public string ActiveSiteType { get => this._activeSiteType; set => this._activeSiteType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetails _agentDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetails _agentDetail; /// The agent details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetails AgentDetail { get => (this._agentDetail = this._agentDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAgentDetails()); set => this._agentDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetails AgentDetail { get => (this._agentDetail = this._agentDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAgentDetails()); set => this._agentDetail = value; } /// Agent expiry date. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? AgentDetailAgentExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)AgentDetail).AgentExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)AgentDetail).AgentExpiryDate = value ?? default(global::System.DateTime); } + public global::System.DateTime? AgentDetailAgentExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)AgentDetail).AgentExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)AgentDetail).AgentExpiryDate = value ?? default(global::System.DateTime); } /// A value indicating whether installed agent needs to be updated. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AgentDetailAgentUpdateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)AgentDetail).AgentUpdateStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)AgentDetail).AgentUpdateStatus = value ?? null; } + public string AgentDetailAgentUpdateStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)AgentDetail).AgentUpdateStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)AgentDetail).AgentUpdateStatus = value ?? null; } /// The agent version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AgentDetailAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)AgentDetail).AgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)AgentDetail).AgentVersion = value ?? null; } + public string AgentDetailAgentVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)AgentDetail).AgentVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)AgentDetail).AgentVersion = value ?? null; } /// A value indicating whether reboot is required after update is applied. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AgentDetailPostUpdateRebootStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)AgentDetail).PostUpdateRebootStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetailsInternal)AgentDetail).PostUpdateRebootStatus = value ?? null; } + public string AgentDetailPostUpdateRebootStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)AgentDetail).PostUpdateRebootStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetailsInternal)AgentDetail).PostUpdateRebootStatus = value ?? null; } /// Backing field for property. private string _azureStorageAccountId; @@ -70,11 +70,11 @@ public partial class InMageReplicationDetails : public double? CompressedDataRateInMb { get => this._compressedDataRateInMb; set => this._compressedDataRateInMb = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints _consistencyPoint; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints _consistencyPoint; /// The collection of Consistency points. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints ConsistencyPoint { get => (this._consistencyPoint = this._consistencyPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageReplicationDetailsConsistencyPoints()); set => this._consistencyPoint = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints ConsistencyPoint { get => (this._consistencyPoint = this._consistencyPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageReplicationDetailsConsistencyPoints()); set => this._consistencyPoint = value; } /// Backing field for property. private string[] _datastore; @@ -115,7 +115,7 @@ public partial class InMageReplicationDetails : /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)__replicationProviderSpecificSettings).InstanceType = value ; } /// Backing field for property. private bool? _isAdditionalStatsAvailable; @@ -153,13 +153,13 @@ public partial class InMageReplicationDetails : public string MasterTargetId { get => this._masterTargetId; set => this._masterTargetId = value; } /// Internal Acessors for AgentDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal.AgentDetail { get => (this._agentDetail = this._agentDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAgentDetails()); set { {_agentDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal.AgentDetail { get => (this._agentDetail = this._agentDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAgentDetails()); set { {_agentDetail = value;} } } /// Internal Acessors for OSDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal.OSDetail { get => (this._oSDetail = this._oSDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDiskDetails()); set { {_oSDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal.OSDetail { get => (this._oSDetail = this._oSDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDiskDetails()); set { {_oSDetail = value;} } } /// Internal Acessors for ResyncDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsInternal.ResyncDetail { get => (this._resyncDetail = this._resyncDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails()); set { {_resyncDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsInternal.ResyncDetail { get => (this._resyncDetail = this._resyncDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails()); set { {_resyncDetail = value;} } } /// Backing field for property. private string _multiVMGroupId; @@ -183,23 +183,23 @@ public partial class InMageReplicationDetails : public string MultiVMSyncStatus { get => this._multiVMSyncStatus; set => this._multiVMSyncStatus = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetails _oSDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails _oSDetail; /// The OS details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetails OSDetail { get => (this._oSDetail = this._oSDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDiskDetails()); set => this._oSDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails OSDetail { get => (this._oSDetail = this._oSDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDiskDetails()); set => this._oSDetail = value; } /// The type of the OS on the VM. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)OSDetail).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)OSDetail).OSType = value ?? null; } + public string OSDetailOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)OSDetail).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)OSDetail).OSType = value ?? null; } /// The id of the disk containing the OS. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailOsvhdId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)OSDetail).OSVhdId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)OSDetail).OSVhdId = value ?? null; } + public string OSDetailOsvhdId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)OSDetail).OSVhdId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)OSDetail).OSVhdId = value ?? null; } /// The OS disk VHD name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string OSDetailVhdName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)OSDetail).VhdName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)OSDetail).VhdName = value ?? null; } + public string OSDetailVhdName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)OSDetail).VhdName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)OSDetail).VhdName = value ?? null; } /// Backing field for property. private string _oSVersion; @@ -216,11 +216,11 @@ public partial class InMageReplicationDetails : public string ProcessServerId { get => this._processServerId; set => this._processServerId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetails[] _protectedDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetails[] _protectedDisk; /// The list of protected disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetails[] ProtectedDisk { get => this._protectedDisk; set => this._protectedDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetails[] ProtectedDisk { get => this._protectedDisk; set => this._protectedDisk = value; } /// Backing field for property. private string _protectionStage; @@ -244,19 +244,19 @@ public partial class InMageReplicationDetails : public string ReplicaId { get => this._replicaId; set => this._replicaId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails _resyncDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails _resyncDetail; /// The resync details of the machine. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails ResyncDetail { get => (this._resyncDetail = this._resyncDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails()); set => this._resyncDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails ResyncDetail { get => (this._resyncDetail = this._resyncDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails()); set => this._resyncDetail = value; } /// The initial replication progress percentage. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResyncDetailInitialReplicationProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)ResyncDetail).InitialReplicationProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)ResyncDetail).InitialReplicationProgressPercentage = value ?? null; } + public string ResyncDetailInitialReplicationProgressPercentage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)ResyncDetail).InitialReplicationProgressPercentage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)ResyncDetail).InitialReplicationProgressPercentage = value ?? null; } /// Initial replication type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResyncDetailInitialReplicationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)ResyncDetail).InitialReplicationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)ResyncDetail).InitialReplicationType = value ?? null; } + public string ResyncDetailInitialReplicationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)ResyncDetail).InitialReplicationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)ResyncDetail).InitialReplicationType = value ?? null; } /// Backing field for property. private global::System.DateTime? _retentionWindowEnd; @@ -329,11 +329,11 @@ public partial class InMageReplicationDetails : public string VMId { get => this._vMId; set => this._vMId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] _vMNic; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] _vMNic; /// The PE Network details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } /// Backing field for property. private string _vMProtectionState; @@ -350,13 +350,13 @@ public partial class InMageReplicationDetails : public string VMProtectionStateDescription { get => this._vMProtectionStateDescription; set => this._vMProtectionStateDescription = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _validationError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _validationError; /// /// The validation errors of the on-premise machine Value can be list of validation errors. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ValidationError { get => this._validationError; set => this._validationError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ValidationError { get => this._validationError; set => this._validationError = value; } /// Creates an new instance. public InMageReplicationDetails() @@ -379,7 +379,7 @@ public InMageReplicationDetails() /// InMage provider specific settings. public partial interface IInMageReplicationDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings { /// /// The active location of the VM. If the VM is being protected from Azure, this field will take values from { Azure, OnPrem @@ -449,8 +449,8 @@ public partial interface IInMageReplicationDetails : ReadOnly = false, Description = @"The collection of Consistency points.", SerializedName = @"consistencyPoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints ConsistencyPoint { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints ConsistencyPoint { get; set; } /// /// The datastores of the on-premise machine Value can be list of strings that contain datastore names. /// @@ -603,8 +603,8 @@ public partial interface IInMageReplicationDetails : ReadOnly = false, Description = @"The list of protected disks.", SerializedName = @"protectedDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetails[] ProtectedDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetails[] ProtectedDisk { get; set; } /// The protection stage. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -731,8 +731,8 @@ public partial interface IInMageReplicationDetails : ReadOnly = false, Description = @"The PE Network details.", SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get; set; } /// The protection state for the vm. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -757,13 +757,13 @@ public partial interface IInMageReplicationDetails : ReadOnly = false, Description = @"The validation errors of the on-premise machine Value can be list of validation errors.", SerializedName = @"validationErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ValidationError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ValidationError { get; set; } } /// InMage provider specific settings. internal partial interface IInMageReplicationDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal { /// /// The active location of the VM. If the VM is being protected from Azure, this field will take values from { Azure, OnPrem @@ -771,7 +771,7 @@ internal partial interface IInMageReplicationDetailsInternal : /// string ActiveSiteType { get; set; } /// The agent details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageAgentDetails AgentDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageAgentDetails AgentDetail { get; set; } /// Agent expiry date. global::System.DateTime? AgentDetailAgentExpiryDate { get; set; } /// A value indicating whether installed agent needs to be updated. @@ -788,7 +788,7 @@ internal partial interface IInMageReplicationDetailsInternal : /// The compressed data change rate in MB. double? CompressedDataRateInMb { get; set; } /// The collection of Consistency points. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints ConsistencyPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints ConsistencyPoint { get; set; } /// /// The datastores of the on-premise machine Value can be list of strings that contain datastore names. /// @@ -818,7 +818,7 @@ internal partial interface IInMageReplicationDetailsInternal : /// A value indicating whether the multi vm sync is enabled or disabled. string MultiVMSyncStatus { get; set; } /// The OS details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetails OSDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails OSDetail { get; set; } /// The type of the OS on the VM. string OSDetailOstype { get; set; } /// The id of the disk containing the OS. @@ -830,7 +830,7 @@ internal partial interface IInMageReplicationDetailsInternal : /// The process server Id. string ProcessServerId { get; set; } /// The list of protected disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageProtectedDiskDetails[] ProtectedDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageProtectedDiskDetails[] ProtectedDisk { get; set; } /// The protection stage. string ProtectionStage { get; set; } /// A value indicating whether the source server requires a restart after update. @@ -838,7 +838,7 @@ internal partial interface IInMageReplicationDetailsInternal : /// The replica id of the protected item. string ReplicaId { get; set; } /// The resync details of the machine. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails ResyncDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails ResyncDetail { get; set; } /// The initial replication progress percentage. string ResyncDetailInitialReplicationProgressPercentage { get; set; } /// Initial replication type. @@ -864,7 +864,7 @@ internal partial interface IInMageReplicationDetailsInternal : /// The virtual machine Id. string VMId { get; set; } /// The PE Network details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails[] VMNic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails[] VMNic { get; set; } /// The protection state for the vm. string VMProtectionState { get; set; } /// The protection state description for the vm. @@ -872,7 +872,7 @@ internal partial interface IInMageReplicationDetailsInternal : /// /// The validation errors of the on-premise machine Value can be list of validation errors. /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ValidationError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ValidationError { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageReplicationDetails.json.cs index 0d7584e21810..3c8f867ed6d8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageReplicationDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageReplicationDetails(json) : null; } @@ -77,10 +77,10 @@ internal InMageReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings(json); - {_oSDetail = If( json?.PropertyT("osDetails"), out var __jsonOSDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSDiskDetails.FromJson(__jsonOSDetails) : OSDetail;} - {_resyncDetail = If( json?.PropertyT("resyncDetails"), out var __jsonResyncDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InitialReplicationDetails.FromJson(__jsonResyncDetails) : ResyncDetail;} - {_agentDetail = If( json?.PropertyT("agentDetails"), out var __jsonAgentDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageAgentDetails.FromJson(__jsonAgentDetails) : AgentDetail;} + __replicationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings(json); + {_oSDetail = If( json?.PropertyT("osDetails"), out var __jsonOSDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDiskDetails.FromJson(__jsonOSDetails) : OSDetail;} + {_resyncDetail = If( json?.PropertyT("resyncDetails"), out var __jsonResyncDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InitialReplicationDetails.FromJson(__jsonResyncDetails) : ResyncDetail;} + {_agentDetail = If( json?.PropertyT("agentDetails"), out var __jsonAgentDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageAgentDetails.FromJson(__jsonAgentDetails) : AgentDetail;} {_activeSiteType = If( json?.PropertyT("activeSiteType"), out var __jsonActiveSiteType) ? (string)__jsonActiveSiteType : (string)ActiveSiteType;} {_sourceVMCpuCount = If( json?.PropertyT("sourceVmCpuCount"), out var __jsonSourceVMCpuCount) ? (int?)__jsonSourceVMCpuCount : SourceVMCpuCount;} {_sourceVMRamSizeInMb = If( json?.PropertyT("sourceVmRamSizeInMB"), out var __jsonSourceVMRamSizeInMb) ? (int?)__jsonSourceVMRamSizeInMb : SourceVMRamSizeInMb;} @@ -93,12 +93,12 @@ internal InMageReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run {_compressedDataRateInMb = If( json?.PropertyT("compressedDataRateInMB"), out var __jsonCompressedDataRateInMb) ? (double?)__jsonCompressedDataRateInMb : CompressedDataRateInMb;} {_uncompressedDataRateInMb = If( json?.PropertyT("uncompressedDataRateInMB"), out var __jsonUncompressedDataRateInMb) ? (double?)__jsonUncompressedDataRateInMb : UncompressedDataRateInMb;} {_rpoInSecond = If( json?.PropertyT("rpoInSeconds"), out var __jsonRpoInSeconds) ? (long?)__jsonRpoInSeconds : RpoInSecond;} - {_protectedDisk = If( json?.PropertyT("protectedDisks"), out var __jsonProtectedDisks) ? If( __jsonProtectedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageProtectedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageProtectedDiskDetails.FromJson(__u) )) ))() : null : ProtectedDisk;} + {_protectedDisk = If( json?.PropertyT("protectedDisks"), out var __jsonProtectedDisks) ? If( __jsonProtectedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IInMageProtectedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageProtectedDiskDetails.FromJson(__u) )) ))() : null : ProtectedDisk;} {_iPAddress = If( json?.PropertyT("ipAddress"), out var __jsonIPAddress) ? (string)__jsonIPAddress : (string)IPAddress;} {_lastHeartbeat = If( json?.PropertyT("lastHeartbeat"), out var __jsonLastHeartbeat) ? global::System.DateTime.TryParse((string)__jsonLastHeartbeat, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastHeartbeatValue) ? __jsonLastHeartbeatValue : LastHeartbeat : LastHeartbeat;} {_processServerId = If( json?.PropertyT("processServerId"), out var __jsonProcessServerId) ? (string)__jsonProcessServerId : (string)ProcessServerId;} {_masterTargetId = If( json?.PropertyT("masterTargetId"), out var __jsonMasterTargetId) ? (string)__jsonMasterTargetId : (string)MasterTargetId;} - {_consistencyPoint = If( json?.PropertyT("consistencyPoints"), out var __jsonConsistencyPoints) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageReplicationDetailsConsistencyPoints.FromJson(__jsonConsistencyPoints) : ConsistencyPoint;} + {_consistencyPoint = If( json?.PropertyT("consistencyPoints"), out var __jsonConsistencyPoints) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageReplicationDetailsConsistencyPoints.FromJson(__jsonConsistencyPoints) : ConsistencyPoint;} {_diskResized = If( json?.PropertyT("diskResized"), out var __jsonDiskResized) ? (string)__jsonDiskResized : (string)DiskResized;} {_rebootAfterUpdateStatus = If( json?.PropertyT("rebootAfterUpdateStatus"), out var __jsonRebootAfterUpdateStatus) ? (string)__jsonRebootAfterUpdateStatus : (string)RebootAfterUpdateStatus;} {_multiVMGroupId = If( json?.PropertyT("multiVmGroupId"), out var __jsonMultiVMGroupId) ? (string)__jsonMultiVMGroupId : (string)MultiVMGroupId;} @@ -106,11 +106,11 @@ internal InMageReplicationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run {_multiVMSyncStatus = If( json?.PropertyT("multiVmSyncStatus"), out var __jsonMultiVMSyncStatus) ? (string)__jsonMultiVMSyncStatus : (string)MultiVMSyncStatus;} {_vCenterInfrastructureId = If( json?.PropertyT("vCenterInfrastructureId"), out var __jsonVCenterInfrastructureId) ? (string)__jsonVCenterInfrastructureId : (string)VCenterInfrastructureId;} {_infrastructureVMId = If( json?.PropertyT("infrastructureVmId"), out var __jsonInfrastructureVMId) ? (string)__jsonInfrastructureVMId : (string)InfrastructureVMId;} - {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicDetails.FromJson(__p) )) ))() : null : VMNic;} + {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicDetails.FromJson(__p) )) ))() : null : VMNic;} {_discoveryType = If( json?.PropertyT("discoveryType"), out var __jsonDiscoveryType) ? (string)__jsonDiscoveryType : (string)DiscoveryType;} {_azureStorageAccountId = If( json?.PropertyT("azureStorageAccountId"), out var __jsonAzureStorageAccountId) ? (string)__jsonAzureStorageAccountId : (string)AzureStorageAccountId;} {_datastore = If( json?.PropertyT("datastores"), out var __jsonDatastores) ? If( __jsonDatastores as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(string) (__k is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __j ? (string)(__j.ToString()) : null)) ))() : null : Datastore;} - {_validationError = If( json?.PropertyT("validationErrors"), out var __jsonValidationErrors) ? If( __jsonValidationErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__f) )) ))() : null : ValidationError;} + {_validationError = If( json?.PropertyT("validationErrors"), out var __jsonValidationErrors) ? If( __jsonValidationErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__f) )) ))() : null : ValidationError;} {_lastRpoCalculatedTime = If( json?.PropertyT("lastRpoCalculatedTime"), out var __jsonLastRpoCalculatedTime) ? global::System.DateTime.TryParse((string)__jsonLastRpoCalculatedTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastRpoCalculatedTimeValue) ? __jsonLastRpoCalculatedTimeValue : LastRpoCalculatedTime : LastRpoCalculatedTime;} {_lastUpdateReceivedTime = If( json?.PropertyT("lastUpdateReceivedTime"), out var __jsonLastUpdateReceivedTime) ? global::System.DateTime.TryParse((string)__jsonLastUpdateReceivedTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastUpdateReceivedTimeValue) ? __jsonLastUpdateReceivedTimeValue : LastUpdateReceivedTime : LastUpdateReceivedTime;} {_replicaId = If( json?.PropertyT("replicaId"), out var __jsonReplicaId) ? (string)__jsonReplicaId : (string)ReplicaId;} diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.PowerShell.cs index 1369ddb4a95a..8fe3bcb1d6c4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InMageReplicationDetailsConsistencyPoints partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageReplicationDetailsConsistencyPoints(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.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageReplicationDetailsConsistencyPoints(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal InMageReplicationDetailsConsistencyPoints(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. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.TypeConverter.cs index 54e92ec9a624..d181f07de98e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.cs b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.cs rename to src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.cs index d8b5a49d61d5..a54c02ce97dc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The collection of Consistency points. public partial class InMageReplicationDetailsConsistencyPoints : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPointsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPointsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.dictionary.cs index 86ed22d496f9..816322fe4429 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageReplicationDetailsConsistencyPoints source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageReplicationDetailsConsistencyPoints source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.json.cs index 6d879f439e44..4829659c6ea6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageReplicationDetailsConsistencyPoints.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageReplicationDetailsConsistencyPoints.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageReplicationDetailsConsistencyPoints partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReplicationDetailsConsistencyPoints FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReplicationDetailsConsistencyPoints FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageReplicationDetailsConsistencyPoints(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InMageReprotectInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageReprotectInput.PowerShell.cs new file mode 100644 index 000000000000..6cf8be355a6d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageReprotectInput.PowerShell.cs @@ -0,0 +1,224 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// InMageAzureV2 specific provider input. + [System.ComponentModel.TypeConverter(typeof(InMageReprotectInputTypeConverter))] + public partial class InMageReprotectInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageReprotectInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageReprotectInput(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.Migrate.Models.Api202301.IInMageReprotectInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageReprotectInput(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.Migrate.Models.Api202301.IInMageReprotectInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageReprotectInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskExclusionInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DiskExclusionInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput) content.GetValueForProperty("DiskExclusionInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DiskExclusionInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskExclusionInputTypeConverter.ConvertFrom); + } + if (content.Contains("MasterTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).MasterTargetId, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("RetentionDrive")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).RetentionDrive = (string) content.GetValueForProperty("RetentionDrive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).RetentionDrive, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("DatastoreName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DatastoreName = (string) content.GetValueForProperty("DatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DatastoreName, global::System.Convert.ToString); + } + if (content.Contains("ProfileId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).ProfileId = (string) content.GetValueForProperty("ProfileId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).ProfileId, global::System.Convert.ToString); + } + if (content.Contains("DisksToInclude")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("DiskExclusionInputVolumeOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DiskExclusionInputVolumeOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputVolumeOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DiskExclusionInputVolumeOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageVolumeExclusionOptionsTypeConverter.ConvertFrom)); + } + if (content.Contains("DiskExclusionInputDiskSignatureOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DiskExclusionInputDiskSignatureOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputDiskSignatureOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DiskExclusionInputDiskSignatureOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskSignatureExclusionOptionsTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InMageReprotectInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskExclusionInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DiskExclusionInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput) content.GetValueForProperty("DiskExclusionInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DiskExclusionInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskExclusionInputTypeConverter.ConvertFrom); + } + if (content.Contains("MasterTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).MasterTargetId = (string) content.GetValueForProperty("MasterTargetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).MasterTargetId, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("RetentionDrive")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).RetentionDrive = (string) content.GetValueForProperty("RetentionDrive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).RetentionDrive, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("DatastoreName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DatastoreName = (string) content.GetValueForProperty("DatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DatastoreName, global::System.Convert.ToString); + } + if (content.Contains("ProfileId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).ProfileId = (string) content.GetValueForProperty("ProfileId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).ProfileId, global::System.Convert.ToString); + } + if (content.Contains("DisksToInclude")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DisksToInclude = (string[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("DiskExclusionInputVolumeOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DiskExclusionInputVolumeOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputVolumeOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DiskExclusionInputVolumeOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageVolumeExclusionOptionsTypeConverter.ConvertFrom)); + } + if (content.Contains("DiskExclusionInputDiskSignatureOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DiskExclusionInputDiskSignatureOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[]) content.GetValueForProperty("DiskExclusionInputDiskSignatureOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal)this).DiskExclusionInputDiskSignatureOption, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskSignatureExclusionOptionsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// InMageAzureV2 specific provider input. + [System.ComponentModel.TypeConverter(typeof(InMageReprotectInputTypeConverter))] + public partial interface IInMageReprotectInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageReprotectInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageReprotectInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageReprotectInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageReprotectInput.TypeConverter.cs index 6412e49a30ae..01d4c3ff9b69 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageReprotectInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageReprotectInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageReprotectInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageReprotectInput.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/InMageReprotectInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageReprotectInput.cs index 38c920deee50..5f2faefe6862 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageReprotectInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// InMageAzureV2 specific provider input. public partial class InMageReprotectInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput(); /// Backing field for property. private string _datastoreName; @@ -27,19 +27,19 @@ public partial class InMageReprotectInput : public string DatastoreName { get => this._datastoreName; set => this._datastoreName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput _diskExclusionInput; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput _diskExclusionInput; /// The enable disk exclusion input. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput DiskExclusionInput { get => (this._diskExclusionInput = this._diskExclusionInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskExclusionInput()); set => this._diskExclusionInput = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput DiskExclusionInput { get => (this._diskExclusionInput = this._diskExclusionInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskExclusionInput()); set => this._diskExclusionInput = value; } /// The guest disk signature based option for disk exclusion. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[] DiskExclusionInputDiskSignatureOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)DiskExclusionInput).DiskSignatureOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)DiskExclusionInput).DiskSignatureOption = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[] DiskExclusionInputDiskSignatureOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)DiskExclusionInput).DiskSignatureOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)DiskExclusionInput).DiskSignatureOption = value ?? null /* arrayOf */; } /// The volume label based option for disk exclusion. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[] DiskExclusionInputVolumeOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)DiskExclusionInput).VolumeOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInputInternal)DiskExclusionInput).VolumeOption = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[] DiskExclusionInputVolumeOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)DiskExclusionInput).VolumeOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInputInternal)DiskExclusionInput).VolumeOption = value ?? null /* arrayOf */; } /// Backing field for property. private string[] _disksToInclude; @@ -50,7 +50,7 @@ public partial class InMageReprotectInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)__reverseReplicationProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _masterTargetId; @@ -60,7 +60,7 @@ public partial class InMageReprotectInput : public string MasterTargetId { get => this._masterTargetId; set => this._masterTargetId = value; } /// Internal Acessors for DiskExclusionInput - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInputInternal.DiskExclusionInput { get => (this._diskExclusionInput = this._diskExclusionInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskExclusionInput()); set { {_diskExclusionInput = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInputInternal.DiskExclusionInput { get => (this._diskExclusionInput = this._diskExclusionInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskExclusionInput()); set { {_diskExclusionInput = value;} } } /// Backing field for property. private string _processServerId; @@ -111,7 +111,7 @@ public InMageReprotectInput() /// InMageAzureV2 specific provider input. public partial interface IInMageReprotectInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput { /// The target datastore name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -127,16 +127,16 @@ public partial interface IInMageReprotectInput : ReadOnly = false, Description = @"The guest disk signature based option for disk exclusion.", SerializedName = @"diskSignatureOptions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[] DiskExclusionInputDiskSignatureOption { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[] DiskExclusionInputDiskSignatureOption { get; set; } /// The volume label based option for disk exclusion. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The volume label based option for disk exclusion.", SerializedName = @"volumeOptions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[] DiskExclusionInputVolumeOption { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[] DiskExclusionInputVolumeOption { get; set; } /// The disks to include list. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -189,16 +189,16 @@ public partial interface IInMageReprotectInput : } /// InMageAzureV2 specific provider input. internal partial interface IInMageReprotectInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal { /// The target datastore name. string DatastoreName { get; set; } /// The enable disk exclusion input. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskExclusionInput DiskExclusionInput { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskExclusionInput DiskExclusionInput { get; set; } /// The guest disk signature based option for disk exclusion. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskSignatureExclusionOptions[] DiskExclusionInputDiskSignatureOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskSignatureExclusionOptions[] DiskExclusionInputDiskSignatureOption { get; set; } /// The volume label based option for disk exclusion. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions[] DiskExclusionInputVolumeOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions[] DiskExclusionInputVolumeOption { get; set; } /// The disks to include list. string[] DisksToInclude { get; set; } /// The Master Target Id. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageReprotectInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageReprotectInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageReprotectInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageReprotectInput.json.cs index 4bffab77efe0..76e3826849b7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageReprotectInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageReprotectInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageReprotectInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageReprotectInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageReprotectInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageReprotectInput(json) : null; } @@ -77,8 +77,8 @@ internal InMageReprotectInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime { return; } - __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput(json); - {_diskExclusionInput = If( json?.PropertyT("diskExclusionInput"), out var __jsonDiskExclusionInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskExclusionInput.FromJson(__jsonDiskExclusionInput) : DiskExclusionInput;} + __reverseReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput(json); + {_diskExclusionInput = If( json?.PropertyT("diskExclusionInput"), out var __jsonDiskExclusionInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskExclusionInput.FromJson(__jsonDiskExclusionInput) : DiskExclusionInput;} {_masterTargetId = If( json?.PropertyT("masterTargetId"), out var __jsonMasterTargetId) ? (string)__jsonMasterTargetId : (string)MasterTargetId;} {_processServerId = If( json?.PropertyT("processServerId"), out var __jsonProcessServerId) ? (string)__jsonProcessServerId : (string)ProcessServerId;} {_retentionDrive = If( json?.PropertyT("retentionDrive"), out var __jsonRetentionDrive) ? (string)__jsonRetentionDrive : (string)RetentionDrive;} diff --git a/src/Migrate/generated/api/Models/Api202301/InMageTestFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageTestFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..b77e068f3009 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageTestFailoverInput.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Provider specific input for InMage test failover. + [System.ComponentModel.TypeConverter(typeof(InMageTestFailoverInputTypeConverter))] + public partial class InMageTestFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageTestFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageTestFailoverInput(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.Migrate.Models.Api202301.IInMageTestFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageTestFailoverInput(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.Migrate.Models.Api202301.IInMageTestFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageTestFailoverInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType.CreateFrom); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType, 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 InMageTestFailoverInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType.CreateFrom); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Provider specific input for InMage test failover. + [System.ComponentModel.TypeConverter(typeof(InMageTestFailoverInputTypeConverter))] + public partial interface IInMageTestFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageTestFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageTestFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageTestFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageTestFailoverInput.TypeConverter.cs index 28b886459d06..74e2c8644164 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageTestFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageTestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageTestFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageTestFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageTestFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageTestFailoverInput.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/InMageTestFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageTestFailoverInput.cs index 51215d3d33f4..6de93baa2b34 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageTestFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageTestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific input for InMage test failover. public partial class InMageTestFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageTestFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageTestFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)__testFailoverProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _recoveryPointId; @@ -64,7 +64,7 @@ public InMageTestFailoverInput() /// Provider specific input for InMage test failover. public partial interface IInMageTestFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput { /// /// The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, @@ -92,7 +92,7 @@ public partial interface IInMageTestFailoverInput : } /// Provider specific input for InMage test failover. internal partial interface IInMageTestFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal { /// /// The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageTestFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageTestFailoverInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageTestFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageTestFailoverInput.json.cs index f93d49dd8fd5..5533d51d0ac6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageTestFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageTestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageTestFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageTestFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageTestFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageTestFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageTestFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageTestFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageTestFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput(json); + __testFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput(json); {_recoveryPointType = If( json?.PropertyT("recoveryPointType"), out var __jsonRecoveryPointType) ? (string)__jsonRecoveryPointType : (string)RecoveryPointType;} {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api202301/InMageUnplannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageUnplannedFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..d5c72c8f049b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InMageUnplannedFailoverInput.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Provider specific input for InMage unplanned failover. + [System.ComponentModel.TypeConverter(typeof(InMageUnplannedFailoverInputTypeConverter))] + public partial class InMageUnplannedFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInMageUnplannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InMageUnplannedFailoverInput(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.Migrate.Models.Api202301.IInMageUnplannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InMageUnplannedFailoverInput(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.Migrate.Models.Api202301.IInMageUnplannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InMageUnplannedFailoverInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType.CreateFrom); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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 InMageUnplannedFailoverInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPointType.CreateFrom); + } + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Provider specific input for InMage unplanned failover. + [System.ComponentModel.TypeConverter(typeof(InMageUnplannedFailoverInputTypeConverter))] + public partial interface IInMageUnplannedFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageUnplannedFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageUnplannedFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageUnplannedFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageUnplannedFailoverInput.TypeConverter.cs index eb9d95e00a1e..00a1d5ae998f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageUnplannedFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageUnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageUnplannedFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageUnplannedFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageUnplannedFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/InMageUnplannedFailoverInput.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/InMageUnplannedFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/InMageUnplannedFailoverInput.cs index c027d50bd7d9..e83e6037f935 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageUnplannedFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageUnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific input for InMage unplanned failover. public partial class InMageUnplannedFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageUnplannedFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageUnplannedFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)__unplannedFailoverProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _recoveryPointId; @@ -64,7 +64,7 @@ public InMageUnplannedFailoverInput() /// Provider specific input for InMage unplanned failover. public partial interface IInMageUnplannedFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput { /// /// The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null @@ -92,7 +92,7 @@ public partial interface IInMageUnplannedFailoverInput : } /// Provider specific input for InMage unplanned failover. internal partial interface IInMageUnplannedFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal { /// /// The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageUnplannedFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageUnplannedFailoverInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InMageUnplannedFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageUnplannedFailoverInput.json.cs index 795a38245a67..5b2dcb89fd41 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageUnplannedFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageUnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InMageUnplannedFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageUnplannedFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageUnplannedFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageUnplannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageUnplannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageUnplannedFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal InMageUnplannedFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput(json); + __unplannedFailoverProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput(json); {_recoveryPointType = If( json?.PropertyT("recoveryPointType"), out var __jsonRecoveryPointType) ? (string)__jsonRecoveryPointType : (string)RecoveryPointType;} {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageVolumeExclusionOptions.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InMageVolumeExclusionOptions.PowerShell.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/InMageVolumeExclusionOptions.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InMageVolumeExclusionOptions.PowerShell.cs index 1480ca75cd5c..a48a3754cdc9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageVolumeExclusionOptions.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageVolumeExclusionOptions.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -57,29 +57,27 @@ public partial class InMageVolumeExclusionOptions partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InMageVolumeExclusionOptions(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.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InMageVolumeExclusionOptions(content); } @@ -89,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInM /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,17 +105,17 @@ internal InMageVolumeExclusionOptions(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("VolumeLabel")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptionsInternal)this).VolumeLabel = (string) content.GetValueForProperty("VolumeLabel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptionsInternal)this).VolumeLabel, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptionsInternal)this).VolumeLabel = (string) content.GetValueForProperty("VolumeLabel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptionsInternal)this).VolumeLabel, global::System.Convert.ToString); } if (content.Contains("OnlyExcludeIfSingleVolume")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptionsInternal)this).OnlyExcludeIfSingleVolume = (string) content.GetValueForProperty("OnlyExcludeIfSingleVolume",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptionsInternal)this).OnlyExcludeIfSingleVolume, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptionsInternal)this).OnlyExcludeIfSingleVolume = (string) content.GetValueForProperty("OnlyExcludeIfSingleVolume",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptionsInternal)this).OnlyExcludeIfSingleVolume, 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,11 +130,11 @@ internal InMageVolumeExclusionOptions(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("VolumeLabel")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptionsInternal)this).VolumeLabel = (string) content.GetValueForProperty("VolumeLabel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptionsInternal)this).VolumeLabel, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptionsInternal)this).VolumeLabel = (string) content.GetValueForProperty("VolumeLabel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptionsInternal)this).VolumeLabel, global::System.Convert.ToString); } if (content.Contains("OnlyExcludeIfSingleVolume")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptionsInternal)this).OnlyExcludeIfSingleVolume = (string) content.GetValueForProperty("OnlyExcludeIfSingleVolume",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptionsInternal)this).OnlyExcludeIfSingleVolume, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptionsInternal)this).OnlyExcludeIfSingleVolume = (string) content.GetValueForProperty("OnlyExcludeIfSingleVolume",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptionsInternal)this).OnlyExcludeIfSingleVolume, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageVolumeExclusionOptions.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InMageVolumeExclusionOptions.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InMageVolumeExclusionOptions.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InMageVolumeExclusionOptions.TypeConverter.cs index 2bcf2ce6d066..99568eab520a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageVolumeExclusionOptions.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageVolumeExclusionOptions.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageVolumeExclusionOptions.cs b/src/Migrate/generated/api/Models/Api202301/InMageVolumeExclusionOptions.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InMageVolumeExclusionOptions.cs rename to src/Migrate/generated/api/Models/Api202301/InMageVolumeExclusionOptions.cs index 1d83903fa233..6af0da6dfd74 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageVolumeExclusionOptions.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageVolumeExclusionOptions.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// Guest disk signature based disk exclusion option when doing enable protection of virtual machine in InMage provider. /// public partial class InMageVolumeExclusionOptions : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptionsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptionsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/InMageVolumeExclusionOptions.json.cs b/src/Migrate/generated/api/Models/Api202301/InMageVolumeExclusionOptions.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InMageVolumeExclusionOptions.json.cs rename to src/Migrate/generated/api/Models/Api202301/InMageVolumeExclusionOptions.json.cs index b7a24aae89d2..157d5569fbd6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InMageVolumeExclusionOptions.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InMageVolumeExclusionOptions.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class InMageVolumeExclusionOptions partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageVolumeExclusionOptions FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageVolumeExclusionOptions FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InMageVolumeExclusionOptions(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InconsistentVMDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InconsistentVMDetails.PowerShell.cs new file mode 100644 index 000000000000..66f1016feb8f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InconsistentVMDetails.PowerShell.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// + /// This class stores the monitoring details for consistency check of inconsistent Protected Entity. + /// + [System.ComponentModel.TypeConverter(typeof(InconsistentVMDetailsTypeConverter))] + public partial class InconsistentVMDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInconsistentVMDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InconsistentVMDetails(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.Migrate.Models.Api202301.IInconsistentVMDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InconsistentVMDetails(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.Migrate.Models.Api202301.IInconsistentVMDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InconsistentVMDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).VMName, global::System.Convert.ToString); + } + if (content.Contains("CloudName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).CloudName = (string) content.GetValueForProperty("CloudName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).CloudName, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).Detail = (string[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ErrorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).ErrorId = (string[]) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).ErrorId, __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 InconsistentVMDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).VMName = (string) content.GetValueForProperty("VMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).VMName, global::System.Convert.ToString); + } + if (content.Contains("CloudName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).CloudName = (string) content.GetValueForProperty("CloudName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).CloudName, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).Detail = (string[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ErrorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).ErrorId = (string[]) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal)this).ErrorId, __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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class stores the monitoring details for consistency check of inconsistent Protected Entity. + [System.ComponentModel.TypeConverter(typeof(InconsistentVMDetailsTypeConverter))] + public partial interface IInconsistentVMDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InconsistentVMDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InconsistentVMDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InconsistentVMDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InconsistentVMDetails.TypeConverter.cs index f37af73e9e0e..dbf4c588752c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InconsistentVMDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InconsistentVMDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInconsistentVMDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InconsistentVMDetails.cs b/src/Migrate/generated/api/Models/Api202301/InconsistentVMDetails.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InconsistentVMDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InconsistentVMDetails.cs index f894ec2d0888..8e06d9a59c7e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InconsistentVMDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InconsistentVMDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// This class stores the monitoring details for consistency check of inconsistent Protected Entity. /// public partial class InconsistentVMDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/InconsistentVMDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InconsistentVMDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InconsistentVMDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InconsistentVMDetails.json.cs index abe2d5e4c312..31722e6c73bc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InconsistentVMDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InconsistentVMDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class InconsistentVMDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInconsistentVMDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInconsistentVMDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InconsistentVMDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InitialReplicationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InitialReplicationDetails.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/InitialReplicationDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/InitialReplicationDetails.PowerShell.cs index a82a87cd4323..d32f319603b3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InitialReplicationDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/InitialReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class InitialReplicationDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IInitialReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InitialReplicationDetails(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.Migrate.Models.Api20220501.IInitialReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InitialReplicationDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIni /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal InitialReplicationDetails(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("InitialReplicationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)this).InitialReplicationType = (string) content.GetValueForProperty("InitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)this).InitialReplicationType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)this).InitialReplicationType = (string) content.GetValueForProperty("InitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)this).InitialReplicationType, global::System.Convert.ToString); } if (content.Contains("InitialReplicationProgressPercentage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)this).InitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)this).InitialReplicationProgressPercentage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)this).InitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)this).InitialReplicationProgressPercentage, 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. @@ -128,11 +128,11 @@ internal InitialReplicationDetails(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("InitialReplicationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)this).InitialReplicationType = (string) content.GetValueForProperty("InitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)this).InitialReplicationType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)this).InitialReplicationType = (string) content.GetValueForProperty("InitialReplicationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)this).InitialReplicationType, global::System.Convert.ToString); } if (content.Contains("InitialReplicationProgressPercentage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)this).InitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal)this).InitialReplicationProgressPercentage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)this).InitialReplicationProgressPercentage = (string) content.GetValueForProperty("InitialReplicationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal)this).InitialReplicationProgressPercentage, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/InitialReplicationDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InitialReplicationDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InitialReplicationDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InitialReplicationDetails.TypeConverter.cs index b3256dfb2582..752b36b728fb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InitialReplicationDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InitialReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInitialReplicationDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InitialReplicationDetails.cs b/src/Migrate/generated/api/Models/Api202301/InitialReplicationDetails.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InitialReplicationDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InitialReplicationDetails.cs index 5b513c5fc90f..e3b6b8dcc421 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InitialReplicationDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InitialReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Initial replication details. public partial class InitialReplicationDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/InitialReplicationDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InitialReplicationDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/InitialReplicationDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InitialReplicationDetails.json.cs index 6457b06cf617..b845ebbc05ec 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InitialReplicationDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InitialReplicationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InitialReplicationDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInitialReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInitialReplicationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InitialReplicationDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InlineWorkflowTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InlineWorkflowTaskDetails.PowerShell.cs new file mode 100644 index 000000000000..7f846db5a6ca --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InlineWorkflowTaskDetails.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class represents the inline workflow task details. + [System.ComponentModel.TypeConverter(typeof(InlineWorkflowTaskDetailsTypeConverter))] + public partial class InlineWorkflowTaskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInlineWorkflowTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InlineWorkflowTaskDetails(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.Migrate.Models.Api202301.IInlineWorkflowTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InlineWorkflowTaskDetails(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.Migrate.Models.Api202301.IInlineWorkflowTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InlineWorkflowTaskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("WorkflowId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInlineWorkflowTaskDetailsInternal)this).WorkflowId = (string[]) content.GetValueForProperty("WorkflowId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInlineWorkflowTaskDetailsInternal)this).WorkflowId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("ChildTask")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTaskTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InlineWorkflowTaskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("WorkflowId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInlineWorkflowTaskDetailsInternal)this).WorkflowId = (string[]) content.GetValueForProperty("WorkflowId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInlineWorkflowTaskDetailsInternal)this).WorkflowId, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("ChildTask")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTaskTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class represents the inline workflow task details. + [System.ComponentModel.TypeConverter(typeof(InlineWorkflowTaskDetailsTypeConverter))] + public partial interface IInlineWorkflowTaskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InlineWorkflowTaskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InlineWorkflowTaskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InlineWorkflowTaskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InlineWorkflowTaskDetails.TypeConverter.cs index f300e38e36d1..07cab7e725e1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InlineWorkflowTaskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InlineWorkflowTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInlineWorkflowTaskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInlineWorkflowTaskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInlineWorkflowTaskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInlineWorkflowTaskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InlineWorkflowTaskDetails.cs b/src/Migrate/generated/api/Models/Api202301/InlineWorkflowTaskDetails.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/InlineWorkflowTaskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/InlineWorkflowTaskDetails.cs index 80c817afdfaf..9ff32e37dd28 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InlineWorkflowTaskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/InlineWorkflowTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// This class represents the inline workflow task details. public partial class InlineWorkflowTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInlineWorkflowTaskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInlineWorkflowTaskDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInlineWorkflowTaskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInlineWorkflowTaskDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails __groupTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.GroupTaskDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails __groupTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.GroupTaskDetails(); /// The child tasks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] ChildTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)__groupTaskDetails).ChildTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)__groupTaskDetails).ChildTask = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] ChildTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)__groupTaskDetails).ChildTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)__groupTaskDetails).ChildTask = value ?? null /* arrayOf */; } /// The type of task details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)__groupTaskDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)__groupTaskDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)__groupTaskDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)__groupTaskDetails).InstanceType = value ; } /// Backing field for property. private string[] _workflowId; @@ -55,7 +55,7 @@ public InlineWorkflowTaskDetails() /// This class represents the inline workflow task details. public partial interface IInlineWorkflowTaskDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails { /// The list of child workflow ids. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -69,7 +69,7 @@ public partial interface IInlineWorkflowTaskDetails : } /// This class represents the inline workflow task details. internal partial interface IInlineWorkflowTaskDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal { /// The list of child workflow ids. string[] WorkflowId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InlineWorkflowTaskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/InlineWorkflowTaskDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/InlineWorkflowTaskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/InlineWorkflowTaskDetails.json.cs index 4bf50eb3d84b..fbc202aec670 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InlineWorkflowTaskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InlineWorkflowTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InlineWorkflowTaskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInlineWorkflowTaskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInlineWorkflowTaskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInlineWorkflowTaskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInlineWorkflowTaskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInlineWorkflowTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInlineWorkflowTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InlineWorkflowTaskDetails(json) : null; } @@ -77,7 +77,7 @@ internal InlineWorkflowTaskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - __groupTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.GroupTaskDetails(json); + __groupTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.GroupTaskDetails(json); {_workflowId = If( json?.PropertyT("workflowIds"), out var __jsonWorkflowIds) ? If( __jsonWorkflowIds as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : WorkflowId;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/InnerHealthError.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InnerHealthError.PowerShell.cs new file mode 100644 index 000000000000..98a7aa60dbdf --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InnerHealthError.PowerShell.cs @@ -0,0 +1,256 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// + /// Implements InnerHealthError class. HealthError object has a list of InnerHealthErrors as child errors. InnerHealthError + /// is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are + /// exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as + /// Exception -> InnerException. + /// + [System.ComponentModel.TypeConverter(typeof(InnerHealthErrorTypeConverter))] + public partial class InnerHealthError + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInnerHealthError DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InnerHealthError(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.Migrate.Models.Api202301.IInnerHealthError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InnerHealthError(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.Migrate.Models.Api202301.IInnerHealthError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InnerHealthError(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ErrorSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorSource = (string) content.GetValueForProperty("ErrorSource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorSource, global::System.Convert.ToString); + } + if (content.Contains("ErrorType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorType = (string) content.GetValueForProperty("ErrorType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorType, global::System.Convert.ToString); + } + if (content.Contains("ErrorLevel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorLevel = (string) content.GetValueForProperty("ErrorLevel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorLevel, global::System.Convert.ToString); + } + if (content.Contains("ErrorCategory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorCategory = (string) content.GetValueForProperty("ErrorCategory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorCategory, global::System.Convert.ToString); + } + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorCode, global::System.Convert.ToString); + } + if (content.Contains("SummaryMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).SummaryMessage = (string) content.GetValueForProperty("SummaryMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).SummaryMessage, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("CreationTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).CreationTimeUtc = (global::System.DateTime?) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).CreationTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RecoveryProviderErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).RecoveryProviderErrorMessage = (string) content.GetValueForProperty("RecoveryProviderErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).RecoveryProviderErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("EntityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).EntityId = (string) content.GetValueForProperty("EntityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).EntityId, global::System.Convert.ToString); + } + if (content.Contains("ErrorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorId = (string) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorId, global::System.Convert.ToString); + } + if (content.Contains("CustomerResolvability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).CustomerResolvability = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability?) content.GetValueForProperty("CustomerResolvability",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).CustomerResolvability, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal InnerHealthError(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ErrorSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorSource = (string) content.GetValueForProperty("ErrorSource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorSource, global::System.Convert.ToString); + } + if (content.Contains("ErrorType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorType = (string) content.GetValueForProperty("ErrorType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorType, global::System.Convert.ToString); + } + if (content.Contains("ErrorLevel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorLevel = (string) content.GetValueForProperty("ErrorLevel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorLevel, global::System.Convert.ToString); + } + if (content.Contains("ErrorCategory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorCategory = (string) content.GetValueForProperty("ErrorCategory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorCategory, global::System.Convert.ToString); + } + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorCode = (string) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorCode, global::System.Convert.ToString); + } + if (content.Contains("SummaryMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).SummaryMessage = (string) content.GetValueForProperty("SummaryMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).SummaryMessage, global::System.Convert.ToString); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("CreationTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).CreationTimeUtc = (global::System.DateTime?) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).CreationTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RecoveryProviderErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).RecoveryProviderErrorMessage = (string) content.GetValueForProperty("RecoveryProviderErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).RecoveryProviderErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("EntityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).EntityId = (string) content.GetValueForProperty("EntityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).EntityId, global::System.Convert.ToString); + } + if (content.Contains("ErrorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorId = (string) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).ErrorId, global::System.Convert.ToString); + } + if (content.Contains("CustomerResolvability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).CustomerResolvability = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability?) content.GetValueForProperty("CustomerResolvability",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal)this).CustomerResolvability, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HealthErrorCustomerResolvability.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Implements InnerHealthError class. HealthError object has a list of InnerHealthErrors as child errors. InnerHealthError + /// is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are + /// exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as + /// Exception -> InnerException. + [System.ComponentModel.TypeConverter(typeof(InnerHealthErrorTypeConverter))] + public partial interface IInnerHealthError + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InnerHealthError.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InnerHealthError.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InnerHealthError.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InnerHealthError.TypeConverter.cs index d5e5a2ed8f74..e8710e53f930 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InnerHealthError.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InnerHealthError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInnerHealthError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InnerHealthError.cs b/src/Migrate/generated/api/Models/Api202301/InnerHealthError.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/InnerHealthError.cs rename to src/Migrate/generated/api/Models/Api202301/InnerHealthError.cs index 3f5bf025e53d..f9aa279d56ff 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InnerHealthError.cs +++ b/src/Migrate/generated/api/Models/Api202301/InnerHealthError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -14,8 +14,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// Exception -> InnerException. /// public partial class InnerHealthError : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthError, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthError, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthErrorInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/InnerHealthError.json.cs b/src/Migrate/generated/api/Models/Api202301/InnerHealthError.json.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InnerHealthError.json.cs rename to src/Migrate/generated/api/Models/Api202301/InnerHealthError.json.cs index a5e8f3667901..5a0c4bdf60d8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InnerHealthError.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InnerHealthError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -59,13 +59,13 @@ public partial class InnerHealthError partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInnerHealthError FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInnerHealthError FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InnerHealthError(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/InputEndpoint.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/InputEndpoint.PowerShell.cs new file mode 100644 index 000000000000..457ad776afd5 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/InputEndpoint.PowerShell.cs @@ -0,0 +1,166 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(InputEndpointTypeConverter))] + public partial class InputEndpoint + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IInputEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new InputEndpoint(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.Migrate.Models.Api202301.IInputEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new InputEndpoint(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.Migrate.Models.Api202301.IInputEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal InputEndpoint(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("EndpointName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).EndpointName = (string) content.GetValueForProperty("EndpointName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).EndpointName, global::System.Convert.ToString); + } + if (content.Contains("PrivatePort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).PrivatePort = (int?) content.GetValueForProperty("PrivatePort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).PrivatePort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("PublicPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).PublicPort = (int?) content.GetValueForProperty("PublicPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).PublicPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Protocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).Protocol, 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 InputEndpoint(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("EndpointName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).EndpointName = (string) content.GetValueForProperty("EndpointName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).EndpointName, global::System.Convert.ToString); + } + if (content.Contains("PrivatePort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).PrivatePort = (int?) content.GetValueForProperty("PrivatePort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).PrivatePort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("PublicPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).PublicPort = (int?) content.GetValueForProperty("PublicPort",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).PublicPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Protocol")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).Protocol = (string) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal)this).Protocol, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(InputEndpointTypeConverter))] + public partial interface IInputEndpoint + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/InputEndpoint.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/InputEndpoint.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InputEndpoint.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/InputEndpoint.TypeConverter.cs index efc096bf7317..00582c1c43b6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InputEndpoint.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/InputEndpoint.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInputEndpoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/InputEndpoint.cs b/src/Migrate/generated/api/Models/Api202301/InputEndpoint.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/InputEndpoint.cs rename to src/Migrate/generated/api/Models/Api202301/InputEndpoint.cs index 6e5680b1ef36..0d695a4a547f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InputEndpoint.cs +++ b/src/Migrate/generated/api/Models/Api202301/InputEndpoint.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; public partial class InputEndpoint : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpointInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpointInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/InputEndpoint.json.cs b/src/Migrate/generated/api/Models/Api202301/InputEndpoint.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/InputEndpoint.json.cs rename to src/Migrate/generated/api/Models/Api202301/InputEndpoint.json.cs index 6301d90938e2..dc18a36de294 100644 --- a/src/Migrate/generated/api/Models/Api20220501/InputEndpoint.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/InputEndpoint.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -53,13 +53,13 @@ public partial class InputEndpoint partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInputEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInputEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new InputEndpoint(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/Job.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/Job.PowerShell.cs new file mode 100644 index 000000000000..fe69cb9d721a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/Job.PowerShell.cs @@ -0,0 +1,304 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Job details. + [System.ComponentModel.TypeConverter(typeof(JobTypeConverter))] + public partial class Job + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IJob DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Job(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.Migrate.Models.Api202301.IJob DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Job(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.Migrate.Models.Api202301.IJob FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Job(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.Migrate.Models.Api202301.IJobInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobPropertiesAutoGeneratedTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ActivityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).ActivityId, global::System.Convert.ToString); + } + if (content.Contains("ScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).ScenarioName = (string) content.GetValueForProperty("ScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).ScenarioName, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("StateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).StateDescription = (string) content.GetValueForProperty("StateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).StateDescription, global::System.Convert.ToString); + } + if (content.Contains("Task")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).Task = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[]) content.GetValueForProperty("Task",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).Task, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTaskTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AllowedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).AllowedAction = (string[]) content.GetValueForProperty("AllowedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).AllowedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("TargetObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).TargetObjectId = (string) content.GetValueForProperty("TargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).TargetObjectId, global::System.Convert.ToString); + } + if (content.Contains("TargetObjectName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).TargetObjectName = (string) content.GetValueForProperty("TargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).TargetObjectName, global::System.Convert.ToString); + } + if (content.Contains("TargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).TargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("CustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); + } + if (content.Contains("CustomDetailAffectedObjectDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).CustomDetailAffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("CustomDetailAffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).CustomDetailAffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Job(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.Migrate.Models.Api202301.IJobInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobPropertiesAutoGeneratedTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ActivityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).ActivityId, global::System.Convert.ToString); + } + if (content.Contains("ScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).ScenarioName = (string) content.GetValueForProperty("ScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).ScenarioName, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("StateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).StateDescription = (string) content.GetValueForProperty("StateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).StateDescription, global::System.Convert.ToString); + } + if (content.Contains("Task")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).Task = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[]) content.GetValueForProperty("Task",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).Task, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTaskTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AllowedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).AllowedAction = (string[]) content.GetValueForProperty("AllowedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).AllowedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("TargetObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).TargetObjectId = (string) content.GetValueForProperty("TargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).TargetObjectId, global::System.Convert.ToString); + } + if (content.Contains("TargetObjectName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).TargetObjectName = (string) content.GetValueForProperty("TargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).TargetObjectName, global::System.Convert.ToString); + } + if (content.Contains("TargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).TargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("CustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); + } + if (content.Contains("CustomDetailAffectedObjectDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).CustomDetailAffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("CustomDetailAffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal)this).CustomDetailAffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Job details. + [System.ComponentModel.TypeConverter(typeof(JobTypeConverter))] + public partial interface IJob + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Job.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/Job.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/Job.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/Job.TypeConverter.cs index 17a2443748f5..4e493e114c2d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Job.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/Job.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IJob ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/Job.cs b/src/Migrate/generated/api/Models/Api202301/Job.cs new file mode 100644 index 000000000000..2bfefb207c2a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/Job.cs @@ -0,0 +1,338 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Job details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.DoNotFormat] + public partial class Job : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// The activity id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ActivityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).ActivityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).ActivityId = value ?? null; } + + /// The Allowed action the job. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string[] AllowedAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).AllowedAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).AllowedAction = value ?? null /* arrayOf */; } + + /// + /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow + /// object details. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails CustomDetailAffectedObjectDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).CustomDetailAffectedObjectDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).CustomDetailAffectedObjectDetail = value ?? null /* model class */; } + + /// Gets the type of job details (see JobDetailsTypes enum for possible values). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).CustomDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).CustomDetailInstanceType = value ?? null; } + + /// The end time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).EndTime = value ?? default(global::System.DateTime); } + + /// The errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[] Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).Error = value ?? null /* arrayOf */; } + + /// The DisplayName. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).FriendlyName = value ?? null; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for CustomDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal.CustomDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).CustomDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).CustomDetail = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobPropertiesAutoGenerated()); set { {_property = value;} } } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGenerated _property; + + /// The custom data. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGenerated Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobPropertiesAutoGenerated()); set => this._property = value; } + + /// The ScenarioName. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).ScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).ScenarioName = value ?? null; } + + /// The start time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).StartTime = value ?? default(global::System.DateTime); } + + /// + /// The status of the Job. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or + /// Other. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string State { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).State = value ?? null; } + + /// + /// The description of the state of the Job. For e.g. - For Succeeded state, description can be Completed, PartiallySucceeded, + /// CompletedWithInformation or Skipped. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string StateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).StateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).StateDescription = value ?? null; } + + /// + /// The type of the affected object which is of Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType class. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).TargetInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).TargetInstanceType = value ?? null; } + + /// The affected Object Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).TargetObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).TargetObjectId = value ?? null; } + + /// The name of the affected object. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetObjectName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).TargetObjectName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).TargetObjectName = value ?? null; } + + /// The tasks. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] Task { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).Task; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)Property).Task = value ?? null /* arrayOf */; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public Job() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Job details. + public partial interface IJob : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// The activity id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The activity id.", + SerializedName = @"activityId", + PossibleTypes = new [] { typeof(string) })] + string ActivityId { get; set; } + /// The Allowed action the job. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Allowed action the job.", + SerializedName = @"allowedActions", + PossibleTypes = new [] { typeof(string) })] + string[] AllowedAction { get; set; } + /// + /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow + /// object details. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow object details.", + SerializedName = @"affectedObjectDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails CustomDetailAffectedObjectDetail { get; set; } + /// Gets the type of job details (see JobDetailsTypes enum for possible values). + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the type of job details (see JobDetailsTypes enum for possible values).", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string CustomDetailInstanceType { get; set; } + /// The end time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The end time.", + SerializedName = @"endTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? EndTime { get; set; } + /// The errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The errors.", + SerializedName = @"errors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[] Error { get; set; } + /// The DisplayName. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The DisplayName.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// The ScenarioName. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The ScenarioName.", + SerializedName = @"scenarioName", + PossibleTypes = new [] { typeof(string) })] + string ScenarioName { get; set; } + /// The start time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The start time.", + SerializedName = @"startTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? StartTime { get; set; } + /// + /// The status of the Job. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or + /// Other. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The status of the Job. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or Other.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(string) })] + string State { get; set; } + /// + /// The description of the state of the Job. For e.g. - For Succeeded state, description can be Completed, PartiallySucceeded, + /// CompletedWithInformation or Skipped. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The description of the state of the Job. For e.g. - For Succeeded state, description can be Completed, PartiallySucceeded, CompletedWithInformation or Skipped.", + SerializedName = @"stateDescription", + PossibleTypes = new [] { typeof(string) })] + string StateDescription { get; set; } + /// + /// The type of the affected object which is of Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType class. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of the affected object which is of Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType class.", + SerializedName = @"targetInstanceType", + PossibleTypes = new [] { typeof(string) })] + string TargetInstanceType { get; set; } + /// The affected Object Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The affected Object Id.", + SerializedName = @"targetObjectId", + PossibleTypes = new [] { typeof(string) })] + string TargetObjectId { get; set; } + /// The name of the affected object. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the affected object.", + SerializedName = @"targetObjectName", + PossibleTypes = new [] { typeof(string) })] + string TargetObjectName { get; set; } + /// The tasks. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The tasks.", + SerializedName = @"tasks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] Task { get; set; } + + } + /// Job details. + internal partial interface IJobInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The activity id. + string ActivityId { get; set; } + /// The Allowed action the job. + string[] AllowedAction { get; set; } + /// The custom job details like test failover job details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails CustomDetail { get; set; } + /// + /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow + /// object details. + /// + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails CustomDetailAffectedObjectDetail { get; set; } + /// Gets the type of job details (see JobDetailsTypes enum for possible values). + string CustomDetailInstanceType { get; set; } + /// The end time. + global::System.DateTime? EndTime { get; set; } + /// The errors. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[] Error { get; set; } + /// The DisplayName. + string FriendlyName { get; set; } + /// The custom data. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGenerated Property { get; set; } + /// The ScenarioName. + string ScenarioName { get; set; } + /// The start time. + global::System.DateTime? StartTime { get; set; } + /// + /// The status of the Job. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or + /// Other. + /// + string State { get; set; } + /// + /// The description of the state of the Job. For e.g. - For Succeeded state, description can be Completed, PartiallySucceeded, + /// CompletedWithInformation or Skipped. + /// + string StateDescription { get; set; } + /// + /// The type of the affected object which is of Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType class. + /// + string TargetInstanceType { get; set; } + /// The affected Object Id. + string TargetObjectId { get; set; } + /// The name of the affected object. + string TargetObjectName { get; set; } + /// The tasks. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] Task { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Job.json.cs b/src/Migrate/generated/api/Models/Api202301/Job.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/Job.json.cs rename to src/Migrate/generated/api/Models/Api202301/Job.json.cs index 54abce4fdcfc..97c70e1b0762 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Job.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/Job.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Job partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new Job(json) : null; } @@ -77,8 +77,8 @@ internal Job(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobPropertiesAutoGenerated.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobPropertiesAutoGenerated.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/JobCollection.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/JobCollection.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/JobCollection.PowerShell.cs index 4c8b5af207b4..9adb71c1439a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobCollection.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class JobCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IJobCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobCollection(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.Migrate.Models.Api20220501.IJobCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobCollection(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal JobCollection(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollectionInternal)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. @@ -128,11 +128,11 @@ internal JobCollection(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollectionInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/JobCollection.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/JobCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/JobCollection.TypeConverter.cs index b4fe14e8f0d3..281f26577207 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IJobCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobCollection.cs b/src/Migrate/generated/api/Models/Api202301/JobCollection.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/JobCollection.cs rename to src/Migrate/generated/api/Models/Api202301/JobCollection.cs index 11756b511d50..f956a9c779e3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Collection of jobs. public partial class JobCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class JobCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob[] _value; /// The list of jobs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public JobCollection() @@ -51,8 +51,8 @@ public partial interface IJobCollection : ReadOnly = false, Description = @"The list of jobs.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob[] Value { get; set; } } /// Collection of jobs. @@ -62,7 +62,7 @@ internal partial interface IJobCollectionInternal /// The value of next link. string NextLink { get; set; } /// The list of jobs. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/JobCollection.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/JobCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/JobCollection.json.cs index f51596bec1f8..a726432625bb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new JobCollection(json) : null; } @@ -77,7 +77,7 @@ internal JobCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.J { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IJob) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Job.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IJob) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Job.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/JobDetails.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/JobDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/JobDetails.PowerShell.cs index 835a751225ef..1bab2d931234 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class JobDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobDetails(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.Migrate.Models.Api20220501.IJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal JobDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); } if (content.Contains("AffectedObjectDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.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. @@ -128,11 +128,11 @@ internal JobDetails(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); } if (content.Contains("AffectedObjectDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/JobDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/JobDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/JobDetails.TypeConverter.cs index 8dac44accb6b..289b0bacae11 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IJobDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobDetails.cs b/src/Migrate/generated/api/Models/Api202301/JobDetails.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/JobDetails.cs rename to src/Migrate/generated/api/Models/Api202301/JobDetails.cs index 0ed039a7cfbe..5100d91c14fc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Job details based on specific job type. public partial class JobDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails _affectedObjectDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails _affectedObjectDetail; /// /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow /// object details. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get => (this._affectedObjectDetail = this._affectedObjectDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetails()); set => this._affectedObjectDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get => (this._affectedObjectDetail = this._affectedObjectDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails()); set => this._affectedObjectDetail = value; } /// Backing field for property. private string _instanceType; @@ -49,8 +49,8 @@ public partial interface IJobDetails : ReadOnly = false, Description = @"The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow object details.", SerializedName = @"affectedObjectDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get; set; } /// Gets the type of job details (see JobDetailsTypes enum for possible values). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, @@ -69,7 +69,7 @@ internal partial interface IJobDetailsInternal /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow /// object details. /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get; set; } /// Gets the type of job details (see JobDetailsTypes enum for possible values). string InstanceType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/JobDetails.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/JobDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/JobDetails.json.cs index 4df538a9ff9e..4fa52655797f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class JobDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails 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.Migrate.Models.Api202301.IJobDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails 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.Migrate.Models.Api20220501.IJobDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { @@ -109,7 +109,7 @@ internal JobDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.Json return; } {_instanceType = If( json?.PropertyT("instanceType"), out var __jsonInstanceType) ? (string)__jsonInstanceType : (string)InstanceType;} - {_affectedObjectDetail = If( json?.PropertyT("affectedObjectDetails"), out var __jsonAffectedObjectDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetails.FromJson(__jsonAffectedObjectDetails) : AffectedObjectDetail;} + {_affectedObjectDetail = If( json?.PropertyT("affectedObjectDetails"), out var __jsonAffectedObjectDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails.FromJson(__jsonAffectedObjectDetails) : AffectedObjectDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.PowerShell.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.PowerShell.cs index e9b77ef866e5..0d694f9a6556 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -58,29 +58,29 @@ public partial class JobDetailsAffectedObjectDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobDetailsAffectedObjectDetails(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.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobDetailsAffectedObjectDetails(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal JobDetailsAffectedObjectDetails(global::System.Collections.IDictionary } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.TypeConverter.cs index e139d55875ae..7fad4a038b3e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.cs b/src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.cs rename to src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.cs index 67922388d4fa..96e4aa0eee72 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// object details. /// public partial class JobDetailsAffectedObjectDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetailsInternal { /// Creates an new instance. diff --git a/src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.dictionary.cs index aabc0c22cf57..9949917f10e4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetails source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.json.cs index fc6371206957..f9c8be6850f2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobDetailsAffectedObjectDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobDetailsAffectedObjectDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -57,13 +57,13 @@ public partial class JobDetailsAffectedObjectDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new JobDetailsAffectedObjectDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/JobEntity.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/JobEntity.PowerShell.cs new file mode 100644 index 000000000000..14da413a2645 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/JobEntity.PowerShell.cs @@ -0,0 +1,186 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// + /// This class contains the minimal job details required to navigate to the desired drill down. + /// + [System.ComponentModel.TypeConverter(typeof(JobEntityTypeConverter))] + public partial class JobEntity + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IJobEntity DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new JobEntity(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.Migrate.Models.Api202301.IJobEntity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new JobEntity(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.Migrate.Models.Api202301.IJobEntity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal JobEntity(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("JobFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).JobFriendlyName = (string) content.GetValueForProperty("JobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).JobFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("TargetObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).TargetObjectId = (string) content.GetValueForProperty("TargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).TargetObjectId, global::System.Convert.ToString); + } + if (content.Contains("TargetObjectName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).TargetObjectName = (string) content.GetValueForProperty("TargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).TargetObjectName, global::System.Convert.ToString); + } + if (content.Contains("TargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).TargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("JobScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).JobScenarioName = (string) content.GetValueForProperty("JobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).JobScenarioName, 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 JobEntity(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("JobFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).JobFriendlyName = (string) content.GetValueForProperty("JobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).JobFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("TargetObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).TargetObjectId = (string) content.GetValueForProperty("TargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).TargetObjectId, global::System.Convert.ToString); + } + if (content.Contains("TargetObjectName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).TargetObjectName = (string) content.GetValueForProperty("TargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).TargetObjectName, global::System.Convert.ToString); + } + if (content.Contains("TargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).TargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("JobScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).JobScenarioName = (string) content.GetValueForProperty("JobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)this).JobScenarioName, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class contains the minimal job details required to navigate to the desired drill down. + [System.ComponentModel.TypeConverter(typeof(JobEntityTypeConverter))] + public partial interface IJobEntity + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobEntity.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/JobEntity.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/JobEntity.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/JobEntity.TypeConverter.cs index 213b4a739dab..b537eb329176 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobEntity.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobEntity.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IJobEntity ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobEntity.cs b/src/Migrate/generated/api/Models/Api202301/JobEntity.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/JobEntity.cs rename to src/Migrate/generated/api/Models/Api202301/JobEntity.cs index 4046d25369a0..6d036ea9ee3f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobEntity.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobEntity.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// This class contains the minimal job details required to navigate to the desired drill down. /// public partial class JobEntity : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/JobEntity.json.cs b/src/Migrate/generated/api/Models/Api202301/JobEntity.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/JobEntity.json.cs rename to src/Migrate/generated/api/Models/Api202301/JobEntity.json.cs index 9664b4a0a90e..f0b73ecc4b9f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobEntity.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobEntity.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class JobEntity partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new JobEntity(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/JobErrorDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/JobErrorDetails.PowerShell.cs new file mode 100644 index 000000000000..70efeac31d60 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/JobErrorDetails.PowerShell.cs @@ -0,0 +1,256 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class contains the error details per object. + [System.ComponentModel.TypeConverter(typeof(JobErrorDetailsTypeConverter))] + public partial class JobErrorDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IJobErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new JobErrorDetails(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.Migrate.Models.Api202301.IJobErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new JobErrorDetails(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.Migrate.Models.Api202301.IJobErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal JobErrorDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ServiceErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceError) content.GetValueForProperty("ServiceErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ServiceErrorTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderError) content.GetValueForProperty("ProviderErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderErrorTypeConverter.ConvertFrom); + } + if (content.Contains("ErrorLevel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ErrorLevel = (string) content.GetValueForProperty("ErrorLevel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ErrorLevel, global::System.Convert.ToString); + } + if (content.Contains("CreationTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).CreationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("TaskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).TaskId = (string) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).TaskId, global::System.Convert.ToString); + } + if (content.Contains("ServiceErrorDetailCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailCode = (string) content.GetValueForProperty("ServiceErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailCode, global::System.Convert.ToString); + } + if (content.Contains("ServiceErrorDetailMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailMessage = (string) content.GetValueForProperty("ServiceErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailMessage, global::System.Convert.ToString); + } + if (content.Contains("ServiceErrorDetailPossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailPossibleCaus = (string) content.GetValueForProperty("ServiceErrorDetailPossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailPossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("ServiceErrorDetailRecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailRecommendedAction = (string) content.GetValueForProperty("ServiceErrorDetailRecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailRecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("ServiceErrorDetailActivityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailActivityId = (string) content.GetValueForProperty("ServiceErrorDetailActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailActivityId, global::System.Convert.ToString); + } + if (content.Contains("ProviderErrorDetailErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorCode = (int?) content.GetValueForProperty("ProviderErrorDetailErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ProviderErrorDetailErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorMessage = (string) content.GetValueForProperty("ProviderErrorDetailErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("ProviderErrorDetailErrorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorId = (string) content.GetValueForProperty("ProviderErrorDetailErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorId, global::System.Convert.ToString); + } + if (content.Contains("ProviderErrorDetailPossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailPossibleCaus = (string) content.GetValueForProperty("ProviderErrorDetailPossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailPossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("ProviderErrorDetailRecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailRecommendedAction = (string) content.GetValueForProperty("ProviderErrorDetailRecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailRecommendedAction, 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 JobErrorDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ServiceErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceError) content.GetValueForProperty("ServiceErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ServiceErrorTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderError) content.GetValueForProperty("ProviderErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderErrorTypeConverter.ConvertFrom); + } + if (content.Contains("ErrorLevel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ErrorLevel = (string) content.GetValueForProperty("ErrorLevel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ErrorLevel, global::System.Convert.ToString); + } + if (content.Contains("CreationTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).CreationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("TaskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).TaskId = (string) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).TaskId, global::System.Convert.ToString); + } + if (content.Contains("ServiceErrorDetailCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailCode = (string) content.GetValueForProperty("ServiceErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailCode, global::System.Convert.ToString); + } + if (content.Contains("ServiceErrorDetailMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailMessage = (string) content.GetValueForProperty("ServiceErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailMessage, global::System.Convert.ToString); + } + if (content.Contains("ServiceErrorDetailPossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailPossibleCaus = (string) content.GetValueForProperty("ServiceErrorDetailPossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailPossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("ServiceErrorDetailRecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailRecommendedAction = (string) content.GetValueForProperty("ServiceErrorDetailRecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailRecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("ServiceErrorDetailActivityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailActivityId = (string) content.GetValueForProperty("ServiceErrorDetailActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ServiceErrorDetailActivityId, global::System.Convert.ToString); + } + if (content.Contains("ProviderErrorDetailErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorCode = (int?) content.GetValueForProperty("ProviderErrorDetailErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ProviderErrorDetailErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorMessage = (string) content.GetValueForProperty("ProviderErrorDetailErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("ProviderErrorDetailErrorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorId = (string) content.GetValueForProperty("ProviderErrorDetailErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailErrorId, global::System.Convert.ToString); + } + if (content.Contains("ProviderErrorDetailPossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailPossibleCaus = (string) content.GetValueForProperty("ProviderErrorDetailPossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailPossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("ProviderErrorDetailRecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailRecommendedAction = (string) content.GetValueForProperty("ProviderErrorDetailRecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal)this).ProviderErrorDetailRecommendedAction, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class contains the error details per object. + [System.ComponentModel.TypeConverter(typeof(JobErrorDetailsTypeConverter))] + public partial interface IJobErrorDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobErrorDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/JobErrorDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/JobErrorDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/JobErrorDetails.TypeConverter.cs index 933a98d36ada..2e92d4e1662e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobErrorDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IJobErrorDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobErrorDetails.cs b/src/Migrate/generated/api/Models/Api202301/JobErrorDetails.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/JobErrorDetails.cs rename to src/Migrate/generated/api/Models/Api202301/JobErrorDetails.cs index c6d3a8792469..83e2d1d15be8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobErrorDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// This class contains the error details per object. public partial class JobErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal { /// Backing field for property. @@ -28,64 +28,64 @@ public partial class JobErrorDetails : public string ErrorLevel { get => this._errorLevel; set => this._errorLevel = value; } /// Internal Acessors for ProviderErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderError Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal.ProviderErrorDetail { get => (this._providerErrorDetail = this._providerErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderError()); set { {_providerErrorDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderError Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal.ProviderErrorDetail { get => (this._providerErrorDetail = this._providerErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderError()); set { {_providerErrorDetail = value;} } } /// Internal Acessors for ServiceErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceError Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetailsInternal.ServiceErrorDetail { get => (this._serviceErrorDetail = this._serviceErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ServiceError()); set { {_serviceErrorDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceError Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetailsInternal.ServiceErrorDetail { get => (this._serviceErrorDetail = this._serviceErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ServiceError()); set { {_serviceErrorDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderError _providerErrorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderError _providerErrorDetail; /// The Provider error details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderError ProviderErrorDetail { get => (this._providerErrorDetail = this._providerErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderError()); set => this._providerErrorDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderError ProviderErrorDetail { get => (this._providerErrorDetail = this._providerErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderError()); set => this._providerErrorDetail = value; } /// The Error code. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? ProviderErrorDetailErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)ProviderErrorDetail).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)ProviderErrorDetail).ErrorCode = value ?? default(int); } + public int? ProviderErrorDetailErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)ProviderErrorDetail).ErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)ProviderErrorDetail).ErrorCode = value ?? default(int); } /// The Provider error Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderErrorDetailErrorId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)ProviderErrorDetail).ErrorId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)ProviderErrorDetail).ErrorId = value ?? null; } + public string ProviderErrorDetailErrorId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)ProviderErrorDetail).ErrorId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)ProviderErrorDetail).ErrorId = value ?? null; } /// The Error message. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderErrorDetailErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)ProviderErrorDetail).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)ProviderErrorDetail).ErrorMessage = value ?? null; } + public string ProviderErrorDetailErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)ProviderErrorDetail).ErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)ProviderErrorDetail).ErrorMessage = value ?? null; } /// The possible causes for the error. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderErrorDetailPossibleCaus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)ProviderErrorDetail).PossibleCaus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)ProviderErrorDetail).PossibleCaus = value ?? null; } + public string ProviderErrorDetailPossibleCaus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)ProviderErrorDetail).PossibleCaus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)ProviderErrorDetail).PossibleCaus = value ?? null; } /// The recommended action to resolve the error. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderErrorDetailRecommendedAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)ProviderErrorDetail).RecommendedAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal)ProviderErrorDetail).RecommendedAction = value ?? null; } + public string ProviderErrorDetailRecommendedAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)ProviderErrorDetail).RecommendedAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)ProviderErrorDetail).RecommendedAction = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceError _serviceErrorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceError _serviceErrorDetail; /// The Service error details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceError ServiceErrorDetail { get => (this._serviceErrorDetail = this._serviceErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ServiceError()); set => this._serviceErrorDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceError ServiceErrorDetail { get => (this._serviceErrorDetail = this._serviceErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ServiceError()); set => this._serviceErrorDetail = value; } /// Activity Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ServiceErrorDetailActivityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)ServiceErrorDetail).ActivityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)ServiceErrorDetail).ActivityId = value ?? null; } + public string ServiceErrorDetailActivityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)ServiceErrorDetail).ActivityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)ServiceErrorDetail).ActivityId = value ?? null; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ServiceErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)ServiceErrorDetail).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)ServiceErrorDetail).Code = value ?? null; } + public string ServiceErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)ServiceErrorDetail).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)ServiceErrorDetail).Code = value ?? null; } /// Error message. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ServiceErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)ServiceErrorDetail).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)ServiceErrorDetail).Message = value ?? null; } + public string ServiceErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)ServiceErrorDetail).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)ServiceErrorDetail).Message = value ?? null; } /// Possible causes of error. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ServiceErrorDetailPossibleCaus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)ServiceErrorDetail).PossibleCaus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)ServiceErrorDetail).PossibleCaus = value ?? null; } + public string ServiceErrorDetailPossibleCaus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)ServiceErrorDetail).PossibleCaus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)ServiceErrorDetail).PossibleCaus = value ?? null; } /// Recommended action to resolve error. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ServiceErrorDetailRecommendedAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)ServiceErrorDetail).RecommendedAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal)ServiceErrorDetail).RecommendedAction = value ?? null; } + public string ServiceErrorDetailRecommendedAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)ServiceErrorDetail).RecommendedAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)ServiceErrorDetail).RecommendedAction = value ?? null; } /// Backing field for property. private string _taskId; @@ -219,7 +219,7 @@ internal partial interface IJobErrorDetailsInternal /// Error level of error. string ErrorLevel { get; set; } /// The Provider error details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderError ProviderErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderError ProviderErrorDetail { get; set; } /// The Error code. int? ProviderErrorDetailErrorCode { get; set; } /// The Provider error Id. @@ -231,7 +231,7 @@ internal partial interface IJobErrorDetailsInternal /// The recommended action to resolve the error. string ProviderErrorDetailRecommendedAction { get; set; } /// The Service error details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceError ServiceErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceError ServiceErrorDetail { get; set; } /// Activity Id. string ServiceErrorDetailActivityId { get; set; } /// Error code. diff --git a/src/Migrate/generated/api/Models/Api20220501/JobErrorDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/JobErrorDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/JobErrorDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/JobErrorDetails.json.cs index 82bde050942c..d3c98951860c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobErrorDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobErrorDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobErrorDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new JobErrorDetails(json) : null; } @@ -77,8 +77,8 @@ internal JobErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json { return; } - {_serviceErrorDetail = If( json?.PropertyT("serviceErrorDetails"), out var __jsonServiceErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ServiceError.FromJson(__jsonServiceErrorDetails) : ServiceErrorDetail;} - {_providerErrorDetail = If( json?.PropertyT("providerErrorDetails"), out var __jsonProviderErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderError.FromJson(__jsonProviderErrorDetails) : ProviderErrorDetail;} + {_serviceErrorDetail = If( json?.PropertyT("serviceErrorDetails"), out var __jsonServiceErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ServiceError.FromJson(__jsonServiceErrorDetails) : ServiceErrorDetail;} + {_providerErrorDetail = If( json?.PropertyT("providerErrorDetails"), out var __jsonProviderErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderError.FromJson(__jsonProviderErrorDetails) : ProviderErrorDetail;} {_errorLevel = If( json?.PropertyT("errorLevel"), out var __jsonErrorLevel) ? (string)__jsonErrorLevel : (string)ErrorLevel;} {_creationTime = If( json?.PropertyT("creationTime"), out var __jsonCreationTime) ? global::System.DateTime.TryParse((string)__jsonCreationTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreationTimeValue) ? __jsonCreationTimeValue : CreationTime : CreationTime;} {_taskId = If( json?.PropertyT("taskId"), out var __jsonTaskId) ? (string)__jsonTaskId : (string)TaskId;} diff --git a/src/Migrate/generated/api/Models/Api202301/JobPropertiesAutoGenerated.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/JobPropertiesAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..867b0b2c5795 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/JobPropertiesAutoGenerated.PowerShell.cs @@ -0,0 +1,264 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Job custom data details. + [System.ComponentModel.TypeConverter(typeof(JobPropertiesAutoGeneratedTypeConverter))] + public partial class JobPropertiesAutoGenerated + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IJobPropertiesAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new JobPropertiesAutoGenerated(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.Migrate.Models.Api202301.IJobPropertiesAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new JobPropertiesAutoGenerated(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.Migrate.Models.Api202301.IJobPropertiesAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal JobPropertiesAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ActivityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).ActivityId, global::System.Convert.ToString); + } + if (content.Contains("ScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).ScenarioName = (string) content.GetValueForProperty("ScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).ScenarioName, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("StateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).StateDescription = (string) content.GetValueForProperty("StateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).StateDescription, global::System.Convert.ToString); + } + if (content.Contains("Task")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).Task = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[]) content.GetValueForProperty("Task",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).Task, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTaskTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AllowedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).AllowedAction = (string[]) content.GetValueForProperty("AllowedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).AllowedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("TargetObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).TargetObjectId = (string) content.GetValueForProperty("TargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).TargetObjectId, global::System.Convert.ToString); + } + if (content.Contains("TargetObjectName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).TargetObjectName = (string) content.GetValueForProperty("TargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).TargetObjectName, global::System.Convert.ToString); + } + if (content.Contains("TargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).TargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("CustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); + } + if (content.Contains("CustomDetailAffectedObjectDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).CustomDetailAffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("CustomDetailAffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).CustomDetailAffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal JobPropertiesAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ActivityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).ActivityId, global::System.Convert.ToString); + } + if (content.Contains("ScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).ScenarioName = (string) content.GetValueForProperty("ScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).ScenarioName, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("StateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).StateDescription = (string) content.GetValueForProperty("StateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).StateDescription, global::System.Convert.ToString); + } + if (content.Contains("Task")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).Task = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[]) content.GetValueForProperty("Task",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).Task, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTaskTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AllowedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).AllowedAction = (string[]) content.GetValueForProperty("AllowedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).AllowedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("TargetObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).TargetObjectId = (string) content.GetValueForProperty("TargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).TargetObjectId, global::System.Convert.ToString); + } + if (content.Contains("TargetObjectName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).TargetObjectName = (string) content.GetValueForProperty("TargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).TargetObjectName, global::System.Convert.ToString); + } + if (content.Contains("TargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).TargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("CustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).CustomDetailInstanceType, global::System.Convert.ToString); + } + if (content.Contains("CustomDetailAffectedObjectDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).CustomDetailAffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("CustomDetailAffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal)this).CustomDetailAffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Job custom data details. + [System.ComponentModel.TypeConverter(typeof(JobPropertiesAutoGeneratedTypeConverter))] + public partial interface IJobPropertiesAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobPropertiesAutoGenerated.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/JobPropertiesAutoGenerated.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/JobPropertiesAutoGenerated.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/JobPropertiesAutoGenerated.TypeConverter.cs index 5b3a0619db5b..dd58106249f0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobPropertiesAutoGenerated.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobPropertiesAutoGenerated.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGenerated ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGenerated).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobPropertiesAutoGenerated.cs b/src/Migrate/generated/api/Models/Api202301/JobPropertiesAutoGenerated.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/JobPropertiesAutoGenerated.cs rename to src/Migrate/generated/api/Models/Api202301/JobPropertiesAutoGenerated.cs index 727e1f824e3f..658ac74371ec 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobPropertiesAutoGenerated.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobPropertiesAutoGenerated.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Job custom data details. public partial class JobPropertiesAutoGenerated : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal { /// Backing field for property. @@ -28,22 +28,22 @@ public partial class JobPropertiesAutoGenerated : public string[] AllowedAction { get => this._allowedAction; set => this._allowedAction = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails _customDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails _customDetail; /// The custom job details like test failover job details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails()); set => this._customDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails()); set => this._customDetail = value; } /// /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow /// object details. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails CustomDetailAffectedObjectDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)CustomDetail).AffectedObjectDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)CustomDetail).AffectedObjectDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails CustomDetailAffectedObjectDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)CustomDetail).AffectedObjectDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)CustomDetail).AffectedObjectDetail = value ?? null /* model class */; } /// Gets the type of job details (see JobDetailsTypes enum for possible values). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)CustomDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)CustomDetail).InstanceType = value ?? null; } + public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)CustomDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)CustomDetail).InstanceType = value ?? null; } /// Backing field for property. private global::System.DateTime? _endTime; @@ -53,11 +53,11 @@ public partial class JobPropertiesAutoGenerated : public global::System.DateTime? EndTime { get => this._endTime; set => this._endTime = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[] _error; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[] _error; /// The errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[] Error { get => this._error; set => this._error = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[] Error { get => this._error; set => this._error = value; } /// Backing field for property. private string _friendlyName; @@ -67,7 +67,7 @@ public partial class JobPropertiesAutoGenerated : public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } /// Internal Acessors for CustomDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGeneratedInternal.CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails()); set { {_customDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGeneratedInternal.CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails()); set { {_customDetail = value;} } } /// Backing field for property. private string _scenarioName; @@ -127,11 +127,11 @@ public partial class JobPropertiesAutoGenerated : public string TargetObjectName { get => this._targetObjectName; set => this._targetObjectName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] _task; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] _task; /// The tasks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] Task { get => this._task; set => this._task = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] Task { get => this._task; set => this._task = value; } /// Creates an new instance. public JobPropertiesAutoGenerated() @@ -168,8 +168,8 @@ public partial interface IJobPropertiesAutoGenerated : ReadOnly = false, Description = @"The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow object details.", SerializedName = @"affectedObjectDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails CustomDetailAffectedObjectDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails CustomDetailAffectedObjectDetail { get; set; } /// Gets the type of job details (see JobDetailsTypes enum for possible values). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -192,8 +192,8 @@ public partial interface IJobPropertiesAutoGenerated : ReadOnly = false, Description = @"The errors.", SerializedName = @"errors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[] Error { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[] Error { get; set; } /// The DisplayName. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -272,8 +272,8 @@ public partial interface IJobPropertiesAutoGenerated : ReadOnly = false, Description = @"The tasks.", SerializedName = @"tasks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] Task { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] Task { get; set; } } /// Job custom data details. @@ -285,18 +285,18 @@ internal partial interface IJobPropertiesAutoGeneratedInternal /// The Allowed action the job. string[] AllowedAction { get; set; } /// The custom job details like test failover job details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails CustomDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails CustomDetail { get; set; } /// /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow /// object details. /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails CustomDetailAffectedObjectDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails CustomDetailAffectedObjectDetail { get; set; } /// Gets the type of job details (see JobDetailsTypes enum for possible values). string CustomDetailInstanceType { get; set; } /// The end time. global::System.DateTime? EndTime { get; set; } /// The errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails[] Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails[] Error { get; set; } /// The DisplayName. string FriendlyName { get; set; } /// The ScenarioName. @@ -322,7 +322,7 @@ internal partial interface IJobPropertiesAutoGeneratedInternal /// The name of the affected object. string TargetObjectName { get; set; } /// The tasks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] Task { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] Task { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobPropertiesAutoGenerated.json.cs b/src/Migrate/generated/api/Models/Api202301/JobPropertiesAutoGenerated.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/JobPropertiesAutoGenerated.json.cs rename to src/Migrate/generated/api/Models/Api202301/JobPropertiesAutoGenerated.json.cs index 54239ad37114..fb50c05d4cd2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobPropertiesAutoGenerated.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobPropertiesAutoGenerated.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobPropertiesAutoGenerated partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGenerated. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGenerated. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobPropertiesAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobPropertiesAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new JobPropertiesAutoGenerated(json) : null; } @@ -77,14 +77,14 @@ internal JobPropertiesAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.Migrate.R { return; } - {_customDetail = If( json?.PropertyT("customDetails"), out var __jsonCustomDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails.FromJson(__jsonCustomDetails) : CustomDetail;} + {_customDetail = If( json?.PropertyT("customDetails"), out var __jsonCustomDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails.FromJson(__jsonCustomDetails) : CustomDetail;} {_activityId = If( json?.PropertyT("activityId"), out var __jsonActivityId) ? (string)__jsonActivityId : (string)ActivityId;} {_scenarioName = If( json?.PropertyT("scenarioName"), out var __jsonScenarioName) ? (string)__jsonScenarioName : (string)ScenarioName;} {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)FriendlyName;} {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)State;} {_stateDescription = If( json?.PropertyT("stateDescription"), out var __jsonStateDescription) ? (string)__jsonStateDescription : (string)StateDescription;} - {_task = If( json?.PropertyT("tasks"), out var __jsonTasks) ? If( __jsonTasks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IAsrTask) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.AsrTask.FromJson(__u) )) ))() : null : Task;} - {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? If( __jsonErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobErrorDetails.FromJson(__p) )) ))() : null : Error;} + {_task = If( json?.PropertyT("tasks"), out var __jsonTasks) ? If( __jsonTasks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IAsrTask) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTask.FromJson(__u) )) ))() : null : Task;} + {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? If( __jsonErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobErrorDetails.FromJson(__p) )) ))() : null : Error;} {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : StartTime : StartTime;} {_endTime = If( json?.PropertyT("endTime"), out var __jsonEndTime) ? global::System.DateTime.TryParse((string)__jsonEndTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEndTimeValue) ? __jsonEndTimeValue : EndTime : EndTime;} {_allowedAction = If( json?.PropertyT("allowedActions"), out var __jsonAllowedActions) ? If( __jsonAllowedActions as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(string) (__k is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __j ? (string)(__j.ToString()) : null)) ))() : null : AllowedAction;} diff --git a/src/Migrate/generated/api/Models/Api202301/JobQueryParameter.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/JobQueryParameter.PowerShell.cs new file mode 100644 index 000000000000..c1ff9b6f895b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/JobQueryParameter.PowerShell.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Query parameter to enumerate jobs. + [System.ComponentModel.TypeConverter(typeof(JobQueryParameterTypeConverter))] + public partial class JobQueryParameter + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IJobQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new JobQueryParameter(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.Migrate.Models.Api202301.IJobQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new JobQueryParameter(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.Migrate.Models.Api202301.IJobQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal JobQueryParameter(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).StartTime, global::System.Convert.ToString); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).EndTime, global::System.Convert.ToString); + } + if (content.Contains("FabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).FabricId = (string) content.GetValueForProperty("FabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).FabricId, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).AffectedObjectType = (string) content.GetValueForProperty("AffectedObjectType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).AffectedObjectType, global::System.Convert.ToString); + } + if (content.Contains("JobStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).JobStatus = (string) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).JobStatus, global::System.Convert.ToString); + } + if (content.Contains("JobOutputType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).JobOutputType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ExportJobOutputSerializationType?) content.GetValueForProperty("JobOutputType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).JobOutputType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ExportJobOutputSerializationType.CreateFrom); + } + if (content.Contains("JobName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).JobName, global::System.Convert.ToString); + } + if (content.Contains("TimezoneOffset")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).TimezoneOffset = (double?) content.GetValueForProperty("TimezoneOffset",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).TimezoneOffset, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal JobQueryParameter(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).StartTime, global::System.Convert.ToString); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).EndTime, global::System.Convert.ToString); + } + if (content.Contains("FabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).FabricId = (string) content.GetValueForProperty("FabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).FabricId, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).AffectedObjectType = (string) content.GetValueForProperty("AffectedObjectType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).AffectedObjectType, global::System.Convert.ToString); + } + if (content.Contains("JobStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).JobStatus = (string) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).JobStatus, global::System.Convert.ToString); + } + if (content.Contains("JobOutputType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).JobOutputType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ExportJobOutputSerializationType?) content.GetValueForProperty("JobOutputType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).JobOutputType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ExportJobOutputSerializationType.CreateFrom); + } + if (content.Contains("JobName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).JobName, global::System.Convert.ToString); + } + if (content.Contains("TimezoneOffset")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).TimezoneOffset = (double?) content.GetValueForProperty("TimezoneOffset",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal)this).TimezoneOffset, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Query parameter to enumerate jobs. + [System.ComponentModel.TypeConverter(typeof(JobQueryParameterTypeConverter))] + public partial interface IJobQueryParameter + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobQueryParameter.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/JobQueryParameter.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/JobQueryParameter.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/JobQueryParameter.TypeConverter.cs index 1616dda944b4..eeeb0c6884ad 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobQueryParameter.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IJobQueryParameter ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameter ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameter).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameter).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobQueryParameter.cs b/src/Migrate/generated/api/Models/Api202301/JobQueryParameter.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/JobQueryParameter.cs rename to src/Migrate/generated/api/Models/Api202301/JobQueryParameter.cs index 38667b165d26..3a5c09c70c69 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobQueryParameter.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Query parameter to enumerate jobs. public partial class JobQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameter, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameterInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameter, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameterInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/JobQueryParameter.json.cs b/src/Migrate/generated/api/Models/Api202301/JobQueryParameter.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/JobQueryParameter.json.cs rename to src/Migrate/generated/api/Models/Api202301/JobQueryParameter.json.cs index cacd5dd76798..dd7429b3a942 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobQueryParameter.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobQueryParameter partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameter. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameter. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameter. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameter. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new JobQueryParameter(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/JobStatusEventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/JobStatusEventDetails.PowerShell.cs new file mode 100644 index 000000000000..33b3a56299d0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/JobStatusEventDetails.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Model class for event details of a job status event. + [System.ComponentModel.TypeConverter(typeof(JobStatusEventDetailsTypeConverter))] + public partial class JobStatusEventDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IJobStatusEventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new JobStatusEventDetails(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.Migrate.Models.Api202301.IJobStatusEventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new JobStatusEventDetails(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.Migrate.Models.Api202301.IJobStatusEventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal JobStatusEventDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("JobFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).JobFriendlyName = (string) content.GetValueForProperty("JobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).JobFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("JobStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).JobStatus = (string) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).JobStatus, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).AffectedObjectType = (string) content.GetValueForProperty("AffectedObjectType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).AffectedObjectType, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetailsInternal)this).InstanceType, 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 JobStatusEventDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("JobFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).JobFriendlyName = (string) content.GetValueForProperty("JobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).JobFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("JobStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).JobStatus = (string) content.GetValueForProperty("JobStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).JobStatus, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).AffectedObjectType = (string) content.GetValueForProperty("AffectedObjectType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal)this).AffectedObjectType, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Model class for event details of a job status event. + [System.ComponentModel.TypeConverter(typeof(JobStatusEventDetailsTypeConverter))] + public partial interface IJobStatusEventDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobStatusEventDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/JobStatusEventDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/JobStatusEventDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/JobStatusEventDetails.TypeConverter.cs index 17dd5f951ea5..f4576c0772d2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobStatusEventDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobStatusEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IJobStatusEventDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobStatusEventDetails.cs b/src/Migrate/generated/api/Models/Api202301/JobStatusEventDetails.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/JobStatusEventDetails.cs rename to src/Migrate/generated/api/Models/Api202301/JobStatusEventDetails.cs index 41457e42a118..f30464da3aa0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobStatusEventDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobStatusEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Model class for event details of a job status event. public partial class JobStatusEventDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails __eventSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails __eventSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventSpecificDetails(); /// Backing field for property. private string _affectedObjectType; @@ -28,7 +28,7 @@ public partial class JobStatusEventDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetailsInternal)__eventSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetailsInternal)__eventSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetailsInternal)__eventSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetailsInternal)__eventSpecificDetails).InstanceType = value ; } /// Backing field for property. private string _jobFriendlyName; @@ -72,7 +72,7 @@ public JobStatusEventDetails() /// Model class for event details of a job status event. public partial interface IJobStatusEventDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetails { /// AffectedObjectType for the event. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -110,7 +110,7 @@ public partial interface IJobStatusEventDetails : } /// Model class for event details of a job status event. internal partial interface IJobStatusEventDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventSpecificDetailsInternal { /// AffectedObjectType for the event. string AffectedObjectType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobStatusEventDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/JobStatusEventDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/JobStatusEventDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/JobStatusEventDetails.json.cs index c39743142cfc..e02d2ffdac51 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobStatusEventDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobStatusEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobStatusEventDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobStatusEventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobStatusEventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new JobStatusEventDetails(json) : null; } @@ -77,7 +77,7 @@ internal JobStatusEventDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - __eventSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventSpecificDetails(json); + __eventSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventSpecificDetails(json); {_jobId = If( json?.PropertyT("jobId"), out var __jsonJobId) ? (string)__jsonJobId : (string)JobId;} {_jobFriendlyName = If( json?.PropertyT("jobFriendlyName"), out var __jsonJobFriendlyName) ? (string)__jsonJobFriendlyName : (string)JobFriendlyName;} {_jobStatus = If( json?.PropertyT("jobStatus"), out var __jsonJobStatus) ? (string)__jsonJobStatus : (string)JobStatus;} diff --git a/src/Migrate/generated/api/Models/Api202301/JobTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/JobTaskDetails.PowerShell.cs new file mode 100644 index 000000000000..10f35c4ff415 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/JobTaskDetails.PowerShell.cs @@ -0,0 +1,202 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// + /// This class represents a task which is actually a workflow so that one can navigate to its individual drill down. + /// + [System.ComponentModel.TypeConverter(typeof(JobTaskDetailsTypeConverter))] + public partial class JobTaskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IJobTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new JobTaskDetails(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.Migrate.Models.Api202301.IJobTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new JobTaskDetails(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.Migrate.Models.Api202301.IJobTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal JobTaskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("JobTask")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity) content.GetValueForProperty("JobTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTask, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobEntityTypeConverter.ConvertFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobId = (string) content.GetValueForProperty("JobTaskJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobId, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName = (string) content.GetValueForProperty("JobTaskJobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectId = (string) content.GetValueForProperty("JobTaskTargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectId, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetObjectName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectName = (string) content.GetValueForProperty("JobTaskTargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectName, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType = (string) content.GetValueForProperty("JobTaskTargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobScenarioName = (string) content.GetValueForProperty("JobTaskJobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobScenarioName, 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 JobTaskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("JobTask")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity) content.GetValueForProperty("JobTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTask, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobEntityTypeConverter.ConvertFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobId = (string) content.GetValueForProperty("JobTaskJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobId, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName = (string) content.GetValueForProperty("JobTaskJobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectId = (string) content.GetValueForProperty("JobTaskTargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectId, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetObjectName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectName = (string) content.GetValueForProperty("JobTaskTargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectName, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType = (string) content.GetValueForProperty("JobTaskTargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobScenarioName = (string) content.GetValueForProperty("JobTaskJobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobScenarioName, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class represents a task which is actually a workflow so that one can navigate to its individual drill down. + [System.ComponentModel.TypeConverter(typeof(JobTaskDetailsTypeConverter))] + public partial interface IJobTaskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/JobTaskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/JobTaskDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/JobTaskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/JobTaskDetails.TypeConverter.cs index 9cf2b4727d4d..cb957b09fe0d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobTaskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IJobTaskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/JobTaskDetails.cs b/src/Migrate/generated/api/Models/Api202301/JobTaskDetails.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/JobTaskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/JobTaskDetails.cs index 45f2ebc4d5d0..1299a6e13d56 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobTaskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,53 +11,53 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// This class represents a task which is actually a workflow so that one can navigate to its individual drill down. /// public partial class JobTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails(); /// The type of task details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity _jobTask; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity _jobTask; /// The job entity. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity JobTask { get => (this._jobTask = this._jobTask ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobEntity()); set => this._jobTask = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity JobTask { get => (this._jobTask = this._jobTask ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobEntity()); set => this._jobTask = value; } /// The job display name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string JobTaskJobFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)JobTask).JobFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)JobTask).JobFriendlyName = value ?? null; } + public string JobTaskJobFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)JobTask).JobFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)JobTask).JobFriendlyName = value ?? null; } /// The job id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string JobTaskJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)JobTask).JobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)JobTask).JobId = value ?? null; } + public string JobTaskJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)JobTask).JobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)JobTask).JobId = value ?? null; } /// The job name. Enum type ScenarioName. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string JobTaskJobScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)JobTask).JobScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)JobTask).JobScenarioName = value ?? null; } + public string JobTaskJobScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)JobTask).JobScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)JobTask).JobScenarioName = value ?? null; } /// The workflow affected object type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string JobTaskTargetInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)JobTask).TargetInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)JobTask).TargetInstanceType = value ?? null; } + public string JobTaskTargetInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)JobTask).TargetInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)JobTask).TargetInstanceType = value ?? null; } /// The object id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string JobTaskTargetObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)JobTask).TargetObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)JobTask).TargetObjectId = value ?? null; } + public string JobTaskTargetObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)JobTask).TargetObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)JobTask).TargetObjectId = value ?? null; } /// The object name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string JobTaskTargetObjectName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)JobTask).TargetObjectName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntityInternal)JobTask).TargetObjectName = value ?? null; } + public string JobTaskTargetObjectName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)JobTask).TargetObjectName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntityInternal)JobTask).TargetObjectName = value ?? null; } /// Internal Acessors for JobTask - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetailsInternal.JobTask { get => (this._jobTask = this._jobTask ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobEntity()); set { {_jobTask = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal.JobTask { get => (this._jobTask = this._jobTask ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobEntity()); set { {_jobTask = value;} } } /// Creates an new instance. public JobTaskDetails() @@ -80,7 +80,7 @@ public JobTaskDetails() /// This class represents a task which is actually a workflow so that one can navigate to its individual drill down. public partial interface IJobTaskDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails { /// The job display name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -134,10 +134,10 @@ public partial interface IJobTaskDetails : } /// This class represents a task which is actually a workflow so that one can navigate to its individual drill down. internal partial interface IJobTaskDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal { /// The job entity. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobEntity JobTask { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity JobTask { get; set; } /// The job display name. string JobTaskJobFriendlyName { get; set; } /// The job id. diff --git a/src/Migrate/generated/api/Models/Api20220501/JobTaskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/JobTaskDetails.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/JobTaskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/JobTaskDetails.json.cs index 5fe3415a0917..ec93184a3412 100644 --- a/src/Migrate/generated/api/Models/Api20220501/JobTaskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/JobTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -56,15 +56,15 @@ public partial class JobTaskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetails 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.Migrate.Models.Api202301.IJobTaskDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetails 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.Migrate.Models.Api20220501.IJobTaskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { @@ -98,8 +98,8 @@ internal JobTaskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json. { return; } - __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails(json); - {_jobTask = If( json?.PropertyT("jobTask"), out var __jsonJobTask) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobEntity.FromJson(__jsonJobTask) : JobTask;} + __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails(json); + {_jobTask = If( json?.PropertyT("jobTask"), out var __jsonJobTask) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobEntity.FromJson(__jsonJobTask) : JobTask;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/KeyEncryptionKeyInfo.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/KeyEncryptionKeyInfo.PowerShell.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/KeyEncryptionKeyInfo.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/KeyEncryptionKeyInfo.PowerShell.cs index ee8f44b0033a..bd7c7bde185b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/KeyEncryptionKeyInfo.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/KeyEncryptionKeyInfo.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class KeyEncryptionKeyInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new KeyEncryptionKeyInfo(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.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new KeyEncryptionKeyInfo(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKey /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal KeyEncryptionKeyInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("KeyIdentifier")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfoInternal)this).KeyIdentifier = (string) content.GetValueForProperty("KeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfoInternal)this).KeyIdentifier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfoInternal)this).KeyIdentifier = (string) content.GetValueForProperty("KeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfoInternal)this).KeyIdentifier, global::System.Convert.ToString); } if (content.Contains("KeyVaultResourceArmId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfoInternal)this).KeyVaultResourceArmId = (string) content.GetValueForProperty("KeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfoInternal)this).KeyVaultResourceArmId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfoInternal)this).KeyVaultResourceArmId = (string) content.GetValueForProperty("KeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfoInternal)this).KeyVaultResourceArmId, 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. @@ -128,11 +128,11 @@ internal KeyEncryptionKeyInfo(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("KeyIdentifier")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfoInternal)this).KeyIdentifier = (string) content.GetValueForProperty("KeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfoInternal)this).KeyIdentifier, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfoInternal)this).KeyIdentifier = (string) content.GetValueForProperty("KeyIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfoInternal)this).KeyIdentifier, global::System.Convert.ToString); } if (content.Contains("KeyVaultResourceArmId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfoInternal)this).KeyVaultResourceArmId = (string) content.GetValueForProperty("KeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfoInternal)this).KeyVaultResourceArmId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfoInternal)this).KeyVaultResourceArmId = (string) content.GetValueForProperty("KeyVaultResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfoInternal)this).KeyVaultResourceArmId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/KeyEncryptionKeyInfo.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/KeyEncryptionKeyInfo.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/KeyEncryptionKeyInfo.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/KeyEncryptionKeyInfo.TypeConverter.cs index a1f419a60352..f3fc7da39004 100644 --- a/src/Migrate/generated/api/Models/Api20220501/KeyEncryptionKeyInfo.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/KeyEncryptionKeyInfo.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/KeyEncryptionKeyInfo.cs b/src/Migrate/generated/api/Models/Api202301/KeyEncryptionKeyInfo.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/KeyEncryptionKeyInfo.cs rename to src/Migrate/generated/api/Models/Api202301/KeyEncryptionKeyInfo.cs index cf33199523c7..27caecff5059 100644 --- a/src/Migrate/generated/api/Models/Api20220501/KeyEncryptionKeyInfo.cs +++ b/src/Migrate/generated/api/Models/Api202301/KeyEncryptionKeyInfo.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Key Encryption Key (KEK) information. public partial class KeyEncryptionKeyInfo : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfoInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/KeyEncryptionKeyInfo.json.cs b/src/Migrate/generated/api/Models/Api202301/KeyEncryptionKeyInfo.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/KeyEncryptionKeyInfo.json.cs rename to src/Migrate/generated/api/Models/Api202301/KeyEncryptionKeyInfo.json.cs index f14c3a6c2b62..4fa8ae965439 100644 --- a/src/Migrate/generated/api/Models/Api20220501/KeyEncryptionKeyInfo.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/KeyEncryptionKeyInfo.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class KeyEncryptionKeyInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IKeyEncryptionKeyInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IKeyEncryptionKeyInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new KeyEncryptionKeyInfo(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/LogicalNetwork.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/LogicalNetwork.PowerShell.cs new file mode 100644 index 000000000000..784589f56d78 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/LogicalNetwork.PowerShell.cs @@ -0,0 +1,208 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Logical network data model. + [System.ComponentModel.TypeConverter(typeof(LogicalNetworkTypeConverter))] + public partial class LogicalNetwork + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ILogicalNetwork DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new LogicalNetwork(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.Migrate.Models.Api202301.ILogicalNetwork DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new LogicalNetwork(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.Migrate.Models.Api202301.ILogicalNetwork FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal LogicalNetwork(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.Migrate.Models.Api202301.ILogicalNetworkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetworkPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("NetworkVirtualizationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).NetworkVirtualizationStatus = (string) content.GetValueForProperty("NetworkVirtualizationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).NetworkVirtualizationStatus, global::System.Convert.ToString); + } + if (content.Contains("Usage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).Usage = (string) content.GetValueForProperty("Usage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).Usage, global::System.Convert.ToString); + } + if (content.Contains("DefinitionsStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).DefinitionsStatus = (string) content.GetValueForProperty("DefinitionsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).DefinitionsStatus, 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 LogicalNetwork(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.Migrate.Models.Api202301.ILogicalNetworkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetworkPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("NetworkVirtualizationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).NetworkVirtualizationStatus = (string) content.GetValueForProperty("NetworkVirtualizationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).NetworkVirtualizationStatus, global::System.Convert.ToString); + } + if (content.Contains("Usage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).Usage = (string) content.GetValueForProperty("Usage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).Usage, global::System.Convert.ToString); + } + if (content.Contains("DefinitionsStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).DefinitionsStatus = (string) content.GetValueForProperty("DefinitionsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal)this).DefinitionsStatus, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Logical network data model. + [System.ComponentModel.TypeConverter(typeof(LogicalNetworkTypeConverter))] + public partial interface ILogicalNetwork + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/LogicalNetwork.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/LogicalNetwork.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/LogicalNetwork.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/LogicalNetwork.TypeConverter.cs index e06e19f4ffa7..d3be97d52009 100644 --- a/src/Migrate/generated/api/Models/Api20220501/LogicalNetwork.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/LogicalNetwork.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ILogicalNetwork ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetwork ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetwork).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetwork).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/LogicalNetwork.cs b/src/Migrate/generated/api/Models/Api202301/LogicalNetwork.cs new file mode 100644 index 000000000000..e3c978b351d7 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/LogicalNetwork.cs @@ -0,0 +1,157 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Logical network data model. + public partial class LogicalNetwork : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetwork, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// A value indicating whether logical network definitions are isolated. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DefinitionsStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)Property).LogicalNetworkDefinitionsStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)Property).LogicalNetworkDefinitionsStatus = value ?? null; } + + /// The Friendly Name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)Property).FriendlyName = value ?? null; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetworkProperties()); set { {_property = value;} } } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// + /// A value indicating whether Network Virtualization is enabled for the logical network. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string NetworkVirtualizationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)Property).NetworkVirtualizationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)Property).NetworkVirtualizationStatus = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkProperties _property; + + /// The Logical Network Properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetworkProperties()); set => this._property = value; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// + /// A value indicating whether logical network is used as private test network by test failover. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Usage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)Property).LogicalNetworkUsage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)Property).LogicalNetworkUsage = value ?? null; } + + /// Creates an new instance. + public LogicalNetwork() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Logical network data model. + public partial interface ILogicalNetwork : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// A value indicating whether logical network definitions are isolated. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether logical network definitions are isolated.", + SerializedName = @"logicalNetworkDefinitionsStatus", + PossibleTypes = new [] { typeof(string) })] + string DefinitionsStatus { get; set; } + /// The Friendly Name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Friendly Name.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// + /// A value indicating whether Network Virtualization is enabled for the logical network. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether Network Virtualization is enabled for the logical network.", + SerializedName = @"networkVirtualizationStatus", + PossibleTypes = new [] { typeof(string) })] + string NetworkVirtualizationStatus { get; set; } + /// + /// A value indicating whether logical network is used as private test network by test failover. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether logical network is used as private test network by test failover.", + SerializedName = @"logicalNetworkUsage", + PossibleTypes = new [] { typeof(string) })] + string Usage { get; set; } + + } + /// Logical network data model. + internal partial interface ILogicalNetworkInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// A value indicating whether logical network definitions are isolated. + string DefinitionsStatus { get; set; } + /// The Friendly Name. + string FriendlyName { get; set; } + /// + /// A value indicating whether Network Virtualization is enabled for the logical network. + /// + string NetworkVirtualizationStatus { get; set; } + /// The Logical Network Properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkProperties Property { get; set; } + /// + /// A value indicating whether logical network is used as private test network by test failover. + /// + string Usage { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/LogicalNetwork.json.cs b/src/Migrate/generated/api/Models/Api202301/LogicalNetwork.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/LogicalNetwork.json.cs rename to src/Migrate/generated/api/Models/Api202301/LogicalNetwork.json.cs index 42187d04b3fb..c9b81d736230 100644 --- a/src/Migrate/generated/api/Models/Api20220501/LogicalNetwork.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/LogicalNetwork.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class LogicalNetwork partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetwork. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetwork. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetwork. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetwork. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetwork FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetwork FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new LogicalNetwork(json) : null; } @@ -77,8 +77,8 @@ internal LogicalNetwork(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json. { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetworkProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetworkProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkCollection.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/LogicalNetworkCollection.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/LogicalNetworkCollection.PowerShell.cs index a18af1ba0734..22c61d1fb52d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkCollection.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class LogicalNetworkCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.ILogicalNetworkCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new LogicalNetworkCollection(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.Migrate.Models.Api20220501.ILogicalNetworkCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new LogicalNetworkCollection(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILog /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal LogicalNetworkCollection(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetwork[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetworkTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetwork[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetworkTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollectionInternal)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. @@ -128,11 +128,11 @@ internal LogicalNetworkCollection(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetwork[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetworkTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetwork[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetworkTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollectionInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/LogicalNetworkCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/LogicalNetworkCollection.TypeConverter.cs index dc99941bd689..0b49fce4af55 100644 --- a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ILogicalNetworkCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkCollection.cs b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkCollection.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/LogicalNetworkCollection.cs rename to src/Migrate/generated/api/Models/Api202301/LogicalNetworkCollection.cs index 844036134984..34a3de7af653 100644 --- a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// List of logical networks. public partial class LogicalNetworkCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class LogicalNetworkCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetwork[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetwork[] _value; /// The Logical Networks list details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetwork[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetwork[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public LogicalNetworkCollection() @@ -51,8 +51,8 @@ public partial interface ILogicalNetworkCollection : ReadOnly = false, Description = @"The Logical Networks list details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetwork) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetwork[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetwork) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetwork[] Value { get; set; } } /// List of logical networks. @@ -62,7 +62,7 @@ internal partial interface ILogicalNetworkCollectionInternal /// The value of next link. string NextLink { get; set; } /// The Logical Networks list details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetwork[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetwork[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkCollection.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/LogicalNetworkCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/LogicalNetworkCollection.json.cs index d1799a37b701..e13b5807b4b9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class LogicalNetworkCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new LogicalNetworkCollection(json) : null; } @@ -77,7 +77,7 @@ internal LogicalNetworkCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ILogicalNetwork) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.LogicalNetwork.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.ILogicalNetwork) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.LogicalNetwork.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/LogicalNetworkProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkProperties.PowerShell.cs new file mode 100644 index 000000000000..a23b1aab0e4f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkProperties.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Logical Network Properties. + [System.ComponentModel.TypeConverter(typeof(LogicalNetworkPropertiesTypeConverter))] + public partial class LogicalNetworkProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ILogicalNetworkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new LogicalNetworkProperties(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.Migrate.Models.Api202301.ILogicalNetworkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new LogicalNetworkProperties(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.Migrate.Models.Api202301.ILogicalNetworkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal LogicalNetworkProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("NetworkVirtualizationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).NetworkVirtualizationStatus = (string) content.GetValueForProperty("NetworkVirtualizationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).NetworkVirtualizationStatus, global::System.Convert.ToString); + } + if (content.Contains("LogicalNetworkUsage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).LogicalNetworkUsage = (string) content.GetValueForProperty("LogicalNetworkUsage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).LogicalNetworkUsage, global::System.Convert.ToString); + } + if (content.Contains("LogicalNetworkDefinitionsStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).LogicalNetworkDefinitionsStatus = (string) content.GetValueForProperty("LogicalNetworkDefinitionsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).LogicalNetworkDefinitionsStatus, 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 LogicalNetworkProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("NetworkVirtualizationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).NetworkVirtualizationStatus = (string) content.GetValueForProperty("NetworkVirtualizationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).NetworkVirtualizationStatus, global::System.Convert.ToString); + } + if (content.Contains("LogicalNetworkUsage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).LogicalNetworkUsage = (string) content.GetValueForProperty("LogicalNetworkUsage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).LogicalNetworkUsage, global::System.Convert.ToString); + } + if (content.Contains("LogicalNetworkDefinitionsStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).LogicalNetworkDefinitionsStatus = (string) content.GetValueForProperty("LogicalNetworkDefinitionsStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal)this).LogicalNetworkDefinitionsStatus, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Logical Network Properties. + [System.ComponentModel.TypeConverter(typeof(LogicalNetworkPropertiesTypeConverter))] + public partial interface ILogicalNetworkProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/LogicalNetworkProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/LogicalNetworkProperties.TypeConverter.cs index d448e9a2667d..28c303a6a643 100644 --- a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ILogicalNetworkProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkProperties.cs b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkProperties.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/LogicalNetworkProperties.cs rename to src/Migrate/generated/api/Models/Api202301/LogicalNetworkProperties.cs index ea85224db629..23164e93a362 100644 --- a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Logical Network Properties. public partial class LogicalNetworkProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkProperties.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/LogicalNetworkProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/LogicalNetworkProperties.json.cs index e28a1a642827..1c7fdfa0ef75 100644 --- a/src/Migrate/generated/api/Models/Api20220501/LogicalNetworkProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/LogicalNetworkProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class LogicalNetworkProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ILogicalNetworkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ILogicalNetworkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new LogicalNetworkProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ManualActionTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ManualActionTaskDetails.PowerShell.cs new file mode 100644 index 000000000000..d0a3f7a3079c --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ManualActionTaskDetails.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class represents the manual action task details. + [System.ComponentModel.TypeConverter(typeof(ManualActionTaskDetailsTypeConverter))] + public partial class ManualActionTaskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IManualActionTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ManualActionTaskDetails(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.Migrate.Models.Api202301.IManualActionTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ManualActionTaskDetails(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.Migrate.Models.Api202301.IManualActionTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ManualActionTaskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Instruction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetailsInternal)this).Instruction = (string) content.GetValueForProperty("Instruction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetailsInternal)this).Instruction, global::System.Convert.ToString); + } + if (content.Contains("Observation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetailsInternal)this).Observation = (string) content.GetValueForProperty("Observation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetailsInternal)this).Observation, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, 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 ManualActionTaskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Instruction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetailsInternal)this).Instruction = (string) content.GetValueForProperty("Instruction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetailsInternal)this).Instruction, global::System.Convert.ToString); + } + if (content.Contains("Observation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetailsInternal)this).Observation = (string) content.GetValueForProperty("Observation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetailsInternal)this).Observation, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class represents the manual action task details. + [System.ComponentModel.TypeConverter(typeof(ManualActionTaskDetailsTypeConverter))] + public partial interface IManualActionTaskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ManualActionTaskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ManualActionTaskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ManualActionTaskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ManualActionTaskDetails.TypeConverter.cs index 8f756ad9733d..97be7a5e985a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ManualActionTaskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ManualActionTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IManualActionTaskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ManualActionTaskDetails.cs b/src/Migrate/generated/api/Models/Api202301/ManualActionTaskDetails.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/ManualActionTaskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/ManualActionTaskDetails.cs index 43e53a50a734..54e586a9da92 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ManualActionTaskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/ManualActionTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// This class represents the manual action task details. public partial class ManualActionTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails(); /// The type of task details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType = value ; } /// Backing field for property. private string _instruction; @@ -65,7 +65,7 @@ public ManualActionTaskDetails() /// This class represents the manual action task details. public partial interface IManualActionTaskDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails { /// The instructions. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -95,7 +95,7 @@ public partial interface IManualActionTaskDetails : } /// This class represents the manual action task details. internal partial interface IManualActionTaskDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal { /// The instructions. string Instruction { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ManualActionTaskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/ManualActionTaskDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ManualActionTaskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/ManualActionTaskDetails.json.cs index 3dc89676fa85..dffd51f00851 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ManualActionTaskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ManualActionTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ManualActionTaskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IManualActionTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IManualActionTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ManualActionTaskDetails(json) : null; } @@ -77,7 +77,7 @@ internal ManualActionTaskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails(json); + __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails(json); {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_instruction = If( json?.PropertyT("instructions"), out var __jsonInstructions) ? (string)__jsonInstructions : (string)Instruction;} {_observation = If( json?.PropertyT("observation"), out var __jsonObservation) ? (string)__jsonObservation : (string)Observation;} diff --git a/src/Migrate/generated/api/Models/Api202301/MarsAgentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/MarsAgentDetails.PowerShell.cs new file mode 100644 index 000000000000..a4fc844a52b8 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/MarsAgentDetails.PowerShell.cs @@ -0,0 +1,208 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Mars agent details. + [System.ComponentModel.TypeConverter(typeof(MarsAgentDetailsTypeConverter))] + public partial class MarsAgentDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IMarsAgentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new MarsAgentDetails(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.Migrate.Models.Api202301.IMarsAgentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new MarsAgentDetails(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.Migrate.Models.Api202301.IMarsAgentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal MarsAgentDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal MarsAgentDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Mars agent details. + [System.ComponentModel.TypeConverter(typeof(MarsAgentDetailsTypeConverter))] + public partial interface IMarsAgentDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MarsAgentDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/MarsAgentDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/MarsAgentDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/MarsAgentDetails.TypeConverter.cs index 9bcf1e4ed666..b6a0d63865a2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MarsAgentDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MarsAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMarsAgentDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/MarsAgentDetails.cs b/src/Migrate/generated/api/Models/Api202301/MarsAgentDetails.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/MarsAgentDetails.cs rename to src/Migrate/generated/api/Models/Api202301/MarsAgentDetails.cs index ac74990a61a5..048889a5771b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MarsAgentDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/MarsAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Mars agent details. public partial class MarsAgentDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal { /// Backing field for property. @@ -42,11 +42,11 @@ public partial class MarsAgentDetails : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get => this._health; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthError; /// The health errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => this._healthError; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => this._healthError; } /// Backing field for property. private string _id; @@ -63,31 +63,31 @@ public partial class MarsAgentDetails : public global::System.DateTime? LastHeartbeatUtc { get => this._lastHeartbeatUtc; } /// Internal Acessors for BiosId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } /// Internal Acessors for FabricObjectId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal.FabricObjectId { get => this._fabricObjectId; set { {_fabricObjectId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal.FabricObjectId { get => this._fabricObjectId; set { {_fabricObjectId = value;} } } /// Internal Acessors for Fqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } /// Internal Acessors for Health - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal.Health { get => this._health; set { {_health = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal.Health { get => this._health; set { {_health = value;} } } /// Internal Acessors for HealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for LastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetailsInternal.Version { get => this._version; set { {_version = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetailsInternal.Version { get => this._version; set { {_version = value;} } } /// Backing field for property. private string _name; @@ -151,8 +151,8 @@ public partial interface IMarsAgentDetails : ReadOnly = true, Description = @"The health errors.", SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; } /// The Mars agent Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -200,7 +200,7 @@ internal partial interface IMarsAgentDetailsInternal /// The health of the Mars agent. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get; set; } /// The health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The Mars agent Id. string Id { get; set; } /// The last heartbeat received from the Mars agent. diff --git a/src/Migrate/generated/api/Models/Api20220501/MarsAgentDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/MarsAgentDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/MarsAgentDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/MarsAgentDetails.json.cs index 7423ef9f0f5c..909048dad853 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MarsAgentDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/MarsAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MarsAgentDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMarsAgentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMarsAgentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new MarsAgentDetails(json) : null; } @@ -85,7 +85,7 @@ internal MarsAgentDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Jso {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} {_lastHeartbeatUtc = If( json?.PropertyT("lastHeartbeatUtc"), out var __jsonLastHeartbeatUtc) ? global::System.DateTime.TryParse((string)__jsonLastHeartbeatUtc, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastHeartbeatUtcValue) ? __jsonLastHeartbeatUtcValue : LastHeartbeatUtc : LastHeartbeatUtc;} {_health = If( json?.PropertyT("health"), out var __jsonHealth) ? (string)__jsonHealth : (string)Health;} - {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__u) )) ))() : null : HealthError;} + {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__u) )) ))() : null : HealthError;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/MasterTargetServer.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/MasterTargetServer.PowerShell.cs new file mode 100644 index 000000000000..0eae41e89eb3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/MasterTargetServer.PowerShell.cs @@ -0,0 +1,328 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Details of a Master Target Server. + [System.ComponentModel.TypeConverter(typeof(MasterTargetServerTypeConverter))] + public partial class MasterTargetServer + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IMasterTargetServer DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new MasterTargetServer(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.Migrate.Models.Api202301.IMasterTargetServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new MasterTargetServer(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.Migrate.Models.Api202301.IMasterTargetServer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal MasterTargetServer(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentVersionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails) content.GetValueForProperty("AgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("MarsAgentVersionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarsAgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails) content.GetValueForProperty("MarsAgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarsAgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("AgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersion, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("VersionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).VersionStatus = (string) content.GetValueForProperty("VersionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).VersionStatus, global::System.Convert.ToString); + } + if (content.Contains("RetentionVolume")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).RetentionVolume = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolume[]) content.GetValueForProperty("RetentionVolume",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).RetentionVolume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RetentionVolumeTypeConverter.ConvertFrom)); + } + if (content.Contains("DataStore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore[]) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).DataStore, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DataStoreTypeConverter.ConvertFrom)); + } + if (content.Contains("ValidationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("DiskCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).DiskCount = (int?) content.GetValueForProperty("DiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).DiskCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("OSVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).OSVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MarsAgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarsAgentVersion = (string) content.GetValueForProperty("MarsAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarsAgentVersion, global::System.Convert.ToString); + } + if (content.Contains("MarsAgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarsAgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MarsAgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarsAgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AgentVersionDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetailVersion = (string) content.GetValueForProperty("AgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentVersionDetailExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AgentVersionDetailStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("AgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); + } + if (content.Contains("MarAgentVersionDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarAgentVersionDetailVersion = (string) content.GetValueForProperty("MarAgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarAgentVersionDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("MarAgentVersionDetailExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarAgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MarAgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarAgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MarAgentVersionDetailStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarAgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("MarAgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarAgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal MasterTargetServer(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentVersionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails) content.GetValueForProperty("AgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("MarsAgentVersionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarsAgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails) content.GetValueForProperty("MarsAgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarsAgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("AgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersion, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("VersionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).VersionStatus = (string) content.GetValueForProperty("VersionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).VersionStatus, global::System.Convert.ToString); + } + if (content.Contains("RetentionVolume")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).RetentionVolume = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolume[]) content.GetValueForProperty("RetentionVolume",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).RetentionVolume, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RetentionVolumeTypeConverter.ConvertFrom)); + } + if (content.Contains("DataStore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore[]) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).DataStore, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DataStoreTypeConverter.ConvertFrom)); + } + if (content.Contains("ValidationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("DiskCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).DiskCount = (int?) content.GetValueForProperty("DiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).DiskCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("OSVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).OSVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MarsAgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarsAgentVersion = (string) content.GetValueForProperty("MarsAgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarsAgentVersion, global::System.Convert.ToString); + } + if (content.Contains("MarsAgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarsAgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MarsAgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarsAgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AgentVersionDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetailVersion = (string) content.GetValueForProperty("AgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentVersionDetailExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AgentVersionDetailStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("AgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).AgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); + } + if (content.Contains("MarAgentVersionDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarAgentVersionDetailVersion = (string) content.GetValueForProperty("MarAgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarAgentVersionDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("MarAgentVersionDetailExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarAgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("MarAgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarAgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MarAgentVersionDetailStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarAgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("MarAgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal)this).MarAgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Details of a Master Target Server. + [System.ComponentModel.TypeConverter(typeof(MasterTargetServerTypeConverter))] + public partial interface IMasterTargetServer + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MasterTargetServer.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/MasterTargetServer.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/MasterTargetServer.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/MasterTargetServer.TypeConverter.cs index 58ea94a61fb0..2c755719282a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MasterTargetServer.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MasterTargetServer.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMasterTargetServer ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServer ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServer).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServer).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/MasterTargetServer.cs b/src/Migrate/generated/api/Models/Api202301/MasterTargetServer.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/MasterTargetServer.cs rename to src/Migrate/generated/api/Models/Api202301/MasterTargetServer.cs index dbfad4529b7d..720466c41856 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MasterTargetServer.cs +++ b/src/Migrate/generated/api/Models/Api202301/MasterTargetServer.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Details of a Master Target Server. public partial class MasterTargetServer : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServer, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServer, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal { /// Backing field for property. @@ -28,30 +28,30 @@ public partial class MasterTargetServer : public string AgentVersion { get => this._agentVersion; set => this._agentVersion = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails _agentVersionDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails _agentVersionDetail; /// Agent version details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails AgentVersionDetail { get => (this._agentVersionDetail = this._agentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails()); set => this._agentVersionDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails AgentVersionDetail { get => (this._agentVersionDetail = this._agentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails()); set => this._agentVersionDetail = value; } /// Version expiry date. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? AgentVersionDetailExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).ExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).ExpiryDate = value ?? default(global::System.DateTime); } + public global::System.DateTime? AgentVersionDetailExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).ExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).ExpiryDate = value ?? default(global::System.DateTime); } /// A value indicating whether security update required. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? AgentVersionDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus)""); } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? AgentVersionDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus)""); } /// The agent version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AgentVersionDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).Version = value ?? null; } + public string AgentVersionDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).Version = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStore[] _dataStore; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore[] _dataStore; /// The list of data stores in the fabric. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStore[] DataStore { get => this._dataStore; set => this._dataStore = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore[] DataStore { get => this._dataStore; set => this._dataStore = value; } /// Backing field for property. private int? _diskCount; @@ -61,11 +61,11 @@ public partial class MasterTargetServer : public int? DiskCount { get => this._diskCount; set => this._diskCount = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthError; /// Health errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => this._healthError; set => this._healthError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => this._healthError; set => this._healthError = value; } /// Backing field for property. private string _iPAddress; @@ -90,15 +90,15 @@ public partial class MasterTargetServer : /// Version expiry date. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? MarAgentVersionDetailExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)MarsAgentVersionDetail).ExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)MarsAgentVersionDetail).ExpiryDate = value ?? default(global::System.DateTime); } + public global::System.DateTime? MarAgentVersionDetailExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)MarsAgentVersionDetail).ExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)MarsAgentVersionDetail).ExpiryDate = value ?? default(global::System.DateTime); } /// A value indicating whether security update required. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? MarAgentVersionDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)MarsAgentVersionDetail).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)MarsAgentVersionDetail).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus)""); } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? MarAgentVersionDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)MarsAgentVersionDetail).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)MarsAgentVersionDetail).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus)""); } /// The agent version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string MarAgentVersionDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)MarsAgentVersionDetail).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)MarsAgentVersionDetail).Version = value ?? null; } + public string MarAgentVersionDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)MarsAgentVersionDetail).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)MarsAgentVersionDetail).Version = value ?? null; } /// Backing field for property. private global::System.DateTime? _marsAgentExpiryDate; @@ -115,17 +115,17 @@ public partial class MasterTargetServer : public string MarsAgentVersion { get => this._marsAgentVersion; set => this._marsAgentVersion = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails _marsAgentVersionDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails _marsAgentVersionDetail; /// Mars agent version details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails MarsAgentVersionDetail { get => (this._marsAgentVersionDetail = this._marsAgentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails()); set => this._marsAgentVersionDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails MarsAgentVersionDetail { get => (this._marsAgentVersionDetail = this._marsAgentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails()); set => this._marsAgentVersionDetail = value; } /// Internal Acessors for AgentVersionDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal.AgentVersionDetail { get => (this._agentVersionDetail = this._agentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails()); set { {_agentVersionDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal.AgentVersionDetail { get => (this._agentVersionDetail = this._agentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails()); set { {_agentVersionDetail = value;} } } /// Internal Acessors for MarsAgentVersionDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServerInternal.MarsAgentVersionDetail { get => (this._marsAgentVersionDetail = this._marsAgentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails()); set { {_marsAgentVersionDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServerInternal.MarsAgentVersionDetail { get => (this._marsAgentVersionDetail = this._marsAgentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails()); set { {_marsAgentVersionDetail = value;} } } /// Backing field for property. private string _name; @@ -149,18 +149,18 @@ public partial class MasterTargetServer : public string OSVersion { get => this._oSVersion; set => this._oSVersion = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolume[] _retentionVolume; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolume[] _retentionVolume; /// The retention volumes of Master target Server. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolume[] RetentionVolume { get => this._retentionVolume; set => this._retentionVolume = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolume[] RetentionVolume { get => this._retentionVolume; set => this._retentionVolume = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _validationError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _validationError; /// Validation errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ValidationError { get => this._validationError; set => this._validationError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ValidationError { get => this._validationError; set => this._validationError = value; } /// Backing field for property. private string _versionStatus; @@ -225,8 +225,8 @@ public partial interface IMasterTargetServer : ReadOnly = false, Description = @"The list of data stores in the fabric.", SerializedName = @"dataStores", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStore) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStore[] DataStore { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore[] DataStore { get; set; } /// Disk count of the master target. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -241,8 +241,8 @@ public partial interface IMasterTargetServer : ReadOnly = false, Description = @"Health errors.", SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The IP address of the server. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -337,16 +337,16 @@ public partial interface IMasterTargetServer : ReadOnly = false, Description = @"The retention volumes of Master target Server.", SerializedName = @"retentionVolumes", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolume) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolume[] RetentionVolume { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolume) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolume[] RetentionVolume { get; set; } /// Validation errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"Validation errors.", SerializedName = @"validationErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ValidationError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ValidationError { get; set; } /// Version status. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -366,7 +366,7 @@ internal partial interface IMasterTargetServerInternal /// The version of the scout component on the server. string AgentVersion { get; set; } /// Agent version details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails AgentVersionDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails AgentVersionDetail { get; set; } /// Version expiry date. global::System.DateTime? AgentVersionDetailExpiryDate { get; set; } /// A value indicating whether security update required. @@ -374,11 +374,11 @@ internal partial interface IMasterTargetServerInternal /// The agent version. string AgentVersionDetailVersion { get; set; } /// The list of data stores in the fabric. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStore[] DataStore { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore[] DataStore { get; set; } /// Disk count of the master target. int? DiskCount { get; set; } /// Health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The IP address of the server. string IPAddress { get; set; } /// The server Id. @@ -396,7 +396,7 @@ internal partial interface IMasterTargetServerInternal /// MARS agent version. string MarsAgentVersion { get; set; } /// Mars agent version details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails MarsAgentVersionDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails MarsAgentVersionDetail { get; set; } /// The server name. string Name { get; set; } /// The OS type of the server. @@ -404,9 +404,9 @@ internal partial interface IMasterTargetServerInternal /// OS Version of the master target. string OSVersion { get; set; } /// The retention volumes of Master target Server. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolume[] RetentionVolume { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolume[] RetentionVolume { get; set; } /// Validation errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ValidationError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ValidationError { get; set; } /// Version status. string VersionStatus { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/MasterTargetServer.json.cs b/src/Migrate/generated/api/Models/Api202301/MasterTargetServer.json.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/MasterTargetServer.json.cs rename to src/Migrate/generated/api/Models/Api202301/MasterTargetServer.json.cs index 0d3b4ea71546..775644da5de5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MasterTargetServer.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/MasterTargetServer.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MasterTargetServer partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServer. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServer. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServer. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServer. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServer FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServer FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new MasterTargetServer(json) : null; } @@ -77,8 +77,8 @@ internal MasterTargetServer(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.J { return; } - {_agentVersionDetail = If( json?.PropertyT("agentVersionDetails"), out var __jsonAgentVersionDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails.FromJson(__jsonAgentVersionDetails) : AgentVersionDetail;} - {_marsAgentVersionDetail = If( json?.PropertyT("marsAgentVersionDetails"), out var __jsonMarsAgentVersionDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails.FromJson(__jsonMarsAgentVersionDetails) : MarsAgentVersionDetail;} + {_agentVersionDetail = If( json?.PropertyT("agentVersionDetails"), out var __jsonAgentVersionDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails.FromJson(__jsonAgentVersionDetails) : AgentVersionDetail;} + {_marsAgentVersionDetail = If( json?.PropertyT("marsAgentVersionDetails"), out var __jsonMarsAgentVersionDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails.FromJson(__jsonMarsAgentVersionDetails) : MarsAgentVersionDetail;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_iPAddress = If( json?.PropertyT("ipAddress"), out var __jsonIPAddress) ? (string)__jsonIPAddress : (string)IPAddress;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} @@ -86,10 +86,10 @@ internal MasterTargetServer(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.J {_agentVersion = If( json?.PropertyT("agentVersion"), out var __jsonAgentVersion) ? (string)__jsonAgentVersion : (string)AgentVersion;} {_lastHeartbeat = If( json?.PropertyT("lastHeartbeat"), out var __jsonLastHeartbeat) ? global::System.DateTime.TryParse((string)__jsonLastHeartbeat, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastHeartbeatValue) ? __jsonLastHeartbeatValue : LastHeartbeat : LastHeartbeat;} {_versionStatus = If( json?.PropertyT("versionStatus"), out var __jsonVersionStatus) ? (string)__jsonVersionStatus : (string)VersionStatus;} - {_retentionVolume = If( json?.PropertyT("retentionVolumes"), out var __jsonRetentionVolumes) ? If( __jsonRetentionVolumes as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRetentionVolume) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RetentionVolume.FromJson(__u) )) ))() : null : RetentionVolume;} - {_dataStore = If( json?.PropertyT("dataStores"), out var __jsonDataStores) ? If( __jsonDataStores as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDataStore) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.DataStore.FromJson(__p) )) ))() : null : DataStore;} - {_validationError = If( json?.PropertyT("validationErrors"), out var __jsonValidationErrors) ? If( __jsonValidationErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__k) )) ))() : null : ValidationError;} - {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__f) )) ))() : null : HealthError;} + {_retentionVolume = If( json?.PropertyT("retentionVolumes"), out var __jsonRetentionVolumes) ? If( __jsonRetentionVolumes as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IRetentionVolume) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RetentionVolume.FromJson(__u) )) ))() : null : RetentionVolume;} + {_dataStore = If( json?.PropertyT("dataStores"), out var __jsonDataStores) ? If( __jsonDataStores as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDataStore) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DataStore.FromJson(__p) )) ))() : null : DataStore;} + {_validationError = If( json?.PropertyT("validationErrors"), out var __jsonValidationErrors) ? If( __jsonValidationErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__k) )) ))() : null : ValidationError;} + {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__f) )) ))() : null : HealthError;} {_diskCount = If( json?.PropertyT("diskCount"), out var __jsonDiskCount) ? (int?)__jsonDiskCount : DiskCount;} {_oSVersion = If( json?.PropertyT("osVersion"), out var __jsonOSVersion) ? (string)__jsonOSVersion : (string)OSVersion;} {_agentExpiryDate = If( json?.PropertyT("agentExpiryDate"), out var __jsonAgentExpiryDate) ? global::System.DateTime.TryParse((string)__jsonAgentExpiryDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonAgentExpiryDateValue) ? __jsonAgentExpiryDateValue : AgentExpiryDate : AgentExpiryDate;} diff --git a/src/Migrate/generated/api/Models/Api202301/MigrateInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/MigrateInput.PowerShell.cs new file mode 100644 index 000000000000..fa343338d3d1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/MigrateInput.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input for migrate. + [System.ComponentModel.TypeConverter(typeof(MigrateInputTypeConverter))] + public partial class MigrateInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IMigrateInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new MigrateInput(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.Migrate.Models.Api202301.IMigrateInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new MigrateInput(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.Migrate.Models.Api202301.IMigrateInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal MigrateInput(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.Migrate.Models.Api202301.IMigrateInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateProviderSpecificInputTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal MigrateInput(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.Migrate.Models.Api202301.IMigrateInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateProviderSpecificInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input for migrate. + [System.ComponentModel.TypeConverter(typeof(MigrateInputTypeConverter))] + public partial interface IMigrateInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrateInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/MigrateInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/MigrateInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/MigrateInput.TypeConverter.cs index ef98a7d59489..88dd3376a758 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrateInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrateInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMigrateInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/MigrateInput.cs b/src/Migrate/generated/api/Models/Api202301/MigrateInput.cs new file mode 100644 index 000000000000..63e01c40fe83 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/MigrateInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input for migrate. + public partial class MigrateInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties _property; + + /// Migrate input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateInputProperties()); set => this._property = value; } + + /// The provider specific details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputPropertiesInternal)Property).ProviderSpecificDetail = value ; } + + /// Creates an new instance. + public MigrateInput() + { + + } + } + /// Input for migrate. + public partial interface IMigrateInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The provider specific details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The provider specific details.", + SerializedName = @"providerSpecificDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } + + } + /// Input for migrate. + internal partial interface IMigrateInputInternal + + { + /// Migrate input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties Property { get; set; } + /// The provider specific details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrateInput.json.cs b/src/Migrate/generated/api/Models/Api202301/MigrateInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/MigrateInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/MigrateInput.json.cs index f73aa040e651..ef725ecb08c9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrateInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrateInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrateInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new MigrateInput(json) : null; } @@ -77,7 +77,7 @@ internal MigrateInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.Js { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrateInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/MigrateInputProperties.PowerShell.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/MigrateInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/MigrateInputProperties.PowerShell.cs index b94fa8592a6f..f61ce1d8c084 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrateInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrateInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class MigrateInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IMigrateInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MigrateInputProperties(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.Migrate.Models.Api20220501.IMigrateInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MigrateInputProperties(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMig /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,13 +103,13 @@ internal MigrateInputProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ProviderSpecificDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateProviderSpecificInputTypeConverter.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. @@ -124,7 +124,7 @@ internal MigrateInputProperties(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("ProviderSpecificDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateProviderSpecificInputTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrateInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/MigrateInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/MigrateInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/MigrateInputProperties.TypeConverter.cs index 69ccefff509c..6ba4231bf732 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrateInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrateInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMigrateInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrateInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/MigrateInputProperties.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/MigrateInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/MigrateInputProperties.cs index 8ca6ab31c56b..309c66139c86 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrateInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrateInputProperties.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Migrate input properties. public partial class MigrateInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput _providerSpecificDetail; /// The provider specific details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateProviderSpecificInput()); set => this._providerSpecificDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateProviderSpecificInput()); set => this._providerSpecificDetail = value; } /// Creates an new instance. public MigrateInputProperties() @@ -36,8 +36,8 @@ public partial interface IMigrateInputProperties : ReadOnly = false, Description = @"The provider specific details.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } } /// Migrate input properties. @@ -45,7 +45,7 @@ internal partial interface IMigrateInputPropertiesInternal { /// The provider specific details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrateInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/MigrateInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/MigrateInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/MigrateInputProperties.json.cs index 2cc87055e541..e9baa87390fd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrateInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrateInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrateInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new MigrateInputProperties(json) : null; } @@ -77,7 +77,7 @@ internal MigrateInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrateProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/MigrateProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/MigrateProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/MigrateProviderSpecificInput.PowerShell.cs index 175b00b3157a..d83b282b699f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrateProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrateProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,27 @@ public partial class MigrateProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IMigrateProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MigrateProviderSpecificInput(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.Migrate.Models.Api20220501.IMigrateProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MigrateProviderSpecificInput(content); } @@ -87,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMig /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +103,13 @@ internal MigrateProviderSpecificInput(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInputInternal)this).InstanceType, 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,7 +124,7 @@ internal MigrateProviderSpecificInput(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrateProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/MigrateProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/MigrateProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/MigrateProviderSpecificInput.TypeConverter.cs index cc7afa46e8c3..b6a8b35cdf96 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrateProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrateProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMigrateProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrateProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/MigrateProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/MigrateProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/MigrateProviderSpecificInput.cs index e52040f3ca0a..c0160b6056ad 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrateProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrateProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Migrate provider specific input. public partial class MigrateProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrateProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/MigrateProviderSpecificInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/MigrateProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/MigrateProviderSpecificInput.json.cs index ceaa1070c707..1231bc34933e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrateProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrateProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class MigrateProviderSpecificInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput 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.Migrate.Models.Api20220501.IMigrateProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/MigrationItem.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItem.PowerShell.cs new file mode 100644 index 000000000000..fbf54a1cfa47 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItem.PowerShell.cs @@ -0,0 +1,360 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Migration item. + [System.ComponentModel.TypeConverter(typeof(MigrationItemTypeConverter))] + public partial class MigrationItem + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IMigrationItem DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new MigrationItem(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.Migrate.Models.Api202301.IMigrationItem DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new MigrationItem(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.Migrate.Models.Api202301.IMigrationItem FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal MigrationItem(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.Migrate.Models.Api202301.IMigrationItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("MigrationState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).MigrationState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState?) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).MigrationState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState.CreateFrom); + } + if (content.Contains("CurrentJob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJob = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails) content.GetValueForProperty("CurrentJob",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJob, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentJobDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("MachineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).MachineName, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("PolicyFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).PolicyFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryServicesProviderId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); + } + if (content.Contains("ReplicationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).ReplicationStatus = (string) content.GetValueForProperty("ReplicationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).ReplicationStatus, global::System.Convert.ToString); + } + if (content.Contains("MigrationStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).MigrationStateDescription = (string) content.GetValueForProperty("MigrationStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).MigrationStateDescription, global::System.Convert.ToString); + } + if (content.Contains("LastTestMigrationTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastTestMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastTestMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastTestMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastTestMigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastTestMigrationStatus = (string) content.GetValueForProperty("LastTestMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastTestMigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("LastMigrationTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastMigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastMigrationStatus = (string) content.GetValueForProperty("LastMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastMigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("TestMigrateState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).TestMigrateState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState?) content.GetValueForProperty("TestMigrateState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).TestMigrateState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState.CreateFrom); + } + if (content.Contains("TestMigrateStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).TestMigrateStateDescription = (string) content.GetValueForProperty("TestMigrateStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).TestMigrateStateDescription, global::System.Convert.ToString); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("AllowedOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).AllowedOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation.CreateFrom)); + } + if (content.Contains("CriticalJobHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CriticalJobHistory = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails[]) content.GetValueForProperty("CriticalJobHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CriticalJobHistory, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CriticalJobHistoryDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("EventCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).EventCorrelationId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationProviderSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("CurrentJobName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJobName = (string) content.GetValueForProperty("CurrentJobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJobName, global::System.Convert.ToString); + } + if (content.Contains("CurrentJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJobId = (string) content.GetValueForProperty("CurrentJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJobId, global::System.Convert.ToString); + } + if (content.Contains("CurrentJobStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJobStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentJobStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJobStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal MigrationItem(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.Migrate.Models.Api202301.IMigrationItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("MigrationState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).MigrationState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState?) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).MigrationState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState.CreateFrom); + } + if (content.Contains("CurrentJob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJob = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails) content.GetValueForProperty("CurrentJob",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJob, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentJobDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("MachineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).MachineName, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("PolicyFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).PolicyFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryServicesProviderId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); + } + if (content.Contains("ReplicationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).ReplicationStatus = (string) content.GetValueForProperty("ReplicationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).ReplicationStatus, global::System.Convert.ToString); + } + if (content.Contains("MigrationStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).MigrationStateDescription = (string) content.GetValueForProperty("MigrationStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).MigrationStateDescription, global::System.Convert.ToString); + } + if (content.Contains("LastTestMigrationTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastTestMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastTestMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastTestMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastTestMigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastTestMigrationStatus = (string) content.GetValueForProperty("LastTestMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastTestMigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("LastMigrationTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastMigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastMigrationStatus = (string) content.GetValueForProperty("LastMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).LastMigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("TestMigrateState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).TestMigrateState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState?) content.GetValueForProperty("TestMigrateState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).TestMigrateState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState.CreateFrom); + } + if (content.Contains("TestMigrateStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).TestMigrateStateDescription = (string) content.GetValueForProperty("TestMigrateStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).TestMigrateStateDescription, global::System.Convert.ToString); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("AllowedOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).AllowedOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation.CreateFrom)); + } + if (content.Contains("CriticalJobHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CriticalJobHistory = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails[]) content.GetValueForProperty("CriticalJobHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CriticalJobHistory, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CriticalJobHistoryDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("EventCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).EventCorrelationId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationProviderSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("CurrentJobName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJobName = (string) content.GetValueForProperty("CurrentJobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJobName, global::System.Convert.ToString); + } + if (content.Contains("CurrentJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJobId = (string) content.GetValueForProperty("CurrentJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJobId, global::System.Convert.ToString); + } + if (content.Contains("CurrentJobStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJobStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentJobStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal)this).CurrentJobStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Migration item. + [System.ComponentModel.TypeConverter(typeof(MigrationItemTypeConverter))] + public partial interface IMigrationItem + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItem.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItem.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/MigrationItem.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationItem.TypeConverter.cs index c7ddea92358f..0df7bf64569c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItem.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItem.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMigrationItem ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/MigrationItem.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItem.cs new file mode 100644 index 000000000000..1737232cffa0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItem.cs @@ -0,0 +1,472 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Migration item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.DoNotFormat] + public partial class MigrationItem : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// + /// The allowed operations on the migration item based on the current migration state of the item. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[] AllowedOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).AllowedOperation; } + + /// The critical past job details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails[] CriticalJobHistory { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).CriticalJobHistory; } + + /// The ARM Id of the job being executed. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string CurrentJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).CurrentJobId; } + + /// The job name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string CurrentJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).CurrentJobName; } + + /// The start time of the job. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? CurrentJobStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).CurrentJobStartTime; } + + /// The correlation Id for events associated with this migration item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string EventCorrelationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).EventCorrelationId; } + + /// The consolidated health. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).Health; } + + /// The list of health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).HealthError; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// The status of the last migration. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string LastMigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).LastMigrationStatus; } + + /// The last migration time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? LastMigrationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).LastMigrationTime; } + + /// The status of the last test migration. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string LastTestMigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).LastTestMigrationStatus; } + + /// The last test migration time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? LastTestMigrationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).LastTestMigrationTime; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// The on-premise virtual machine name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string MachineName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).MachineName; } + + /// Internal Acessors for AllowedOperation + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.AllowedOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).AllowedOperation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).AllowedOperation = value; } + + /// Internal Acessors for CriticalJobHistory + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.CriticalJobHistory { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).CriticalJobHistory; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).CriticalJobHistory = value; } + + /// Internal Acessors for CurrentJob + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.CurrentJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).CurrentJob; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).CurrentJob = value; } + + /// Internal Acessors for CurrentJobId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.CurrentJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).CurrentJobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).CurrentJobId = value; } + + /// Internal Acessors for CurrentJobName + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.CurrentJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).CurrentJobName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).CurrentJobName = value; } + + /// Internal Acessors for CurrentJobStartTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.CurrentJobStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).CurrentJobStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).CurrentJobStartTime = value; } + + /// Internal Acessors for EventCorrelationId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.EventCorrelationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).EventCorrelationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).EventCorrelationId = value; } + + /// Internal Acessors for Health + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.Health { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).Health = value; } + + /// Internal Acessors for HealthError + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).HealthError = value; } + + /// Internal Acessors for LastMigrationStatus + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.LastMigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).LastMigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).LastMigrationStatus = value; } + + /// Internal Acessors for LastMigrationTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.LastMigrationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).LastMigrationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).LastMigrationTime = value; } + + /// Internal Acessors for LastTestMigrationStatus + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.LastTestMigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).LastTestMigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).LastTestMigrationStatus = value; } + + /// Internal Acessors for LastTestMigrationTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.LastTestMigrationTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).LastTestMigrationTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).LastTestMigrationTime = value; } + + /// Internal Acessors for MachineName + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.MachineName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).MachineName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).MachineName = value; } + + /// Internal Acessors for MigrationState + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.MigrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).MigrationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).MigrationState = value; } + + /// Internal Acessors for MigrationStateDescription + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.MigrationStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).MigrationStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).MigrationStateDescription = value; } + + /// Internal Acessors for PolicyFriendlyName + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.PolicyFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).PolicyFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).PolicyFriendlyName = value; } + + /// Internal Acessors for PolicyId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).PolicyId = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemProperties()); set { {_property = value;} } } + + /// Internal Acessors for RecoveryServicesProviderId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.RecoveryServicesProviderId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).RecoveryServicesProviderId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).RecoveryServicesProviderId = value; } + + /// Internal Acessors for ReplicationStatus + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.ReplicationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).ReplicationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).ReplicationStatus = value; } + + /// Internal Acessors for TestMigrateState + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.TestMigrateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).TestMigrateState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).TestMigrateState = value; } + + /// Internal Acessors for TestMigrateStateDescription + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemInternal.TestMigrateStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).TestMigrateStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).TestMigrateStateDescription = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// The migration status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState? MigrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).MigrationState; } + + /// The migration state description. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string MigrationStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).MigrationStateDescription; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// The name of policy governing this item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PolicyFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).PolicyFriendlyName; } + + /// The ARM Id of policy governing this item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).PolicyId; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemProperties _property; + + /// The migration item properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemProperties()); set => this._property = value; } + + /// The migration provider custom settings. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* model class */; } + + /// The recovery services provider ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryServicesProviderId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).RecoveryServicesProviderId; } + + /// The replication status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReplicationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).ReplicationStatus; } + + /// The test migrate state. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState? TestMigrateState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).TestMigrateState; } + + /// The test migrate state description. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TestMigrateStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)Property).TestMigrateStateDescription; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public MigrationItem() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Migration item. + public partial interface IMigrationItem : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// + /// The allowed operations on the migration item based on the current migration state of the item. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The allowed operations on the migration item based on the current migration state of the item.", + SerializedName = @"allowedOperations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[] AllowedOperation { get; } + /// The critical past job details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The critical past job details.", + SerializedName = @"criticalJobHistory", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails[] CriticalJobHistory { get; } + /// The ARM Id of the job being executed. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The ARM Id of the job being executed.", + SerializedName = @"jobId", + PossibleTypes = new [] { typeof(string) })] + string CurrentJobId { get; } + /// The job name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The job name.", + SerializedName = @"jobName", + PossibleTypes = new [] { typeof(string) })] + string CurrentJobName { get; } + /// The start time of the job. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The start time of the job.", + SerializedName = @"startTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? CurrentJobStartTime { get; } + /// The correlation Id for events associated with this migration item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The correlation Id for events associated with this migration item.", + SerializedName = @"eventCorrelationId", + PossibleTypes = new [] { typeof(string) })] + string EventCorrelationId { get; } + /// The consolidated health. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The consolidated health.", + SerializedName = @"health", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get; } + /// The list of health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The list of health errors.", + SerializedName = @"healthErrors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; } + /// The status of the last migration. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The status of the last migration.", + SerializedName = @"lastMigrationStatus", + PossibleTypes = new [] { typeof(string) })] + string LastMigrationStatus { get; } + /// The last migration time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The last migration time.", + SerializedName = @"lastMigrationTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastMigrationTime { get; } + /// The status of the last test migration. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The status of the last test migration.", + SerializedName = @"lastTestMigrationStatus", + PossibleTypes = new [] { typeof(string) })] + string LastTestMigrationStatus { get; } + /// The last test migration time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The last test migration time.", + SerializedName = @"lastTestMigrationTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastTestMigrationTime { get; } + /// The on-premise virtual machine name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The on-premise virtual machine name.", + SerializedName = @"machineName", + PossibleTypes = new [] { typeof(string) })] + string MachineName { get; } + /// The migration status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The migration status.", + SerializedName = @"migrationState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState? MigrationState { get; } + /// The migration state description. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The migration state description.", + SerializedName = @"migrationStateDescription", + PossibleTypes = new [] { typeof(string) })] + string MigrationStateDescription { get; } + /// The name of policy governing this item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of policy governing this item.", + SerializedName = @"policyFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string PolicyFriendlyName { get; } + /// The ARM Id of policy governing this item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The ARM Id of policy governing this item.", + SerializedName = @"policyId", + PossibleTypes = new [] { typeof(string) })] + string PolicyId { get; } + /// The migration provider custom settings. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The migration provider custom settings.", + SerializedName = @"providerSpecificDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings ProviderSpecificDetail { get; set; } + /// The recovery services provider ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The recovery services provider ARM Id.", + SerializedName = @"recoveryServicesProviderId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryServicesProviderId { get; } + /// The replication status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The replication status.", + SerializedName = @"replicationStatus", + PossibleTypes = new [] { typeof(string) })] + string ReplicationStatus { get; } + /// The test migrate state. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The test migrate state.", + SerializedName = @"testMigrateState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState? TestMigrateState { get; } + /// The test migrate state description. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The test migrate state description.", + SerializedName = @"testMigrateStateDescription", + PossibleTypes = new [] { typeof(string) })] + string TestMigrateStateDescription { get; } + + } + /// Migration item. + internal partial interface IMigrationItemInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// + /// The allowed operations on the migration item based on the current migration state of the item. + /// + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[] AllowedOperation { get; set; } + /// The critical past job details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails[] CriticalJobHistory { get; set; } + /// The current job details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails CurrentJob { get; set; } + /// The ARM Id of the job being executed. + string CurrentJobId { get; set; } + /// The job name. + string CurrentJobName { get; set; } + /// The start time of the job. + global::System.DateTime? CurrentJobStartTime { get; set; } + /// The correlation Id for events associated with this migration item. + string EventCorrelationId { get; set; } + /// The consolidated health. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get; set; } + /// The list of health errors. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } + /// The status of the last migration. + string LastMigrationStatus { get; set; } + /// The last migration time. + global::System.DateTime? LastMigrationTime { get; set; } + /// The status of the last test migration. + string LastTestMigrationStatus { get; set; } + /// The last test migration time. + global::System.DateTime? LastTestMigrationTime { get; set; } + /// The on-premise virtual machine name. + string MachineName { get; set; } + /// The migration status. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState? MigrationState { get; set; } + /// The migration state description. + string MigrationStateDescription { get; set; } + /// The name of policy governing this item. + string PolicyFriendlyName { get; set; } + /// The ARM Id of policy governing this item. + string PolicyId { get; set; } + /// The migration item properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemProperties Property { get; set; } + /// The migration provider custom settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings ProviderSpecificDetail { get; set; } + /// The recovery services provider ARM Id. + string RecoveryServicesProviderId { get; set; } + /// The replication status. + string ReplicationStatus { get; set; } + /// The test migrate state. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState? TestMigrateState { get; set; } + /// The test migrate state description. + string TestMigrateStateDescription { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItem.json.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItem.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/MigrationItem.json.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationItem.json.cs index 6b24f136715c..e57e9168a5f2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItem.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItem.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrationItem partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new MigrationItem(json) : null; } @@ -77,8 +77,8 @@ internal MigrationItem(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.J { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItemCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItemCollection.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/MigrationItemCollection.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationItemCollection.PowerShell.cs index e98262316fca..89186d0a365e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItemCollection.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItemCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class MigrationItemCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IMigrationItemCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MigrationItemCollection(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.Migrate.Models.Api20220501.IMigrationItemCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MigrationItemCollection(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMig /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal MigrationItemCollection(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollectionInternal)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. @@ -128,11 +128,11 @@ internal MigrationItemCollection(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItemTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItemTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollectionInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItemCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItemCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/MigrationItemCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationItemCollection.TypeConverter.cs index bfa7ee353b2b..454a7f371e7f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItemCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItemCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMigrationItemCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItemCollection.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItemCollection.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/MigrationItemCollection.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationItemCollection.cs index b28d4d7e44ac..3834ccb0f4f1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItemCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItemCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Migration item collection. public partial class MigrationItemCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class MigrationItemCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem[] _value; /// The list of migration items. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public MigrationItemCollection() @@ -51,8 +51,8 @@ public partial interface IMigrationItemCollection : ReadOnly = false, Description = @"The list of migration items.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem[] Value { get; set; } } /// Migration item collection. @@ -62,7 +62,7 @@ internal partial interface IMigrationItemCollectionInternal /// The value of next link. string NextLink { get; set; } /// The list of migration items. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItemCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItemCollection.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/MigrationItemCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationItemCollection.json.cs index 7552143e227b..e071de186d03 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItemCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItemCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrationItemCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new MigrationItemCollection(json) : null; } @@ -77,7 +77,7 @@ internal MigrationItemCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMigrationItem) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationItem.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IMigrationItem) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationItem.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/MigrationItemProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItemProperties.PowerShell.cs new file mode 100644 index 000000000000..4b7e70a642b0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItemProperties.PowerShell.cs @@ -0,0 +1,320 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Migration item properties. + [System.ComponentModel.TypeConverter(typeof(MigrationItemPropertiesTypeConverter))] + public partial class MigrationItemProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IMigrationItemProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new MigrationItemProperties(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.Migrate.Models.Api202301.IMigrationItemProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new MigrationItemProperties(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.Migrate.Models.Api202301.IMigrationItemProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal MigrationItemProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CurrentJob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJob = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails) content.GetValueForProperty("CurrentJob",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJob, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentJobDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("MachineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).MachineName, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("PolicyFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).PolicyFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryServicesProviderId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); + } + if (content.Contains("ReplicationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).ReplicationStatus = (string) content.GetValueForProperty("ReplicationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).ReplicationStatus, global::System.Convert.ToString); + } + if (content.Contains("MigrationState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).MigrationState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState?) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).MigrationState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState.CreateFrom); + } + if (content.Contains("MigrationStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).MigrationStateDescription = (string) content.GetValueForProperty("MigrationStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).MigrationStateDescription, global::System.Convert.ToString); + } + if (content.Contains("LastTestMigrationTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastTestMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastTestMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastTestMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastTestMigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastTestMigrationStatus = (string) content.GetValueForProperty("LastTestMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastTestMigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("LastMigrationTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastMigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastMigrationStatus = (string) content.GetValueForProperty("LastMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastMigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("TestMigrateState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).TestMigrateState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState?) content.GetValueForProperty("TestMigrateState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).TestMigrateState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState.CreateFrom); + } + if (content.Contains("TestMigrateStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).TestMigrateStateDescription = (string) content.GetValueForProperty("TestMigrateStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).TestMigrateStateDescription, global::System.Convert.ToString); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("AllowedOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).AllowedOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation.CreateFrom)); + } + if (content.Contains("CriticalJobHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CriticalJobHistory = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails[]) content.GetValueForProperty("CriticalJobHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CriticalJobHistory, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CriticalJobHistoryDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("EventCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).EventCorrelationId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationProviderSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("CurrentJobName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJobName = (string) content.GetValueForProperty("CurrentJobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJobName, global::System.Convert.ToString); + } + if (content.Contains("CurrentJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJobId = (string) content.GetValueForProperty("CurrentJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJobId, global::System.Convert.ToString); + } + if (content.Contains("CurrentJobStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJobStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentJobStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJobStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal MigrationItemProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CurrentJob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJob = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails) content.GetValueForProperty("CurrentJob",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJob, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentJobDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("MachineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).MachineName, global::System.Convert.ToString); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("PolicyFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).PolicyFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryServicesProviderId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); + } + if (content.Contains("ReplicationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).ReplicationStatus = (string) content.GetValueForProperty("ReplicationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).ReplicationStatus, global::System.Convert.ToString); + } + if (content.Contains("MigrationState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).MigrationState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState?) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).MigrationState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState.CreateFrom); + } + if (content.Contains("MigrationStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).MigrationStateDescription = (string) content.GetValueForProperty("MigrationStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).MigrationStateDescription, global::System.Convert.ToString); + } + if (content.Contains("LastTestMigrationTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastTestMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastTestMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastTestMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastTestMigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastTestMigrationStatus = (string) content.GetValueForProperty("LastTestMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastTestMigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("LastMigrationTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastMigrationTime = (global::System.DateTime?) content.GetValueForProperty("LastMigrationTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastMigrationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastMigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastMigrationStatus = (string) content.GetValueForProperty("LastMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).LastMigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("TestMigrateState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).TestMigrateState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState?) content.GetValueForProperty("TestMigrateState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).TestMigrateState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState.CreateFrom); + } + if (content.Contains("TestMigrateStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).TestMigrateStateDescription = (string) content.GetValueForProperty("TestMigrateStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).TestMigrateStateDescription, global::System.Convert.ToString); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("AllowedOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).AllowedOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation.CreateFrom)); + } + if (content.Contains("CriticalJobHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CriticalJobHistory = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails[]) content.GetValueForProperty("CriticalJobHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CriticalJobHistory, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CriticalJobHistoryDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("EventCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).EventCorrelationId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationProviderSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("CurrentJobName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJobName = (string) content.GetValueForProperty("CurrentJobName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJobName, global::System.Convert.ToString); + } + if (content.Contains("CurrentJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJobId = (string) content.GetValueForProperty("CurrentJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJobId, global::System.Convert.ToString); + } + if (content.Contains("CurrentJobStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJobStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentJobStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal)this).CurrentJobStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Migration item properties. + [System.ComponentModel.TypeConverter(typeof(MigrationItemPropertiesTypeConverter))] + public partial interface IMigrationItemProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItemProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItemProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/MigrationItemProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationItemProperties.TypeConverter.cs index 13a123a80b7e..7ccb6bfa54c2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItemProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItemProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMigrationItemProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItemProperties.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItemProperties.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/MigrationItemProperties.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationItemProperties.cs index 4f0434e82031..2ad8f6572945 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItemProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItemProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Migration item properties. public partial class MigrationItemProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal { /// Backing field for property. @@ -23,30 +23,30 @@ public partial class MigrationItemProperties : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[] AllowedOperation { get => this._allowedOperation; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails[] _criticalJobHistory; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails[] _criticalJobHistory; /// The critical past job details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails[] CriticalJobHistory { get => this._criticalJobHistory; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails[] CriticalJobHistory { get => this._criticalJobHistory; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails _currentJob; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails _currentJob; /// The current job details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails CurrentJob { get => (this._currentJob = this._currentJob ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentJobDetails()); } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails CurrentJob { get => (this._currentJob = this._currentJob ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentJobDetails()); } /// The ARM Id of the job being executed. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CurrentJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)CurrentJob).JobId; } + public string CurrentJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)CurrentJob).JobId; } /// The job name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CurrentJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)CurrentJob).JobName; } + public string CurrentJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)CurrentJob).JobName; } /// The start time of the job. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentJobStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)CurrentJob).StartTime; } + public global::System.DateTime? CurrentJobStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)CurrentJob).StartTime; } /// Backing field for property. private string _eventCorrelationId; @@ -63,11 +63,11 @@ public partial class MigrationItemProperties : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get => this._health; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthError; /// The list of health errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => this._healthError; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => this._healthError; } /// Backing field for property. private string _lastMigrationStatus; @@ -105,70 +105,70 @@ public partial class MigrationItemProperties : public string MachineName { get => this._machineName; } /// Internal Acessors for AllowedOperation - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.AllowedOperation { get => this._allowedOperation; set { {_allowedOperation = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.AllowedOperation { get => this._allowedOperation; set { {_allowedOperation = value;} } } /// Internal Acessors for CriticalJobHistory - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.CriticalJobHistory { get => this._criticalJobHistory; set { {_criticalJobHistory = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.CriticalJobHistory { get => this._criticalJobHistory; set { {_criticalJobHistory = value;} } } /// Internal Acessors for CurrentJob - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.CurrentJob { get => (this._currentJob = this._currentJob ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentJobDetails()); set { {_currentJob = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.CurrentJob { get => (this._currentJob = this._currentJob ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentJobDetails()); set { {_currentJob = value;} } } /// Internal Acessors for CurrentJobId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.CurrentJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)CurrentJob).JobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)CurrentJob).JobId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.CurrentJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)CurrentJob).JobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)CurrentJob).JobId = value; } /// Internal Acessors for CurrentJobName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.CurrentJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)CurrentJob).JobName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)CurrentJob).JobName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.CurrentJobName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)CurrentJob).JobName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)CurrentJob).JobName = value; } /// Internal Acessors for CurrentJobStartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.CurrentJobStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)CurrentJob).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetailsInternal)CurrentJob).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.CurrentJobStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)CurrentJob).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetailsInternal)CurrentJob).StartTime = value; } /// Internal Acessors for EventCorrelationId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.EventCorrelationId { get => this._eventCorrelationId; set { {_eventCorrelationId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.EventCorrelationId { get => this._eventCorrelationId; set { {_eventCorrelationId = value;} } } /// Internal Acessors for Health - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.Health { get => this._health; set { {_health = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.Health { get => this._health; set { {_health = value;} } } /// Internal Acessors for HealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } /// Internal Acessors for LastMigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.LastMigrationStatus { get => this._lastMigrationStatus; set { {_lastMigrationStatus = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.LastMigrationStatus { get => this._lastMigrationStatus; set { {_lastMigrationStatus = value;} } } /// Internal Acessors for LastMigrationTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.LastMigrationTime { get => this._lastMigrationTime; set { {_lastMigrationTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.LastMigrationTime { get => this._lastMigrationTime; set { {_lastMigrationTime = value;} } } /// Internal Acessors for LastTestMigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.LastTestMigrationStatus { get => this._lastTestMigrationStatus; set { {_lastTestMigrationStatus = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.LastTestMigrationStatus { get => this._lastTestMigrationStatus; set { {_lastTestMigrationStatus = value;} } } /// Internal Acessors for LastTestMigrationTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.LastTestMigrationTime { get => this._lastTestMigrationTime; set { {_lastTestMigrationTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.LastTestMigrationTime { get => this._lastTestMigrationTime; set { {_lastTestMigrationTime = value;} } } /// Internal Acessors for MachineName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.MachineName { get => this._machineName; set { {_machineName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.MachineName { get => this._machineName; set { {_machineName = value;} } } /// Internal Acessors for MigrationState - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.MigrationState { get => this._migrationState; set { {_migrationState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.MigrationState { get => this._migrationState; set { {_migrationState = value;} } } /// Internal Acessors for MigrationStateDescription - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.MigrationStateDescription { get => this._migrationStateDescription; set { {_migrationStateDescription = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.MigrationStateDescription { get => this._migrationStateDescription; set { {_migrationStateDescription = value;} } } /// Internal Acessors for PolicyFriendlyName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.PolicyFriendlyName { get => this._policyFriendlyName; set { {_policyFriendlyName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.PolicyFriendlyName { get => this._policyFriendlyName; set { {_policyFriendlyName = value;} } } /// Internal Acessors for PolicyId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.PolicyId { get => this._policyId; set { {_policyId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.PolicyId { get => this._policyId; set { {_policyId = value;} } } /// Internal Acessors for RecoveryServicesProviderId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.RecoveryServicesProviderId { get => this._recoveryServicesProviderId; set { {_recoveryServicesProviderId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.RecoveryServicesProviderId { get => this._recoveryServicesProviderId; set { {_recoveryServicesProviderId = value;} } } /// Internal Acessors for ReplicationStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.ReplicationStatus { get => this._replicationStatus; set { {_replicationStatus = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.ReplicationStatus { get => this._replicationStatus; set { {_replicationStatus = value;} } } /// Internal Acessors for TestMigrateState - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.TestMigrateState { get => this._testMigrateState; set { {_testMigrateState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.TestMigrationState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.TestMigrateState { get => this._testMigrateState; set { {_testMigrateState = value;} } } /// Internal Acessors for TestMigrateStateDescription - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemPropertiesInternal.TestMigrateStateDescription { get => this._testMigrateStateDescription; set { {_testMigrateStateDescription = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemPropertiesInternal.TestMigrateStateDescription { get => this._testMigrateStateDescription; set { {_testMigrateStateDescription = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationState? _migrationState; @@ -199,11 +199,11 @@ public partial class MigrationItemProperties : public string PolicyId { get => this._policyId; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings _providerSpecificDetail; /// The migration provider custom settings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationProviderSpecificSettings()); set => this._providerSpecificDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationProviderSpecificSettings()); set => this._providerSpecificDetail = value; } /// Backing field for property. private string _recoveryServicesProviderId; @@ -259,8 +259,8 @@ public partial interface IMigrationItemProperties : ReadOnly = true, Description = @"The critical past job details.", SerializedName = @"criticalJobHistory", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails[] CriticalJobHistory { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails[] CriticalJobHistory { get; } /// The ARM Id of the job being executed. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -307,8 +307,8 @@ public partial interface IMigrationItemProperties : ReadOnly = true, Description = @"The list of health errors.", SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; } /// The status of the last migration. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -387,8 +387,8 @@ public partial interface IMigrationItemProperties : ReadOnly = false, Description = @"The migration provider custom settings.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings ProviderSpecificDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings ProviderSpecificDetail { get; set; } /// The recovery services provider ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -432,9 +432,9 @@ internal partial interface IMigrationItemPropertiesInternal /// Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation[] AllowedOperation { get; set; } /// The critical past job details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails[] CriticalJobHistory { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails[] CriticalJobHistory { get; set; } /// The current job details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentJobDetails CurrentJob { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentJobDetails CurrentJob { get; set; } /// The ARM Id of the job being executed. string CurrentJobId { get; set; } /// The job name. @@ -446,7 +446,7 @@ internal partial interface IMigrationItemPropertiesInternal /// The consolidated health. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get; set; } /// The list of health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The status of the last migration. string LastMigrationStatus { get; set; } /// The last migration time. @@ -466,7 +466,7 @@ internal partial interface IMigrationItemPropertiesInternal /// The ARM Id of policy governing this item. string PolicyId { get; set; } /// The migration provider custom settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings ProviderSpecificDetail { get; set; } /// The recovery services provider ARM Id. string RecoveryServicesProviderId { get; set; } /// The replication status. diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItemProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItemProperties.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/MigrationItemProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationItemProperties.json.cs index c61929ab38c3..cb94324476cc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItemProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItemProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrationItemProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new MigrationItemProperties(json) : null; } @@ -77,7 +77,7 @@ internal MigrationItemProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - {_currentJob = If( json?.PropertyT("currentJob"), out var __jsonCurrentJob) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentJobDetails.FromJson(__jsonCurrentJob) : CurrentJob;} + {_currentJob = If( json?.PropertyT("currentJob"), out var __jsonCurrentJob) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentJobDetails.FromJson(__jsonCurrentJob) : CurrentJob;} {_machineName = If( json?.PropertyT("machineName"), out var __jsonMachineName) ? (string)__jsonMachineName : (string)MachineName;} {_policyId = If( json?.PropertyT("policyId"), out var __jsonPolicyId) ? (string)__jsonPolicyId : (string)PolicyId;} {_policyFriendlyName = If( json?.PropertyT("policyFriendlyName"), out var __jsonPolicyFriendlyName) ? (string)__jsonPolicyFriendlyName : (string)PolicyFriendlyName;} @@ -92,11 +92,11 @@ internal MigrationItemProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt {_testMigrateState = If( json?.PropertyT("testMigrateState"), out var __jsonTestMigrateState) ? (string)__jsonTestMigrateState : (string)TestMigrateState;} {_testMigrateStateDescription = If( json?.PropertyT("testMigrateStateDescription"), out var __jsonTestMigrateStateDescription) ? (string)__jsonTestMigrateStateDescription : (string)TestMigrateStateDescription;} {_health = If( json?.PropertyT("health"), out var __jsonHealth) ? (string)__jsonHealth : (string)Health;} - {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__u) )) ))() : null : HealthError;} + {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__u) )) ))() : null : HealthError;} {_allowedOperation = If( json?.PropertyT("allowedOperations"), out var __jsonAllowedOperations) ? If( __jsonAllowedOperations as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation) (__p is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __o ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation)(__o.ToString()) : ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationItemOperation)""))) ))() : null : AllowedOperation;} - {_criticalJobHistory = If( json?.PropertyT("criticalJobHistory"), out var __jsonCriticalJobHistory) ? If( __jsonCriticalJobHistory as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICriticalJobHistoryDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CriticalJobHistoryDetails.FromJson(__k) )) ))() : null : CriticalJobHistory;} + {_criticalJobHistory = If( json?.PropertyT("criticalJobHistory"), out var __jsonCriticalJobHistory) ? If( __jsonCriticalJobHistory as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICriticalJobHistoryDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CriticalJobHistoryDetails.FromJson(__k) )) ))() : null : CriticalJobHistory;} {_eventCorrelationId = If( json?.PropertyT("eventCorrelationId"), out var __jsonEventCorrelationId) ? (string)__jsonEventCorrelationId : (string)EventCorrelationId;} - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationProviderSpecificSettings.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationProviderSpecificSettings.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/MigrationItemsQueryParameter.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItemsQueryParameter.PowerShell.cs new file mode 100644 index 000000000000..309f3d2dd74e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItemsQueryParameter.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Query parameter to enumerate migration items. + [System.ComponentModel.TypeConverter(typeof(MigrationItemsQueryParameterTypeConverter))] + public partial class MigrationItemsQueryParameter + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IMigrationItemsQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new MigrationItemsQueryParameter(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.Migrate.Models.Api202301.IMigrationItemsQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new MigrationItemsQueryParameter(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.Migrate.Models.Api202301.IMigrationItemsQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal MigrationItemsQueryParameter(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameterInternal)this).SourceFabricName = (string) content.GetValueForProperty("SourceFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameterInternal)this).SourceFabricName, global::System.Convert.ToString); + } + if (content.Contains("SourceContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameterInternal)this).SourceContainerName = (string) content.GetValueForProperty("SourceContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameterInternal)this).SourceContainerName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameterInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameterInternal)this).InstanceType, 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 MigrationItemsQueryParameter(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameterInternal)this).SourceFabricName = (string) content.GetValueForProperty("SourceFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameterInternal)this).SourceFabricName, global::System.Convert.ToString); + } + if (content.Contains("SourceContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameterInternal)this).SourceContainerName = (string) content.GetValueForProperty("SourceContainerName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameterInternal)this).SourceContainerName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameterInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameterInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Query parameter to enumerate migration items. + [System.ComponentModel.TypeConverter(typeof(MigrationItemsQueryParameterTypeConverter))] + public partial interface IMigrationItemsQueryParameter + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItemsQueryParameter.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItemsQueryParameter.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/MigrationItemsQueryParameter.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationItemsQueryParameter.TypeConverter.cs index 542a7774b525..cd236343da62 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItemsQueryParameter.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItemsQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMigrationItemsQueryParameter ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameter ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameter).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameter).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItemsQueryParameter.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItemsQueryParameter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/MigrationItemsQueryParameter.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationItemsQueryParameter.cs index c89158e632c2..679b66ce35bc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItemsQueryParameter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItemsQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Query parameter to enumerate migration items. public partial class MigrationItemsQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameter, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameterInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameter, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameterInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationItemsQueryParameter.json.cs b/src/Migrate/generated/api/Models/Api202301/MigrationItemsQueryParameter.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/MigrationItemsQueryParameter.json.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationItemsQueryParameter.json.cs index ee29d7bb3bc5..584b02e37552 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationItemsQueryParameter.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationItemsQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrationItemsQueryParameter partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameter. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameter. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameter. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameter. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemsQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemsQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new MigrationItemsQueryParameter(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationProviderSpecificSettings.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/MigrationProviderSpecificSettings.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/MigrationProviderSpecificSettings.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationProviderSpecificSettings.PowerShell.cs index 9e7093b34963..c4deeac34a5a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationProviderSpecificSettings.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationProviderSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class MigrationProviderSpecificSettings partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MigrationProviderSpecificSettings(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.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MigrationProviderSpecificSettings(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMig /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,13 +107,13 @@ internal MigrationProviderSpecificSettings(global::System.Collections.IDictionar // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettingsInternal)this).InstanceType, 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. @@ -128,7 +128,7 @@ internal MigrationProviderSpecificSettings(global::System.Management.Automation. // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationProviderSpecificSettings.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/MigrationProviderSpecificSettings.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/MigrationProviderSpecificSettings.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationProviderSpecificSettings.TypeConverter.cs index 5e7b3c33bb20..9dba18fccf5b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationProviderSpecificSettings.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationProviderSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationProviderSpecificSettings.cs b/src/Migrate/generated/api/Models/Api202301/MigrationProviderSpecificSettings.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/MigrationProviderSpecificSettings.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationProviderSpecificSettings.cs index 6fe896abcd12..c96e079ae511 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationProviderSpecificSettings.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationProviderSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Migration provider specific settings. public partial class MigrationProviderSpecificSettings : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettingsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationProviderSpecificSettings.json.cs b/src/Migrate/generated/api/Models/Api202301/MigrationProviderSpecificSettings.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/MigrationProviderSpecificSettings.json.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationProviderSpecificSettings.json.cs index d4186623ff8d..5680f336ddd8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationProviderSpecificSettings.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationProviderSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class MigrationProviderSpecificSettings partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings interface is + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings 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.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationProviderSpecificSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPoint.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPoint.PowerShell.cs new file mode 100644 index 000000000000..01af6012a560 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPoint.PowerShell.cs @@ -0,0 +1,192 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery point for a migration item. + [System.ComponentModel.TypeConverter(typeof(MigrationRecoveryPointTypeConverter))] + public partial class MigrationRecoveryPoint + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IMigrationRecoveryPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new MigrationRecoveryPoint(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.Migrate.Models.Api202301.IMigrationRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new MigrationRecoveryPoint(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.Migrate.Models.Api202301.IMigrationRecoveryPoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal MigrationRecoveryPoint(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.Migrate.Models.Api202301.IMigrationRecoveryPointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPointPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal MigrationRecoveryPoint(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.Migrate.Models.Api202301.IMigrationRecoveryPointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPointPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery point for a migration item. + [System.ComponentModel.TypeConverter(typeof(MigrationRecoveryPointTypeConverter))] + public partial interface IMigrationRecoveryPoint + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPoint.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPoint.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPoint.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPoint.TypeConverter.cs index 9dd2b269773f..55bfdb87c851 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPoint.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPoint.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMigrationRecoveryPoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPoint.cs b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPoint.cs new file mode 100644 index 000000000000..6569e5ac0463 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPoint.cs @@ -0,0 +1,123 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Recovery point for a migration item. + public partial class MigrationRecoveryPoint : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPoint, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPointProperties()); set { {_property = value;} } } + + /// Internal Acessors for RecoveryPointTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointInternal.RecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal)Property).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal)Property).RecoveryPointTime = value; } + + /// Internal Acessors for RecoveryPointType + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointInternal.RecoveryPointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal)Property).RecoveryPointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal)Property).RecoveryPointType = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointProperties _property; + + /// Recovery point properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPointProperties()); set => this._property = value; } + + /// The recovery point time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? RecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal)Property).RecoveryPointTime; } + + /// The recovery point type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType? RecoveryPointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal)Property).RecoveryPointType; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public MigrationRecoveryPoint() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Recovery point for a migration item. + public partial interface IMigrationRecoveryPoint : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// The recovery point time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The recovery point time.", + SerializedName = @"recoveryPointTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? RecoveryPointTime { get; } + /// The recovery point type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The recovery point type.", + SerializedName = @"recoveryPointType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType? RecoveryPointType { get; } + + } + /// Recovery point for a migration item. + internal partial interface IMigrationRecoveryPointInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// Recovery point properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointProperties Property { get; set; } + /// The recovery point time. + global::System.DateTime? RecoveryPointTime { get; set; } + /// The recovery point type. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType? RecoveryPointType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPoint.json.cs b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPoint.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPoint.json.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPoint.json.cs index 8b8529879e89..622ae348663a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPoint.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPoint.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrationRecoveryPoint partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new MigrationRecoveryPoint(json) : null; } @@ -77,8 +77,8 @@ internal MigrationRecoveryPoint(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPointProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPointProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointCollection.PowerShell.cs new file mode 100644 index 000000000000..b608b22ec888 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointCollection.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Collection of migration recovery points. + [System.ComponentModel.TypeConverter(typeof(MigrationRecoveryPointCollectionTypeConverter))] + public partial class MigrationRecoveryPointCollection + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IMigrationRecoveryPointCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new MigrationRecoveryPointCollection(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.Migrate.Models.Api202301.IMigrationRecoveryPointCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new MigrationRecoveryPointCollection(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.Migrate.Models.Api202301.IMigrationRecoveryPointCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal MigrationRecoveryPointCollection(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPointTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal MigrationRecoveryPointCollection(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPointTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Collection of migration recovery points. + [System.ComponentModel.TypeConverter(typeof(MigrationRecoveryPointCollectionTypeConverter))] + public partial interface IMigrationRecoveryPointCollection + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointCollection.TypeConverter.cs index 874c12a82418..6be08f6ea57d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMigrationRecoveryPointCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointCollection.cs b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointCollection.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointCollection.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointCollection.cs index ed1382481639..294cba38b3d2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Collection of migration recovery points. public partial class MigrationRecoveryPointCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class MigrationRecoveryPointCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPoint[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPoint[] _value; /// The migration recovery point details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPoint[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPoint[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public MigrationRecoveryPointCollection() @@ -51,8 +51,8 @@ public partial interface IMigrationRecoveryPointCollection : ReadOnly = false, Description = @"The migration recovery point details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPoint) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPoint[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPoint) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPoint[] Value { get; set; } } /// Collection of migration recovery points. @@ -62,7 +62,7 @@ internal partial interface IMigrationRecoveryPointCollectionInternal /// The value of next link. string NextLink { get; set; } /// The migration recovery point details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPoint[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPoint[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointCollection.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointCollection.json.cs index 53bef4551f3a..7115cd699fd8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrationRecoveryPointCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new MigrationRecoveryPointCollection(json) : null; } @@ -77,7 +77,7 @@ internal MigrationRecoveryPointCollection(Microsoft.Azure.PowerShell.Cmdlets.Mig { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMigrationRecoveryPoint) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationRecoveryPoint.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IMigrationRecoveryPoint) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationRecoveryPoint.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointProperties.PowerShell.cs new file mode 100644 index 000000000000..2ba7d6ad91db --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointProperties.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Migration item recovery point properties. + [System.ComponentModel.TypeConverter(typeof(MigrationRecoveryPointPropertiesTypeConverter))] + public partial class MigrationRecoveryPointProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IMigrationRecoveryPointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new MigrationRecoveryPointProperties(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.Migrate.Models.Api202301.IMigrationRecoveryPointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new MigrationRecoveryPointProperties(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.Migrate.Models.Api202301.IMigrationRecoveryPointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal MigrationRecoveryPointProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal MigrationRecoveryPointProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Migration item recovery point properties. + [System.ComponentModel.TypeConverter(typeof(MigrationRecoveryPointPropertiesTypeConverter))] + public partial interface IMigrationRecoveryPointProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointProperties.TypeConverter.cs index 662ccb18b437..92cbe7dce4d6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointProperties.cs b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointProperties.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointProperties.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointProperties.cs index 06d6cece4ae2..f68c685467c7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Migration item recovery point properties. public partial class MigrationRecoveryPointProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal { /// Internal Acessors for RecoveryPointTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal.RecoveryPointTime { get => this._recoveryPointTime; set { {_recoveryPointTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal.RecoveryPointTime { get => this._recoveryPointTime; set { {_recoveryPointTime = value;} } } /// Internal Acessors for RecoveryPointType - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointPropertiesInternal.RecoveryPointType { get => this._recoveryPointType; set { {_recoveryPointType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MigrationRecoveryPointType? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointPropertiesInternal.RecoveryPointType { get => this._recoveryPointType; set { {_recoveryPointType = value;} } } /// Backing field for property. private global::System.DateTime? _recoveryPointTime; diff --git a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointProperties.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointProperties.json.cs index c4a243aa4fdd..5a2571dfd521 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MigrationRecoveryPointProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/MigrationRecoveryPointProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrationRecoveryPointProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationRecoveryPointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationRecoveryPointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new MigrationRecoveryPointProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/MobilityServiceUpdate.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/MobilityServiceUpdate.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/MobilityServiceUpdate.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/MobilityServiceUpdate.PowerShell.cs index cbe0b89fd9e5..9a8af8a61283 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MobilityServiceUpdate.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/MobilityServiceUpdate.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class MobilityServiceUpdate partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IMobilityServiceUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MobilityServiceUpdate(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.Migrate.Models.Api20220501.IMobilityServiceUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MobilityServiceUpdate(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMob /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,21 +103,21 @@ internal MobilityServiceUpdate(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Version")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdateInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdateInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdateInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdateInternal)this).Version, global::System.Convert.ToString); } if (content.Contains("RebootStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdateInternal)this).RebootStatus = (string) content.GetValueForProperty("RebootStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdateInternal)this).RebootStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdateInternal)this).RebootStatus = (string) content.GetValueForProperty("RebootStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdateInternal)this).RebootStatus, global::System.Convert.ToString); } if (content.Contains("OSType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdateInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdateInternal)this).OSType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdateInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdateInternal)this).OSType, 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,15 +132,15 @@ internal MobilityServiceUpdate(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Version")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdateInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdateInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdateInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdateInternal)this).Version, global::System.Convert.ToString); } if (content.Contains("RebootStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdateInternal)this).RebootStatus = (string) content.GetValueForProperty("RebootStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdateInternal)this).RebootStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdateInternal)this).RebootStatus = (string) content.GetValueForProperty("RebootStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdateInternal)this).RebootStatus, global::System.Convert.ToString); } if (content.Contains("OSType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdateInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdateInternal)this).OSType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdateInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdateInternal)this).OSType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/MobilityServiceUpdate.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/MobilityServiceUpdate.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/MobilityServiceUpdate.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/MobilityServiceUpdate.TypeConverter.cs index 80a6e1a4c473..974f08aa7921 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MobilityServiceUpdate.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/MobilityServiceUpdate.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMobilityServiceUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/MobilityServiceUpdate.cs b/src/Migrate/generated/api/Models/Api202301/MobilityServiceUpdate.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/MobilityServiceUpdate.cs rename to src/Migrate/generated/api/Models/Api202301/MobilityServiceUpdate.cs index 5a21800df379..4d1d58e44b57 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MobilityServiceUpdate.cs +++ b/src/Migrate/generated/api/Models/Api202301/MobilityServiceUpdate.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The Mobility Service update details. public partial class MobilityServiceUpdate : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdate, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdateInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdateInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/MobilityServiceUpdate.json.cs b/src/Migrate/generated/api/Models/Api202301/MobilityServiceUpdate.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/MobilityServiceUpdate.json.cs rename to src/Migrate/generated/api/Models/Api202301/MobilityServiceUpdate.json.cs index c471f689d1e6..c9f068aac5a4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/MobilityServiceUpdate.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/MobilityServiceUpdate.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MobilityServiceUpdate partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new MobilityServiceUpdate(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/Network.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/Network.PowerShell.cs new file mode 100644 index 000000000000..173a28fc4509 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/Network.PowerShell.cs @@ -0,0 +1,208 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Network model. + [System.ComponentModel.TypeConverter(typeof(NetworkTypeConverter))] + public partial class Network + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.INetwork DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Network(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.Migrate.Models.Api202301.INetwork DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Network(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.Migrate.Models.Api202301.INetwork FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Network(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.Migrate.Models.Api202301.INetworkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("FabricType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).FabricType, global::System.Convert.ToString); + } + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet[]) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).Subnet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SubnetTypeConverter.ConvertFrom)); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("NetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).NetworkType, 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 Network(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.Migrate.Models.Api202301.INetworkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("FabricType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).FabricType, global::System.Convert.ToString); + } + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet[]) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).Subnet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SubnetTypeConverter.ConvertFrom)); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("NetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal)this).NetworkType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Network model. + [System.ComponentModel.TypeConverter(typeof(NetworkTypeConverter))] + public partial interface INetwork + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Network.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/Network.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/Network.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/Network.TypeConverter.cs index 0031c650a33b..868bd3e2c3df 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Network.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/Network.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.INetwork ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetwork ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetwork).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetwork).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/Network.cs b/src/Migrate/generated/api/Models/Api202301/Network.cs new file mode 100644 index 000000000000..96e1324801d3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/Network.cs @@ -0,0 +1,145 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Network model. + public partial class Network : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetwork, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// The Fabric Type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FabricType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)Property).FabricType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)Property).FabricType = value ?? null; } + + /// The Friendly Name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)Property).FriendlyName = value ?? null; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkProperties()); set { {_property = value;} } } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// The Network Type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string NetworkType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)Property).NetworkType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)Property).NetworkType = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkProperties _property; + + /// The Network Properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkProperties()); set => this._property = value; } + + /// The List of subnets. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet[] Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)Property).Subnet = value ?? null /* arrayOf */; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public Network() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Network model. + public partial interface INetwork : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// The Fabric Type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Fabric Type.", + SerializedName = @"fabricType", + PossibleTypes = new [] { typeof(string) })] + string FabricType { get; set; } + /// The Friendly Name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Friendly Name.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// The Network Type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Network Type.", + SerializedName = @"networkType", + PossibleTypes = new [] { typeof(string) })] + string NetworkType { get; set; } + /// The List of subnets. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The List of subnets.", + SerializedName = @"subnets", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet[] Subnet { get; set; } + + } + /// Network model. + internal partial interface INetworkInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The Fabric Type. + string FabricType { get; set; } + /// The Friendly Name. + string FriendlyName { get; set; } + /// The Network Type. + string NetworkType { get; set; } + /// The Network Properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkProperties Property { get; set; } + /// The List of subnets. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet[] Subnet { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Network.json.cs b/src/Migrate/generated/api/Models/Api202301/Network.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/Network.json.cs rename to src/Migrate/generated/api/Models/Api202301/Network.json.cs index 33b2d638b080..844176eb61ac 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Network.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/Network.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Network partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetwork. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetwork. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetwork. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetwork. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetwork FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetwork FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new Network(json) : null; } @@ -77,8 +77,8 @@ internal Network(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObj { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/NetworkCollection.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/NetworkCollection.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkCollection.PowerShell.cs index f53fc6a85b84..4304b429b915 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkCollection.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class NetworkCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.INetworkCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new NetworkCollection(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.Migrate.Models.Api20220501.INetworkCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new NetworkCollection(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INet /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal NetworkCollection(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetwork[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetwork[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollectionInternal)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. @@ -128,11 +128,11 @@ internal NetworkCollection(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetwork[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetwork[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollectionInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/NetworkCollection.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/NetworkCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkCollection.TypeConverter.cs index 6db568ad215a..6c95fea2a5d4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.INetworkCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkCollection.cs b/src/Migrate/generated/api/Models/Api202301/NetworkCollection.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/NetworkCollection.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkCollection.cs index 81dc0bc04033..e191fd35a42a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// List of networks. public partial class NetworkCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class NetworkCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetwork[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetwork[] _value; /// The Networks list details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetwork[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetwork[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public NetworkCollection() @@ -51,8 +51,8 @@ public partial interface INetworkCollection : ReadOnly = false, Description = @"The Networks list details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetwork) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetwork[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetwork) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetwork[] Value { get; set; } } /// List of networks. @@ -62,7 +62,7 @@ internal partial interface INetworkCollectionInternal /// The value of next link. string NextLink { get; set; } /// The Networks list details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetwork[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetwork[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/NetworkCollection.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/NetworkCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkCollection.json.cs index 4533c9dac023..ab27ca87b6ee 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class NetworkCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new NetworkCollection(json) : null; } @@ -77,7 +77,7 @@ internal NetworkCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.INetwork) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Network.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.INetwork) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Network.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/NetworkMapping.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMapping.PowerShell.cs new file mode 100644 index 000000000000..428f83ef5679 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMapping.PowerShell.cs @@ -0,0 +1,264 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// + /// Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels + /// as long as there is no difference in structure or method signature. Since there were no base Models for certain fields + /// and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety + /// with references to base models to facilitate extensions in subsequent versions. + /// + [System.ComponentModel.TypeConverter(typeof(NetworkMappingTypeConverter))] + public partial class NetworkMapping + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.INetworkMapping DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new NetworkMapping(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.Migrate.Models.Api202301.INetworkMapping DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new NetworkMapping(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.Migrate.Models.Api202301.INetworkMapping FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal NetworkMapping(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.Migrate.Models.Api202301.INetworkMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).FabricSpecificSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings) content.GetValueForProperty("FabricSpecificSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).FabricSpecificSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("PrimaryNetworkFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).PrimaryNetworkFriendlyName = (string) content.GetValueForProperty("PrimaryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).PrimaryNetworkFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).PrimaryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryNetworkFriendlyName = (string) content.GetValueForProperty("RecoveryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryNetworkFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryFabricArmId = (string) content.GetValueForProperty("RecoveryFabricArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryFabricArmId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificSettingInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).FabricSpecificSettingInstanceType = (string) content.GetValueForProperty("FabricSpecificSettingInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).FabricSpecificSettingInstanceType, 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 NetworkMapping(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.Migrate.Models.Api202301.INetworkMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).FabricSpecificSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings) content.GetValueForProperty("FabricSpecificSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).FabricSpecificSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("PrimaryNetworkFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).PrimaryNetworkFriendlyName = (string) content.GetValueForProperty("PrimaryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).PrimaryNetworkFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).PrimaryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryNetworkFriendlyName = (string) content.GetValueForProperty("RecoveryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryNetworkFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryFabricArmId = (string) content.GetValueForProperty("RecoveryFabricArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryFabricArmId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificSettingInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).FabricSpecificSettingInstanceType = (string) content.GetValueForProperty("FabricSpecificSettingInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal)this).FabricSpecificSettingInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels + /// as long as there is no difference in structure or method signature. Since there were no base Models for certain fields + /// and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety + /// with references to base models to facilitate extensions in subsequent versions. + [System.ComponentModel.TypeConverter(typeof(NetworkMappingTypeConverter))] + public partial interface INetworkMapping + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMapping.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMapping.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/NetworkMapping.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkMapping.TypeConverter.cs index cabca20fae4d..7f720b4ad104 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMapping.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMapping.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.INetworkMapping ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMapping ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMapping).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMapping).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/NetworkMapping.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMapping.cs new file mode 100644 index 000000000000..885caff2f4e1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMapping.cs @@ -0,0 +1,231 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// + /// Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels + /// as long as there is no difference in structure or method signature. Since there were no base Models for certain fields + /// and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety + /// with references to base models to facilitate extensions in subsequent versions. + /// + public partial class NetworkMapping : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMapping, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// Gets the Instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FabricSpecificSettingInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).FabricSpecificSettingInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).FabricSpecificSettingInstanceType = value ?? null; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for FabricSpecificSetting + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal.FabricSpecificSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).FabricSpecificSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).FabricSpecificSetting = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingProperties()); set { {_property = value;} } } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// The primary fabric friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).PrimaryFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).PrimaryFabricFriendlyName = value ?? null; } + + /// The primary network friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryNetworkFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).PrimaryNetworkFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).PrimaryNetworkFriendlyName = value ?? null; } + + /// The primary network id for network mapping. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).PrimaryNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).PrimaryNetworkId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingProperties _property; + + /// The Network Mapping Properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingProperties()); set => this._property = value; } + + /// The recovery fabric ARM id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryFabricArmId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).RecoveryFabricArmId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).RecoveryFabricArmId = value ?? null; } + + /// The recovery fabric friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).RecoveryFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).RecoveryFabricFriendlyName = value ?? null; } + + /// The recovery network friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryNetworkFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).RecoveryNetworkFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).RecoveryNetworkFriendlyName = value ?? null; } + + /// The recovery network id for network mapping. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).RecoveryNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).RecoveryNetworkId = value ?? null; } + + /// The pairing state for network mapping. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string State { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)Property).State = value ?? null; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public NetworkMapping() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels + /// as long as there is no difference in structure or method signature. Since there were no base Models for certain fields + /// and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety + /// with references to base models to facilitate extensions in subsequent versions. + public partial interface INetworkMapping : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// Gets the Instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the Instance type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string FabricSpecificSettingInstanceType { get; set; } + /// The primary fabric friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The primary fabric friendly name.", + SerializedName = @"primaryFabricFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string PrimaryFabricFriendlyName { get; set; } + /// The primary network friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The primary network friendly name.", + SerializedName = @"primaryNetworkFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string PrimaryNetworkFriendlyName { get; set; } + /// The primary network id for network mapping. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The primary network id for network mapping.", + SerializedName = @"primaryNetworkId", + PossibleTypes = new [] { typeof(string) })] + string PrimaryNetworkId { get; set; } + /// The recovery fabric ARM id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery fabric ARM id.", + SerializedName = @"recoveryFabricArmId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryFabricArmId { get; set; } + /// The recovery fabric friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery fabric friendly name.", + SerializedName = @"recoveryFabricFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string RecoveryFabricFriendlyName { get; set; } + /// The recovery network friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery network friendly name.", + SerializedName = @"recoveryNetworkFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string RecoveryNetworkFriendlyName { get; set; } + /// The recovery network id for network mapping. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery network id for network mapping.", + SerializedName = @"recoveryNetworkId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryNetworkId { get; set; } + /// The pairing state for network mapping. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The pairing state for network mapping.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(string) })] + string State { get; set; } + + } + /// Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels + /// as long as there is no difference in structure or method signature. Since there were no base Models for certain fields + /// and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety + /// with references to base models to facilitate extensions in subsequent versions. + internal partial interface INetworkMappingInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The fabric specific settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings FabricSpecificSetting { get; set; } + /// Gets the Instance type. + string FabricSpecificSettingInstanceType { get; set; } + /// The primary fabric friendly name. + string PrimaryFabricFriendlyName { get; set; } + /// The primary network friendly name. + string PrimaryNetworkFriendlyName { get; set; } + /// The primary network id for network mapping. + string PrimaryNetworkId { get; set; } + /// The Network Mapping Properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingProperties Property { get; set; } + /// The recovery fabric ARM id. + string RecoveryFabricArmId { get; set; } + /// The recovery fabric friendly name. + string RecoveryFabricFriendlyName { get; set; } + /// The recovery network friendly name. + string RecoveryNetworkFriendlyName { get; set; } + /// The recovery network id for network mapping. + string RecoveryNetworkId { get; set; } + /// The pairing state for network mapping. + string State { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMapping.json.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMapping.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/NetworkMapping.json.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkMapping.json.cs index 29a84cd6cbfc..beb5e41d1932 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMapping.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMapping.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -59,13 +59,13 @@ public partial class NetworkMapping partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMapping. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMapping. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMapping. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMapping. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMapping FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMapping FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new NetworkMapping(json) : null; } @@ -82,8 +82,8 @@ internal NetworkMapping(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json. { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMappingCollection.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/NetworkMappingCollection.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkMappingCollection.PowerShell.cs index b112087a31ac..ac26e3c77363 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingCollection.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMappingCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -59,27 +59,27 @@ public partial class NetworkMappingCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.INetworkMappingCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new NetworkMappingCollection(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.Migrate.Models.Api20220501.INetworkMappingCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new NetworkMappingCollection(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INet /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,17 +107,17 @@ internal NetworkMappingCollection(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMapping[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMapping[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollectionInternal)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. @@ -132,11 +132,11 @@ internal NetworkMappingCollection(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMapping[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMapping[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollectionInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMappingCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/NetworkMappingCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkMappingCollection.TypeConverter.cs index 72161055ebf0..967fb5beb8a1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMappingCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.INetworkMappingCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingCollection.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMappingCollection.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/NetworkMappingCollection.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkMappingCollection.cs index 121fcf853684..31b98a3f3b25 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMappingCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -13,8 +13,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// to override Load with Base.NetworkMapping instead of existing CurrentVersion.NetworkMapping. /// public partial class NetworkMappingCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollectionInternal { /// Backing field for property. @@ -25,11 +25,11 @@ public partial class NetworkMappingCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMapping[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMapping[] _value; /// The Network Mappings list. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMapping[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMapping[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public NetworkMappingCollection() @@ -57,8 +57,8 @@ public partial interface INetworkMappingCollection : ReadOnly = false, Description = @"The Network Mappings list.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMapping) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMapping[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMapping) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMapping[] Value { get; set; } } /// List of network mappings. As with NetworkMapping, it should be possible to reuse a prev version of this class. It doesn't @@ -70,7 +70,7 @@ internal partial interface INetworkMappingCollectionInternal /// The value of next link. string NextLink { get; set; } /// The Network Mappings list. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMapping[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMapping[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMappingCollection.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/NetworkMappingCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkMappingCollection.json.cs index d97120adb15d..5c7dd60f6523 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMappingCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -58,13 +58,13 @@ public partial class NetworkMappingCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new NetworkMappingCollection(json) : null; } @@ -81,7 +81,7 @@ internal NetworkMappingCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.INetworkMapping) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMapping.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.INetworkMapping) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMapping.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingFabricSpecificSettings.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMappingFabricSpecificSettings.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/NetworkMappingFabricSpecificSettings.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkMappingFabricSpecificSettings.PowerShell.cs index bd5b00fcf5bd..685e4a902785 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingFabricSpecificSettings.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMappingFabricSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class NetworkMappingFabricSpecificSettings partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new NetworkMappingFabricSpecificSettings(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.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new NetworkMappingFabricSpecificSettings(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INet /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,13 +107,13 @@ internal NetworkMappingFabricSpecificSettings(global::System.Collections.IDictio // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, 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. @@ -128,7 +128,7 @@ internal NetworkMappingFabricSpecificSettings(global::System.Management.Automati // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingFabricSpecificSettings.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMappingFabricSpecificSettings.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/NetworkMappingFabricSpecificSettings.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkMappingFabricSpecificSettings.TypeConverter.cs index a5cd1d251530..83ad1c05c7a8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingFabricSpecificSettings.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMappingFabricSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingFabricSpecificSettings.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMappingFabricSpecificSettings.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/NetworkMappingFabricSpecificSettings.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkMappingFabricSpecificSettings.cs index dc97606ed3c9..bf348eb50d80 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingFabricSpecificSettings.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMappingFabricSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Network Mapping fabric specific settings. public partial class NetworkMappingFabricSpecificSettings : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingFabricSpecificSettings.json.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMappingFabricSpecificSettings.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/NetworkMappingFabricSpecificSettings.json.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkMappingFabricSpecificSettings.json.cs index c3522ec2531f..1ade72e2dffa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingFabricSpecificSettings.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMappingFabricSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class NetworkMappingFabricSpecificSettings partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings 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.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/NetworkMappingProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMappingProperties.PowerShell.cs new file mode 100644 index 000000000000..244a1e50c1cb --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMappingProperties.PowerShell.cs @@ -0,0 +1,216 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Network Mapping Properties. + [System.ComponentModel.TypeConverter(typeof(NetworkMappingPropertiesTypeConverter))] + public partial class NetworkMappingProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.INetworkMappingProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new NetworkMappingProperties(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.Migrate.Models.Api202301.INetworkMappingProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new NetworkMappingProperties(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.Migrate.Models.Api202301.INetworkMappingProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal NetworkMappingProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FabricSpecificSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).FabricSpecificSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings) content.GetValueForProperty("FabricSpecificSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).FabricSpecificSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("PrimaryNetworkFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).PrimaryNetworkFriendlyName = (string) content.GetValueForProperty("PrimaryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).PrimaryNetworkFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).PrimaryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryNetworkFriendlyName = (string) content.GetValueForProperty("RecoveryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryNetworkFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryFabricArmId = (string) content.GetValueForProperty("RecoveryFabricArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryFabricArmId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificSettingInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).FabricSpecificSettingInstanceType = (string) content.GetValueForProperty("FabricSpecificSettingInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).FabricSpecificSettingInstanceType, 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 NetworkMappingProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FabricSpecificSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).FabricSpecificSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings) content.GetValueForProperty("FabricSpecificSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).FabricSpecificSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("PrimaryNetworkFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).PrimaryNetworkFriendlyName = (string) content.GetValueForProperty("PrimaryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).PrimaryNetworkFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).PrimaryNetworkId = (string) content.GetValueForProperty("PrimaryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).PrimaryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryNetworkFriendlyName = (string) content.GetValueForProperty("RecoveryNetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryNetworkFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryFabricArmId = (string) content.GetValueForProperty("RecoveryFabricArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryFabricArmId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificSettingInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).FabricSpecificSettingInstanceType = (string) content.GetValueForProperty("FabricSpecificSettingInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal)this).FabricSpecificSettingInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Network Mapping Properties. + [System.ComponentModel.TypeConverter(typeof(NetworkMappingPropertiesTypeConverter))] + public partial interface INetworkMappingProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMappingProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/NetworkMappingProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkMappingProperties.TypeConverter.cs index 7c36a7dbf01c..622bed433ea0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMappingProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.INetworkMappingProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingProperties.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMappingProperties.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/NetworkMappingProperties.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkMappingProperties.cs index b00eb8ab0bd4..b344c5d08d52 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMappingProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Network Mapping Properties. public partial class NetworkMappingProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings _fabricSpecificSetting; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings _fabricSpecificSetting; /// The fabric specific settings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings FabricSpecificSetting { get => (this._fabricSpecificSetting = this._fabricSpecificSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettings()); set => this._fabricSpecificSetting = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings FabricSpecificSetting { get => (this._fabricSpecificSetting = this._fabricSpecificSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettings()); set => this._fabricSpecificSetting = value; } /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricSpecificSettingInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)FabricSpecificSetting).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)FabricSpecificSetting).InstanceType = value ?? null; } + public string FabricSpecificSettingInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)FabricSpecificSetting).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)FabricSpecificSetting).InstanceType = value ?? null; } /// Internal Acessors for FabricSpecificSetting - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingPropertiesInternal.FabricSpecificSetting { get => (this._fabricSpecificSetting = this._fabricSpecificSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettings()); set { {_fabricSpecificSetting = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingPropertiesInternal.FabricSpecificSetting { get => (this._fabricSpecificSetting = this._fabricSpecificSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettings()); set { {_fabricSpecificSetting = value;} } } /// Backing field for property. private string _primaryFabricFriendlyName; @@ -172,7 +172,7 @@ internal partial interface INetworkMappingPropertiesInternal { /// The fabric specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings FabricSpecificSetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings FabricSpecificSetting { get; set; } /// Gets the Instance type. string FabricSpecificSettingInstanceType { get; set; } /// The primary fabric friendly name. diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/NetworkMappingProperties.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/NetworkMappingProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkMappingProperties.json.cs index 7f097c355162..1036837a68ee 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkMappingProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkMappingProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class NetworkMappingProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new NetworkMappingProperties(json) : null; } @@ -77,7 +77,7 @@ internal NetworkMappingProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - {_fabricSpecificSetting = If( json?.PropertyT("fabricSpecificSettings"), out var __jsonFabricSpecificSettings) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettings.FromJson(__jsonFabricSpecificSettings) : FabricSpecificSetting;} + {_fabricSpecificSetting = If( json?.PropertyT("fabricSpecificSettings"), out var __jsonFabricSpecificSettings) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettings.FromJson(__jsonFabricSpecificSettings) : FabricSpecificSetting;} {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)State;} {_primaryNetworkFriendlyName = If( json?.PropertyT("primaryNetworkFriendlyName"), out var __jsonPrimaryNetworkFriendlyName) ? (string)__jsonPrimaryNetworkFriendlyName : (string)PrimaryNetworkFriendlyName;} {_primaryNetworkId = If( json?.PropertyT("primaryNetworkId"), out var __jsonPrimaryNetworkId) ? (string)__jsonPrimaryNetworkId : (string)PrimaryNetworkId;} diff --git a/src/Migrate/generated/api/Models/Api202301/NetworkProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/NetworkProperties.PowerShell.cs new file mode 100644 index 000000000000..019351a3f2d4 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/NetworkProperties.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Network Properties. + [System.ComponentModel.TypeConverter(typeof(NetworkPropertiesTypeConverter))] + public partial class NetworkProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.INetworkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new NetworkProperties(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.Migrate.Models.Api202301.INetworkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new NetworkProperties(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.Migrate.Models.Api202301.INetworkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal NetworkProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FabricType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).FabricType, global::System.Convert.ToString); + } + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet[]) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).Subnet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SubnetTypeConverter.ConvertFrom)); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("NetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).NetworkType, 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 NetworkProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FabricType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).FabricType, global::System.Convert.ToString); + } + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet[]) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).Subnet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SubnetTypeConverter.ConvertFrom)); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("NetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal)this).NetworkType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Network Properties. + [System.ComponentModel.TypeConverter(typeof(NetworkPropertiesTypeConverter))] + public partial interface INetworkProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/NetworkProperties.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/NetworkProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkProperties.TypeConverter.cs index 5f15f9efd914..c59c32834347 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.INetworkProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkProperties.cs b/src/Migrate/generated/api/Models/Api202301/NetworkProperties.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/NetworkProperties.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkProperties.cs index 4ab641dd431d..cafe1718a524 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Network Properties. public partial class NetworkProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkPropertiesInternal { /// Backing field for property. @@ -35,11 +35,11 @@ public partial class NetworkProperties : public string NetworkType { get => this._networkType; set => this._networkType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet[] _subnet; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet[] _subnet; /// The List of subnets. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet[] Subnet { get => this._subnet; set => this._subnet = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet[] Subnet { get => this._subnet; set => this._subnet = value; } /// Creates an new instance. public NetworkProperties() @@ -81,8 +81,8 @@ public partial interface INetworkProperties : ReadOnly = false, Description = @"The List of subnets.", SerializedName = @"subnets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet[] Subnet { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet[] Subnet { get; set; } } /// Network Properties. @@ -96,7 +96,7 @@ internal partial interface INetworkPropertiesInternal /// The Network Type. string NetworkType { get; set; } /// The List of subnets. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet[] Subnet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet[] Subnet { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NetworkProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/NetworkProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/NetworkProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/NetworkProperties.json.cs index edec1abdaa66..6cdad2e845b2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NetworkProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/NetworkProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class NetworkProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new NetworkProperties(json) : null; } @@ -78,7 +78,7 @@ internal NetworkProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js return; } {_fabricType = If( json?.PropertyT("fabricType"), out var __jsonFabricType) ? (string)__jsonFabricType : (string)FabricType;} - {_subnet = If( json?.PropertyT("subnets"), out var __jsonSubnets) ? If( __jsonSubnets as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISubnet) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Subnet.FromJson(__u) )) ))() : null : Subnet;} + {_subnet = If( json?.PropertyT("subnets"), out var __jsonSubnets) ? If( __jsonSubnets as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.ISubnet) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Subnet.FromJson(__u) )) ))() : null : Subnet;} {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)FriendlyName;} {_networkType = If( json?.PropertyT("networkType"), out var __jsonNetworkType) ? (string)__jsonNetworkType : (string)NetworkType;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api202301/NewProtectionProfile.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/NewProtectionProfile.PowerShell.cs new file mode 100644 index 000000000000..a8baee5aab95 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/NewProtectionProfile.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// New Protection profile input. + [System.ComponentModel.TypeConverter(typeof(NewProtectionProfileTypeConverter))] + public partial class NewProtectionProfile + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.INewProtectionProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new NewProtectionProfile(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.Migrate.Models.Api202301.INewProtectionProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new NewProtectionProfile(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.Migrate.Models.Api202301.INewProtectionProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal NewProtectionProfile(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PolicyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).PolicyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); + } + if (content.Contains("ResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)this).ResourceType, 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 NewProtectionProfile(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PolicyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).PolicyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointHistory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).RecoveryPointHistory = (int?) content.GetValueForProperty("RecoveryPointHistory",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).RecoveryPointHistory, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MultiVMSyncStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).MultiVMSyncStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus) content.GetValueForProperty("MultiVMSyncStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal)this).MultiVMSyncStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SetMultiVMSyncStatus.CreateFrom); + } + if (content.Contains("ResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)this).ResourceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// New Protection profile input. + [System.ComponentModel.TypeConverter(typeof(NewProtectionProfileTypeConverter))] + public partial interface INewProtectionProfile + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NewProtectionProfile.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/NewProtectionProfile.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/NewProtectionProfile.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/NewProtectionProfile.TypeConverter.cs index 3a215323ef76..7bee7860daba 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NewProtectionProfile.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/NewProtectionProfile.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.INewProtectionProfile ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfile ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfile).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfile).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/NewProtectionProfile.cs b/src/Migrate/generated/api/Models/Api202301/NewProtectionProfile.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/NewProtectionProfile.cs rename to src/Migrate/generated/api/Models/Api202301/NewProtectionProfile.cs index c2e1bbf5c647..e2b439d2711c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NewProtectionProfile.cs +++ b/src/Migrate/generated/api/Models/Api202301/NewProtectionProfile.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// New Protection profile input. public partial class NewProtectionProfile : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfile, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfileInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfile, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfileInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails __protectionProfileCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails __protectionProfileCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetails(); /// Backing field for property. private int? _appConsistentFrequencyInMinute; @@ -58,7 +58,7 @@ public partial class NewProtectionProfile : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)__protectionProfileCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)__protectionProfileCustomDetails).ResourceType = value ; } + public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)__protectionProfileCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)__protectionProfileCustomDetails).ResourceType = value ; } /// Creates an new instance. public NewProtectionProfile() @@ -81,7 +81,7 @@ public NewProtectionProfile() /// New Protection profile input. public partial interface INewProtectionProfile : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails { /// The app consistent snapshot frequency (in minutes). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -129,7 +129,7 @@ public partial interface INewProtectionProfile : } /// New Protection profile input. internal partial interface INewProtectionProfileInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal { /// The app consistent snapshot frequency (in minutes). int? AppConsistentFrequencyInMinute { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/NewProtectionProfile.json.cs b/src/Migrate/generated/api/Models/Api202301/NewProtectionProfile.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/NewProtectionProfile.json.cs rename to src/Migrate/generated/api/Models/Api202301/NewProtectionProfile.json.cs index 826afd00b60e..63d7882a4f2a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NewProtectionProfile.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/NewProtectionProfile.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class NewProtectionProfile partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfile. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfile. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfile. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfile. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewProtectionProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewProtectionProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new NewProtectionProfile(json) : null; } @@ -77,7 +77,7 @@ internal NewProtectionProfile(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime { return; } - __protectionProfileCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionProfileCustomDetails(json); + __protectionProfileCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionProfileCustomDetails(json); {_policyName = If( json?.PropertyT("policyName"), out var __jsonPolicyName) ? (string)__jsonPolicyName : (string)PolicyName;} {_recoveryPointHistory = If( json?.PropertyT("recoveryPointHistory"), out var __jsonRecoveryPointHistory) ? (int?)__jsonRecoveryPointHistory : RecoveryPointHistory;} {_crashConsistentFrequencyInMinute = If( json?.PropertyT("crashConsistentFrequencyInMinutes"), out var __jsonCrashConsistentFrequencyInMinutes) ? (int?)__jsonCrashConsistentFrequencyInMinutes : CrashConsistentFrequencyInMinute;} diff --git a/src/Migrate/generated/api/Models/Api202301/NewRecoveryVirtualNetwork.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/NewRecoveryVirtualNetwork.PowerShell.cs new file mode 100644 index 000000000000..60d7a3d14c18 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/NewRecoveryVirtualNetwork.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// + /// Recovery virtual network input to create new virtual network from given source network. + /// + [System.ComponentModel.TypeConverter(typeof(NewRecoveryVirtualNetworkTypeConverter))] + public partial class NewRecoveryVirtualNetwork + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.INewRecoveryVirtualNetwork DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new NewRecoveryVirtualNetwork(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.Migrate.Models.Api202301.INewRecoveryVirtualNetwork DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new NewRecoveryVirtualNetwork(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.Migrate.Models.Api202301.INewRecoveryVirtualNetwork FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal NewRecoveryVirtualNetwork(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryVirtualNetworkResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkResourceGroupName = (string) content.GetValueForProperty("RecoveryVirtualNetworkResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVirtualNetworkName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkName = (string) content.GetValueForProperty("RecoveryVirtualNetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkName, global::System.Convert.ToString); + } + if (content.Contains("ResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType, 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 NewRecoveryVirtualNetwork(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryVirtualNetworkResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkResourceGroupName = (string) content.GetValueForProperty("RecoveryVirtualNetworkResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVirtualNetworkName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkName = (string) content.GetValueForProperty("RecoveryVirtualNetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetworkInternal)this).RecoveryVirtualNetworkName, global::System.Convert.ToString); + } + if (content.Contains("ResourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery virtual network input to create new virtual network from given source network. + [System.ComponentModel.TypeConverter(typeof(NewRecoveryVirtualNetworkTypeConverter))] + public partial interface INewRecoveryVirtualNetwork + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/NewRecoveryVirtualNetwork.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/NewRecoveryVirtualNetwork.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/NewRecoveryVirtualNetwork.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/NewRecoveryVirtualNetwork.TypeConverter.cs index bbefe1f3e78d..aed3b1aa804e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NewRecoveryVirtualNetwork.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/NewRecoveryVirtualNetwork.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.INewRecoveryVirtualNetwork ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetwork ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewRecoveryVirtualNetwork).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetwork).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/NewRecoveryVirtualNetwork.cs b/src/Migrate/generated/api/Models/Api202301/NewRecoveryVirtualNetwork.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/NewRecoveryVirtualNetwork.cs rename to src/Migrate/generated/api/Models/Api202301/NewRecoveryVirtualNetwork.cs index ca0467bfb2e7..18492613e53f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NewRecoveryVirtualNetwork.cs +++ b/src/Migrate/generated/api/Models/Api202301/NewRecoveryVirtualNetwork.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,15 +11,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// Recovery virtual network input to create new virtual network from given source network. /// public partial class NewRecoveryVirtualNetwork : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewRecoveryVirtualNetwork, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewRecoveryVirtualNetworkInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetwork, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetworkInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails __recoveryVirtualNetworkCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails __recoveryVirtualNetworkCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetails(); /// Backing field for property. private string _recoveryVirtualNetworkName; @@ -42,7 +42,7 @@ public partial class NewRecoveryVirtualNetwork : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)__recoveryVirtualNetworkCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)__recoveryVirtualNetworkCustomDetails).ResourceType = value ; } + public string ResourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)__recoveryVirtualNetworkCustomDetails).ResourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)__recoveryVirtualNetworkCustomDetails).ResourceType = value ; } /// Creates an new instance. public NewRecoveryVirtualNetwork() @@ -65,7 +65,7 @@ public NewRecoveryVirtualNetwork() /// Recovery virtual network input to create new virtual network from given source network. public partial interface INewRecoveryVirtualNetwork : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails { /// The recovery virtual network name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -90,7 +90,7 @@ public partial interface INewRecoveryVirtualNetwork : } /// Recovery virtual network input to create new virtual network from given source network. internal partial interface INewRecoveryVirtualNetworkInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal { /// The recovery virtual network name. string RecoveryVirtualNetworkName { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/NewRecoveryVirtualNetwork.json.cs b/src/Migrate/generated/api/Models/Api202301/NewRecoveryVirtualNetwork.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/NewRecoveryVirtualNetwork.json.cs rename to src/Migrate/generated/api/Models/Api202301/NewRecoveryVirtualNetwork.json.cs index c1f6802490ed..d95dcf88134c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/NewRecoveryVirtualNetwork.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/NewRecoveryVirtualNetwork.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class NewRecoveryVirtualNetwork partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewRecoveryVirtualNetwork. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetwork. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewRecoveryVirtualNetwork. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetwork. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INewRecoveryVirtualNetwork FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INewRecoveryVirtualNetwork FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new NewRecoveryVirtualNetwork(json) : null; } @@ -79,7 +79,7 @@ internal NewRecoveryVirtualNetwork(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - __recoveryVirtualNetworkCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryVirtualNetworkCustomDetails(json); + __recoveryVirtualNetworkCustomDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryVirtualNetworkCustomDetails(json); {_recoveryVirtualNetworkResourceGroupName = If( json?.PropertyT("recoveryVirtualNetworkResourceGroupName"), out var __jsonRecoveryVirtualNetworkResourceGroupName) ? (string)__jsonRecoveryVirtualNetworkResourceGroupName : (string)RecoveryVirtualNetworkResourceGroupName;} {_recoveryVirtualNetworkName = If( json?.PropertyT("recoveryVirtualNetworkName"), out var __jsonRecoveryVirtualNetworkName) ? (string)__jsonRecoveryVirtualNetworkName : (string)RecoveryVirtualNetworkName;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api202301/OSDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/OSDetails.PowerShell.cs new file mode 100644 index 000000000000..7ebf4019e381 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/OSDetails.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Disk Details. + [System.ComponentModel.TypeConverter(typeof(OSDetailsTypeConverter))] + public partial class OSDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IOSDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OSDetails(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.Migrate.Models.Api202301.IOSDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OSDetails(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.Migrate.Models.Api202301.IOSDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OSDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("ProductType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).ProductType = (string) content.GetValueForProperty("ProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).ProductType, global::System.Convert.ToString); + } + if (content.Contains("OSEdition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSEdition = (string) content.GetValueForProperty("OSEdition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSEdition, global::System.Convert.ToString); + } + if (content.Contains("OSVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSVersion, global::System.Convert.ToString); + } + if (content.Contains("OSMajorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSMajorVersion = (string) content.GetValueForProperty("OSMajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSMajorVersion, global::System.Convert.ToString); + } + if (content.Contains("OSMinorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSMinorVersion = (string) content.GetValueForProperty("OSMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSMinorVersion, 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 OSDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("ProductType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).ProductType = (string) content.GetValueForProperty("ProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).ProductType, global::System.Convert.ToString); + } + if (content.Contains("OSEdition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSEdition = (string) content.GetValueForProperty("OSEdition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSEdition, global::System.Convert.ToString); + } + if (content.Contains("OSVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSVersion, global::System.Convert.ToString); + } + if (content.Contains("OSMajorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSMajorVersion = (string) content.GetValueForProperty("OSMajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSMajorVersion, global::System.Convert.ToString); + } + if (content.Contains("OSMinorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSMinorVersion = (string) content.GetValueForProperty("OSMinorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal)this).OSMinorVersion, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Disk Details. + [System.ComponentModel.TypeConverter(typeof(OSDetailsTypeConverter))] + public partial interface IOSDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/OSDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/OSDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/OSDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/OSDetails.TypeConverter.cs index f246c878a7b8..faae0e448bd4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OSDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/OSDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IOSDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/OSDetails.cs b/src/Migrate/generated/api/Models/Api202301/OSDetails.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/OSDetails.cs rename to src/Migrate/generated/api/Models/Api202301/OSDetails.cs index 9ebfc34f9268..50ecc14cff0e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OSDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/OSDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Disk Details. public partial class OSDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/OSDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/OSDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/OSDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/OSDetails.json.cs index 657d5fe86774..f8002408137d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OSDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/OSDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OSDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new OSDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/OSDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/OSDiskDetails.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/OSDiskDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/OSDiskDetails.PowerShell.cs index 4c36043f1955..7e650ba81272 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OSDiskDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/OSDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class OSDiskDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IOSDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OSDiskDetails(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.Migrate.Models.Api20220501.IOSDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OSDiskDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSD /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,21 +103,21 @@ internal OSDiskDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("OSVhdId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)this).OSVhdId = (string) content.GetValueForProperty("OSVhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)this).OSVhdId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)this).OSVhdId = (string) content.GetValueForProperty("OSVhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)this).OSVhdId, global::System.Convert.ToString); } if (content.Contains("OSType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)this).OSType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)this).OSType, global::System.Convert.ToString); } if (content.Contains("VhdName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)this).VhdName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)this).VhdName, 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,15 +132,15 @@ internal OSDiskDetails(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("OSVhdId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)this).OSVhdId = (string) content.GetValueForProperty("OSVhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)this).OSVhdId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)this).OSVhdId = (string) content.GetValueForProperty("OSVhdId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)this).OSVhdId, global::System.Convert.ToString); } if (content.Contains("OSType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)this).OSType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)this).OSType, global::System.Convert.ToString); } if (content.Contains("VhdName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal)this).VhdName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)this).VhdName = (string) content.GetValueForProperty("VhdName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal)this).VhdName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/OSDiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/OSDiskDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/OSDiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/OSDiskDetails.TypeConverter.cs index 56f30e8da971..1e5d0628a6e7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OSDiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/OSDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IOSDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/OSDiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/OSDiskDetails.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/OSDiskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/OSDiskDetails.cs index 354f774896a7..a6c0ba508031 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OSDiskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/OSDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Details of the OS Disk. public partial class OSDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/OSDiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/OSDiskDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/OSDiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/OSDiskDetails.json.cs index 3eeed0d159db..fba801ee7721 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OSDiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/OSDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OSDiskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new OSDiskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/OSVersionWrapper.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/OSVersionWrapper.PowerShell.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/OSVersionWrapper.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/OSVersionWrapper.PowerShell.cs index 341563af7591..ea44f2f7119b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OSVersionWrapper.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/OSVersionWrapper.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class OSVersionWrapper partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IOSVersionWrapper DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OSVersionWrapper(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.Migrate.Models.Api20220501.IOSVersionWrapper DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OSVersionWrapper(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSV /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapper FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal OSVersionWrapper(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Version")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapperInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapperInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapperInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapperInternal)this).Version, global::System.Convert.ToString); } if (content.Contains("ServicePack")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapperInternal)this).ServicePack = (string) content.GetValueForProperty("ServicePack",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapperInternal)this).ServicePack, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapperInternal)this).ServicePack = (string) content.GetValueForProperty("ServicePack",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapperInternal)this).ServicePack, 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. @@ -128,11 +128,11 @@ internal OSVersionWrapper(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Version")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapperInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapperInternal)this).Version, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapperInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapperInternal)this).Version, global::System.Convert.ToString); } if (content.Contains("ServicePack")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapperInternal)this).ServicePack = (string) content.GetValueForProperty("ServicePack",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapperInternal)this).ServicePack, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapperInternal)this).ServicePack = (string) content.GetValueForProperty("ServicePack",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapperInternal)this).ServicePack, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/OSVersionWrapper.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/OSVersionWrapper.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/OSVersionWrapper.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/OSVersionWrapper.TypeConverter.cs index c8115ea77fbf..d6acb88c952e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OSVersionWrapper.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/OSVersionWrapper.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IOSVersionWrapper ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapper).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/OSVersionWrapper.cs b/src/Migrate/generated/api/Models/Api202301/OSVersionWrapper.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/OSVersionWrapper.cs rename to src/Migrate/generated/api/Models/Api202301/OSVersionWrapper.cs index aa37f8be1335..047b196a9ad2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OSVersionWrapper.cs +++ b/src/Migrate/generated/api/Models/Api202301/OSVersionWrapper.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Wrapper model for OSVersion to include version and service pack info. public partial class OSVersionWrapper : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapper, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapperInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapperInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/OSVersionWrapper.json.cs b/src/Migrate/generated/api/Models/Api202301/OSVersionWrapper.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/OSVersionWrapper.json.cs rename to src/Migrate/generated/api/Models/Api202301/OSVersionWrapper.json.cs index 867d40718ac2..ed3ad5da13fa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OSVersionWrapper.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/OSVersionWrapper.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OSVersionWrapper partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapper. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapper. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapper FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new OSVersionWrapper(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/OperationsDiscovery.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/OperationsDiscovery.PowerShell.cs new file mode 100644 index 000000000000..ec1394ab1922 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/OperationsDiscovery.PowerShell.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Operations discovery class. + [System.ComponentModel.TypeConverter(typeof(OperationsDiscoveryTypeConverter))] + public partial class OperationsDiscovery + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IOperationsDiscovery DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OperationsDiscovery(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.Migrate.Models.Api202301.IOperationsDiscovery DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OperationsDiscovery(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.Migrate.Models.Api202301.IOperationsDiscovery FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OperationsDiscovery(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Display")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisplayTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Origin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Origin, global::System.Convert.ToString); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.AnyTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayProvider, global::System.Convert.ToString); + } + if (content.Contains("DisplayResource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayResource, global::System.Convert.ToString); + } + if (content.Contains("DisplayOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayOperation, global::System.Convert.ToString); + } + if (content.Contains("DisplayDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayDescription, 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 OperationsDiscovery(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Display")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DisplayTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Origin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Origin, global::System.Convert.ToString); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.AnyTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayProvider, global::System.Convert.ToString); + } + if (content.Contains("DisplayResource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayResource, global::System.Convert.ToString); + } + if (content.Contains("DisplayOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayOperation, global::System.Convert.ToString); + } + if (content.Contains("DisplayDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal)this).DisplayDescription, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Operations discovery class. + [System.ComponentModel.TypeConverter(typeof(OperationsDiscoveryTypeConverter))] + public partial interface IOperationsDiscovery + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscovery.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/OperationsDiscovery.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/OperationsDiscovery.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/OperationsDiscovery.TypeConverter.cs index e986942d1dee..6e884db820aa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscovery.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/OperationsDiscovery.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IOperationsDiscovery ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscovery.cs b/src/Migrate/generated/api/Models/Api202301/OperationsDiscovery.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/OperationsDiscovery.cs rename to src/Migrate/generated/api/Models/Api202301/OperationsDiscovery.cs index 49e61bf09e04..434be85a8e00 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscovery.cs +++ b/src/Migrate/generated/api/Models/Api202301/OperationsDiscovery.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Operations discovery class. public partial class OperationsDiscovery : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplay _display; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay _display; /// Object type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Display()); set => this._display = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Display()); set => this._display = value; } /// /// The description. The localized friendly description for the operation, as it should be shown to the user. It should be @@ -28,7 +28,7 @@ public partial class OperationsDiscovery : /// Create or Update any 'display.resource' Delete any 'display.resource' 'ActionName' any 'display.resources'. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)Display).Description = value ?? null; } + public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)Display).Description = value ?? null; } /// /// The operation. The localized friendly name for the operation, as it should be shown to the user. It should be concise @@ -36,7 +36,7 @@ public partial class OperationsDiscovery : /// or Update Delete 'ActionName'. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)Display).Operation = value ?? null; } + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)Display).Operation = value ?? null; } /// /// The provider. The localized friendly form of the resource provider name - it is expected to also include the publisher/company @@ -44,7 +44,7 @@ public partial class OperationsDiscovery : /// Insights" or "Microsoft Compute.". /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)Display).Provider = value ?? null; } + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)Display).Provider = value ?? null; } /// /// The resource. The localized friendly form of the resource related to this action/operation - it should match the public @@ -53,10 +53,10 @@ public partial class OperationsDiscovery : /// Job Collections", or "Virtual Machine VM Sizes" or "Scheduler Jobs". /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplayInternal)Display).Resource = value ?? null; } + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplayInternal)Display).Resource = value ?? null; } /// Internal Acessors for Display - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplay Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Display()); set { {_display = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Display()); set { {_display = value;} } } /// Backing field for property. private string _name; @@ -199,7 +199,7 @@ internal partial interface IOperationsDiscoveryInternal { /// Object type. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IDisplay Display { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDisplay Display { get; set; } /// /// The description. The localized friendly description for the operation, as it should be shown to the user. It should be /// thorough, yet concise - it will be used in tool tips and detailed views. Prescriptive guidance for namespaces: Read any diff --git a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscovery.json.cs b/src/Migrate/generated/api/Models/Api202301/OperationsDiscovery.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/OperationsDiscovery.json.cs rename to src/Migrate/generated/api/Models/Api202301/OperationsDiscovery.json.cs index 8cb4ac1c740e..10d08fa39eaf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscovery.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/OperationsDiscovery.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OperationsDiscovery partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new OperationsDiscovery(json) : null; } @@ -77,7 +77,7 @@ internal OperationsDiscovery(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime. { return; } - {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Display.FromJson(__jsonDisplay) : Display;} + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Display.FromJson(__jsonDisplay) : Display;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin;} {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Any.FromJson(__jsonProperties) : Property;} diff --git a/src/Migrate/generated/api/Models/Api202301/OperationsDiscoveryCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/OperationsDiscoveryCollection.PowerShell.cs new file mode 100644 index 000000000000..a1b71f50964d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/OperationsDiscoveryCollection.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Collection of ClientDiscovery details. + [System.ComponentModel.TypeConverter(typeof(OperationsDiscoveryCollectionTypeConverter))] + public partial class OperationsDiscoveryCollection + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IOperationsDiscoveryCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OperationsDiscoveryCollection(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.Migrate.Models.Api202301.IOperationsDiscoveryCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OperationsDiscoveryCollection(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.Migrate.Models.Api202301.IOperationsDiscoveryCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OperationsDiscoveryCollection(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OperationsDiscoveryTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal OperationsDiscoveryCollection(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OperationsDiscoveryTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Collection of ClientDiscovery details. + [System.ComponentModel.TypeConverter(typeof(OperationsDiscoveryCollectionTypeConverter))] + public partial interface IOperationsDiscoveryCollection + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscoveryCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/OperationsDiscoveryCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/OperationsDiscoveryCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/OperationsDiscoveryCollection.TypeConverter.cs index 74f8ab6c47cf..9f7d66a62ba6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscoveryCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/OperationsDiscoveryCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IOperationsDiscoveryCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscoveryCollection.cs b/src/Migrate/generated/api/Models/Api202301/OperationsDiscoveryCollection.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/OperationsDiscoveryCollection.cs rename to src/Migrate/generated/api/Models/Api202301/OperationsDiscoveryCollection.cs index 3af9f8289f9a..1b7def561633 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscoveryCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/OperationsDiscoveryCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Collection of ClientDiscovery details. public partial class OperationsDiscoveryCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class OperationsDiscoveryCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery[] _value; /// The ClientDiscovery details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public OperationsDiscoveryCollection() @@ -51,8 +51,8 @@ public partial interface IOperationsDiscoveryCollection : ReadOnly = false, Description = @"The ClientDiscovery details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery[] Value { get; set; } } /// Collection of ClientDiscovery details. @@ -62,7 +62,7 @@ internal partial interface IOperationsDiscoveryCollectionInternal /// The value of next link. string NextLink { get; set; } /// The ClientDiscovery details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscoveryCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/OperationsDiscoveryCollection.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/OperationsDiscoveryCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/OperationsDiscoveryCollection.json.cs index badc01380fa4..aa3f7fc97722 100644 --- a/src/Migrate/generated/api/Models/Api20220501/OperationsDiscoveryCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/OperationsDiscoveryCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OperationsDiscoveryCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscoveryCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new OperationsDiscoveryCollection(json) : null; } @@ -77,7 +77,7 @@ internal OperationsDiscoveryCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IOperationsDiscovery) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OperationsDiscovery.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IOperationsDiscovery) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OperationsDiscovery.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInput.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/PauseReplicationInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/PauseReplicationInput.PowerShell.cs index 3b5e454dafdc..6616dd365c50 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class PauseReplicationInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IPauseReplicationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PauseReplicationInput(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.Migrate.Models.Api20220501.IPauseReplicationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PauseReplicationInput(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPau /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal PauseReplicationInput(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PauseReplicationInputPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PauseReplicationInputPropertiesTypeConverter.ConvertFrom); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputInternal)this).InstanceType, 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. @@ -128,11 +128,11 @@ internal PauseReplicationInput(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PauseReplicationInputPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PauseReplicationInputPropertiesTypeConverter.ConvertFrom); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/PauseReplicationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/PauseReplicationInput.TypeConverter.cs index 2cb205bfdd86..7d65a61d41d8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IPauseReplicationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/PauseReplicationInput.cs b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInput.cs new file mode 100644 index 000000000000..41f57906a4b1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Pause replication input. + public partial class PauseReplicationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputInternal + { + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputPropertiesInternal)Property).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputPropertiesInternal)Property).InstanceType = value ; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PauseReplicationInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties _property; + + /// Pause replication input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PauseReplicationInputProperties()); set => this._property = value; } + + /// Creates an new instance. + public PauseReplicationInput() + { + + } + } + /// Pause replication input. + public partial interface IPauseReplicationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string InstanceType { get; set; } + + } + /// Pause replication input. + internal partial interface IPauseReplicationInputInternal + + { + /// The class type. + string InstanceType { get; set; } + /// Pause replication input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/PauseReplicationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/PauseReplicationInput.json.cs index 6897c90f494d..795c7f0b6cd3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class PauseReplicationInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new PauseReplicationInput(json) : null; } @@ -77,7 +77,7 @@ internal PauseReplicationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PauseReplicationInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PauseReplicationInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInputProperties.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/PauseReplicationInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/PauseReplicationInputProperties.PowerShell.cs index 0443d21cadfa..433f62cfd3d7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class PauseReplicationInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IPauseReplicationInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PauseReplicationInputProperties(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.Migrate.Models.Api20220501.IPauseReplicationInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PauseReplicationInputProperties(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPau /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +105,13 @@ internal PauseReplicationInputProperties(global::System.Collections.IDictionary // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputPropertiesInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputPropertiesInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputPropertiesInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputPropertiesInternal)this).InstanceType, 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,7 +126,7 @@ internal PauseReplicationInputProperties(global::System.Management.Automation.PS // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputPropertiesInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputPropertiesInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputPropertiesInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputPropertiesInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/PauseReplicationInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/PauseReplicationInputProperties.TypeConverter.cs index 0a97002c843a..79eecc20c2dc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IPauseReplicationInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInputProperties.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/PauseReplicationInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/PauseReplicationInputProperties.cs index d490e85b620d..77208a263a14 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Pause replication input properties. public partial class PauseReplicationInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInputProperties.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/PauseReplicationInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/PauseReplicationInputProperties.json.cs index 726d75b4c8d5..8b0546fac84f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PauseReplicationInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/PauseReplicationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class PauseReplicationInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new PauseReplicationInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..51320ca09bb0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInput.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input definition for planned failover. + [System.ComponentModel.TypeConverter(typeof(PlannedFailoverInputTypeConverter))] + public partial class PlannedFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IPlannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PlannedFailoverInput(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.Migrate.Models.Api202301.IPlannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PlannedFailoverInput(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.Migrate.Models.Api202301.IPlannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PlannedFailoverInput(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.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType, 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 PlannedFailoverInput(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.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input definition for planned failover. + [System.ComponentModel.TypeConverter(typeof(PlannedFailoverInputTypeConverter))] + public partial interface IPlannedFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/PlannedFailoverInput.TypeConverter.cs index 6ce3877eecf5..f33e2d3a8877 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IPlannedFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInput.cs new file mode 100644 index 000000000000..cf4cb22e53aa --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInput.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input definition for planned failover. + public partial class PlannedFailoverInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal + { + + /// Failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FailoverDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)Property).FailoverDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)Property).FailoverDirection = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputProperties _property; + + /// Planned failover input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverInputProperties()); set => this._property = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// Creates an new instance. + public PlannedFailoverInput() + { + + } + } + /// Input definition for planned failover. + public partial interface IPlannedFailoverInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Failover direction.", + SerializedName = @"failoverDirection", + PossibleTypes = new [] { typeof(string) })] + string FailoverDirection { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Input definition for planned failover. + internal partial interface IPlannedFailoverInputInternal + + { + /// Failover direction. + string FailoverDirection { get; set; } + /// Planned failover input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputProperties Property { get; set; } + /// Provider specific settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/PlannedFailoverInput.json.cs index 847e87bc1a61..0376d48e951c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class PlannedFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new PlannedFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal PlannedFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInputProperties.PowerShell.cs new file mode 100644 index 000000000000..d5475f72dce2 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInputProperties.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input definition for planned failover input properties. + [System.ComponentModel.TypeConverter(typeof(PlannedFailoverInputPropertiesTypeConverter))] + public partial class PlannedFailoverInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IPlannedFailoverInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PlannedFailoverInputProperties(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.Migrate.Models.Api202301.IPlannedFailoverInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PlannedFailoverInputProperties(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.Migrate.Models.Api202301.IPlannedFailoverInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PlannedFailoverInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 PlannedFailoverInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input definition for planned failover input properties. + [System.ComponentModel.TypeConverter(typeof(PlannedFailoverInputPropertiesTypeConverter))] + public partial interface IPlannedFailoverInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/PlannedFailoverInputProperties.TypeConverter.cs index 6f70cb3e0c35..0b022522a23e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IPlannedFailoverInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInputProperties.cs new file mode 100644 index 000000000000..131d7fc8b8e6 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInputProperties.cs @@ -0,0 +1,77 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input definition for planned failover input properties. + public partial class PlannedFailoverInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal + { + + /// Backing field for property. + private string _failoverDirection; + + /// Failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string FailoverDirection { get => this._failoverDirection; set => this._failoverDirection = value; } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInput()); set { {_providerSpecificDetail = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput _providerSpecificDetail; + + /// Provider specific settings. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInput()); set => this._providerSpecificDetail = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + + /// Creates an new instance. + public PlannedFailoverInputProperties() + { + + } + } + /// Input definition for planned failover input properties. + public partial interface IPlannedFailoverInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Failover direction.", + SerializedName = @"failoverDirection", + PossibleTypes = new [] { typeof(string) })] + string FailoverDirection { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Input definition for planned failover input properties. + internal partial interface IPlannedFailoverInputPropertiesInternal + + { + /// Failover direction. + string FailoverDirection { get; set; } + /// Provider specific settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/PlannedFailoverInputProperties.json.cs index 3687afa6bb5e..3f78fb0fbdca 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class PlannedFailoverInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new PlannedFailoverInputProperties(json) : null; } @@ -77,7 +77,7 @@ internal PlannedFailoverInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PlannedFailoverProviderSpecificFailoverInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PlannedFailoverProviderSpecificFailoverInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_failoverDirection = If( json?.PropertyT("failoverDirection"), out var __jsonFailoverDirection) ? (string)__jsonFailoverDirection : (string)FailoverDirection;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverProviderSpecificFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverProviderSpecificFailoverInput.PowerShell.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/PlannedFailoverProviderSpecificFailoverInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/PlannedFailoverProviderSpecificFailoverInput.PowerShell.cs index b6e5390c20a2..7eeb0531bc58 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverProviderSpecificFailoverInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverProviderSpecificFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class PlannedFailoverProviderSpecificFailoverInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PlannedFailoverProviderSpecificFailoverInput(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.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PlannedFailoverProviderSpecificFailoverInput(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPla /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal PlannedFailoverProviderSpecificFailoverInput(global::System.Collections // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, 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. @@ -129,7 +129,7 @@ internal PlannedFailoverProviderSpecificFailoverInput(global::System.Management. // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverProviderSpecificFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverProviderSpecificFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/PlannedFailoverProviderSpecificFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/PlannedFailoverProviderSpecificFailoverInput.TypeConverter.cs index 0c746779156f..8bb1c69baa06 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverProviderSpecificFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverProviderSpecificFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverProviderSpecificFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverProviderSpecificFailoverInput.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/PlannedFailoverProviderSpecificFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/PlannedFailoverProviderSpecificFailoverInput.cs index 381b07efb09d..317fbbd373e0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverProviderSpecificFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverProviderSpecificFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific failover input. public partial class PlannedFailoverProviderSpecificFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverProviderSpecificFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverProviderSpecificFailoverInput.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/PlannedFailoverProviderSpecificFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/PlannedFailoverProviderSpecificFailoverInput.json.cs index 060b22356ae5..3174ad797b43 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PlannedFailoverProviderSpecificFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/PlannedFailoverProviderSpecificFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,16 +54,15 @@ public partial class PlannedFailoverProviderSpecificFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput - /// 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.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput 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.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPlannedFailoverProviderSpecificFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPlannedFailoverProviderSpecificFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/Policy.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/Policy.PowerShell.cs new file mode 100644 index 000000000000..a5f1961ea9f0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/Policy.PowerShell.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Protection profile details. + [System.ComponentModel.TypeConverter(typeof(PolicyTypeConverter))] + public partial class Policy + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Policy(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.Migrate.Models.Api202301.IPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Policy(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.Migrate.Models.Api202301.IPolicy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Policy(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.Migrate.Models.Api202301.IPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal)this).ProviderSpecificDetailInstanceType, 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 Policy(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.Migrate.Models.Api202301.IPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Protection profile details. + [System.ComponentModel.TypeConverter(typeof(PolicyTypeConverter))] + public partial interface IPolicy + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Policy.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/Policy.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/Policy.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/Policy.TypeConverter.cs index 6282dee72744..f53ea16e643c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Policy.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/Policy.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IPolicy ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/Policy.cs b/src/Migrate/generated/api/Models/Api202301/Policy.cs new file mode 100644 index 000000000000..89bdff723cae --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/Policy.cs @@ -0,0 +1,122 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Protection profile details. + public partial class Policy : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// The FriendlyName. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)Property).FriendlyName = value ?? null; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProperties _property; + + /// The custom data. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProperties()); set => this._property = value; } + + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public Policy() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Protection profile details. + public partial interface IPolicy : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// The FriendlyName. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The FriendlyName.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the class type. Overridden in derived classes.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Protection profile details. + internal partial interface IPolicyInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The FriendlyName. + string FriendlyName { get; set; } + /// The custom data. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProperties Property { get; set; } + /// The ReplicationChannelSetting. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails ProviderSpecificDetail { get; set; } + /// Gets the class type. Overridden in derived classes. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/Policy.json.cs b/src/Migrate/generated/api/Models/Api202301/Policy.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/Policy.json.cs rename to src/Migrate/generated/api/Models/Api202301/Policy.json.cs index 14a8673280b4..9e52d9608e10 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Policy.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/Policy.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Policy partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new Policy(json) : null; } @@ -77,8 +77,8 @@ internal Policy(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObje { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/PolicyCollection.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/PolicyCollection.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyCollection.PowerShell.cs index 0efa3a718d4b..b6b6960e5b0d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyCollection.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class PolicyCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IPolicyCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PolicyCollection(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.Migrate.Models.Api20220501.IPolicyCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PolicyCollection(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPol /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal PolicyCollection(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollectionInternal)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. @@ -128,11 +128,11 @@ internal PolicyCollection(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollectionInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/PolicyCollection.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/PolicyCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyCollection.TypeConverter.cs index 7831e1baaef1..0a21acdaebfa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IPolicyCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyCollection.cs b/src/Migrate/generated/api/Models/Api202301/PolicyCollection.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/PolicyCollection.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyCollection.cs index c02538f7e588..1a816023f44b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Protection Profile Collection details. public partial class PolicyCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class PolicyCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy[] _value; /// The policy details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public PolicyCollection() @@ -51,8 +51,8 @@ public partial interface IPolicyCollection : ReadOnly = false, Description = @"The policy details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy[] Value { get; set; } } /// Protection Profile Collection details. @@ -62,7 +62,7 @@ internal partial interface IPolicyCollectionInternal /// The value of next link. string NextLink { get; set; } /// The policy details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/PolicyCollection.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/PolicyCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyCollection.json.cs index cf1d52714dfa..09e9c84922a0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class PolicyCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new PolicyCollection(json) : null; } @@ -77,7 +77,7 @@ internal PolicyCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Jso { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IPolicy) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Policy.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IPolicy) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Policy.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/PolicyProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/PolicyProperties.PowerShell.cs new file mode 100644 index 000000000000..012791320ba3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/PolicyProperties.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Protection profile custom data details. + [System.ComponentModel.TypeConverter(typeof(PolicyPropertiesTypeConverter))] + public partial class PolicyProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IPolicyProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PolicyProperties(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.Migrate.Models.Api202301.IPolicyProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PolicyProperties(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.Migrate.Models.Api202301.IPolicyProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PolicyProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 PolicyProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Protection profile custom data details. + [System.ComponentModel.TypeConverter(typeof(PolicyPropertiesTypeConverter))] + public partial interface IPolicyProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/PolicyProperties.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/PolicyProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyProperties.TypeConverter.cs index e00e18eb3eba..76dcbb95f11a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IPolicyProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyProperties.cs b/src/Migrate/generated/api/Models/Api202301/PolicyProperties.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/PolicyProperties.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyProperties.cs index 7f59b12f52df..327a0da56847 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Protection profile custom data details. public partial class PolicyProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal { /// Backing field for property. @@ -21,18 +21,18 @@ public partial class PolicyProperties : public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails()); set { {_providerSpecificDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails()); set { {_providerSpecificDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails _providerSpecificDetail; /// The ReplicationChannelSetting. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails()); set => this._providerSpecificDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails()); set => this._providerSpecificDetail = value; } /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)ProviderSpecificDetail).InstanceType = value ?? null; } /// Creates an new instance. public PolicyProperties() @@ -69,7 +69,7 @@ internal partial interface IPolicyPropertiesInternal /// The FriendlyName. string FriendlyName { get; set; } /// The ReplicationChannelSetting. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails ProviderSpecificDetail { get; set; } /// Gets the class type. Overridden in derived classes. string ProviderSpecificDetailInstanceType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/PolicyProperties.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/PolicyProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyProperties.json.cs index 4abb899d417b..39640ed77785 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class PolicyProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new PolicyProperties(json) : null; } @@ -77,7 +77,7 @@ internal PolicyProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Jso { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)FriendlyName;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificDetails.PowerShell.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificDetails.PowerShell.cs index 5f6c9befc08a..268f9dab8db6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class PolicyProviderSpecificDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PolicyProviderSpecificDetails(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.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PolicyProviderSpecificDetails(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPol /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +105,13 @@ internal PolicyProviderSpecificDetails(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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,7 +126,7 @@ internal PolicyProviderSpecificDetails(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificDetails.TypeConverter.cs index e6fb130bd3ef..59a0ef08e556 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificDetails.cs b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificDetails.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificDetails.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificDetails.cs index 6774d19702eb..6cc1df07144e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Base class for Provider specific details for policies. public partial class PolicyProviderSpecificDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificDetails.json.cs index 49ebe596c215..5e619f37a750 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class PolicyProviderSpecificDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails 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.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificInput.PowerShell.cs index 000b046f8272..98fa6c9395ce 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,27 @@ public partial class PolicyProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IPolicyProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PolicyProviderSpecificInput(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.Migrate.Models.Api20220501.IPolicyProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PolicyProviderSpecificInput(content); } @@ -87,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPol /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +103,13 @@ internal PolicyProviderSpecificInput(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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,7 +124,7 @@ internal PolicyProviderSpecificInput(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificInput.TypeConverter.cs index acdeed0a12ec..20439e261970 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IPolicyProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificInput.cs index 6c5147f0cbc3..a3077c4bf954 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Base class for provider specific input. public partial class PolicyProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificInput.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificInput.json.cs index 1000e7270b3f..4c25758a5973 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PolicyProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/PolicyProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class PolicyProviderSpecificInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput 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.Migrate.Models.Api20220501.IPolicyProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/ProcessServer.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProcessServer.PowerShell.cs new file mode 100644 index 000000000000..24bdafabb08f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProcessServer.PowerShell.cs @@ -0,0 +1,448 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Details of the Process Server. + [System.ComponentModel.TypeConverter(typeof(ProcessServerTypeConverter))] + public partial class ProcessServer + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IProcessServer DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProcessServer(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.Migrate.Models.Api202301.IProcessServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProcessServer(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.Migrate.Models.Api202301.IProcessServer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProcessServer(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentVersionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails) content.GetValueForProperty("AgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("AgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersion, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("VersionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).VersionStatus = (string) content.GetValueForProperty("VersionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).VersionStatus, global::System.Convert.ToString); + } + if (content.Contains("MobilityServiceUpdate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MobilityServiceUpdate = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate[]) content.GetValueForProperty("MobilityServiceUpdate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MobilityServiceUpdate, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MobilityServiceUpdateTypeConverter.ConvertFrom)); + } + if (content.Contains("HostId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).HostId = (string) content.GetValueForProperty("HostId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).HostId, global::System.Convert.ToString); + } + if (content.Contains("MachineCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MachineCount = (string) content.GetValueForProperty("MachineCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MachineCount, global::System.Convert.ToString); + } + if (content.Contains("ReplicationPairCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ReplicationPairCount = (string) content.GetValueForProperty("ReplicationPairCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ReplicationPairCount, global::System.Convert.ToString); + } + if (content.Contains("SystemLoad")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SystemLoad = (string) content.GetValueForProperty("SystemLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SystemLoad, global::System.Convert.ToString); + } + if (content.Contains("SystemLoadStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SystemLoadStatus = (string) content.GetValueForProperty("SystemLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SystemLoadStatus, global::System.Convert.ToString); + } + if (content.Contains("CpuLoad")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).CpuLoad = (string) content.GetValueForProperty("CpuLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).CpuLoad, global::System.Convert.ToString); + } + if (content.Contains("CpuLoadStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).CpuLoadStatus = (string) content.GetValueForProperty("CpuLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).CpuLoadStatus, global::System.Convert.ToString); + } + if (content.Contains("TotalMemoryInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).TotalMemoryInByte = (long?) content.GetValueForProperty("TotalMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).TotalMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("AvailableMemoryInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AvailableMemoryInByte = (long?) content.GetValueForProperty("AvailableMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AvailableMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("MemoryUsageStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MemoryUsageStatus = (string) content.GetValueForProperty("MemoryUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MemoryUsageStatus, global::System.Convert.ToString); + } + if (content.Contains("TotalSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).TotalSpaceInByte = (long?) content.GetValueForProperty("TotalSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).TotalSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("AvailableSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AvailableSpaceInByte = (long?) content.GetValueForProperty("AvailableSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AvailableSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("SpaceUsageStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SpaceUsageStatus = (string) content.GetValueForProperty("SpaceUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SpaceUsageStatus, global::System.Convert.ToString); + } + if (content.Contains("PsServiceStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).PsServiceStatus = (string) content.GetValueForProperty("PsServiceStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).PsServiceStatus, global::System.Convert.ToString); + } + if (content.Contains("SslCertExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SslCertExpiryDate = (global::System.DateTime?) content.GetValueForProperty("SslCertExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SslCertExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SslCertExpiryRemainingDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SslCertExpiryRemainingDay = (int?) content.GetValueForProperty("SslCertExpiryRemainingDay",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SslCertExpiryRemainingDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("OSVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).OSVersion, global::System.Convert.ToString); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("AgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("PsStatsRefreshTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).PsStatsRefreshTime = (global::System.DateTime?) content.GetValueForProperty("PsStatsRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).PsStatsRefreshTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ThroughputUploadPendingDataInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputUploadPendingDataInByte = (long?) content.GetValueForProperty("ThroughputUploadPendingDataInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputUploadPendingDataInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ThroughputInMBps")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputInMBps = (long?) content.GetValueForProperty("ThroughputInMBps",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputInMBps, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ThroughputInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputInByte = (long?) content.GetValueForProperty("ThroughputInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ThroughputStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputStatus = (string) content.GetValueForProperty("ThroughputStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputStatus, global::System.Convert.ToString); + } + if (content.Contains("MarsCommunicationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MarsCommunicationStatus = (string) content.GetValueForProperty("MarsCommunicationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MarsCommunicationStatus, global::System.Convert.ToString); + } + if (content.Contains("MarsRegistrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MarsRegistrationStatus = (string) content.GetValueForProperty("MarsRegistrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MarsRegistrationStatus, global::System.Convert.ToString); + } + if (content.Contains("AgentVersionDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetailVersion = (string) content.GetValueForProperty("AgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentVersionDetailExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AgentVersionDetailStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("AgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProcessServer(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentVersionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails) content.GetValueForProperty("AgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("AgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersion, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("VersionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).VersionStatus = (string) content.GetValueForProperty("VersionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).VersionStatus, global::System.Convert.ToString); + } + if (content.Contains("MobilityServiceUpdate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MobilityServiceUpdate = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate[]) content.GetValueForProperty("MobilityServiceUpdate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MobilityServiceUpdate, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MobilityServiceUpdateTypeConverter.ConvertFrom)); + } + if (content.Contains("HostId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).HostId = (string) content.GetValueForProperty("HostId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).HostId, global::System.Convert.ToString); + } + if (content.Contains("MachineCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MachineCount = (string) content.GetValueForProperty("MachineCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MachineCount, global::System.Convert.ToString); + } + if (content.Contains("ReplicationPairCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ReplicationPairCount = (string) content.GetValueForProperty("ReplicationPairCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ReplicationPairCount, global::System.Convert.ToString); + } + if (content.Contains("SystemLoad")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SystemLoad = (string) content.GetValueForProperty("SystemLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SystemLoad, global::System.Convert.ToString); + } + if (content.Contains("SystemLoadStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SystemLoadStatus = (string) content.GetValueForProperty("SystemLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SystemLoadStatus, global::System.Convert.ToString); + } + if (content.Contains("CpuLoad")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).CpuLoad = (string) content.GetValueForProperty("CpuLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).CpuLoad, global::System.Convert.ToString); + } + if (content.Contains("CpuLoadStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).CpuLoadStatus = (string) content.GetValueForProperty("CpuLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).CpuLoadStatus, global::System.Convert.ToString); + } + if (content.Contains("TotalMemoryInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).TotalMemoryInByte = (long?) content.GetValueForProperty("TotalMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).TotalMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("AvailableMemoryInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AvailableMemoryInByte = (long?) content.GetValueForProperty("AvailableMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AvailableMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("MemoryUsageStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MemoryUsageStatus = (string) content.GetValueForProperty("MemoryUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MemoryUsageStatus, global::System.Convert.ToString); + } + if (content.Contains("TotalSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).TotalSpaceInByte = (long?) content.GetValueForProperty("TotalSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).TotalSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("AvailableSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AvailableSpaceInByte = (long?) content.GetValueForProperty("AvailableSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AvailableSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("SpaceUsageStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SpaceUsageStatus = (string) content.GetValueForProperty("SpaceUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SpaceUsageStatus, global::System.Convert.ToString); + } + if (content.Contains("PsServiceStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).PsServiceStatus = (string) content.GetValueForProperty("PsServiceStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).PsServiceStatus, global::System.Convert.ToString); + } + if (content.Contains("SslCertExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SslCertExpiryDate = (global::System.DateTime?) content.GetValueForProperty("SslCertExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SslCertExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SslCertExpiryRemainingDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SslCertExpiryRemainingDay = (int?) content.GetValueForProperty("SslCertExpiryRemainingDay",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).SslCertExpiryRemainingDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("OSVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).OSVersion = (string) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).OSVersion, global::System.Convert.ToString); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("AgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("PsStatsRefreshTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).PsStatsRefreshTime = (global::System.DateTime?) content.GetValueForProperty("PsStatsRefreshTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).PsStatsRefreshTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ThroughputUploadPendingDataInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputUploadPendingDataInByte = (long?) content.GetValueForProperty("ThroughputUploadPendingDataInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputUploadPendingDataInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ThroughputInMBps")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputInMBps = (long?) content.GetValueForProperty("ThroughputInMBps",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputInMBps, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ThroughputInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputInByte = (long?) content.GetValueForProperty("ThroughputInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ThroughputStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputStatus = (string) content.GetValueForProperty("ThroughputStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).ThroughputStatus, global::System.Convert.ToString); + } + if (content.Contains("MarsCommunicationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MarsCommunicationStatus = (string) content.GetValueForProperty("MarsCommunicationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MarsCommunicationStatus, global::System.Convert.ToString); + } + if (content.Contains("MarsRegistrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MarsRegistrationStatus = (string) content.GetValueForProperty("MarsRegistrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).MarsRegistrationStatus, global::System.Convert.ToString); + } + if (content.Contains("AgentVersionDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetailVersion = (string) content.GetValueForProperty("AgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentVersionDetailExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AgentVersionDetailStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("AgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal)this).AgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Details of the Process Server. + [System.ComponentModel.TypeConverter(typeof(ProcessServerTypeConverter))] + public partial interface IProcessServer + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProcessServer.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProcessServer.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/ProcessServer.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProcessServer.TypeConverter.cs index 857143252c09..3ed4aef2e667 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProcessServer.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProcessServer.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProcessServer ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServer ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServer).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServer).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProcessServer.cs b/src/Migrate/generated/api/Models/Api202301/ProcessServer.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/ProcessServer.cs rename to src/Migrate/generated/api/Models/Api202301/ProcessServer.cs index 835417a8221e..b516475ab5fa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProcessServer.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProcessServer.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Details of the Process Server. public partial class ProcessServer : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServer, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServer, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal { /// Backing field for property. @@ -28,23 +28,23 @@ public partial class ProcessServer : public string AgentVersion { get => this._agentVersion; set => this._agentVersion = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails _agentVersionDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails _agentVersionDetail; /// The agent version details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails AgentVersionDetail { get => (this._agentVersionDetail = this._agentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails()); set => this._agentVersionDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails AgentVersionDetail { get => (this._agentVersionDetail = this._agentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails()); set => this._agentVersionDetail = value; } /// Version expiry date. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? AgentVersionDetailExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).ExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).ExpiryDate = value ?? default(global::System.DateTime); } + public global::System.DateTime? AgentVersionDetailExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).ExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).ExpiryDate = value ?? default(global::System.DateTime); } /// A value indicating whether security update required. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? AgentVersionDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus)""); } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? AgentVersionDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus)""); } /// The agent version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AgentVersionDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).Version = value ?? null; } + public string AgentVersionDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).Version = value ?? null; } /// Backing field for property. private long? _availableMemoryInByte; @@ -89,11 +89,11 @@ public partial class ProcessServer : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get => this._health; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthError; /// Health errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => this._healthError; set => this._healthError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => this._healthError; set => this._healthError = value; } /// Backing field for property. private string _hostId; @@ -152,38 +152,38 @@ public partial class ProcessServer : public string MemoryUsageStatus { get => this._memoryUsageStatus; set => this._memoryUsageStatus = value; } /// Internal Acessors for AgentVersionDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal.AgentVersionDetail { get => (this._agentVersionDetail = this._agentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails()); set { {_agentVersionDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal.AgentVersionDetail { get => (this._agentVersionDetail = this._agentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails()); set { {_agentVersionDetail = value;} } } /// Internal Acessors for Health - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal.Health { get => this._health; set { {_health = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal.Health { get => this._health; set { {_health = value;} } } /// Internal Acessors for MarsCommunicationStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal.MarsCommunicationStatus { get => this._marsCommunicationStatus; set { {_marsCommunicationStatus = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal.MarsCommunicationStatus { get => this._marsCommunicationStatus; set { {_marsCommunicationStatus = value;} } } /// Internal Acessors for MarsRegistrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal.MarsRegistrationStatus { get => this._marsRegistrationStatus; set { {_marsRegistrationStatus = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal.MarsRegistrationStatus { get => this._marsRegistrationStatus; set { {_marsRegistrationStatus = value;} } } /// Internal Acessors for PsStatsRefreshTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal.PsStatsRefreshTime { get => this._psStatsRefreshTime; set { {_psStatsRefreshTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal.PsStatsRefreshTime { get => this._psStatsRefreshTime; set { {_psStatsRefreshTime = value;} } } /// Internal Acessors for ThroughputInByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal.ThroughputInByte { get => this._throughputInByte; set { {_throughputInByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal.ThroughputInByte { get => this._throughputInByte; set { {_throughputInByte = value;} } } /// Internal Acessors for ThroughputInMBps - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal.ThroughputInMBps { get => this._throughputInMBps; set { {_throughputInMBps = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal.ThroughputInMBps { get => this._throughputInMBps; set { {_throughputInMBps = value;} } } /// Internal Acessors for ThroughputStatus - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal.ThroughputStatus { get => this._throughputStatus; set { {_throughputStatus = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal.ThroughputStatus { get => this._throughputStatus; set { {_throughputStatus = value;} } } /// Internal Acessors for ThroughputUploadPendingDataInByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerInternal.ThroughputUploadPendingDataInByte { get => this._throughputUploadPendingDataInByte; set { {_throughputUploadPendingDataInByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerInternal.ThroughputUploadPendingDataInByte { get => this._throughputUploadPendingDataInByte; set { {_throughputUploadPendingDataInByte = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdate[] _mobilityServiceUpdate; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate[] _mobilityServiceUpdate; /// The list of the mobility service updates available on the Process Server. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdate[] MobilityServiceUpdate { get => this._mobilityServiceUpdate; set => this._mobilityServiceUpdate = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate[] MobilityServiceUpdate { get => this._mobilityServiceUpdate; set => this._mobilityServiceUpdate = value; } /// Backing field for property. private string _oSType; @@ -410,8 +410,8 @@ public partial interface IProcessServer : ReadOnly = false, Description = @"Health errors.", SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The agent generated Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -482,8 +482,8 @@ public partial interface IProcessServer : ReadOnly = false, Description = @"The list of the mobility service updates available on the Process Server.", SerializedName = @"mobilityServiceUpdates", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdate) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdate[] MobilityServiceUpdate { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate[] MobilityServiceUpdate { get; set; } /// The OS type of the server. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -633,7 +633,7 @@ internal partial interface IProcessServerInternal /// The version of the scout component on the server. string AgentVersion { get; set; } /// The agent version details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails AgentVersionDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails AgentVersionDetail { get; set; } /// Version expiry date. global::System.DateTime? AgentVersionDetailExpiryDate { get; set; } /// A value indicating whether security update required. @@ -653,7 +653,7 @@ internal partial interface IProcessServerInternal /// The health of Process Server. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get; set; } /// Health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The agent generated Id. string HostId { get; set; } /// The IP address of the server. @@ -671,7 +671,7 @@ internal partial interface IProcessServerInternal /// The memory usage status. string MemoryUsageStatus { get; set; } /// The list of the mobility service updates available on the Process Server. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMobilityServiceUpdate[] MobilityServiceUpdate { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMobilityServiceUpdate[] MobilityServiceUpdate { get; set; } /// The OS type of the server. string OSType { get; set; } /// diff --git a/src/Migrate/generated/api/Models/Api20220501/ProcessServer.json.cs b/src/Migrate/generated/api/Models/Api202301/ProcessServer.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ProcessServer.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProcessServer.json.cs index b2c4edf27023..ac68a53be3be 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProcessServer.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProcessServer.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProcessServer partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServer. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServer. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServer. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServer. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServer FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServer FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProcessServer(json) : null; } @@ -77,7 +77,7 @@ internal ProcessServer(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.J { return; } - {_agentVersionDetail = If( json?.PropertyT("agentVersionDetails"), out var __jsonAgentVersionDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails.FromJson(__jsonAgentVersionDetails) : AgentVersionDetail;} + {_agentVersionDetail = If( json?.PropertyT("agentVersionDetails"), out var __jsonAgentVersionDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails.FromJson(__jsonAgentVersionDetails) : AgentVersionDetail;} {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)FriendlyName;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_iPAddress = If( json?.PropertyT("ipAddress"), out var __jsonIPAddress) ? (string)__jsonIPAddress : (string)IPAddress;} @@ -85,7 +85,7 @@ internal ProcessServer(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.J {_agentVersion = If( json?.PropertyT("agentVersion"), out var __jsonAgentVersion) ? (string)__jsonAgentVersion : (string)AgentVersion;} {_lastHeartbeat = If( json?.PropertyT("lastHeartbeat"), out var __jsonLastHeartbeat) ? global::System.DateTime.TryParse((string)__jsonLastHeartbeat, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastHeartbeatValue) ? __jsonLastHeartbeatValue : LastHeartbeat : LastHeartbeat;} {_versionStatus = If( json?.PropertyT("versionStatus"), out var __jsonVersionStatus) ? (string)__jsonVersionStatus : (string)VersionStatus;} - {_mobilityServiceUpdate = If( json?.PropertyT("mobilityServiceUpdates"), out var __jsonMobilityServiceUpdates) ? If( __jsonMobilityServiceUpdates as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IMobilityServiceUpdate) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MobilityServiceUpdate.FromJson(__u) )) ))() : null : MobilityServiceUpdate;} + {_mobilityServiceUpdate = If( json?.PropertyT("mobilityServiceUpdates"), out var __jsonMobilityServiceUpdates) ? If( __jsonMobilityServiceUpdates as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IMobilityServiceUpdate) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MobilityServiceUpdate.FromJson(__u) )) ))() : null : MobilityServiceUpdate;} {_hostId = If( json?.PropertyT("hostId"), out var __jsonHostId) ? (string)__jsonHostId : (string)HostId;} {_machineCount = If( json?.PropertyT("machineCount"), out var __jsonMachineCount) ? (string)__jsonMachineCount : (string)MachineCount;} {_replicationPairCount = If( json?.PropertyT("replicationPairCount"), out var __jsonReplicationPairCount) ? (string)__jsonReplicationPairCount : (string)ReplicationPairCount;} @@ -103,7 +103,7 @@ internal ProcessServer(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.J {_sslCertExpiryDate = If( json?.PropertyT("sslCertExpiryDate"), out var __jsonSslCertExpiryDate) ? global::System.DateTime.TryParse((string)__jsonSslCertExpiryDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonSslCertExpiryDateValue) ? __jsonSslCertExpiryDateValue : SslCertExpiryDate : SslCertExpiryDate;} {_sslCertExpiryRemainingDay = If( json?.PropertyT("sslCertExpiryRemainingDays"), out var __jsonSslCertExpiryRemainingDays) ? (int?)__jsonSslCertExpiryRemainingDays : SslCertExpiryRemainingDay;} {_oSVersion = If( json?.PropertyT("osVersion"), out var __jsonOSVersion) ? (string)__jsonOSVersion : (string)OSVersion;} - {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__p) )) ))() : null : HealthError;} + {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__p) )) ))() : null : HealthError;} {_agentExpiryDate = If( json?.PropertyT("agentExpiryDate"), out var __jsonAgentExpiryDate) ? global::System.DateTime.TryParse((string)__jsonAgentExpiryDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonAgentExpiryDateValue) ? __jsonAgentExpiryDateValue : AgentExpiryDate : AgentExpiryDate;} {_health = If( json?.PropertyT("health"), out var __jsonHealth) ? (string)__jsonHealth : (string)Health;} {_psStatsRefreshTime = If( json?.PropertyT("psStatsRefreshTime"), out var __jsonPsStatsRefreshTime) ? global::System.DateTime.TryParse((string)__jsonPsStatsRefreshTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonPsStatsRefreshTimeValue) ? __jsonPsStatsRefreshTimeValue : PsStatsRefreshTime : PsStatsRefreshTime;} diff --git a/src/Migrate/generated/api/Models/Api202301/ProcessServerDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProcessServerDetails.PowerShell.cs new file mode 100644 index 000000000000..7b1c6860ec94 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProcessServerDetails.PowerShell.cs @@ -0,0 +1,368 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Process server details. + [System.ComponentModel.TypeConverter(typeof(ProcessServerDetailsTypeConverter))] + public partial class ProcessServerDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IProcessServerDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProcessServerDetails(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.Migrate.Models.Api202301.IProcessServerDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProcessServerDetails(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.Migrate.Models.Api202301.IProcessServerDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProcessServerDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).IPAddress = (string[]) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).IPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("TotalMemoryInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).TotalMemoryInByte = (long?) content.GetValueForProperty("TotalMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).TotalMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("AvailableMemoryInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).AvailableMemoryInByte = (long?) content.GetValueForProperty("AvailableMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).AvailableMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("UsedMemoryInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).UsedMemoryInByte = (long?) content.GetValueForProperty("UsedMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).UsedMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("MemoryUsagePercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).MemoryUsagePercentage = (double?) content.GetValueForProperty("MemoryUsagePercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).MemoryUsagePercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("TotalSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).TotalSpaceInByte = (long?) content.GetValueForProperty("TotalSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).TotalSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("AvailableSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).AvailableSpaceInByte = (long?) content.GetValueForProperty("AvailableSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).AvailableSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("UsedSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).UsedSpaceInByte = (long?) content.GetValueForProperty("UsedSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).UsedSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("FreeSpacePercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).FreeSpacePercentage = (double?) content.GetValueForProperty("FreeSpacePercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).FreeSpacePercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ThroughputUploadPendingDataInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ThroughputUploadPendingDataInByte = (long?) content.GetValueForProperty("ThroughputUploadPendingDataInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ThroughputUploadPendingDataInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ThroughputInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ThroughputInByte = (long?) content.GetValueForProperty("ThroughputInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ThroughputInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ProcessorUsagePercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ProcessorUsagePercentage = (double?) content.GetValueForProperty("ProcessorUsagePercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ProcessorUsagePercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ThroughputStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ThroughputStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("ThroughputStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ThroughputStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); + } + if (content.Contains("SystemLoad")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).SystemLoad = (long?) content.GetValueForProperty("SystemLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).SystemLoad, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("SystemLoadStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).SystemLoadStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("SystemLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).SystemLoadStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); + } + if (content.Contains("DiskUsageStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).DiskUsageStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("DiskUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).DiskUsageStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); + } + if (content.Contains("MemoryUsageStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).MemoryUsageStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("MemoryUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).MemoryUsageStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); + } + if (content.Contains("ProcessorUsageStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ProcessorUsageStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("ProcessorUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ProcessorUsageStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("HistoricHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).HistoricHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("HistoricHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).HistoricHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProcessServerDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).IPAddress = (string[]) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).IPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("TotalMemoryInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).TotalMemoryInByte = (long?) content.GetValueForProperty("TotalMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).TotalMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("AvailableMemoryInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).AvailableMemoryInByte = (long?) content.GetValueForProperty("AvailableMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).AvailableMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("UsedMemoryInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).UsedMemoryInByte = (long?) content.GetValueForProperty("UsedMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).UsedMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("MemoryUsagePercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).MemoryUsagePercentage = (double?) content.GetValueForProperty("MemoryUsagePercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).MemoryUsagePercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("TotalSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).TotalSpaceInByte = (long?) content.GetValueForProperty("TotalSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).TotalSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("AvailableSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).AvailableSpaceInByte = (long?) content.GetValueForProperty("AvailableSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).AvailableSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("UsedSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).UsedSpaceInByte = (long?) content.GetValueForProperty("UsedSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).UsedSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("FreeSpacePercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).FreeSpacePercentage = (double?) content.GetValueForProperty("FreeSpacePercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).FreeSpacePercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ThroughputUploadPendingDataInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ThroughputUploadPendingDataInByte = (long?) content.GetValueForProperty("ThroughputUploadPendingDataInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ThroughputUploadPendingDataInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ThroughputInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ThroughputInByte = (long?) content.GetValueForProperty("ThroughputInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ThroughputInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ProcessorUsagePercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ProcessorUsagePercentage = (double?) content.GetValueForProperty("ProcessorUsagePercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ProcessorUsagePercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ThroughputStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ThroughputStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("ThroughputStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ThroughputStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); + } + if (content.Contains("SystemLoad")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).SystemLoad = (long?) content.GetValueForProperty("SystemLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).SystemLoad, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("SystemLoadStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).SystemLoadStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("SystemLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).SystemLoadStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); + } + if (content.Contains("DiskUsageStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).DiskUsageStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("DiskUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).DiskUsageStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); + } + if (content.Contains("MemoryUsageStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).MemoryUsageStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("MemoryUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).MemoryUsageStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); + } + if (content.Contains("ProcessorUsageStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ProcessorUsageStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus?) content.GetValueForProperty("ProcessorUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ProcessorUsageStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus.CreateFrom); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("HistoricHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).HistoricHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("HistoricHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal)this).HistoricHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Process server details. + [System.ComponentModel.TypeConverter(typeof(ProcessServerDetailsTypeConverter))] + public partial interface IProcessServerDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProcessServerDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProcessServerDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProcessServerDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProcessServerDetails.TypeConverter.cs index 9617250b3861..ad14c173ac11 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProcessServerDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProcessServerDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProcessServerDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProcessServerDetails.cs b/src/Migrate/generated/api/Models/Api202301/ProcessServerDetails.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/ProcessServerDetails.cs rename to src/Migrate/generated/api/Models/Api202301/ProcessServerDetails.cs index 06a63f38154b..af5b497ff574 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProcessServerDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProcessServerDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Process server details. public partial class ProcessServerDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal { /// Backing field for property. @@ -70,11 +70,11 @@ public partial class ProcessServerDetails : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get => this._health; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthError; /// The health errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => this._healthError; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => this._healthError; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? _historicHealth; @@ -119,91 +119,91 @@ public partial class ProcessServerDetails : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus? MemoryUsageStatus { get => this._memoryUsageStatus; } /// Internal Acessors for AvailableMemoryInByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.AvailableMemoryInByte { get => this._availableMemoryInByte; set { {_availableMemoryInByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.AvailableMemoryInByte { get => this._availableMemoryInByte; set { {_availableMemoryInByte = value;} } } /// Internal Acessors for AvailableSpaceInByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.AvailableSpaceInByte { get => this._availableSpaceInByte; set { {_availableSpaceInByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.AvailableSpaceInByte { get => this._availableSpaceInByte; set { {_availableSpaceInByte = value;} } } /// Internal Acessors for BiosId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } /// Internal Acessors for DiskUsageStatus - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.DiskUsageStatus { get => this._diskUsageStatus; set { {_diskUsageStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.DiskUsageStatus { get => this._diskUsageStatus; set { {_diskUsageStatus = value;} } } /// Internal Acessors for FabricObjectId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.FabricObjectId { get => this._fabricObjectId; set { {_fabricObjectId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.FabricObjectId { get => this._fabricObjectId; set { {_fabricObjectId = value;} } } /// Internal Acessors for Fqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } /// Internal Acessors for FreeSpacePercentage - double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.FreeSpacePercentage { get => this._freeSpacePercentage; set { {_freeSpacePercentage = value;} } } + double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.FreeSpacePercentage { get => this._freeSpacePercentage; set { {_freeSpacePercentage = value;} } } /// Internal Acessors for Health - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.Health { get => this._health; set { {_health = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.Health { get => this._health; set { {_health = value;} } } /// Internal Acessors for HealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } /// Internal Acessors for HistoricHealth - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.HistoricHealth { get => this._historicHealth; set { {_historicHealth = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.HistoricHealth { get => this._historicHealth; set { {_historicHealth = value;} } } /// Internal Acessors for IPAddress - string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.IPAddress { get => this._iPAddress; set { {_iPAddress = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.IPAddress { get => this._iPAddress; set { {_iPAddress = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for LastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } /// Internal Acessors for MemoryUsagePercentage - double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.MemoryUsagePercentage { get => this._memoryUsagePercentage; set { {_memoryUsagePercentage = value;} } } + double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.MemoryUsagePercentage { get => this._memoryUsagePercentage; set { {_memoryUsagePercentage = value;} } } /// Internal Acessors for MemoryUsageStatus - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.MemoryUsageStatus { get => this._memoryUsageStatus; set { {_memoryUsageStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.MemoryUsageStatus { get => this._memoryUsageStatus; set { {_memoryUsageStatus = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for ProcessorUsagePercentage - double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.ProcessorUsagePercentage { get => this._processorUsagePercentage; set { {_processorUsagePercentage = value;} } } + double? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.ProcessorUsagePercentage { get => this._processorUsagePercentage; set { {_processorUsagePercentage = value;} } } /// Internal Acessors for ProcessorUsageStatus - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.ProcessorUsageStatus { get => this._processorUsageStatus; set { {_processorUsageStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.ProcessorUsageStatus { get => this._processorUsageStatus; set { {_processorUsageStatus = value;} } } /// Internal Acessors for ProtectedItemCount - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.ProtectedItemCount { get => this._protectedItemCount; set { {_protectedItemCount = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.ProtectedItemCount { get => this._protectedItemCount; set { {_protectedItemCount = value;} } } /// Internal Acessors for SystemLoad - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.SystemLoad { get => this._systemLoad; set { {_systemLoad = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.SystemLoad { get => this._systemLoad; set { {_systemLoad = value;} } } /// Internal Acessors for SystemLoadStatus - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.SystemLoadStatus { get => this._systemLoadStatus; set { {_systemLoadStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.SystemLoadStatus { get => this._systemLoadStatus; set { {_systemLoadStatus = value;} } } /// Internal Acessors for ThroughputInByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.ThroughputInByte { get => this._throughputInByte; set { {_throughputInByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.ThroughputInByte { get => this._throughputInByte; set { {_throughputInByte = value;} } } /// Internal Acessors for ThroughputStatus - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.ThroughputStatus { get => this._throughputStatus; set { {_throughputStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RcmComponentStatus? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.ThroughputStatus { get => this._throughputStatus; set { {_throughputStatus = value;} } } /// Internal Acessors for ThroughputUploadPendingDataInByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.ThroughputUploadPendingDataInByte { get => this._throughputUploadPendingDataInByte; set { {_throughputUploadPendingDataInByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.ThroughputUploadPendingDataInByte { get => this._throughputUploadPendingDataInByte; set { {_throughputUploadPendingDataInByte = value;} } } /// Internal Acessors for TotalMemoryInByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.TotalMemoryInByte { get => this._totalMemoryInByte; set { {_totalMemoryInByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.TotalMemoryInByte { get => this._totalMemoryInByte; set { {_totalMemoryInByte = value;} } } /// Internal Acessors for TotalSpaceInByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.TotalSpaceInByte { get => this._totalSpaceInByte; set { {_totalSpaceInByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.TotalSpaceInByte { get => this._totalSpaceInByte; set { {_totalSpaceInByte = value;} } } /// Internal Acessors for UsedMemoryInByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.UsedMemoryInByte { get => this._usedMemoryInByte; set { {_usedMemoryInByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.UsedMemoryInByte { get => this._usedMemoryInByte; set { {_usedMemoryInByte = value;} } } /// Internal Acessors for UsedSpaceInByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.UsedSpaceInByte { get => this._usedSpaceInByte; set { {_usedSpaceInByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.UsedSpaceInByte { get => this._usedSpaceInByte; set { {_usedSpaceInByte = value;} } } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetailsInternal.Version { get => this._version; set { {_version = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetailsInternal.Version { get => this._version; set { {_version = value;} } } /// Backing field for property. private string _name; @@ -383,8 +383,8 @@ public partial interface IProcessServerDetails : ReadOnly = true, Description = @"The health errors.", SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; } /// The historic health of the process server based on the health in last 24 hours. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -568,7 +568,7 @@ internal partial interface IProcessServerDetailsInternal /// The health of the process server. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get; set; } /// The health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The historic health of the process server based on the health in last 24 hours. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? HistoricHealth { get; set; } /// The list of IP addresses for communicating with the RCM component. diff --git a/src/Migrate/generated/api/Models/Api20220501/ProcessServerDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/ProcessServerDetails.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProcessServerDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProcessServerDetails.json.cs index 47d141ffbf63..ab2351995e9e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProcessServerDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProcessServerDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProcessServerDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProcessServerDetails(json) : null; } @@ -103,7 +103,7 @@ internal ProcessServerDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime {_memoryUsageStatus = If( json?.PropertyT("memoryUsageStatus"), out var __jsonMemoryUsageStatus) ? (string)__jsonMemoryUsageStatus : (string)MemoryUsageStatus;} {_processorUsageStatus = If( json?.PropertyT("processorUsageStatus"), out var __jsonProcessorUsageStatus) ? (string)__jsonProcessorUsageStatus : (string)ProcessorUsageStatus;} {_health = If( json?.PropertyT("health"), out var __jsonHealth) ? (string)__jsonHealth : (string)Health;} - {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__p) )) ))() : null : HealthError;} + {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__p) )) ))() : null : HealthError;} {_protectedItemCount = If( json?.PropertyT("protectedItemCount"), out var __jsonProtectedItemCount) ? (int?)__jsonProtectedItemCount : ProtectedItemCount;} {_historicHealth = If( json?.PropertyT("historicHealth"), out var __jsonHistoricHealth) ? (string)__jsonHistoricHealth : (string)HistoricHealth;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api202301/ProtectableItem.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItem.PowerShell.cs new file mode 100644 index 000000000000..e8a9ed6f3992 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItem.PowerShell.cs @@ -0,0 +1,240 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Replication protected item. + [System.ComponentModel.TypeConverter(typeof(ProtectableItemTypeConverter))] + public partial class ProtectableItem + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IProtectableItem DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProtectableItem(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.Migrate.Models.Api202301.IProtectableItem DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProtectableItem(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.Migrate.Models.Api202301.IProtectableItem FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProtectableItem(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.Migrate.Models.Api202301.IProtectableItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItemPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProtectionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).ProtectionStatus = (string) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).ProtectionStatus, global::System.Convert.ToString); + } + if (content.Contains("ReplicationProtectedItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).ReplicationProtectedItemId = (string) content.GetValueForProperty("ReplicationProtectedItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).ReplicationProtectedItemId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryServicesProviderId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); + } + if (content.Contains("ProtectionReadinessError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).ProtectionReadinessError = (string[]) content.GetValueForProperty("ProtectionReadinessError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).ProtectionReadinessError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("SupportedReplicationProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).SupportedReplicationProvider = (string[]) content.GetValueForProperty("SupportedReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).SupportedReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).CustomDetailInstanceType, 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 ProtectableItem(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.Migrate.Models.Api202301.IProtectableItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItemPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProtectionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).ProtectionStatus = (string) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).ProtectionStatus, global::System.Convert.ToString); + } + if (content.Contains("ReplicationProtectedItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).ReplicationProtectedItemId = (string) content.GetValueForProperty("ReplicationProtectedItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).ReplicationProtectedItemId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryServicesProviderId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); + } + if (content.Contains("ProtectionReadinessError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).ProtectionReadinessError = (string[]) content.GetValueForProperty("ProtectionReadinessError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).ProtectionReadinessError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("SupportedReplicationProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).SupportedReplicationProvider = (string[]) content.GetValueForProperty("SupportedReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).SupportedReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal)this).CustomDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Replication protected item. + [System.ComponentModel.TypeConverter(typeof(ProtectableItemTypeConverter))] + public partial interface IProtectableItem + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItem.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItem.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/ProtectableItem.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectableItem.TypeConverter.cs index 9f07c6067819..7616d2043a2b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItem.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItem.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectableItem ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItem ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItem).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItem).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ProtectableItem.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItem.cs new file mode 100644 index 000000000000..ff15180f361d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItem.cs @@ -0,0 +1,192 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Replication protected item. + public partial class ProtectableItem : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItem, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).CustomDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).CustomDetailInstanceType = value ?? null; } + + /// The name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).FriendlyName = value ?? null; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for CustomDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal.CustomDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).CustomDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).CustomDetail = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItemProperties()); set { {_property = value;} } } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemProperties _property; + + /// The custom data. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItemProperties()); set => this._property = value; } + + /// The Current protection readiness errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string[] ProtectionReadinessError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).ProtectionReadinessError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).ProtectionReadinessError = value ?? null /* arrayOf */; } + + /// The protection status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProtectionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).ProtectionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).ProtectionStatus = value ?? null; } + + /// The recovery provider ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryServicesProviderId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).RecoveryServicesProviderId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).RecoveryServicesProviderId = value ?? null; } + + /// The ARM resource of protected items. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReplicationProtectedItemId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).ReplicationProtectedItemId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).ReplicationProtectedItemId = value ?? null; } + + /// The list of replication providers supported for the protectable item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string[] SupportedReplicationProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).SupportedReplicationProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)Property).SupportedReplicationProvider = value ?? null /* arrayOf */; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public ProtectableItem() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Replication protected item. + public partial interface IProtectableItem : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the class type. Overridden in derived classes.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string CustomDetailInstanceType { get; set; } + /// The name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// The Current protection readiness errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Current protection readiness errors.", + SerializedName = @"protectionReadinessErrors", + PossibleTypes = new [] { typeof(string) })] + string[] ProtectionReadinessError { get; set; } + /// The protection status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The protection status.", + SerializedName = @"protectionStatus", + PossibleTypes = new [] { typeof(string) })] + string ProtectionStatus { get; set; } + /// The recovery provider ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery provider ARM Id.", + SerializedName = @"recoveryServicesProviderId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryServicesProviderId { get; set; } + /// The ARM resource of protected items. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The ARM resource of protected items.", + SerializedName = @"replicationProtectedItemId", + PossibleTypes = new [] { typeof(string) })] + string ReplicationProtectedItemId { get; set; } + /// The list of replication providers supported for the protectable item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of replication providers supported for the protectable item.", + SerializedName = @"supportedReplicationProviders", + PossibleTypes = new [] { typeof(string) })] + string[] SupportedReplicationProvider { get; set; } + + } + /// Replication protected item. + internal partial interface IProtectableItemInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The Replication provider custom settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings CustomDetail { get; set; } + /// Gets the class type. Overridden in derived classes. + string CustomDetailInstanceType { get; set; } + /// The name. + string FriendlyName { get; set; } + /// The custom data. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemProperties Property { get; set; } + /// The Current protection readiness errors. + string[] ProtectionReadinessError { get; set; } + /// The protection status. + string ProtectionStatus { get; set; } + /// The recovery provider ARM Id. + string RecoveryServicesProviderId { get; set; } + /// The ARM resource of protected items. + string ReplicationProtectedItemId { get; set; } + /// The list of replication providers supported for the protectable item. + string[] SupportedReplicationProvider { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItem.json.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItem.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ProtectableItem.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectableItem.json.cs index 38e3d17419b2..4bbf196d040a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItem.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItem.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProtectableItem partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItem. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItem. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItem. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItem. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItem FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItem FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectableItem(json) : null; } @@ -77,8 +77,8 @@ internal ProtectableItem(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItemProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItemProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ProtectableItemCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItemCollection.PowerShell.cs new file mode 100644 index 000000000000..e574c2686476 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItemCollection.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Protectable item collection. + [System.ComponentModel.TypeConverter(typeof(ProtectableItemCollectionTypeConverter))] + public partial class ProtectableItemCollection + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IProtectableItemCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProtectableItemCollection(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.Migrate.Models.Api202301.IProtectableItemCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProtectableItemCollection(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.Migrate.Models.Api202301.IProtectableItemCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProtectableItemCollection(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItem[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItemTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProtectableItemCollection(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItem[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItemTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Protectable item collection. + [System.ComponentModel.TypeConverter(typeof(ProtectableItemCollectionTypeConverter))] + public partial interface IProtectableItemCollection + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItemCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProtectableItemCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectableItemCollection.TypeConverter.cs index bb1d4bd50fde..d4bcceff1337 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItemCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectableItemCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemCollection.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItemCollection.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/ProtectableItemCollection.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectableItemCollection.cs index 7a020862eca1..cec068329d58 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItemCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Protectable item collection. public partial class ProtectableItemCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class ProtectableItemCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItem[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItem[] _value; /// The Protectable item details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItem[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItem[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ProtectableItemCollection() @@ -51,8 +51,8 @@ public partial interface IProtectableItemCollection : ReadOnly = false, Description = @"The Protectable item details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItem) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItem[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItem) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItem[] Value { get; set; } } /// Protectable item collection. @@ -62,7 +62,7 @@ internal partial interface IProtectableItemCollectionInternal /// The value of next link. string NextLink { get; set; } /// The Protectable item details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItem[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItem[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItemCollection.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/ProtectableItemCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectableItemCollection.json.cs index 4898dcc78dad..68051e84f5ef 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItemCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProtectableItemCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectableItemCollection(json) : null; } @@ -77,7 +77,7 @@ internal ProtectableItemCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectableItem) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectableItem.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IProtectableItem) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectableItem.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ProtectableItemProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItemProperties.PowerShell.cs new file mode 100644 index 000000000000..eaeadcbbc1f4 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItemProperties.PowerShell.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Replication protected item custom data details. + [System.ComponentModel.TypeConverter(typeof(ProtectableItemPropertiesTypeConverter))] + public partial class ProtectableItemProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IProtectableItemProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProtectableItemProperties(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.Migrate.Models.Api202301.IProtectableItemProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProtectableItemProperties(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.Migrate.Models.Api202301.IProtectableItemProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProtectableItemProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProtectionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).ProtectionStatus = (string) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).ProtectionStatus, global::System.Convert.ToString); + } + if (content.Contains("ReplicationProtectedItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).ReplicationProtectedItemId = (string) content.GetValueForProperty("ReplicationProtectedItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).ReplicationProtectedItemId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryServicesProviderId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); + } + if (content.Contains("ProtectionReadinessError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).ProtectionReadinessError = (string[]) content.GetValueForProperty("ProtectionReadinessError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).ProtectionReadinessError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("SupportedReplicationProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).SupportedReplicationProvider = (string[]) content.GetValueForProperty("SupportedReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).SupportedReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).CustomDetailInstanceType, 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 ProtectableItemProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProtectionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).ProtectionStatus = (string) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).ProtectionStatus, global::System.Convert.ToString); + } + if (content.Contains("ReplicationProtectedItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).ReplicationProtectedItemId = (string) content.GetValueForProperty("ReplicationProtectedItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).ReplicationProtectedItemId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryServicesProviderId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); + } + if (content.Contains("ProtectionReadinessError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).ProtectionReadinessError = (string[]) content.GetValueForProperty("ProtectionReadinessError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).ProtectionReadinessError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("SupportedReplicationProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).SupportedReplicationProvider = (string[]) content.GetValueForProperty("SupportedReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).SupportedReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal)this).CustomDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Replication protected item custom data details. + [System.ComponentModel.TypeConverter(typeof(ProtectableItemPropertiesTypeConverter))] + public partial interface IProtectableItemProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItemProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProtectableItemProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectableItemProperties.TypeConverter.cs index 2b5ddd5f06fe..f03b68e1ce1b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItemProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectableItemProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemProperties.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItemProperties.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/ProtectableItemProperties.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectableItemProperties.cs index 422f221efad0..6a503e0bb444 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItemProperties.cs @@ -3,26 +3,26 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Replication protected item custom data details. public partial class ProtectableItemProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings _customDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings _customDetail; /// The Replication provider custom settings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettings()); set => this._customDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettings()); set => this._customDetail = value; } /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)CustomDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)CustomDetail).InstanceType = value ?? null; } + public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)CustomDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)CustomDetail).InstanceType = value ?? null; } /// Backing field for property. private string _friendlyName; @@ -32,7 +32,7 @@ public partial class ProtectableItemProperties : public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } /// Internal Acessors for CustomDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemPropertiesInternal.CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettings()); set { {_customDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemPropertiesInternal.CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettings()); set { {_customDetail = value;} } } /// Backing field for property. private string[] _protectionReadinessError; @@ -142,7 +142,7 @@ internal partial interface IProtectableItemPropertiesInternal { /// The Replication provider custom settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings CustomDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings CustomDetail { get; set; } /// Gets the class type. Overridden in derived classes. string CustomDetailInstanceType { get; set; } /// The name. diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItemProperties.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ProtectableItemProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectableItemProperties.json.cs index 2a80071ee9d2..1d3e1a2c944c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItemProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProtectableItemProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectableItemProperties(json) : null; } @@ -77,7 +77,7 @@ internal ProtectableItemProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - {_customDetail = If( json?.PropertyT("customDetails"), out var __jsonCustomDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettings.FromJson(__jsonCustomDetails) : CustomDetail;} + {_customDetail = If( json?.PropertyT("customDetails"), out var __jsonCustomDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettings.FromJson(__jsonCustomDetails) : CustomDetail;} {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)FriendlyName;} {_protectionStatus = If( json?.PropertyT("protectionStatus"), out var __jsonProtectionStatus) ? (string)__jsonProtectionStatus : (string)ProtectionStatus;} {_replicationProtectedItemId = If( json?.PropertyT("replicationProtectedItemId"), out var __jsonReplicationProtectedItemId) ? (string)__jsonReplicationProtectedItemId : (string)ReplicationProtectedItemId;} diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemQueryParameter.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItemQueryParameter.PowerShell.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/ProtectableItemQueryParameter.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectableItemQueryParameter.PowerShell.cs index 6d2b2ca45a73..344737fb601f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemQueryParameter.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItemQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ProtectableItemQueryParameter partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IProtectableItemQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProtectableItemQueryParameter(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.Migrate.Models.Api20220501.IProtectableItemQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProtectableItemQueryParameter(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPro /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +105,13 @@ internal ProtectableItemQueryParameter(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemQueryParameterInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemQueryParameterInternal)this).State, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemQueryParameterInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemQueryParameterInternal)this).State, 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,7 +126,7 @@ internal ProtectableItemQueryParameter(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemQueryParameterInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemQueryParameterInternal)this).State, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemQueryParameterInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemQueryParameterInternal)this).State, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemQueryParameter.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItemQueryParameter.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProtectableItemQueryParameter.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectableItemQueryParameter.TypeConverter.cs index ff9dc7a2606d..0d21a236cc0b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemQueryParameter.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItemQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectableItemQueryParameter ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemQueryParameter ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemQueryParameter).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemQueryParameter).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemQueryParameter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItemQueryParameter.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ProtectableItemQueryParameter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectableItemQueryParameter.cs index 154548c827a8..1a7fb0c3eed9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemQueryParameter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItemQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Query parameter to enumerate Protectable items. public partial class ProtectableItemQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemQueryParameter, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemQueryParameterInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemQueryParameter, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemQueryParameterInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemQueryParameter.json.cs b/src/Migrate/generated/api/Models/Api202301/ProtectableItemQueryParameter.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ProtectableItemQueryParameter.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectableItemQueryParameter.json.cs index 20665f1252ec..e5646858256c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectableItemQueryParameter.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectableItemQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProtectableItemQueryParameter partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemQueryParameter. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemQueryParameter. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemQueryParameter. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemQueryParameter. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectableItemQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectableItemQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectableItemQueryParameter(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ProtectedItemsQueryParameter.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProtectedItemsQueryParameter.PowerShell.cs new file mode 100644 index 000000000000..98edcf317d61 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProtectedItemsQueryParameter.PowerShell.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Query parameter to enumerate protected items. + [System.ComponentModel.TypeConverter(typeof(ProtectedItemsQueryParameterTypeConverter))] + public partial class ProtectedItemsQueryParameter + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IProtectedItemsQueryParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProtectedItemsQueryParameter(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.Migrate.Models.Api202301.IProtectedItemsQueryParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProtectedItemsQueryParameter(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.Migrate.Models.Api202301.IProtectedItemsQueryParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProtectedItemsQueryParameter(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).SourceFabricName = (string) content.GetValueForProperty("SourceFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).SourceFabricName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPlanName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).RecoveryPlanName = (string) content.GetValueForProperty("RecoveryPlanName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).RecoveryPlanName, global::System.Convert.ToString); + } + if (content.Contains("SourceFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).SourceFabricLocation = (string) content.GetValueForProperty("SourceFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).SourceFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("VCenterName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).VCenterName = (string) content.GetValueForProperty("VCenterName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).VCenterName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupCreateOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).MultiVMGroupCreateOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption?) content.GetValueForProperty("MultiVMGroupCreateOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).MultiVMGroupCreateOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption.CreateFrom); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).ProcessServerId, 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 ProtectedItemsQueryParameter(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).SourceFabricName = (string) content.GetValueForProperty("SourceFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).SourceFabricName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPlanName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).RecoveryPlanName = (string) content.GetValueForProperty("RecoveryPlanName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).RecoveryPlanName, global::System.Convert.ToString); + } + if (content.Contains("SourceFabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).SourceFabricLocation = (string) content.GetValueForProperty("SourceFabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).SourceFabricLocation, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("VCenterName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).VCenterName = (string) content.GetValueForProperty("VCenterName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).VCenterName, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("MultiVMGroupCreateOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).MultiVMGroupCreateOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption?) content.GetValueForProperty("MultiVMGroupCreateOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).MultiVMGroupCreateOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMGroupCreateOption.CreateFrom); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal)this).ProcessServerId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Query parameter to enumerate protected items. + [System.ComponentModel.TypeConverter(typeof(ProtectedItemsQueryParameterTypeConverter))] + public partial interface IProtectedItemsQueryParameter + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectedItemsQueryParameter.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectedItemsQueryParameter.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProtectedItemsQueryParameter.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectedItemsQueryParameter.TypeConverter.cs index b203779cc3bd..01ae32cac92e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectedItemsQueryParameter.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectedItemsQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectedItemsQueryParameter ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameter ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameter).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameter).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectedItemsQueryParameter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectedItemsQueryParameter.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/ProtectedItemsQueryParameter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectedItemsQueryParameter.cs index bb38f782d36a..b9b308cb2f94 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectedItemsQueryParameter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectedItemsQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Query parameter to enumerate protected items. public partial class ProtectedItemsQueryParameter : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameter, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameterInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameter, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameterInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectedItemsQueryParameter.json.cs b/src/Migrate/generated/api/Models/Api202301/ProtectedItemsQueryParameter.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProtectedItemsQueryParameter.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectedItemsQueryParameter.json.cs index 7737eb777dc0..446972590bbb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectedItemsQueryParameter.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectedItemsQueryParameter.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProtectedItemsQueryParameter partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameter. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameter. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameter. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameter. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectedItemsQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectedItemsQueryParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectedItemsQueryParameter(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ProtectionContainer.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainer.PowerShell.cs new file mode 100644 index 000000000000..e9f0e327e073 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainer.PowerShell.cs @@ -0,0 +1,240 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Protection container details. + [System.ComponentModel.TypeConverter(typeof(ProtectionContainerTypeConverter))] + public partial class ProtectionContainer + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IProtectionContainer DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProtectionContainer(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.Migrate.Models.Api202301.IProtectionContainer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProtectionContainer(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.Migrate.Models.Api202301.IProtectionContainer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProtectionContainer(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.Migrate.Models.Api202301.IProtectionContainerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerFabricSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FabricType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricType, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("PairingStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).PairingStatus = (string) content.GetValueForProperty("PairingStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).PairingStatus, global::System.Convert.ToString); + } + if (content.Contains("Role")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).Role = (string) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).Role, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricSpecificDetailInstanceType, 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 ProtectionContainer(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.Migrate.Models.Api202301.IProtectionContainerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerFabricSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FabricType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricType, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("PairingStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).PairingStatus = (string) content.GetValueForProperty("PairingStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).PairingStatus, global::System.Convert.ToString); + } + if (content.Contains("Role")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).Role = (string) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).Role, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal)this).FabricSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Protection container details. + [System.ComponentModel.TypeConverter(typeof(ProtectionContainerTypeConverter))] + public partial interface IProtectionContainer + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainer.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainer.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainer.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainer.TypeConverter.cs index 3bbd3fb9a15e..2637c81ee741 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainer.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainer.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectionContainer ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ProtectionContainer.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainer.cs new file mode 100644 index 000000000000..3d3592c4bc23 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainer.cs @@ -0,0 +1,195 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Protection container details. + public partial class ProtectionContainer : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// Fabric friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).FabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).FabricFriendlyName = value ?? null; } + + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).FabricSpecificDetailInstanceType; } + + /// The fabric type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FabricType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).FabricType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).FabricType = value ?? null; } + + /// The name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).FriendlyName = value ?? null; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for FabricSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal.FabricSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).FabricSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).FabricSpecificDetail = value; } + + /// Internal Acessors for FabricSpecificDetailInstanceType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal.FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).FabricSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).FabricSpecificDetailInstanceType = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerProperties()); set { {_property = value;} } } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// The pairing status of this cloud. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PairingStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).PairingStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).PairingStatus = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerProperties _property; + + /// The custom data. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerProperties()); set => this._property = value; } + + /// Number of protected PEs. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public int? ProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).ProtectedItemCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).ProtectedItemCount = value ?? default(int); } + + /// The role of this cloud. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Role { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).Role; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)Property).Role = value ?? null; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public ProtectionContainer() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Protection container details. + public partial interface IProtectionContainer : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// Fabric friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Fabric friendly name.", + SerializedName = @"fabricFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string FabricFriendlyName { get; set; } + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Gets the class type. Overridden in derived classes.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string FabricSpecificDetailInstanceType { get; } + /// The fabric type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fabric type.", + SerializedName = @"fabricType", + PossibleTypes = new [] { typeof(string) })] + string FabricType { get; set; } + /// The name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// The pairing status of this cloud. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The pairing status of this cloud.", + SerializedName = @"pairingStatus", + PossibleTypes = new [] { typeof(string) })] + string PairingStatus { get; set; } + /// Number of protected PEs. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Number of protected PEs.", + SerializedName = @"protectedItemCount", + PossibleTypes = new [] { typeof(int) })] + int? ProtectedItemCount { get; set; } + /// The role of this cloud. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The role of this cloud.", + SerializedName = @"role", + PossibleTypes = new [] { typeof(string) })] + string Role { get; set; } + + } + /// Protection container details. + internal partial interface IProtectionContainerInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// Fabric friendly name. + string FabricFriendlyName { get; set; } + /// Fabric specific details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails FabricSpecificDetail { get; set; } + /// Gets the class type. Overridden in derived classes. + string FabricSpecificDetailInstanceType { get; set; } + /// The fabric type. + string FabricType { get; set; } + /// The name. + string FriendlyName { get; set; } + /// The pairing status of this cloud. + string PairingStatus { get; set; } + /// The custom data. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerProperties Property { get; set; } + /// Number of protected PEs. + int? ProtectedItemCount { get; set; } + /// The role of this cloud. + string Role { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainer.json.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainer.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainer.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainer.json.cs index 881dce3e9364..0086705a95ac 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainer.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainer.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProtectionContainer partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectionContainer(json) : null; } @@ -77,8 +77,8 @@ internal ProtectionContainer(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime. { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ProtectionContainerCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerCollection.PowerShell.cs new file mode 100644 index 000000000000..507d02c6064f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerCollection.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Protection Container collection. + [System.ComponentModel.TypeConverter(typeof(ProtectionContainerCollectionTypeConverter))] + public partial class ProtectionContainerCollection + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IProtectionContainerCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProtectionContainerCollection(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.Migrate.Models.Api202301.IProtectionContainerCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProtectionContainerCollection(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.Migrate.Models.Api202301.IProtectionContainerCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProtectionContainerCollection(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProtectionContainerCollection(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Protection Container collection. + [System.ComponentModel.TypeConverter(typeof(ProtectionContainerCollectionTypeConverter))] + public partial interface IProtectionContainerCollection + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerCollection.TypeConverter.cs index 41de87608a55..2ab74e03dd1c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectionContainerCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerCollection.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerCollection.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerCollection.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerCollection.cs index dcd00bf27ccb..9173bab1b61b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Protection Container collection. public partial class ProtectionContainerCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class ProtectionContainerCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer[] _value; /// The Protection Container details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ProtectionContainerCollection() @@ -51,8 +51,8 @@ public partial interface IProtectionContainerCollection : ReadOnly = false, Description = @"The Protection Container details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer[] Value { get; set; } } /// Protection Container collection. @@ -62,7 +62,7 @@ internal partial interface IProtectionContainerCollectionInternal /// The value of next link. string NextLink { get; set; } /// The Protection Container details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerCollection.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerCollection.json.cs index 4b4ed90ea92b..a77a1d2a02c4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProtectionContainerCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectionContainerCollection(json) : null; } @@ -77,7 +77,7 @@ internal ProtectionContainerCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectionContainer) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainer.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IProtectionContainer) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainer.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerFabricSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerFabricSpecificDetails.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerFabricSpecificDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerFabricSpecificDetails.PowerShell.cs index 28fd67448866..36a7404f187c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerFabricSpecificDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerFabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ProtectionContainerFabricSpecificDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProtectionContainerFabricSpecificDetails(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.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProtectionContainerFabricSpecificDetails(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPro /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal ProtectionContainerFabricSpecificDetails(global::System.Collections.IDi // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetailsInternal)this).InstanceType, 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. @@ -129,7 +129,7 @@ internal ProtectionContainerFabricSpecificDetails(global::System.Management.Auto // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerFabricSpecificDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerFabricSpecificDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerFabricSpecificDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerFabricSpecificDetails.TypeConverter.cs index 643e4f200e0c..f16ac0d9fee7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerFabricSpecificDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerFabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerFabricSpecificDetails.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerFabricSpecificDetails.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerFabricSpecificDetails.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerFabricSpecificDetails.cs index 0cab5d25f446..be16ec996710 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerFabricSpecificDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerFabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Base class for fabric specific details of container. public partial class ProtectionContainerFabricSpecificDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetailsInternal { /// Backing field for property. @@ -21,7 +21,7 @@ public partial class ProtectionContainerFabricSpecificDetails : public string InstanceType { get => this._instanceType; } /// Internal Acessors for InstanceType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetailsInternal.InstanceType { get => this._instanceType; set { {_instanceType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetailsInternal.InstanceType { get => this._instanceType; set { {_instanceType = value;} } } /// /// Creates an new instance. diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerFabricSpecificDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerFabricSpecificDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerFabricSpecificDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerFabricSpecificDetails.json.cs index e026af502952..6cdffa31b018 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerFabricSpecificDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerFabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProtectionContainerFabricSpecificDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectionContainerFabricSpecificDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMapping.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMapping.PowerShell.cs new file mode 100644 index 000000000000..7cc9c8eede25 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMapping.PowerShell.cs @@ -0,0 +1,264 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Protection container mapping object. + [System.ComponentModel.TypeConverter(typeof(ProtectionContainerMappingTypeConverter))] + public partial class ProtectionContainerMapping + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IProtectionContainerMapping DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProtectionContainerMapping(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.Migrate.Models.Api202301.IProtectionContainerMapping DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProtectionContainerMapping(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.Migrate.Models.Api202301.IProtectionContainerMapping FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProtectionContainerMapping(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.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("TargetProtectionContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); + } + if (content.Contains("TargetProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).TargetProtectionContainerFriendlyName = (string) content.GetValueForProperty("TargetProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).TargetProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).Health = (string) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).Health, global::System.Convert.ToString); + } + if (content.Contains("HealthErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("SourceProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).SourceProtectionContainerFriendlyName = (string) content.GetValueForProperty("SourceProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).SourceProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("SourceFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).SourceFabricFriendlyName = (string) content.GetValueForProperty("SourceFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).SourceFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("TargetFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).TargetFabricFriendlyName = (string) content.GetValueForProperty("TargetFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).TargetFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PolicyFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).PolicyFriendlyName, 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 ProtectionContainerMapping(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.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("TargetProtectionContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); + } + if (content.Contains("TargetProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).TargetProtectionContainerFriendlyName = (string) content.GetValueForProperty("TargetProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).TargetProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).Health = (string) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).Health, global::System.Convert.ToString); + } + if (content.Contains("HealthErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("SourceProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).SourceProtectionContainerFriendlyName = (string) content.GetValueForProperty("SourceProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).SourceProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("SourceFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).SourceFabricFriendlyName = (string) content.GetValueForProperty("SourceFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).SourceFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("TargetFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).TargetFabricFriendlyName = (string) content.GetValueForProperty("TargetFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).TargetFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PolicyFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal)this).PolicyFriendlyName, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Protection container mapping object. + [System.ComponentModel.TypeConverter(typeof(ProtectionContainerMappingTypeConverter))] + public partial interface IProtectionContainerMapping + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMapping.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMapping.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMapping.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerMapping.TypeConverter.cs index 74d2ba414bac..bfc7116f2cc8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMapping.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMapping.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectionContainerMapping ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMapping.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMapping.cs new file mode 100644 index 000000000000..5eb3a694687f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMapping.cs @@ -0,0 +1,243 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Protection container mapping object. + public partial class ProtectionContainerMapping : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// Health of pairing. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Health { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).Health = value ?? null; } + + /// Health error. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).HealthErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).HealthErrorDetail = value ?? null /* arrayOf */; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProperties()); set { {_property = value;} } } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Friendly name of replication policy. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PolicyFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).PolicyFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).PolicyFriendlyName = value ?? null; } + + /// Policy ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).PolicyId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProperties _property; + + /// The custom data. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProperties()); set => this._property = value; } + + /// Provider specific provider details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* model class */; } + + /// Friendly name of source fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SourceFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).SourceFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).SourceFabricFriendlyName = value ?? null; } + + /// Friendly name of source protection container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SourceProtectionContainerFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).SourceProtectionContainerFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).SourceProtectionContainerFriendlyName = value ?? null; } + + /// Association Status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string State { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).State = value ?? null; } + + /// Friendly name of target fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).TargetFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).TargetFabricFriendlyName = value ?? null; } + + /// Friendly name of paired container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetProtectionContainerFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).TargetProtectionContainerFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).TargetProtectionContainerFriendlyName = value ?? null; } + + /// Paired protection container ARM ID. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetProtectionContainerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).TargetProtectionContainerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)Property).TargetProtectionContainerId = value ?? null; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public ProtectionContainerMapping() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Protection container mapping object. + public partial interface IProtectionContainerMapping : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// Health of pairing. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Health of pairing.", + SerializedName = @"health", + PossibleTypes = new [] { typeof(string) })] + string Health { get; set; } + /// Health error. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Health error.", + SerializedName = @"healthErrorDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get; set; } + /// Friendly name of replication policy. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Friendly name of replication policy.", + SerializedName = @"policyFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string PolicyFriendlyName { get; set; } + /// Policy ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Policy ARM Id.", + SerializedName = @"policyId", + PossibleTypes = new [] { typeof(string) })] + string PolicyId { get; set; } + /// Provider specific provider details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Provider specific provider details.", + SerializedName = @"providerSpecificDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails ProviderSpecificDetail { get; set; } + /// Friendly name of source fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Friendly name of source fabric.", + SerializedName = @"sourceFabricFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string SourceFabricFriendlyName { get; set; } + /// Friendly name of source protection container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Friendly name of source protection container.", + SerializedName = @"sourceProtectionContainerFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string SourceProtectionContainerFriendlyName { get; set; } + /// Association Status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Association Status.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(string) })] + string State { get; set; } + /// Friendly name of target fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Friendly name of target fabric.", + SerializedName = @"targetFabricFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string TargetFabricFriendlyName { get; set; } + /// Friendly name of paired container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Friendly name of paired container.", + SerializedName = @"targetProtectionContainerFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string TargetProtectionContainerFriendlyName { get; set; } + /// Paired protection container ARM ID. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Paired protection container ARM ID.", + SerializedName = @"targetProtectionContainerId", + PossibleTypes = new [] { typeof(string) })] + string TargetProtectionContainerId { get; set; } + + } + /// Protection container mapping object. + internal partial interface IProtectionContainerMappingInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// Health of pairing. + string Health { get; set; } + /// Health error. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get; set; } + /// Friendly name of replication policy. + string PolicyFriendlyName { get; set; } + /// Policy ARM Id. + string PolicyId { get; set; } + /// The custom data. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProperties Property { get; set; } + /// Provider specific provider details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails ProviderSpecificDetail { get; set; } + /// Friendly name of source fabric. + string SourceFabricFriendlyName { get; set; } + /// Friendly name of source protection container. + string SourceProtectionContainerFriendlyName { get; set; } + /// Association Status. + string State { get; set; } + /// Friendly name of target fabric. + string TargetFabricFriendlyName { get; set; } + /// Friendly name of paired container. + string TargetProtectionContainerFriendlyName { get; set; } + /// Paired protection container ARM ID. + string TargetProtectionContainerId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMapping.json.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMapping.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMapping.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerMapping.json.cs index 19f50fd0882d..e945ad6eba6c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMapping.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMapping.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProtectionContainerMapping partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectionContainerMapping(json) : null; } @@ -77,8 +77,8 @@ internal ProtectionContainerMapping(Microsoft.Azure.PowerShell.Cmdlets.Migrate.R { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingCollection.PowerShell.cs new file mode 100644 index 000000000000..f00e3838f424 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingCollection.PowerShell.cs @@ -0,0 +1,156 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Protection container mapping collection class. + [System.ComponentModel.TypeConverter(typeof(ProtectionContainerMappingCollectionTypeConverter))] + public partial class ProtectionContainerMappingCollection + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IProtectionContainerMappingCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProtectionContainerMappingCollection(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.Migrate.Models.Api202301.IProtectionContainerMappingCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProtectionContainerMappingCollection(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.Migrate.Models.Api202301.IProtectionContainerMappingCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProtectionContainerMappingCollection(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProtectionContainerMappingCollection(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Protection container mapping collection class. + [System.ComponentModel.TypeConverter(typeof(ProtectionContainerMappingCollectionTypeConverter))] + public partial interface IProtectionContainerMappingCollection + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingCollection.TypeConverter.cs index 8c2b2f23d44c..65e8888d857b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectionContainerMappingCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingCollection.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingCollection.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingCollection.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingCollection.cs index 1f7ef3b114c1..de267cfcb2cc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Protection container mapping collection class. public partial class ProtectionContainerMappingCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class ProtectionContainerMappingCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping[] _value; /// List of container mappings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ProtectionContainerMappingCollection() @@ -51,8 +51,8 @@ public partial interface IProtectionContainerMappingCollection : ReadOnly = false, Description = @"List of container mappings.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping[] Value { get; set; } } /// Protection container mapping collection class. @@ -62,7 +62,7 @@ internal partial interface IProtectionContainerMappingCollectionInternal /// Link to fetch rest of the data. string NextLink { get; set; } /// List of container mappings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingCollection.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingCollection.json.cs index 3ae58febca57..dc23a47fbd8a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProtectionContainerMappingCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectionContainerMappingCollection(json) : null; } @@ -77,7 +77,7 @@ internal ProtectionContainerMappingCollection(Microsoft.Azure.PowerShell.Cmdlets { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectionContainerMapping) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMapping.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IProtectionContainerMapping) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMapping.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProperties.PowerShell.cs new file mode 100644 index 000000000000..9aeb167e39e9 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProperties.PowerShell.cs @@ -0,0 +1,228 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Protection container mapping properties. + [System.ComponentModel.TypeConverter(typeof(ProtectionContainerMappingPropertiesTypeConverter))] + public partial class ProtectionContainerMappingProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IProtectionContainerMappingProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProtectionContainerMappingProperties(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.Migrate.Models.Api202301.IProtectionContainerMappingProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProtectionContainerMappingProperties(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.Migrate.Models.Api202301.IProtectionContainerMappingProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProtectionContainerMappingProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetProtectionContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); + } + if (content.Contains("TargetProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerFriendlyName = (string) content.GetValueForProperty("TargetProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).Health = (string) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).Health, global::System.Convert.ToString); + } + if (content.Contains("HealthErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("SourceProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).SourceProtectionContainerFriendlyName = (string) content.GetValueForProperty("SourceProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).SourceProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("SourceFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).SourceFabricFriendlyName = (string) content.GetValueForProperty("SourceFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).SourceFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("TargetFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).TargetFabricFriendlyName = (string) content.GetValueForProperty("TargetFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).TargetFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PolicyFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).PolicyFriendlyName, 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 ProtectionContainerMappingProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetProtectionContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerId = (string) content.GetValueForProperty("TargetProtectionContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerId, global::System.Convert.ToString); + } + if (content.Contains("TargetProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerFriendlyName = (string) content.GetValueForProperty("TargetProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).TargetProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProviderSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).Health = (string) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).Health, global::System.Convert.ToString); + } + if (content.Contains("HealthErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).State, global::System.Convert.ToString); + } + if (content.Contains("SourceProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).SourceProtectionContainerFriendlyName = (string) content.GetValueForProperty("SourceProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).SourceProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("SourceFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).SourceFabricFriendlyName = (string) content.GetValueForProperty("SourceFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).SourceFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("TargetFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).TargetFabricFriendlyName = (string) content.GetValueForProperty("TargetFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).TargetFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PolicyFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal)this).PolicyFriendlyName, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Protection container mapping properties. + [System.ComponentModel.TypeConverter(typeof(ProtectionContainerMappingPropertiesTypeConverter))] + public partial interface IProtectionContainerMappingProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProperties.TypeConverter.cs index b6888149ab7f..e35a60e96682 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectionContainerMappingProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProperties.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProperties.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProperties.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProperties.cs index fb0a36365a6b..e72ad1b23b8f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Protection container mapping properties. public partial class ProtectionContainerMappingProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingPropertiesInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class ProtectionContainerMappingProperties : public string Health { get => this._health; set => this._health = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthErrorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthErrorDetail; /// Health error. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get => this._healthErrorDetail; set => this._healthErrorDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get => this._healthErrorDetail; set => this._healthErrorDetail = value; } /// Backing field for property. private string _policyFriendlyName; @@ -42,11 +42,11 @@ public partial class ProtectionContainerMappingProperties : public string PolicyId { get => this._policyId; set => this._policyId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails _providerSpecificDetail; /// Provider specific provider details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProviderSpecificDetails()); set => this._providerSpecificDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProviderSpecificDetails()); set => this._providerSpecificDetail = value; } /// Backing field for property. private string _sourceFabricFriendlyName; @@ -118,8 +118,8 @@ public partial interface IProtectionContainerMappingProperties : ReadOnly = false, Description = @"Health error.", SerializedName = @"healthErrorDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get; set; } /// Friendly name of replication policy. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -142,8 +142,8 @@ public partial interface IProtectionContainerMappingProperties : ReadOnly = false, Description = @"Provider specific provider details.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails ProviderSpecificDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails ProviderSpecificDetail { get; set; } /// Friendly name of source fabric. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -201,13 +201,13 @@ internal partial interface IProtectionContainerMappingPropertiesInternal /// Health of pairing. string Health { get; set; } /// Health error. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get; set; } /// Friendly name of replication policy. string PolicyFriendlyName { get; set; } /// Policy ARM Id. string PolicyId { get; set; } /// Provider specific provider details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails ProviderSpecificDetail { get; set; } /// Friendly name of source fabric. string SourceFabricFriendlyName { get; set; } /// Friendly name of source protection container. diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProperties.json.cs index 5c03de026c01..bef38551c38e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProtectionContainerMappingProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectionContainerMappingProperties(json) : null; } @@ -79,9 +79,9 @@ internal ProtectionContainerMappingProperties(Microsoft.Azure.PowerShell.Cmdlets } {_targetProtectionContainerId = If( json?.PropertyT("targetProtectionContainerId"), out var __jsonTargetProtectionContainerId) ? (string)__jsonTargetProtectionContainerId : (string)TargetProtectionContainerId;} {_targetProtectionContainerFriendlyName = If( json?.PropertyT("targetProtectionContainerFriendlyName"), out var __jsonTargetProtectionContainerFriendlyName) ? (string)__jsonTargetProtectionContainerFriendlyName : (string)TargetProtectionContainerFriendlyName;} - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProviderSpecificDetails.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProviderSpecificDetails.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_health = If( json?.PropertyT("health"), out var __jsonHealth) ? (string)__jsonHealth : (string)Health;} - {_healthErrorDetail = If( json?.PropertyT("healthErrorDetails"), out var __jsonHealthErrorDetails) ? If( __jsonHealthErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__u) )) ))() : null : HealthErrorDetail;} + {_healthErrorDetail = If( json?.PropertyT("healthErrorDetails"), out var __jsonHealthErrorDetails) ? If( __jsonHealthErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__u) )) ))() : null : HealthErrorDetail;} {_policyId = If( json?.PropertyT("policyId"), out var __jsonPolicyId) ? (string)__jsonPolicyId : (string)PolicyId;} {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)State;} {_sourceProtectionContainerFriendlyName = If( json?.PropertyT("sourceProtectionContainerFriendlyName"), out var __jsonSourceProtectionContainerFriendlyName) ? (string)__jsonSourceProtectionContainerFriendlyName : (string)SourceProtectionContainerFriendlyName;} diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProviderSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProviderSpecificDetails.PowerShell.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProviderSpecificDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProviderSpecificDetails.PowerShell.cs index 64b5a06f2349..bbd80b76025e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProviderSpecificDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ProtectionContainerMappingProviderSpecificDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProtectionContainerMappingProviderSpecificDetails(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.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProtectionContainerMappingProviderSpecificDetails(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPro /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal ProtectionContainerMappingProviderSpecificDetails(global::System.Collec // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, 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. @@ -129,7 +129,7 @@ internal ProtectionContainerMappingProviderSpecificDetails(global::System.Manage // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProviderSpecificDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProviderSpecificDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProviderSpecificDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProviderSpecificDetails.TypeConverter.cs index 7e2a67b6d3f0..3ee1d4ad6264 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProviderSpecificDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProviderSpecificDetails.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProviderSpecificDetails.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProviderSpecificDetails.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProviderSpecificDetails.cs index 6e43c9492b22..6cbfc67ace03 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProviderSpecificDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Container mapping provider specific details. public partial class ProtectionContainerMappingProviderSpecificDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProviderSpecificDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProviderSpecificDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProviderSpecificDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProviderSpecificDetails.json.cs index cf5ab81a58e0..1111a880ceeb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerMappingProviderSpecificDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerMappingProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,16 +54,16 @@ public partial class ProtectionContainerMappingProviderSpecificDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails /// 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.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMappingProviderSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/ProtectionContainerProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerProperties.PowerShell.cs new file mode 100644 index 000000000000..b7d245d4c5e5 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerProperties.PowerShell.cs @@ -0,0 +1,202 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Protection profile custom data details. + [System.ComponentModel.TypeConverter(typeof(ProtectionContainerPropertiesTypeConverter))] + public partial class ProtectionContainerProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IProtectionContainerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProtectionContainerProperties(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.Migrate.Models.Api202301.IProtectionContainerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProtectionContainerProperties(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.Migrate.Models.Api202301.IProtectionContainerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProtectionContainerProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FabricSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerFabricSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FabricType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricType, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("PairingStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).PairingStatus = (string) content.GetValueForProperty("PairingStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).PairingStatus, global::System.Convert.ToString); + } + if (content.Contains("Role")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).Role = (string) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).Role, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricSpecificDetailInstanceType, 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 ProtectionContainerProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FabricSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerFabricSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FabricType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricType, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("PairingStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).PairingStatus = (string) content.GetValueForProperty("PairingStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).PairingStatus, global::System.Convert.ToString); + } + if (content.Contains("Role")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).Role = (string) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).Role, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal)this).FabricSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Protection profile custom data details. + [System.ComponentModel.TypeConverter(typeof(ProtectionContainerPropertiesTypeConverter))] + public partial interface IProtectionContainerProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerProperties.TypeConverter.cs index c10144aeea91..ca9a8d40e3e8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectionContainerProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerProperties.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerProperties.cs similarity index 84% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerProperties.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerProperties.cs index 64a79b02583b..3803d1f663a1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Protection profile custom data details. public partial class ProtectionContainerProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal { /// Backing field for property. @@ -21,15 +21,15 @@ public partial class ProtectionContainerProperties : public string FabricFriendlyName { get => this._fabricFriendlyName; set => this._fabricFriendlyName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails _fabricSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails _fabricSpecificDetail; /// Fabric specific details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails FabricSpecificDetail { get => (this._fabricSpecificDetail = this._fabricSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerFabricSpecificDetails()); set => this._fabricSpecificDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails FabricSpecificDetail { get => (this._fabricSpecificDetail = this._fabricSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerFabricSpecificDetails()); set => this._fabricSpecificDetail = value; } /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetailsInternal)FabricSpecificDetail).InstanceType; } + public string FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetailsInternal)FabricSpecificDetail).InstanceType; } /// Backing field for property. private string _fabricType; @@ -46,10 +46,10 @@ public partial class ProtectionContainerProperties : public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } /// Internal Acessors for FabricSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal.FabricSpecificDetail { get => (this._fabricSpecificDetail = this._fabricSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerFabricSpecificDetails()); set { {_fabricSpecificDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal.FabricSpecificDetail { get => (this._fabricSpecificDetail = this._fabricSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerFabricSpecificDetails()); set { {_fabricSpecificDetail = value;} } } /// Internal Acessors for FabricSpecificDetailInstanceType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerPropertiesInternal.FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetailsInternal)FabricSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetailsInternal)FabricSpecificDetail).InstanceType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerPropertiesInternal.FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetailsInternal)FabricSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetailsInternal)FabricSpecificDetail).InstanceType = value; } /// Backing field for property. private string _pairingStatus; @@ -147,7 +147,7 @@ internal partial interface IProtectionContainerPropertiesInternal /// Fabric friendly name. string FabricFriendlyName { get; set; } /// Fabric specific details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerFabricSpecificDetails FabricSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerFabricSpecificDetails FabricSpecificDetail { get; set; } /// Gets the class type. Overridden in derived classes. string FabricSpecificDetailInstanceType { get; set; } /// The fabric type. diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerProperties.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionContainerProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionContainerProperties.json.cs index 64662ce370b5..5f6108b87aaf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionContainerProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionContainerProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProtectionContainerProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProtectionContainerProperties(json) : null; } @@ -77,7 +77,7 @@ internal ProtectionContainerProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - {_fabricSpecificDetail = If( json?.PropertyT("fabricSpecificDetails"), out var __jsonFabricSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerFabricSpecificDetails.FromJson(__jsonFabricSpecificDetails) : FabricSpecificDetail;} + {_fabricSpecificDetail = If( json?.PropertyT("fabricSpecificDetails"), out var __jsonFabricSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerFabricSpecificDetails.FromJson(__jsonFabricSpecificDetails) : FabricSpecificDetail;} {_fabricFriendlyName = If( json?.PropertyT("fabricFriendlyName"), out var __jsonFabricFriendlyName) ? (string)__jsonFabricFriendlyName : (string)FabricFriendlyName;} {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)FriendlyName;} {_fabricType = If( json?.PropertyT("fabricType"), out var __jsonFabricType) ? (string)__jsonFabricType : (string)FabricType;} diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionProfileCustomDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionProfileCustomDetails.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionProfileCustomDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionProfileCustomDetails.PowerShell.cs index b21b86bee9de..0b557d733be8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionProfileCustomDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionProfileCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ProtectionProfileCustomDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IProtectionProfileCustomDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProtectionProfileCustomDetails(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.Migrate.Models.Api20220501.IProtectionProfileCustomDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProtectionProfileCustomDetails(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPro /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +105,13 @@ internal ProtectionProfileCustomDetails(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)this).ResourceType, 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,7 +126,7 @@ internal ProtectionProfileCustomDetails(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionProfileCustomDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionProfileCustomDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionProfileCustomDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionProfileCustomDetails.TypeConverter.cs index fb0e8196cd9a..85ea5043d358 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionProfileCustomDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionProfileCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProtectionProfileCustomDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionProfileCustomDetails.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionProfileCustomDetails.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionProfileCustomDetails.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionProfileCustomDetails.cs index 466f43ec1d5f..f89e30fdee13 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionProfileCustomDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionProfileCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Protection Profile custom input. public partial class ProtectionProfileCustomDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ProtectionProfileCustomDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/ProtectionProfileCustomDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ProtectionProfileCustomDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProtectionProfileCustomDetails.json.cs index 842d3d7596ca..b70267c21ea2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProtectionProfileCustomDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProtectionProfileCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class ProtectionProfileCustomDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails 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.Migrate.Models.Api20220501.IProtectionProfileCustomDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionProfileCustomDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionProfileCustomDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/ProviderError.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProviderError.PowerShell.cs new file mode 100644 index 000000000000..a55542a93850 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ProviderError.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class contains the error details per object. + [System.ComponentModel.TypeConverter(typeof(ProviderErrorTypeConverter))] + public partial class ProviderError + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IProviderError DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProviderError(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.Migrate.Models.Api202301.IProviderError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProviderError(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.Migrate.Models.Api202301.IProviderError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProviderError(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).ErrorCode = (int?) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).ErrorCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("ErrorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).ErrorId = (string) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).ErrorId, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).RecommendedAction, 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 ProviderError(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).ErrorCode = (int?) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).ErrorCode, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).ErrorMessage = (string) content.GetValueForProperty("ErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).ErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("ErrorId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).ErrorId = (string) content.GetValueForProperty("ErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).ErrorId, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal)this).RecommendedAction, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class contains the error details per object. + [System.ComponentModel.TypeConverter(typeof(ProviderErrorTypeConverter))] + public partial interface IProviderError + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ProviderError.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProviderError.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/ProviderError.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProviderError.TypeConverter.cs index 18ca242c783d..62ea1a3071d7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProviderError.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProviderError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProviderError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProviderError.cs b/src/Migrate/generated/api/Models/Api202301/ProviderError.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/ProviderError.cs rename to src/Migrate/generated/api/Models/Api202301/ProviderError.cs index 77b8871addfa..4bc440b5c027 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProviderError.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProviderError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// This class contains the error details per object. public partial class ProviderError : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderError, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderError, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderErrorInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ProviderError.json.cs b/src/Migrate/generated/api/Models/Api202301/ProviderError.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProviderError.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProviderError.json.cs index 4c76fe2d9806..eb905a792879 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProviderError.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProviderError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProviderError partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderError FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderError FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ProviderError(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProviderSpecificRecoveryPointDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ProviderSpecificRecoveryPointDetails.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/ProviderSpecificRecoveryPointDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ProviderSpecificRecoveryPointDetails.PowerShell.cs index 619473fd9bdf..8d1b99f248e3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProviderSpecificRecoveryPointDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProviderSpecificRecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ProviderSpecificRecoveryPointDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProviderSpecificRecoveryPointDetails(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.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProviderSpecificRecoveryPointDetails(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPro /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,13 +107,13 @@ internal ProviderSpecificRecoveryPointDetails(global::System.Collections.IDictio // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, 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. @@ -128,7 +128,7 @@ internal ProviderSpecificRecoveryPointDetails(global::System.Management.Automati // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProviderSpecificRecoveryPointDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ProviderSpecificRecoveryPointDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ProviderSpecificRecoveryPointDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ProviderSpecificRecoveryPointDetails.TypeConverter.cs index d026b3264323..cb4ebe6d51b5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProviderSpecificRecoveryPointDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProviderSpecificRecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ProviderSpecificRecoveryPointDetails.cs b/src/Migrate/generated/api/Models/Api202301/ProviderSpecificRecoveryPointDetails.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ProviderSpecificRecoveryPointDetails.cs rename to src/Migrate/generated/api/Models/Api202301/ProviderSpecificRecoveryPointDetails.cs index c11edb2015f6..81c7d2c395df 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProviderSpecificRecoveryPointDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProviderSpecificRecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Replication provider specific recovery point details. public partial class ProviderSpecificRecoveryPointDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ProviderSpecificRecoveryPointDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/ProviderSpecificRecoveryPointDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ProviderSpecificRecoveryPointDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/ProviderSpecificRecoveryPointDetails.json.cs index be3085536fe1..a010e44db630 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ProviderSpecificRecoveryPointDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ProviderSpecificRecoveryPointDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class ProviderSpecificRecoveryPointDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails 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.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/PushInstallerDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/PushInstallerDetails.PowerShell.cs new file mode 100644 index 000000000000..0ad638c2ab80 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/PushInstallerDetails.PowerShell.cs @@ -0,0 +1,208 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Push installer details. + [System.ComponentModel.TypeConverter(typeof(PushInstallerDetailsTypeConverter))] + public partial class PushInstallerDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IPushInstallerDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PushInstallerDetails(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.Migrate.Models.Api202301.IPushInstallerDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PushInstallerDetails(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.Migrate.Models.Api202301.IPushInstallerDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PushInstallerDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PushInstallerDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Push installer details. + [System.ComponentModel.TypeConverter(typeof(PushInstallerDetailsTypeConverter))] + public partial interface IPushInstallerDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/PushInstallerDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/PushInstallerDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/PushInstallerDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/PushInstallerDetails.TypeConverter.cs index e20bbfe2f677..839815ae629f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PushInstallerDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/PushInstallerDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IPushInstallerDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/PushInstallerDetails.cs b/src/Migrate/generated/api/Models/Api202301/PushInstallerDetails.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/PushInstallerDetails.cs rename to src/Migrate/generated/api/Models/Api202301/PushInstallerDetails.cs index 67391a0f39f9..27318cc93867 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PushInstallerDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/PushInstallerDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Push installer details. public partial class PushInstallerDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal { /// Backing field for property. @@ -42,11 +42,11 @@ public partial class PushInstallerDetails : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get => this._health; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthError; /// The health errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => this._healthError; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => this._healthError; } /// Backing field for property. private string _id; @@ -63,31 +63,31 @@ public partial class PushInstallerDetails : public global::System.DateTime? LastHeartbeatUtc { get => this._lastHeartbeatUtc; } /// Internal Acessors for BiosId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } /// Internal Acessors for FabricObjectId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal.FabricObjectId { get => this._fabricObjectId; set { {_fabricObjectId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal.FabricObjectId { get => this._fabricObjectId; set { {_fabricObjectId = value;} } } /// Internal Acessors for Fqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } /// Internal Acessors for Health - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal.Health { get => this._health; set { {_health = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal.Health { get => this._health; set { {_health = value;} } } /// Internal Acessors for HealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for LastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetailsInternal.Version { get => this._version; set { {_version = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetailsInternal.Version { get => this._version; set { {_version = value;} } } /// Backing field for property. private string _name; @@ -151,8 +151,8 @@ public partial interface IPushInstallerDetails : ReadOnly = true, Description = @"The health errors.", SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; } /// The push installer Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -200,7 +200,7 @@ internal partial interface IPushInstallerDetailsInternal /// The health of the push installer. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get; set; } /// The health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The push installer Id. string Id { get; set; } /// The last heartbeat received from the push installer. diff --git a/src/Migrate/generated/api/Models/Api20220501/PushInstallerDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/PushInstallerDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/PushInstallerDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/PushInstallerDetails.json.cs index 14ab36f83972..3a781c68c4bc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/PushInstallerDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/PushInstallerDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class PushInstallerDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPushInstallerDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPushInstallerDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new PushInstallerDetails(json) : null; } @@ -85,7 +85,7 @@ internal PushInstallerDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} {_lastHeartbeatUtc = If( json?.PropertyT("lastHeartbeatUtc"), out var __jsonLastHeartbeatUtc) ? global::System.DateTime.TryParse((string)__jsonLastHeartbeatUtc, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastHeartbeatUtcValue) ? __jsonLastHeartbeatUtcValue : LastHeartbeatUtc : LastHeartbeatUtc;} {_health = If( json?.PropertyT("health"), out var __jsonHealth) ? (string)__jsonHealth : (string)Health;} - {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__u) )) ))() : null : HealthError;} + {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__u) )) ))() : null : HealthError;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RcmProxyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RcmProxyDetails.PowerShell.cs new file mode 100644 index 000000000000..b2a66bff9fb5 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RcmProxyDetails.PowerShell.cs @@ -0,0 +1,216 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// RCM proxy details. + [System.ComponentModel.TypeConverter(typeof(RcmProxyDetailsTypeConverter))] + public partial class RcmProxyDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRcmProxyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RcmProxyDetails(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.Migrate.Models.Api202301.IRcmProxyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RcmProxyDetails(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.Migrate.Models.Api202301.IRcmProxyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RcmProxyDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("ClientAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).ClientAuthenticationType = (string) content.GetValueForProperty("ClientAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).ClientAuthenticationType, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RcmProxyDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("ClientAuthenticationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).ClientAuthenticationType = (string) content.GetValueForProperty("ClientAuthenticationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).ClientAuthenticationType, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// RCM proxy details. + [System.ComponentModel.TypeConverter(typeof(RcmProxyDetailsTypeConverter))] + public partial interface IRcmProxyDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RcmProxyDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RcmProxyDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/RcmProxyDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RcmProxyDetails.TypeConverter.cs index a000d124ba48..b434eb772f44 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RcmProxyDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RcmProxyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRcmProxyDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RcmProxyDetails.cs b/src/Migrate/generated/api/Models/Api202301/RcmProxyDetails.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/RcmProxyDetails.cs rename to src/Migrate/generated/api/Models/Api202301/RcmProxyDetails.cs index ec94488f976f..2fd7ff05577c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RcmProxyDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/RcmProxyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// RCM proxy details. public partial class RcmProxyDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal { /// Backing field for property. @@ -49,11 +49,11 @@ public partial class RcmProxyDetails : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get => this._health; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthError; /// The health errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => this._healthError; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => this._healthError; } /// Backing field for property. private string _id; @@ -70,34 +70,34 @@ public partial class RcmProxyDetails : public global::System.DateTime? LastHeartbeatUtc { get => this._lastHeartbeatUtc; } /// Internal Acessors for BiosId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } /// Internal Acessors for ClientAuthenticationType - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal.ClientAuthenticationType { get => this._clientAuthenticationType; set { {_clientAuthenticationType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal.ClientAuthenticationType { get => this._clientAuthenticationType; set { {_clientAuthenticationType = value;} } } /// Internal Acessors for FabricObjectId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal.FabricObjectId { get => this._fabricObjectId; set { {_fabricObjectId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal.FabricObjectId { get => this._fabricObjectId; set { {_fabricObjectId = value;} } } /// Internal Acessors for Fqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } /// Internal Acessors for Health - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal.Health { get => this._health; set { {_health = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal.Health { get => this._health; set { {_health = value;} } } /// Internal Acessors for HealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for LastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetailsInternal.Version { get => this._version; set { {_version = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetailsInternal.Version { get => this._version; set { {_version = value;} } } /// Backing field for property. private string _name; @@ -169,8 +169,8 @@ public partial interface IRcmProxyDetails : ReadOnly = true, Description = @"The health errors.", SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; } /// The RCM proxy Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -220,7 +220,7 @@ internal partial interface IRcmProxyDetailsInternal /// The health of the RCM proxy. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get; set; } /// The health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The RCM proxy Id. string Id { get; set; } /// The last heartbeat received from the RCM proxy. diff --git a/src/Migrate/generated/api/Models/Api20220501/RcmProxyDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/RcmProxyDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RcmProxyDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/RcmProxyDetails.json.cs index bd38c5f63ca4..6502119cb0d2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RcmProxyDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RcmProxyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RcmProxyDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRcmProxyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRcmProxyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RcmProxyDetails(json) : null; } @@ -86,7 +86,7 @@ internal RcmProxyDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} {_lastHeartbeatUtc = If( json?.PropertyT("lastHeartbeatUtc"), out var __jsonLastHeartbeatUtc) ? global::System.DateTime.TryParse((string)__jsonLastHeartbeatUtc, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastHeartbeatUtcValue) ? __jsonLastHeartbeatUtcValue : LastHeartbeatUtc : LastHeartbeatUtc;} {_health = If( json?.PropertyT("health"), out var __jsonHealth) ? (string)__jsonHealth : (string)Health;} - {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__u) )) ))() : null : HealthError;} + {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__u) )) ))() : null : HealthError;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryAvailabilitySetCustomDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryAvailabilitySetCustomDetails.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryAvailabilitySetCustomDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryAvailabilitySetCustomDetails.PowerShell.cs index 00d0902f08d0..1ab1ee06821e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryAvailabilitySetCustomDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryAvailabilitySetCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RecoveryAvailabilitySetCustomDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryAvailabilitySetCustomDetails(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.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryAvailabilitySetCustomDetails(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,13 +107,13 @@ internal RecoveryAvailabilitySetCustomDetails(global::System.Collections.IDictio // actually deserialize if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType, 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. @@ -128,7 +128,7 @@ internal RecoveryAvailabilitySetCustomDetails(global::System.Management.Automati // actually deserialize if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryAvailabilitySetCustomDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryAvailabilitySetCustomDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryAvailabilitySetCustomDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryAvailabilitySetCustomDetails.TypeConverter.cs index 51bd7aa33952..d528d382e019 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryAvailabilitySetCustomDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryAvailabilitySetCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryAvailabilitySetCustomDetails.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryAvailabilitySetCustomDetails.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryAvailabilitySetCustomDetails.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryAvailabilitySetCustomDetails.cs index 3fdf86dcd186..856552275fb9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryAvailabilitySetCustomDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryAvailabilitySetCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery Availability Set custom input. public partial class RecoveryAvailabilitySetCustomDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryAvailabilitySetCustomDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryAvailabilitySetCustomDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryAvailabilitySetCustomDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryAvailabilitySetCustomDetails.json.cs index 71238752b3b0..f4a59b7c0d5a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryAvailabilitySetCustomDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryAvailabilitySetCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class RecoveryAvailabilitySetCustomDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails 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.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryAvailabilitySetCustomDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryAvailabilitySetCustomDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlan.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlan.PowerShell.cs new file mode 100644 index 000000000000..9a7140a44ce7 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlan.PowerShell.cs @@ -0,0 +1,328 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan details. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanTypeConverter))] + public partial class RecoveryPlan + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlan DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlan(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.Migrate.Models.Api202301.IRecoveryPlan DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlan(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.Migrate.Models.Api202301.IRecoveryPlan FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlan(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.Migrate.Models.Api202301.IRecoveryPlanInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenario")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).PrimaryFabricId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).RecoveryFabricId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FailoverDeploymentModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).FailoverDeploymentModel = (string) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).FailoverDeploymentModel, global::System.Convert.ToString); + } + if (content.Contains("ReplicationProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).ReplicationProvider = (string[]) content.GetValueForProperty("ReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).ReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("AllowedOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("LastPlannedFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).LastPlannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastPlannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).LastPlannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastUnplannedFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).LastUnplannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastUnplannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).LastUnplannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastTestFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).LastTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).LastTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("CurrentScenarioStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioStatus = (string) content.GetValueForProperty("CurrentScenarioStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioStatus, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioStatusDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioStatusDescription = (string) content.GetValueForProperty("CurrentScenarioStatusDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioStatusDescription, global::System.Convert.ToString); + } + if (content.Contains("Group")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTypeConverter.ConvertFrom)); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("CurrentScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioName, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RecoveryPlan(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.Migrate.Models.Api202301.IRecoveryPlanInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenario")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).PrimaryFabricId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).RecoveryFabricId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FailoverDeploymentModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).FailoverDeploymentModel = (string) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).FailoverDeploymentModel, global::System.Convert.ToString); + } + if (content.Contains("ReplicationProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).ReplicationProvider = (string[]) content.GetValueForProperty("ReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).ReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("AllowedOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("LastPlannedFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).LastPlannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastPlannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).LastPlannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastUnplannedFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).LastUnplannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastUnplannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).LastUnplannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastTestFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).LastTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).LastTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("CurrentScenarioStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioStatus = (string) content.GetValueForProperty("CurrentScenarioStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioStatus, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioStatusDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioStatusDescription = (string) content.GetValueForProperty("CurrentScenarioStatusDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioStatusDescription, global::System.Convert.ToString); + } + if (content.Contains("Group")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTypeConverter.ConvertFrom)); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("CurrentScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioName, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan details. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanTypeConverter))] + public partial interface IRecoveryPlan + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlan.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlan.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlan.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlan.TypeConverter.cs index 0ece342f22d6..8b3d4c1aa32c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlan.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlan.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlan ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlan ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlan).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlan).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlan.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlan.cs new file mode 100644 index 000000000000..392d2e0723b3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlan.cs @@ -0,0 +1,346 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Recovery plan details. + public partial class RecoveryPlan : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlan, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// The list of allowed operations. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string[] AllowedOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).AllowedOperation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).AllowedOperation = value ?? null /* arrayOf */; } + + /// ARM Id of the job being executed. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string CurrentScenarioJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioJobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioJobId = value ?? null; } + + /// Scenario name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string CurrentScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioName = value ?? null; } + + /// Start time of the workflow. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? CurrentScenarioStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioStartTime = value ?? default(global::System.DateTime); } + + /// The recovery plan status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string CurrentScenarioStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioStatus = value ?? null; } + + /// The recovery plan status description. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string CurrentScenarioStatusDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioStatusDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).CurrentScenarioStatusDescription = value ?? null; } + + /// The failover deployment model. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FailoverDeploymentModel { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).FailoverDeploymentModel; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).FailoverDeploymentModel = value ?? null; } + + /// The friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).FriendlyName = value ?? null; } + + /// The recovery plan groups. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).Group; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).Group = value ?? null /* arrayOf */; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// The start time of the last planned failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? LastPlannedFailoverTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).LastPlannedFailoverTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).LastPlannedFailoverTime = value ?? default(global::System.DateTime); } + + /// The start time of the last test failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? LastTestFailoverTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).LastTestFailoverTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).LastTestFailoverTime = value ?? default(global::System.DateTime); } + + /// The start time of the last unplanned failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? LastUnplannedFailoverTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).LastUnplannedFailoverTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).LastUnplannedFailoverTime = value ?? default(global::System.DateTime); } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for CurrentScenario + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal.CurrentScenario { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).CurrentScenario; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).CurrentScenario = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProperties()); set { {_property = value;} } } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// The primary fabric friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).PrimaryFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).PrimaryFabricFriendlyName = value ?? null; } + + /// The primary fabric Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).PrimaryFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).PrimaryFabricId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProperties _property; + + /// The custom details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProperties()); set => this._property = value; } + + /// The provider id and provider specific details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails[] ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* arrayOf */; } + + /// The recovery fabric friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).RecoveryFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).RecoveryFabricFriendlyName = value ?? null; } + + /// The recovery fabric Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).RecoveryFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).RecoveryFabricId = value ?? null; } + + /// The list of replication providers. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string[] ReplicationProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).ReplicationProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)Property).ReplicationProvider = value ?? null /* arrayOf */; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public RecoveryPlan() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Recovery plan details. + public partial interface IRecoveryPlan : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// The list of allowed operations. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of allowed operations.", + SerializedName = @"allowedOperations", + PossibleTypes = new [] { typeof(string) })] + string[] AllowedOperation { get; set; } + /// ARM Id of the job being executed. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ARM Id of the job being executed.", + SerializedName = @"jobId", + PossibleTypes = new [] { typeof(string) })] + string CurrentScenarioJobId { get; set; } + /// Scenario name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Scenario name.", + SerializedName = @"scenarioName", + PossibleTypes = new [] { typeof(string) })] + string CurrentScenarioName { get; set; } + /// Start time of the workflow. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Start time of the workflow.", + SerializedName = @"startTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? CurrentScenarioStartTime { get; set; } + /// The recovery plan status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery plan status.", + SerializedName = @"currentScenarioStatus", + PossibleTypes = new [] { typeof(string) })] + string CurrentScenarioStatus { get; set; } + /// The recovery plan status description. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery plan status description.", + SerializedName = @"currentScenarioStatusDescription", + PossibleTypes = new [] { typeof(string) })] + string CurrentScenarioStatusDescription { get; set; } + /// The failover deployment model. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The failover deployment model.", + SerializedName = @"failoverDeploymentModel", + PossibleTypes = new [] { typeof(string) })] + string FailoverDeploymentModel { get; set; } + /// The friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The friendly name.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// The recovery plan groups. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery plan groups.", + SerializedName = @"groups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get; set; } + /// The start time of the last planned failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The start time of the last planned failover.", + SerializedName = @"lastPlannedFailoverTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastPlannedFailoverTime { get; set; } + /// The start time of the last test failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The start time of the last test failover.", + SerializedName = @"lastTestFailoverTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastTestFailoverTime { get; set; } + /// The start time of the last unplanned failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The start time of the last unplanned failover.", + SerializedName = @"lastUnplannedFailoverTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastUnplannedFailoverTime { get; set; } + /// The primary fabric friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The primary fabric friendly name.", + SerializedName = @"primaryFabricFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string PrimaryFabricFriendlyName { get; set; } + /// The primary fabric Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The primary fabric Id.", + SerializedName = @"primaryFabricId", + PossibleTypes = new [] { typeof(string) })] + string PrimaryFabricId { get; set; } + /// The provider id and provider specific details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The provider id and provider specific details.", + SerializedName = @"providerSpecificDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails[] ProviderSpecificDetail { get; set; } + /// The recovery fabric friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery fabric friendly name.", + SerializedName = @"recoveryFabricFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string RecoveryFabricFriendlyName { get; set; } + /// The recovery fabric Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery fabric Id.", + SerializedName = @"recoveryFabricId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryFabricId { get; set; } + /// The list of replication providers. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of replication providers.", + SerializedName = @"replicationProviders", + PossibleTypes = new [] { typeof(string) })] + string[] ReplicationProvider { get; set; } + + } + /// Recovery plan details. + internal partial interface IRecoveryPlanInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The list of allowed operations. + string[] AllowedOperation { get; set; } + /// The current scenario details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails CurrentScenario { get; set; } + /// ARM Id of the job being executed. + string CurrentScenarioJobId { get; set; } + /// Scenario name. + string CurrentScenarioName { get; set; } + /// Start time of the workflow. + global::System.DateTime? CurrentScenarioStartTime { get; set; } + /// The recovery plan status. + string CurrentScenarioStatus { get; set; } + /// The recovery plan status description. + string CurrentScenarioStatusDescription { get; set; } + /// The failover deployment model. + string FailoverDeploymentModel { get; set; } + /// The friendly name. + string FriendlyName { get; set; } + /// The recovery plan groups. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get; set; } + /// The start time of the last planned failover. + global::System.DateTime? LastPlannedFailoverTime { get; set; } + /// The start time of the last test failover. + global::System.DateTime? LastTestFailoverTime { get; set; } + /// The start time of the last unplanned failover. + global::System.DateTime? LastUnplannedFailoverTime { get; set; } + /// The primary fabric friendly name. + string PrimaryFabricFriendlyName { get; set; } + /// The primary fabric Id. + string PrimaryFabricId { get; set; } + /// The custom details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProperties Property { get; set; } + /// The provider id and provider specific details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails[] ProviderSpecificDetail { get; set; } + /// The recovery fabric friendly name. + string RecoveryFabricFriendlyName { get; set; } + /// The recovery fabric Id. + string RecoveryFabricId { get; set; } + /// The list of replication providers. + string[] ReplicationProvider { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlan.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlan.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlan.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlan.json.cs index c8c7842c51d7..1085eabdf327 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlan.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlan.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlan partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlan. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlan. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlan. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlan. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlan FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlan FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlan(json) : null; } @@ -77,8 +77,8 @@ internal RecoveryPlan(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.Js { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2ADetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2ADetails.PowerShell.cs new file mode 100644 index 000000000000..764d24b3719f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2ADetails.PowerShell.cs @@ -0,0 +1,208 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan A2A specific details. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanA2ADetailsTypeConverter))] + public partial class RecoveryPlanA2ADetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanA2ADetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanA2ADetails(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.Migrate.Models.Api202301.IRecoveryPlanA2ADetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanA2ADetails(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.Migrate.Models.Api202301.IRecoveryPlanA2ADetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanA2ADetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("PrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryZone = (string) content.GetValueForProperty("PrimaryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryZone, global::System.Convert.ToString); + } + if (content.Contains("RecoveryZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryZone = (string) content.GetValueForProperty("RecoveryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryZone, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("PrimaryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryExtendedLocationName = (string) content.GetValueForProperty("PrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryExtendedLocationType = (string) content.GetValueForProperty("PrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryExtendedLocationType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryExtendedLocationType, 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 RecoveryPlanA2ADetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("PrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryZone = (string) content.GetValueForProperty("PrimaryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryZone, global::System.Convert.ToString); + } + if (content.Contains("RecoveryZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryZone = (string) content.GetValueForProperty("RecoveryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryZone, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("PrimaryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryExtendedLocationName = (string) content.GetValueForProperty("PrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryExtendedLocationType = (string) content.GetValueForProperty("PrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).PrimaryExtendedLocationType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal)this).RecoveryExtendedLocationType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan A2A specific details. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanA2ADetailsTypeConverter))] + public partial interface IRecoveryPlanA2ADetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2ADetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2ADetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2ADetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2ADetails.TypeConverter.cs index 37ee850803ed..f5b0a3a3e0d3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2ADetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2ADetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanA2ADetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2ADetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2ADetails.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2ADetails.cs new file mode 100644 index 000000000000..8cd081461028 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2ADetails.cs @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Recovery plan A2A specific details. + public partial class RecoveryPlanA2ADetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails __recoveryPlanProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificDetails(); + + /// Gets the Instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetailsInternal)__recoveryPlanProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetailsInternal)__recoveryPlanProviderSpecificDetails).InstanceType = value ; } + + /// Internal Acessors for PrimaryExtendedLocation + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal.PrimaryExtendedLocation { get => (this._primaryExtendedLocation = this._primaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set { {_primaryExtendedLocation = value;} } } + + /// Internal Acessors for PrimaryExtendedLocationType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal.PrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Type = value; } + + /// Internal Acessors for RecoveryExtendedLocation + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal.RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set { {_recoveryExtendedLocation = value;} } } + + /// Internal Acessors for RecoveryExtendedLocationType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetailsInternal.RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation _primaryExtendedLocation; + + /// The primary extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation PrimaryExtendedLocation { get => (this._primaryExtendedLocation = this._primaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set => this._primaryExtendedLocation = value; } + + /// The name of the extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Name = value ?? null; } + + /// The extended location type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Type; } + + /// Backing field for property. + private string _primaryZone; + + /// The primary zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PrimaryZone { get => this._primaryZone; set => this._primaryZone = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation _recoveryExtendedLocation; + + /// The recovery extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set => this._recoveryExtendedLocation = value; } + + /// The name of the extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Name = value ?? null; } + + /// The extended location type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type; } + + /// Backing field for property. + private string _recoveryZone; + + /// The recovery zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoveryZone { get => this._recoveryZone; set => this._recoveryZone = value; } + + /// Creates an new instance. + public RecoveryPlanA2ADetails() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__recoveryPlanProviderSpecificDetails), __recoveryPlanProviderSpecificDetails); + await eventListener.AssertObjectIsValid(nameof(__recoveryPlanProviderSpecificDetails), __recoveryPlanProviderSpecificDetails); + } + } + /// Recovery plan A2A specific details. + public partial interface IRecoveryPlanA2ADetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails + { + /// The name of the extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the extended location.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string PrimaryExtendedLocationName { get; set; } + /// The extended location type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The extended location type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string PrimaryExtendedLocationType { get; } + /// The primary zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The primary zone.", + SerializedName = @"primaryZone", + PossibleTypes = new [] { typeof(string) })] + string PrimaryZone { get; set; } + /// The name of the extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the extended location.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string RecoveryExtendedLocationName { get; set; } + /// The extended location type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The extended location type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string RecoveryExtendedLocationType { get; } + /// The recovery zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery zone.", + SerializedName = @"recoveryZone", + PossibleTypes = new [] { typeof(string) })] + string RecoveryZone { get; set; } + + } + /// Recovery plan A2A specific details. + internal partial interface IRecoveryPlanA2ADetailsInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetailsInternal + { + /// The primary extended location. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation PrimaryExtendedLocation { get; set; } + /// The name of the extended location. + string PrimaryExtendedLocationName { get; set; } + /// The extended location type. + string PrimaryExtendedLocationType { get; set; } + /// The primary zone. + string PrimaryZone { get; set; } + /// The recovery extended location. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation RecoveryExtendedLocation { get; set; } + /// The name of the extended location. + string RecoveryExtendedLocationName { get; set; } + /// The extended location type. + string RecoveryExtendedLocationType { get; set; } + /// The recovery zone. + string RecoveryZone { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2ADetails.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2ADetails.json.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2ADetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2ADetails.json.cs index 803601a71418..6f901c21f3be 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2ADetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2ADetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanA2ADetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2ADetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2ADetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2ADetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2ADetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanA2ADetails(json) : null; } @@ -77,7 +77,9 @@ internal RecoveryPlanA2ADetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - __recoveryPlanProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificDetails(json); + __recoveryPlanProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificDetails(json); + {_primaryExtendedLocation = If( json?.PropertyT("primaryExtendedLocation"), out var __jsonPrimaryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation.FromJson(__jsonPrimaryExtendedLocation) : PrimaryExtendedLocation;} + {_recoveryExtendedLocation = If( json?.PropertyT("recoveryExtendedLocation"), out var __jsonRecoveryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation.FromJson(__jsonRecoveryExtendedLocation) : RecoveryExtendedLocation;} {_primaryZone = If( json?.PropertyT("primaryZone"), out var __jsonPrimaryZone) ? (string)__jsonPrimaryZone : (string)PrimaryZone;} {_recoveryZone = If( json?.PropertyT("recoveryZone"), out var __jsonRecoveryZone) ? (string)__jsonRecoveryZone : (string)RecoveryZone;} AfterFromJson(json); @@ -103,6 +105,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M return container; } __recoveryPlanProviderSpecificDetails?.ToJson(container, serializationMode); + AddIf( null != this._primaryExtendedLocation ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._primaryExtendedLocation.ToJson(null,serializationMode) : null, "primaryExtendedLocation" ,container.Add ); + AddIf( null != this._recoveryExtendedLocation ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._recoveryExtendedLocation.ToJson(null,serializationMode) : null, "recoveryExtendedLocation" ,container.Add ); AddIf( null != (((object)this._primaryZone)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._primaryZone.ToString()) : null, "primaryZone" ,container.Add ); AddIf( null != (((object)this._recoveryZone)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._recoveryZone.ToString()) : null, "recoveryZone" ,container.Add ); AfterToJson(ref container); diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..49102d9f4b00 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AFailoverInput.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan A2A failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanA2AFailoverInputTypeConverter))] + public partial class RecoveryPlanA2AFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanA2AFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanA2AFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanA2AFailoverInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARpRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARpRecoveryPointType.CreateFrom); + } + if (content.Contains("CloudServiceCreationOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInputInternal)this).CloudServiceCreationOption = (string) content.GetValueForProperty("CloudServiceCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInputInternal)this).CloudServiceCreationOption, global::System.Convert.ToString); + } + if (content.Contains("MultiVMSyncPointOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInputInternal)this).MultiVMSyncPointOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMSyncPointOption?) content.GetValueForProperty("MultiVMSyncPointOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInputInternal)this).MultiVMSyncPointOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMSyncPointOption.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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 RecoveryPlanA2AFailoverInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARpRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.A2ARpRecoveryPointType.CreateFrom); + } + if (content.Contains("CloudServiceCreationOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInputInternal)this).CloudServiceCreationOption = (string) content.GetValueForProperty("CloudServiceCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInputInternal)this).CloudServiceCreationOption, global::System.Convert.ToString); + } + if (content.Contains("MultiVMSyncPointOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInputInternal)this).MultiVMSyncPointOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMSyncPointOption?) content.GetValueForProperty("MultiVMSyncPointOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInputInternal)this).MultiVMSyncPointOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMSyncPointOption.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan A2A failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanA2AFailoverInputTypeConverter))] + public partial interface IRecoveryPlanA2AFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AFailoverInput.TypeConverter.cs index 64db3e133c55..c0fd97a1c63e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AFailoverInput.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AFailoverInput.cs index fa95cd47c470..5bb7238477c1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan A2A failover input. public partial class RecoveryPlanA2AFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput(); /// Backing field for property. private string _cloudServiceCreationOption; @@ -28,7 +28,7 @@ public partial class RecoveryPlanA2AFailoverInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.MultiVMSyncPointOption? _multiVMSyncPointOption; @@ -67,7 +67,7 @@ public RecoveryPlanA2AFailoverInput() /// Recovery plan A2A failover input. public partial interface IRecoveryPlanA2AFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput { /// A value indicating whether to use recovery cloud service for TFO or not. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -99,7 +99,7 @@ public partial interface IRecoveryPlanA2AFailoverInput : } /// Recovery plan A2A failover input. internal partial interface IRecoveryPlanA2AFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal { /// A value indicating whether to use recovery cloud service for TFO or not. string CloudServiceCreationOption { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AFailoverInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AFailoverInput.json.cs index ef8c66c4bd22..f63a1a4a21c6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanA2AFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanA2AFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanA2AFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput(json); + __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput(json); {_recoveryPointType = If( json?.PropertyT("recoveryPointType"), out var __jsonRecoveryPointType) ? (string)__jsonRecoveryPointType : (string)RecoveryPointType;} {_cloudServiceCreationOption = If( json?.PropertyT("cloudServiceCreationOption"), out var __jsonCloudServiceCreationOption) ? (string)__jsonCloudServiceCreationOption : (string)CloudServiceCreationOption;} {_multiVMSyncPointOption = If( json?.PropertyT("multiVmSyncPointOption"), out var __jsonMultiVMSyncPointOption) ? (string)__jsonMultiVMSyncPointOption : (string)MultiVMSyncPointOption;} diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AInput.PowerShell.cs new file mode 100644 index 000000000000..c00f6a0c3a3a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AInput.PowerShell.cs @@ -0,0 +1,208 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan A2A input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanA2AInputTypeConverter))] + public partial class RecoveryPlanA2AInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanA2AInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanA2AInput(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.Migrate.Models.Api202301.IRecoveryPlanA2AInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanA2AInput(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.Migrate.Models.Api202301.IRecoveryPlanA2AInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanA2AInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("PrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryZone = (string) content.GetValueForProperty("PrimaryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryZone, global::System.Convert.ToString); + } + if (content.Contains("RecoveryZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryZone = (string) content.GetValueForProperty("RecoveryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryZone, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("PrimaryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationName = (string) content.GetValueForProperty("PrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationType = (string) content.GetValueForProperty("PrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationType, 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 RecoveryPlanA2AInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("PrimaryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryExtendedLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation) content.GetValueForProperty("RecoveryExtendedLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocationTypeConverter.ConvertFrom); + } + if (content.Contains("PrimaryZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryZone = (string) content.GetValueForProperty("PrimaryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryZone, global::System.Convert.ToString); + } + if (content.Contains("RecoveryZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryZone = (string) content.GetValueForProperty("RecoveryZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryZone, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("PrimaryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationName = (string) content.GetValueForProperty("PrimaryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationType = (string) content.GetValueForProperty("PrimaryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).PrimaryExtendedLocationType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationName = (string) content.GetValueForProperty("RecoveryExtendedLocationName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryExtendedLocationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationType = (string) content.GetValueForProperty("RecoveryExtendedLocationType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal)this).RecoveryExtendedLocationType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan A2A input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanA2AInputTypeConverter))] + public partial interface IRecoveryPlanA2AInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AInput.TypeConverter.cs index 00248daa50cf..c39d84fa9fb4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanA2AInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AInput.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AInput.cs new file mode 100644 index 000000000000..4b2d97040018 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AInput.cs @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Recovery plan A2A input. + public partial class RecoveryPlanA2AInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput __recoveryPlanProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificInput(); + + /// Gets the Instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInputInternal)__recoveryPlanProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInputInternal)__recoveryPlanProviderSpecificInput).InstanceType = value ; } + + /// Internal Acessors for PrimaryExtendedLocation + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal.PrimaryExtendedLocation { get => (this._primaryExtendedLocation = this._primaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set { {_primaryExtendedLocation = value;} } } + + /// Internal Acessors for PrimaryExtendedLocationType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal.PrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Type = value; } + + /// Internal Acessors for RecoveryExtendedLocation + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal.RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set { {_recoveryExtendedLocation = value;} } } + + /// Internal Acessors for RecoveryExtendedLocationType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInputInternal.RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation _primaryExtendedLocation; + + /// The primary extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation PrimaryExtendedLocation { get => (this._primaryExtendedLocation = this._primaryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set => this._primaryExtendedLocation = value; } + + /// The name of the extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Name = value ?? null; } + + /// The extended location type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)PrimaryExtendedLocation).Type; } + + /// Backing field for property. + private string _primaryZone; + + /// The primary zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PrimaryZone { get => this._primaryZone; set => this._primaryZone = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation _recoveryExtendedLocation; + + /// The recovery extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation RecoveryExtendedLocation { get => (this._recoveryExtendedLocation = this._recoveryExtendedLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation()); set => this._recoveryExtendedLocation = value; } + + /// The name of the extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryExtendedLocationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Name = value ?? null; } + + /// The extended location type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryExtendedLocationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocationInternal)RecoveryExtendedLocation).Type; } + + /// Backing field for property. + private string _recoveryZone; + + /// The recovery zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoveryZone { get => this._recoveryZone; set => this._recoveryZone = value; } + + /// Creates an new instance. + public RecoveryPlanA2AInput() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__recoveryPlanProviderSpecificInput), __recoveryPlanProviderSpecificInput); + await eventListener.AssertObjectIsValid(nameof(__recoveryPlanProviderSpecificInput), __recoveryPlanProviderSpecificInput); + } + } + /// Recovery plan A2A input. + public partial interface IRecoveryPlanA2AInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput + { + /// The name of the extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the extended location.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string PrimaryExtendedLocationName { get; set; } + /// The extended location type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The extended location type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string PrimaryExtendedLocationType { get; } + /// The primary zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The primary zone.", + SerializedName = @"primaryZone", + PossibleTypes = new [] { typeof(string) })] + string PrimaryZone { get; set; } + /// The name of the extended location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the extended location.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string RecoveryExtendedLocationName { get; set; } + /// The extended location type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The extended location type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string RecoveryExtendedLocationType { get; } + /// The recovery zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery zone.", + SerializedName = @"recoveryZone", + PossibleTypes = new [] { typeof(string) })] + string RecoveryZone { get; set; } + + } + /// Recovery plan A2A input. + internal partial interface IRecoveryPlanA2AInputInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInputInternal + { + /// The primary extended location. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation PrimaryExtendedLocation { get; set; } + /// The name of the extended location. + string PrimaryExtendedLocationName { get; set; } + /// The extended location type. + string PrimaryExtendedLocationType { get; set; } + /// The primary zone. + string PrimaryZone { get; set; } + /// The recovery extended location. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IExtendedLocation RecoveryExtendedLocation { get; set; } + /// The name of the extended location. + string RecoveryExtendedLocationName { get; set; } + /// The extended location type. + string RecoveryExtendedLocationType { get; set; } + /// The recovery zone. + string RecoveryZone { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AInput.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AInput.json.cs index ef5e47988740..18882166731d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanA2AInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanA2AInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanA2AInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanA2AInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanA2AInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanA2AInput(json) : null; } @@ -77,9 +77,9 @@ internal RecoveryPlanA2AInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime { return; } - __recoveryPlanProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificInput(json); - {_primaryExtendedLocation = If( json?.PropertyT("primaryExtendedLocation"), out var __jsonPrimaryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation.FromJson(__jsonPrimaryExtendedLocation) : PrimaryExtendedLocation;} - {_recoveryExtendedLocation = If( json?.PropertyT("recoveryExtendedLocation"), out var __jsonRecoveryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ExtendedLocation.FromJson(__jsonRecoveryExtendedLocation) : RecoveryExtendedLocation;} + __recoveryPlanProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificInput(json); + {_primaryExtendedLocation = If( json?.PropertyT("primaryExtendedLocation"), out var __jsonPrimaryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation.FromJson(__jsonPrimaryExtendedLocation) : PrimaryExtendedLocation;} + {_recoveryExtendedLocation = If( json?.PropertyT("recoveryExtendedLocation"), out var __jsonRecoveryExtendedLocation) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ExtendedLocation.FromJson(__jsonRecoveryExtendedLocation) : RecoveryExtendedLocation;} {_primaryZone = If( json?.PropertyT("primaryZone"), out var __jsonPrimaryZone) ? (string)__jsonPrimaryZone : (string)PrimaryZone;} {_recoveryZone = If( json?.PropertyT("recoveryZone"), out var __jsonRecoveryZone) ? (string)__jsonRecoveryZone : (string)RecoveryZone;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAction.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAction.PowerShell.cs new file mode 100644 index 000000000000..e570f31979b0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAction.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan action details. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanActionTypeConverter))] + public partial class RecoveryPlanAction + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanAction DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanAction(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.Migrate.Models.Api202301.IRecoveryPlanAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanAction(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.Migrate.Models.Api202301.IRecoveryPlanAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanAction(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ActionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).ActionName = (string) content.GetValueForProperty("ActionName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).ActionName, global::System.Convert.ToString); + } + if (content.Contains("FailoverType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).FailoverType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ReplicationProtectedItemOperation[]) content.GetValueForProperty("FailoverType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).FailoverType, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ReplicationProtectedItemOperation.CreateFrom)); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections[]) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).FailoverDirection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom)); + } + if (content.Contains("CustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).CustomDetailInstanceType, 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 RecoveryPlanAction(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).CustomDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails) content.GetValueForProperty("CustomDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).CustomDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ActionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).ActionName = (string) content.GetValueForProperty("ActionName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).ActionName, global::System.Convert.ToString); + } + if (content.Contains("FailoverType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).FailoverType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ReplicationProtectedItemOperation[]) content.GetValueForProperty("FailoverType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).FailoverType, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ReplicationProtectedItemOperation.CreateFrom)); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections[]) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).FailoverDirection, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom)); + } + if (content.Contains("CustomDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).CustomDetailInstanceType = (string) content.GetValueForProperty("CustomDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal)this).CustomDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan action details. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanActionTypeConverter))] + public partial interface IRecoveryPlanAction + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAction.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAction.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAction.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanAction.TypeConverter.cs index 39aea714055e..ead9c93f9c3c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAction.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAction.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanAction ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAction.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAction.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAction.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanAction.cs index c1de039c0361..388e389b1fce 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAction.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAction.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan action details. public partial class RecoveryPlanAction : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal { /// Backing field for property. @@ -21,17 +21,17 @@ public partial class RecoveryPlanAction : public string ActionName { get => this._actionName; set => this._actionName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails _customDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails _customDetail; /// The custom details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionDetails()); set => this._customDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionDetails()); set => this._customDetail = value; } /// /// Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values). /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)CustomDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)CustomDetail).InstanceType = value ; } + public string CustomDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)CustomDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)CustomDetail).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections[] _failoverDirection; @@ -48,7 +48,7 @@ public partial class RecoveryPlanAction : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ReplicationProtectedItemOperation[] FailoverType { get => this._failoverType; set => this._failoverType = value; } /// Internal Acessors for CustomDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionInternal.CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionDetails()); set { {_customDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionInternal.CustomDetail { get => (this._customDetail = this._customDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionDetails()); set { {_customDetail = value;} } } /// Creates an new instance. public RecoveryPlanAction() @@ -103,7 +103,7 @@ internal partial interface IRecoveryPlanActionInternal /// The action name. string ActionName { get; set; } /// The custom details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails CustomDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails CustomDetail { get; set; } /// /// Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values). /// diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAction.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAction.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAction.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanAction.json.cs index efe3d92d0e6d..454e9d803988 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAction.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAction.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanAction partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanAction(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanAction(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.J { return; } - {_customDetail = If( json?.PropertyT("customDetails"), out var __jsonCustomDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionDetails.FromJson(__jsonCustomDetails) : CustomDetail;} + {_customDetail = If( json?.PropertyT("customDetails"), out var __jsonCustomDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionDetails.FromJson(__jsonCustomDetails) : CustomDetail;} {_actionName = If( json?.PropertyT("actionName"), out var __jsonActionName) ? (string)__jsonActionName : (string)ActionName;} {_failoverType = If( json?.PropertyT("failoverTypes"), out var __jsonFailoverTypes) ? If( __jsonFailoverTypes as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Support.ReplicationProtectedItemOperation) (__u is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __t ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ReplicationProtectedItemOperation)(__t.ToString()) : ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ReplicationProtectedItemOperation)""))) ))() : null : FailoverType;} {_failoverDirection = If( json?.PropertyT("failoverDirections"), out var __jsonFailoverDirections) ? If( __jsonFailoverDirections as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) (__p is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __o ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections)(__o.ToString()) : ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections)""))) ))() : null : FailoverDirection;} diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanActionDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanActionDetails.PowerShell.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanActionDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanActionDetails.PowerShell.cs index ece9f0b83652..3f2b658e12af 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanActionDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanActionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class RecoveryPlanActionDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryPlanActionDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryPlanActionDetails(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.Migrate.Models.Api20220501.IRecoveryPlanActionDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPlanActionDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,13 +103,13 @@ internal RecoveryPlanActionDetails(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType, 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. @@ -124,7 +124,7 @@ internal RecoveryPlanActionDetails(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanActionDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanActionDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanActionDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanActionDetails.TypeConverter.cs index 3b30beca6609..e18edeb76b81 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanActionDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanActionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanActionDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanActionDetails.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanActionDetails.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanActionDetails.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanActionDetails.cs index ac3611762887..6ca97023818f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanActionDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanActionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan action custom details. public partial class RecoveryPlanActionDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanActionDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanActionDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanActionDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanActionDetails.json.cs index 87059d7a9082..37a48e9b349c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanActionDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanActionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class RecoveryPlanActionDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails 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.Migrate.Models.Api20220501.IRecoveryPlanActionDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAutomationRunbookActionDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAutomationRunbookActionDetails.PowerShell.cs new file mode 100644 index 000000000000..80d220e0d454 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAutomationRunbookActionDetails.PowerShell.cs @@ -0,0 +1,173 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan Automation runbook action details. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanAutomationRunbookActionDetailsTypeConverter))] + public partial class RecoveryPlanAutomationRunbookActionDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanAutomationRunbookActionDetails(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.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanAutomationRunbookActionDetails(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.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanAutomationRunbookActionDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RunbookId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).RunbookId = (string) content.GetValueForProperty("RunbookId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).RunbookId, global::System.Convert.ToString); + } + if (content.Contains("Timeout")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).Timeout = (string) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).Timeout, global::System.Convert.ToString); + } + if (content.Contains("FabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).FabricLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation) content.GetValueForProperty("FabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).FabricLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType, 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 RecoveryPlanAutomationRunbookActionDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RunbookId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).RunbookId = (string) content.GetValueForProperty("RunbookId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).RunbookId, global::System.Convert.ToString); + } + if (content.Contains("Timeout")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).Timeout = (string) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).Timeout, global::System.Convert.ToString); + } + if (content.Contains("FabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).FabricLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation) content.GetValueForProperty("FabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetailsInternal)this).FabricLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan Automation runbook action details. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanAutomationRunbookActionDetailsTypeConverter))] + public partial interface IRecoveryPlanAutomationRunbookActionDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAutomationRunbookActionDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAutomationRunbookActionDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAutomationRunbookActionDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanAutomationRunbookActionDetails.TypeConverter.cs index afc3707de175..3142d6b99753 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAutomationRunbookActionDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAutomationRunbookActionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAutomationRunbookActionDetails.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAutomationRunbookActionDetails.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAutomationRunbookActionDetails.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanAutomationRunbookActionDetails.cs index f1cc0483acc3..91c74bacca00 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAutomationRunbookActionDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAutomationRunbookActionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan Automation runbook action details. public partial class RecoveryPlanAutomationRunbookActionDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails __recoveryPlanActionDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails __recoveryPlanActionDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionDetails(); /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation _fabricLocation; @@ -30,7 +30,7 @@ public partial class RecoveryPlanAutomationRunbookActionDetails : /// Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values). /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)__recoveryPlanActionDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)__recoveryPlanActionDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)__recoveryPlanActionDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)__recoveryPlanActionDetails).InstanceType = value ; } /// Backing field for property. private string _runbookId; @@ -69,7 +69,7 @@ public RecoveryPlanAutomationRunbookActionDetails() /// Recovery plan Automation runbook action details. public partial interface IRecoveryPlanAutomationRunbookActionDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails { /// The fabric location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -99,7 +99,7 @@ public partial interface IRecoveryPlanAutomationRunbookActionDetails : } /// Recovery plan Automation runbook action details. internal partial interface IRecoveryPlanAutomationRunbookActionDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal { /// The fabric location. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation FabricLocation { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAutomationRunbookActionDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAutomationRunbookActionDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAutomationRunbookActionDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanAutomationRunbookActionDetails.json.cs index 89b73d309634..e2942ef2c596 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanAutomationRunbookActionDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanAutomationRunbookActionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanAutomationRunbookActionDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAutomationRunbookActionDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAutomationRunbookActionDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanAutomationRunbookActionDetails(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanAutomationRunbookActionDetails(Microsoft.Azure.PowerShell.C { return; } - __recoveryPlanActionDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionDetails(json); + __recoveryPlanActionDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionDetails(json); {_runbookId = If( json?.PropertyT("runbookId"), out var __jsonRunbookId) ? (string)__jsonRunbookId : (string)RunbookId;} {_timeout = If( json?.PropertyT("timeout"), out var __jsonTimeout) ? (string)__jsonTimeout : (string)Timeout;} {_fabricLocation = If( json?.PropertyT("fabricLocation"), out var __jsonFabricLocation) ? (string)__jsonFabricLocation : (string)FabricLocation;} diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanCollection.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanCollection.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanCollection.PowerShell.cs index 5522abf1b605..e6b085d04e1c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanCollection.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class RecoveryPlanCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryPlanCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryPlanCollection(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.Migrate.Models.Api20220501.IRecoveryPlanCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPlanCollection(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal RecoveryPlanCollection(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlan[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlan[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollectionInternal)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. @@ -128,11 +128,11 @@ internal RecoveryPlanCollection(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlan[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlan[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollectionInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanCollection.TypeConverter.cs index 1b6dfc282273..7e2b3785342e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanCollection.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanCollection.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanCollection.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanCollection.cs index cb39f6d163da..981fe426b9c6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan collection details. public partial class RecoveryPlanCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class RecoveryPlanCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlan[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlan[] _value; /// The list of recovery plans. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlan[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlan[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public RecoveryPlanCollection() @@ -51,8 +51,8 @@ public partial interface IRecoveryPlanCollection : ReadOnly = false, Description = @"The list of recovery plans.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlan) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlan[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlan) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlan[] Value { get; set; } } /// Recovery plan collection details. @@ -62,7 +62,7 @@ internal partial interface IRecoveryPlanCollectionInternal /// The value of next link. string NextLink { get; set; } /// The list of recovery plans. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlan[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlan[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanCollection.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanCollection.json.cs index bb8a078fdc61..c13c601ade48 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanCollection(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlan) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlan.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IRecoveryPlan) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlan.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroup.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroup.PowerShell.cs new file mode 100644 index 000000000000..dcff4e15a05a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroup.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan group details. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanGroupTypeConverter))] + public partial class RecoveryPlanGroup + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanGroup(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.Migrate.Models.Api202301.IRecoveryPlanGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanGroup(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.Migrate.Models.Api202301.IRecoveryPlanGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanGroup(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("GroupType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).GroupType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanGroupType) content.GetValueForProperty("GroupType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).GroupType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanGroupType.CreateFrom); + } + if (content.Contains("ReplicationProtectedItem")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).ReplicationProtectedItem = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem[]) content.GetValueForProperty("ReplicationProtectedItem",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).ReplicationProtectedItem, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProtectedItemTypeConverter.ConvertFrom)); + } + if (content.Contains("StartGroupAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).StartGroupAction = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction[]) content.GetValueForProperty("StartGroupAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).StartGroupAction, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionTypeConverter.ConvertFrom)); + } + if (content.Contains("EndGroupAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).EndGroupAction = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction[]) content.GetValueForProperty("EndGroupAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).EndGroupAction, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RecoveryPlanGroup(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("GroupType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).GroupType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanGroupType) content.GetValueForProperty("GroupType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).GroupType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanGroupType.CreateFrom); + } + if (content.Contains("ReplicationProtectedItem")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).ReplicationProtectedItem = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem[]) content.GetValueForProperty("ReplicationProtectedItem",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).ReplicationProtectedItem, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProtectedItemTypeConverter.ConvertFrom)); + } + if (content.Contains("StartGroupAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).StartGroupAction = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction[]) content.GetValueForProperty("StartGroupAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).StartGroupAction, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionTypeConverter.ConvertFrom)); + } + if (content.Contains("EndGroupAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).EndGroupAction = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction[]) content.GetValueForProperty("EndGroupAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal)this).EndGroupAction, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan group details. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanGroupTypeConverter))] + public partial interface IRecoveryPlanGroup + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroup.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroup.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroup.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroup.TypeConverter.cs index 3ab81604c64d..03dd2c248677 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroup.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroup.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanGroup ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroup.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroup.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroup.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroup.cs index c53cf4dea71c..57d761bd112c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroup.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroup.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan group details. public partial class RecoveryPlanGroup : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction[] _endGroupAction; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction[] _endGroupAction; /// The end group actions. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction[] EndGroupAction { get => this._endGroupAction; set => this._endGroupAction = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction[] EndGroupAction { get => this._endGroupAction; set => this._endGroupAction = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanGroupType _groupType; @@ -28,18 +28,18 @@ public partial class RecoveryPlanGroup : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanGroupType GroupType { get => this._groupType; set => this._groupType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem[] _replicationProtectedItem; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem[] _replicationProtectedItem; /// The list of protected items. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem[] ReplicationProtectedItem { get => this._replicationProtectedItem; set => this._replicationProtectedItem = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem[] ReplicationProtectedItem { get => this._replicationProtectedItem; set => this._replicationProtectedItem = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction[] _startGroupAction; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction[] _startGroupAction; /// The start group actions. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction[] StartGroupAction { get => this._startGroupAction; set => this._startGroupAction = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction[] StartGroupAction { get => this._startGroupAction; set => this._startGroupAction = value; } /// Creates an new instance. public RecoveryPlanGroup() @@ -57,8 +57,8 @@ public partial interface IRecoveryPlanGroup : ReadOnly = false, Description = @"The end group actions.", SerializedName = @"endGroupActions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction[] EndGroupAction { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction[] EndGroupAction { get; set; } /// The group type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, @@ -73,16 +73,16 @@ public partial interface IRecoveryPlanGroup : ReadOnly = false, Description = @"The list of protected items.", SerializedName = @"replicationProtectedItems", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem[] ReplicationProtectedItem { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem[] ReplicationProtectedItem { get; set; } /// The start group actions. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The start group actions.", SerializedName = @"startGroupActions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction[] StartGroupAction { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction[] StartGroupAction { get; set; } } /// Recovery plan group details. @@ -90,13 +90,13 @@ internal partial interface IRecoveryPlanGroupInternal { /// The end group actions. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction[] EndGroupAction { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction[] EndGroupAction { get; set; } /// The group type. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanGroupType GroupType { get; set; } /// The list of protected items. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem[] ReplicationProtectedItem { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem[] ReplicationProtectedItem { get; set; } /// The start group actions. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction[] StartGroupAction { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction[] StartGroupAction { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroup.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroup.json.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroup.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroup.json.cs index 56aa59d9c15a..3cb76ce3697a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroup.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroup.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanGroup partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanGroup(json) : null; } @@ -78,9 +78,9 @@ internal RecoveryPlanGroup(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js return; } {_groupType = If( json?.PropertyT("groupType"), out var __jsonGroupType) ? (string)__jsonGroupType : (string)GroupType;} - {_replicationProtectedItem = If( json?.PropertyT("replicationProtectedItems"), out var __jsonReplicationProtectedItems) ? If( __jsonReplicationProtectedItems as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProtectedItem.FromJson(__u) )) ))() : null : ReplicationProtectedItem;} - {_startGroupAction = If( json?.PropertyT("startGroupActions"), out var __jsonStartGroupActions) ? If( __jsonStartGroupActions as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanAction.FromJson(__p) )) ))() : null : StartGroupAction;} - {_endGroupAction = If( json?.PropertyT("endGroupActions"), out var __jsonEndGroupActions) ? If( __jsonEndGroupActions as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanAction) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanAction.FromJson(__k) )) ))() : null : EndGroupAction;} + {_replicationProtectedItem = If( json?.PropertyT("replicationProtectedItems"), out var __jsonReplicationProtectedItems) ? If( __jsonReplicationProtectedItems as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IRecoveryPlanProtectedItem) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProtectedItem.FromJson(__u) )) ))() : null : ReplicationProtectedItem;} + {_startGroupAction = If( json?.PropertyT("startGroupActions"), out var __jsonStartGroupActions) ? If( __jsonStartGroupActions as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanAction.FromJson(__p) )) ))() : null : StartGroupAction;} + {_endGroupAction = If( json?.PropertyT("endGroupActions"), out var __jsonEndGroupActions) ? If( __jsonEndGroupActions as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanAction) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanAction.FromJson(__k) )) ))() : null : EndGroupAction;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroupTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroupTaskDetails.PowerShell.cs new file mode 100644 index 000000000000..5715a0f74419 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroupTaskDetails.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class represents the recovery plan group task. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanGroupTaskDetailsTypeConverter))] + public partial class RecoveryPlanGroupTaskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanGroupTaskDetails(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.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanGroupTaskDetails(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.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanGroupTaskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("GroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId = (string) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId, global::System.Convert.ToString); + } + if (content.Contains("RpGroupType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType = (string) content.GetValueForProperty("RpGroupType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("ChildTask")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTaskTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RecoveryPlanGroupTaskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("GroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId = (string) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId, global::System.Convert.ToString); + } + if (content.Contains("RpGroupType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType = (string) content.GetValueForProperty("RpGroupType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("ChildTask")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTaskTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class represents the recovery plan group task. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanGroupTaskDetailsTypeConverter))] + public partial interface IRecoveryPlanGroupTaskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroupTaskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroupTaskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroupTaskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroupTaskDetails.TypeConverter.cs index f9992e31ea0f..7b8c46ac4e2e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroupTaskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroupTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroupTaskDetails.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroupTaskDetails.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroupTaskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroupTaskDetails.cs index c7a1a4c0e03c..f275d2c9dc35 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroupTaskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroupTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// This class represents the recovery plan group task. public partial class RecoveryPlanGroupTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails __groupTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.GroupTaskDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails __groupTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.GroupTaskDetails(); /// The child tasks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IAsrTask[] ChildTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)__groupTaskDetails).ChildTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)__groupTaskDetails).ChildTask = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] ChildTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)__groupTaskDetails).ChildTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)__groupTaskDetails).ChildTask = value ?? null /* arrayOf */; } /// Backing field for property. private string _groupId; @@ -32,7 +32,7 @@ public partial class RecoveryPlanGroupTaskDetails : /// The type of task details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)__groupTaskDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal)__groupTaskDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)__groupTaskDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)__groupTaskDetails).InstanceType = value ; } /// Backing field for property. private string _name; @@ -69,7 +69,7 @@ public RecoveryPlanGroupTaskDetails() /// This class represents the recovery plan group task. public partial interface IRecoveryPlanGroupTaskDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetails { /// The group identifier. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -99,7 +99,7 @@ public partial interface IRecoveryPlanGroupTaskDetails : } /// This class represents the recovery plan group task. internal partial interface IRecoveryPlanGroupTaskDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IGroupTaskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal { /// The group identifier. string GroupId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroupTaskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroupTaskDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroupTaskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroupTaskDetails.json.cs index 9317f2355085..fdce8cbb373d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanGroupTaskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanGroupTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class RecoveryPlanGroupTaskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetails interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetails 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.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroupTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { @@ -92,7 +92,7 @@ internal RecoveryPlanGroupTaskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - __groupTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.GroupTaskDetails(json); + __groupTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.GroupTaskDetails(json); {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_groupId = If( json?.PropertyT("groupId"), out var __jsonGroupId) ? (string)__jsonGroupId : (string)GroupId;} {_rpGroupType = If( json?.PropertyT("rpGroupType"), out var __jsonRpGroupType) ? (string)__jsonRpGroupType : (string)RpGroupType;} diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailbackInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailbackInput.PowerShell.cs new file mode 100644 index 000000000000..ca31ec457b39 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailbackInput.PowerShell.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan HVR Azure failback input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanHyperVReplicaAzureFailbackInputTypeConverter))] + public partial class RecoveryPlanHyperVReplicaAzureFailbackInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanHyperVReplicaAzureFailbackInput(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.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanHyperVReplicaAzureFailbackInput(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.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanHyperVReplicaAzureFailbackInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DataSyncOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).DataSyncOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DataSyncStatus) content.GetValueForProperty("DataSyncOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).DataSyncOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DataSyncStatus.CreateFrom); + } + if (content.Contains("RecoveryVMCreationOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).RecoveryVMCreationOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AlternateLocationRecoveryOption) content.GetValueForProperty("RecoveryVMCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).RecoveryVMCreationOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AlternateLocationRecoveryOption.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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 RecoveryPlanHyperVReplicaAzureFailbackInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DataSyncOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).DataSyncOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DataSyncStatus) content.GetValueForProperty("DataSyncOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).DataSyncOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DataSyncStatus.CreateFrom); + } + if (content.Contains("RecoveryVMCreationOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).RecoveryVMCreationOption = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AlternateLocationRecoveryOption) content.GetValueForProperty("RecoveryVMCreationOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal)this).RecoveryVMCreationOption, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AlternateLocationRecoveryOption.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan HVR Azure failback input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanHyperVReplicaAzureFailbackInputTypeConverter))] + public partial interface IRecoveryPlanHyperVReplicaAzureFailbackInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailbackInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailbackInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailbackInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailbackInput.TypeConverter.cs index 83c31a29f98c..0e3994a750fc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailbackInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailbackInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailbackInput.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailbackInput.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailbackInput.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailbackInput.cs index c7f27115dbde..4e17b28e138f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailbackInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailbackInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan HVR Azure failback input. public partial class RecoveryPlanHyperVReplicaAzureFailbackInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput(); /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DataSyncStatus _dataSyncOption; @@ -28,7 +28,7 @@ public partial class RecoveryPlanHyperVReplicaAzureFailbackInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AlternateLocationRecoveryOption _recoveryVMCreationOption; @@ -60,7 +60,7 @@ public RecoveryPlanHyperVReplicaAzureFailbackInput() /// Recovery plan HVR Azure failback input. public partial interface IRecoveryPlanHyperVReplicaAzureFailbackInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput { /// The data sync option. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -82,7 +82,7 @@ public partial interface IRecoveryPlanHyperVReplicaAzureFailbackInput : } /// Recovery plan HVR Azure failback input. internal partial interface IRecoveryPlanHyperVReplicaAzureFailbackInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal { /// The data sync option. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DataSyncStatus DataSyncOption { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailbackInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailbackInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailbackInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailbackInput.json.cs index 74b1a53a4647..f8e78c7f91bf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailbackInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailbackInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanHyperVReplicaAzureFailbackInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailbackInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailbackInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanHyperVReplicaAzureFailbackInput(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanHyperVReplicaAzureFailbackInput(Microsoft.Azure.PowerShell. { return; } - __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput(json); + __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput(json); {_dataSyncOption = If( json?.PropertyT("dataSyncOption"), out var __jsonDataSyncOption) ? (string)__jsonDataSyncOption : (string)DataSyncOption;} {_recoveryVMCreationOption = If( json?.PropertyT("recoveryVmCreationOption"), out var __jsonRecoveryVMCreationOption) ? (string)__jsonRecoveryVMCreationOption : (string)RecoveryVMCreationOption;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..5dd9a8f0cecd --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailoverInput.PowerShell.cs @@ -0,0 +1,173 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan HVR Azure failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanHyperVReplicaAzureFailoverInputTypeConverter))] + public partial class RecoveryPlanHyperVReplicaAzureFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanHyperVReplicaAzureFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanHyperVReplicaAzureFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanHyperVReplicaAzureFailoverInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("SecondaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HyperVReplicaAzureRpRecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HyperVReplicaAzureRpRecoveryPointType.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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 RecoveryPlanHyperVReplicaAzureFailoverInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PrimaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).PrimaryKekCertificatePfx = (string) content.GetValueForProperty("PrimaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).PrimaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("SecondaryKekCertificatePfx")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).SecondaryKekCertificatePfx = (string) content.GetValueForProperty("SecondaryKekCertificatePfx",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).SecondaryKekCertificatePfx, global::System.Convert.ToString); + } + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HyperVReplicaAzureRpRecoveryPointType?) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.HyperVReplicaAzureRpRecoveryPointType.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan HVR Azure failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanHyperVReplicaAzureFailoverInputTypeConverter))] + public partial interface IRecoveryPlanHyperVReplicaAzureFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailoverInput.TypeConverter.cs index 2016e3c2a9b7..ba848134afd7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailoverInput.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailoverInput.cs index 0194a89c1f75..5d535beefec3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan HVR Azure failover input. public partial class RecoveryPlanHyperVReplicaAzureFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType = value ; } /// Backing field for property. private string _primaryKekCertificatePfx; @@ -67,7 +67,7 @@ public RecoveryPlanHyperVReplicaAzureFailoverInput() /// Recovery plan HVR Azure failover input. public partial interface IRecoveryPlanHyperVReplicaAzureFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput { /// The primary KEK certificate PFX. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -97,7 +97,7 @@ public partial interface IRecoveryPlanHyperVReplicaAzureFailoverInput : } /// Recovery plan HVR Azure failover input. internal partial interface IRecoveryPlanHyperVReplicaAzureFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal { /// The primary KEK certificate PFX. string PrimaryKekCertificatePfx { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailoverInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailoverInput.json.cs index 2e1dc176446a..783e1808c4e1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanHyperVReplicaAzureFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanHyperVReplicaAzureFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanHyperVReplicaAzureFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanHyperVReplicaAzureFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanHyperVReplicaAzureFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanHyperVReplicaAzureFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanHyperVReplicaAzureFailoverInput(Microsoft.Azure.PowerShell. { return; } - __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput(json); + __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput(json); {_primaryKekCertificatePfx = If( json?.PropertyT("primaryKekCertificatePfx"), out var __jsonPrimaryKekCertificatePfx) ? (string)__jsonPrimaryKekCertificatePfx : (string)PrimaryKekCertificatePfx;} {_secondaryKekCertificatePfx = If( json?.PropertyT("secondaryKekCertificatePfx"), out var __jsonSecondaryKekCertificatePfx) ? (string)__jsonSecondaryKekCertificatePfx : (string)SecondaryKekCertificatePfx;} {_recoveryPointType = If( json?.PropertyT("recoveryPointType"), out var __jsonRecoveryPointType) ? (string)__jsonRecoveryPointType : (string)RecoveryPointType;} diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageAzureV2FailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageAzureV2FailoverInput.PowerShell.cs new file mode 100644 index 000000000000..8b2b1d3d06dc --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageAzureV2FailoverInput.PowerShell.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan InMageAzureV2 failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanInMageAzureV2FailoverInputTypeConverter))] + public partial class RecoveryPlanInMageAzureV2FailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanInMageAzureV2FailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanInMageAzureV2FailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanInMageAzureV2FailoverInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageV2RpRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageV2RpRecoveryPointType.CreateFrom); + } + if (content.Contains("UseMultiVMSyncPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).UseMultiVMSyncPoint = (string) content.GetValueForProperty("UseMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).UseMultiVMSyncPoint, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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 RecoveryPlanInMageAzureV2FailoverInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageV2RpRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageV2RpRecoveryPointType.CreateFrom); + } + if (content.Contains("UseMultiVMSyncPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).UseMultiVMSyncPoint = (string) content.GetValueForProperty("UseMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInputInternal)this).UseMultiVMSyncPoint, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan InMageAzureV2 failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanInMageAzureV2FailoverInputTypeConverter))] + public partial interface IRecoveryPlanInMageAzureV2FailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageAzureV2FailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageAzureV2FailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageAzureV2FailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageAzureV2FailoverInput.TypeConverter.cs index 1f63cc0e50b1..5d3adecbd937 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageAzureV2FailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageAzureV2FailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageAzureV2FailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageAzureV2FailoverInput.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageAzureV2FailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageAzureV2FailoverInput.cs index 03974251a655..4f073895d42b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageAzureV2FailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageAzureV2FailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan InMageAzureV2 failover input. public partial class RecoveryPlanInMageAzureV2FailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageV2RpRecoveryPointType _recoveryPointType; @@ -60,7 +60,7 @@ public RecoveryPlanInMageAzureV2FailoverInput() /// Recovery plan InMageAzureV2 failover input. public partial interface IRecoveryPlanInMageAzureV2FailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput { /// The recovery point type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -84,7 +84,7 @@ public partial interface IRecoveryPlanInMageAzureV2FailoverInput : } /// Recovery plan InMageAzureV2 failover input. internal partial interface IRecoveryPlanInMageAzureV2FailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal { /// The recovery point type. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageV2RpRecoveryPointType RecoveryPointType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageAzureV2FailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageAzureV2FailoverInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageAzureV2FailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageAzureV2FailoverInput.json.cs index 4f1b2c69e016..48fb03abb8cd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageAzureV2FailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageAzureV2FailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanInMageAzureV2FailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageAzureV2FailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageAzureV2FailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanInMageAzureV2FailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanInMageAzureV2FailoverInput(Microsoft.Azure.PowerShell.Cmdle { return; } - __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput(json); + __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput(json); {_recoveryPointType = If( json?.PropertyT("recoveryPointType"), out var __jsonRecoveryPointType) ? (string)__jsonRecoveryPointType : (string)RecoveryPointType;} {_useMultiVMSyncPoint = If( json?.PropertyT("useMultiVmSyncPoint"), out var __jsonUseMultiVMSyncPoint) ? (string)__jsonUseMultiVMSyncPoint : (string)UseMultiVMSyncPoint;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageFailoverInput.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageFailoverInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageFailoverInput.PowerShell.cs index 53895eca24b3..1cc2c87eb8ab 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageFailoverInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RecoveryPlanInMageFailoverInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryPlanInMageFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryPlanInMageFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanInMageFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPlanInMageFailoverInput(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,17 +105,17 @@ internal RecoveryPlanInMageFailoverInput(global::System.Collections.IDictionary // actually deserialize if (content.Contains("RecoveryPointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RpInMageRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RpInMageRecoveryPointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RpInMageRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RpInMageRecoveryPointType.CreateFrom); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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. @@ -130,11 +130,11 @@ internal RecoveryPlanInMageFailoverInput(global::System.Management.Automation.PS // actually deserialize if (content.Contains("RecoveryPointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RpInMageRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RpInMageRecoveryPointType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RpInMageRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RpInMageRecoveryPointType.CreateFrom); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageFailoverInput.TypeConverter.cs index 156d4c2a00da..02db8b20035c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanInMageFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageFailoverInput.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageFailoverInput.cs index 385f12917f19..3518796ba1ba 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan InMage failover input. public partial class RecoveryPlanInMageFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RpInMageRecoveryPointType _recoveryPointType; @@ -51,7 +51,7 @@ public RecoveryPlanInMageFailoverInput() /// Recovery plan InMage failover input. public partial interface IRecoveryPlanInMageFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput { /// The recovery point type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IRecoveryPlanInMageFailoverInput : } /// Recovery plan InMage failover input. internal partial interface IRecoveryPlanInMageFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal { /// The recovery point type. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RpInMageRecoveryPointType RecoveryPointType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageFailoverInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageFailoverInput.json.cs index 4ba03086ede7..59fe33dff642 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanInMageFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanInMageFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanInMageFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput(json); + __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput(json); {_recoveryPointType = If( json?.PropertyT("recoveryPointType"), out var __jsonRecoveryPointType) ? (string)__jsonRecoveryPointType : (string)RecoveryPointType;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailbackFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailbackFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..c38acb27fdb5 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailbackFailoverInput.PowerShell.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan InMageRcmFailback failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanInMageRcmFailbackFailoverInputTypeConverter))] + public partial class RecoveryPlanInMageRcmFailbackFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanInMageRcmFailbackFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanInMageRcmFailbackFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanInMageRcmFailbackFailoverInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType.CreateFrom); + } + if (content.Contains("UseMultiVMSyncPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).UseMultiVMSyncPoint = (string) content.GetValueForProperty("UseMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).UseMultiVMSyncPoint, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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 RecoveryPlanInMageRcmFailbackFailoverInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType.CreateFrom); + } + if (content.Contains("UseMultiVMSyncPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).UseMultiVMSyncPoint = (string) content.GetValueForProperty("UseMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInputInternal)this).UseMultiVMSyncPoint, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan InMageRcmFailback failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanInMageRcmFailbackFailoverInputTypeConverter))] + public partial interface IRecoveryPlanInMageRcmFailbackFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailbackFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailbackFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailbackFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailbackFailoverInput.TypeConverter.cs index e3c1ad725fb6..3429b554c26c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailbackFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailbackFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailbackFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailbackFailoverInput.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailbackFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailbackFailoverInput.cs index eaf34133f984..0f9837d41655 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailbackFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailbackFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan InMageRcmFailback failover input. public partial class RecoveryPlanInMageRcmFailbackFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType _recoveryPointType; @@ -62,7 +62,7 @@ public RecoveryPlanInMageRcmFailbackFailoverInput() /// Recovery plan InMageRcmFailback failover input. public partial interface IRecoveryPlanInMageRcmFailbackFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput { /// The recovery point type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -86,7 +86,7 @@ public partial interface IRecoveryPlanInMageRcmFailbackFailoverInput : } /// Recovery plan InMageRcmFailback failover input. internal partial interface IRecoveryPlanInMageRcmFailbackFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal { /// The recovery point type. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.InMageRcmFailbackRecoveryPointType RecoveryPointType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailbackFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailbackFailoverInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailbackFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailbackFailoverInput.json.cs index 28a148de4519..eaf5a9b6cc6f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailbackFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailbackFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanInMageRcmFailbackFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailbackFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailbackFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanInMageRcmFailbackFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanInMageRcmFailbackFailoverInput(Microsoft.Azure.PowerShell.C { return; } - __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput(json); + __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput(json); {_recoveryPointType = If( json?.PropertyT("recoveryPointType"), out var __jsonRecoveryPointType) ? (string)__jsonRecoveryPointType : (string)RecoveryPointType;} {_useMultiVMSyncPoint = If( json?.PropertyT("useMultiVmSyncPoint"), out var __jsonUseMultiVMSyncPoint) ? (string)__jsonUseMultiVMSyncPoint : (string)UseMultiVMSyncPoint;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..c5653976fafd --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailoverInput.PowerShell.cs @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan InMageRcm failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanInMageRcmFailoverInputTypeConverter))] + public partial class RecoveryPlanInMageRcmFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanInMageRcmFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanInMageRcmFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanInMageRcmFailoverInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanPointType.CreateFrom); + } + if (content.Contains("UseMultiVMSyncPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInputInternal)this).UseMultiVMSyncPoint = (string) content.GetValueForProperty("UseMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInputInternal)this).UseMultiVMSyncPoint, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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 RecoveryPlanInMageRcmFailoverInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInputInternal)this).RecoveryPointType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanPointType) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInputInternal)this).RecoveryPointType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanPointType.CreateFrom); + } + if (content.Contains("UseMultiVMSyncPoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInputInternal)this).UseMultiVMSyncPoint = (string) content.GetValueForProperty("UseMultiVMSyncPoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInputInternal)this).UseMultiVMSyncPoint, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan InMageRcm failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanInMageRcmFailoverInputTypeConverter))] + public partial interface IRecoveryPlanInMageRcmFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailoverInput.TypeConverter.cs index 9d7703871ea1..62336445f898 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailoverInput.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailoverInput.cs index 92f5d9b9f345..b6efd0e7b1f4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan InMageRcm failover input. public partial class RecoveryPlanInMageRcmFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)__recoveryPlanProviderSpecificFailoverInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanPointType _recoveryPointType; @@ -60,7 +60,7 @@ public RecoveryPlanInMageRcmFailoverInput() /// Recovery plan InMageRcm failover input. public partial interface IRecoveryPlanInMageRcmFailoverInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput { /// The recovery point type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -84,7 +84,7 @@ public partial interface IRecoveryPlanInMageRcmFailoverInput : } /// Recovery plan InMageRcm failover input. internal partial interface IRecoveryPlanInMageRcmFailoverInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal { /// The recovery point type. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanPointType RecoveryPointType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailoverInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailoverInput.json.cs index 7c02bc2643a7..cdb08dec2b68 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanInMageRcmFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanInMageRcmFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanInMageRcmFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanInMageRcmFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanInMageRcmFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanInMageRcmFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanInMageRcmFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.M { return; } - __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput(json); + __recoveryPlanProviderSpecificFailoverInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput(json); {_recoveryPointType = If( json?.PropertyT("recoveryPointType"), out var __jsonRecoveryPointType) ? (string)__jsonRecoveryPointType : (string)RecoveryPointType;} {_useMultiVMSyncPoint = If( json?.PropertyT("useMultiVmSyncPoint"), out var __jsonUseMultiVMSyncPoint) ? (string)__jsonUseMultiVMSyncPoint : (string)UseMultiVMSyncPoint;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanManualActionDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanManualActionDetails.PowerShell.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanManualActionDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanManualActionDetails.PowerShell.cs index d214fcede83b..354d2c6e7d1e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanManualActionDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanManualActionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RecoveryPlanManualActionDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryPlanManualActionDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanManualActionDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryPlanManualActionDetails(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.Migrate.Models.Api20220501.IRecoveryPlanManualActionDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanManualActionDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPlanManualActionDetails(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanManualActionDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanManualActionDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,17 +105,17 @@ internal RecoveryPlanManualActionDetails(global::System.Collections.IDictionary // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanManualActionDetailsInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanManualActionDetailsInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanManualActionDetailsInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanManualActionDetailsInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType, 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. @@ -130,11 +130,11 @@ internal RecoveryPlanManualActionDetails(global::System.Management.Automation.PS // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanManualActionDetailsInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanManualActionDetailsInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanManualActionDetailsInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanManualActionDetailsInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanManualActionDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanManualActionDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanManualActionDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanManualActionDetails.TypeConverter.cs index 2b19fbeec13d..86ee96b49561 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanManualActionDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanManualActionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanManualActionDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanManualActionDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanManualActionDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanManualActionDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanManualActionDetails.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanManualActionDetails.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanManualActionDetails.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanManualActionDetails.cs index 73ae921330de..d49558fe5887 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanManualActionDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanManualActionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan manual action details. public partial class RecoveryPlanManualActionDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanManualActionDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanManualActionDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanManualActionDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanManualActionDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails __recoveryPlanActionDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails __recoveryPlanActionDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionDetails(); /// Backing field for property. private string _description; @@ -30,7 +30,7 @@ public partial class RecoveryPlanManualActionDetails : /// Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values). /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)__recoveryPlanActionDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)__recoveryPlanActionDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)__recoveryPlanActionDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)__recoveryPlanActionDetails).InstanceType = value ; } /// Creates an new instance. public RecoveryPlanManualActionDetails() @@ -53,7 +53,7 @@ public RecoveryPlanManualActionDetails() /// Recovery plan manual action details. public partial interface IRecoveryPlanManualActionDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails { /// The manual action description. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -67,7 +67,7 @@ public partial interface IRecoveryPlanManualActionDetails : } /// Recovery plan manual action details. internal partial interface IRecoveryPlanManualActionDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal { /// The manual action description. string Description { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanManualActionDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanManualActionDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanManualActionDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanManualActionDetails.json.cs index 7c73db254e5c..fb645735edd5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanManualActionDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanManualActionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanManualActionDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanManualActionDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanManualActionDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanManualActionDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanManualActionDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanManualActionDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanManualActionDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanManualActionDetails(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanManualActionDetails(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - __recoveryPlanActionDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionDetails(json); + __recoveryPlanActionDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionDetails(json); {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..b9c2321ac9c1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInput.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan planned failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanPlannedFailoverInputTypeConverter))] + public partial class RecoveryPlanPlannedFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanPlannedFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanPlannedFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanPlannedFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanPlannedFailoverInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInputTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RecoveryPlanPlannedFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanPlannedFailoverInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan planned failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanPlannedFailoverInputTypeConverter))] + public partial interface IRecoveryPlanPlannedFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInput.TypeConverter.cs index 8762a117cd99..b2fbbe4879d1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInput.cs new file mode 100644 index 000000000000..f51b93555057 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInput.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Recovery plan planned failover input. + public partial class RecoveryPlanPlannedFailoverInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputInternal + { + + /// The failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputPropertiesInternal)Property).FailoverDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputPropertiesInternal)Property).FailoverDirection = value ; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanPlannedFailoverInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties _property; + + /// The recovery plan planned failover input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanPlannedFailoverInputProperties()); set => this._property = value; } + + /// The provider specific properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* arrayOf */; } + + /// Creates an new instance. + public RecoveryPlanPlannedFailoverInput() + { + + } + } + /// Recovery plan planned failover input. + public partial interface IRecoveryPlanPlannedFailoverInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The failover direction.", + SerializedName = @"failoverDirection", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get; set; } + /// The provider specific properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The provider specific properties.", + SerializedName = @"providerSpecificDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } + + } + /// Recovery plan planned failover input. + internal partial interface IRecoveryPlanPlannedFailoverInputInternal + + { + /// The failover direction. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get; set; } + /// The recovery plan planned failover input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties Property { get; set; } + /// The provider specific properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInput.json.cs index 6844ef937421..655cfd51f558 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanPlannedFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanPlannedFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanPlannedFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.Mig { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanPlannedFailoverInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanPlannedFailoverInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInputProperties.PowerShell.cs new file mode 100644 index 000000000000..44f0c45d9e0d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInputProperties.PowerShell.cs @@ -0,0 +1,157 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan planned failover input properties. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanPlannedFailoverInputPropertiesTypeConverter))] + public partial class RecoveryPlanPlannedFailoverInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanPlannedFailoverInputProperties(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.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanPlannedFailoverInputProperties(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.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanPlannedFailoverInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInputTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RecoveryPlanPlannedFailoverInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan planned failover input properties. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanPlannedFailoverInputPropertiesTypeConverter))] + public partial interface IRecoveryPlanPlannedFailoverInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInputProperties.TypeConverter.cs index cab577ff1e92..8b9258481946 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInputProperties.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInputProperties.cs index 1cbec620f810..17dbd095b7f1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan planned failover input properties. public partial class RecoveryPlanPlannedFailoverInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputPropertiesInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class RecoveryPlanPlannedFailoverInputProperties : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get => this._failoverDirection; set => this._failoverDirection = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] _providerSpecificDetail; /// The provider specific properties. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get => this._providerSpecificDetail; set => this._providerSpecificDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get => this._providerSpecificDetail; set => this._providerSpecificDetail = value; } /// /// Creates an new instance. @@ -53,8 +53,8 @@ public partial interface IRecoveryPlanPlannedFailoverInputProperties : ReadOnly = false, Description = @"The provider specific properties.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } } /// Recovery plan planned failover input properties. @@ -64,7 +64,7 @@ internal partial interface IRecoveryPlanPlannedFailoverInputPropertiesInternal /// The failover direction. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get; set; } /// The provider specific properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInputProperties.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInputProperties.json.cs index 5c9c14e9769b..cb34f8c1e2b0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanPlannedFailoverInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanPlannedFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanPlannedFailoverInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPlannedFailoverInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPlannedFailoverInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanPlannedFailoverInputProperties(json) : null; } @@ -78,7 +78,7 @@ internal RecoveryPlanPlannedFailoverInputProperties(Microsoft.Azure.PowerShell.C return; } {_failoverDirection = If( json?.PropertyT("failoverDirection"), out var __jsonFailoverDirection) ? (string)__jsonFailoverDirection : (string)FailoverDirection;} - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? If( __jsonProviderSpecificDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput.FromJson(__u) )) ))() : null : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? If( __jsonProviderSpecificDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput.FromJson(__u) )) ))() : null : ProviderSpecificDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProperties.PowerShell.cs new file mode 100644 index 000000000000..932ab374ac82 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProperties.PowerShell.cs @@ -0,0 +1,288 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan properties. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanPropertiesTypeConverter))] + public partial class RecoveryPlanProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanProperties(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.Migrate.Models.Api202301.IRecoveryPlanProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanProperties(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.Migrate.Models.Api202301.IRecoveryPlanProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CurrentScenario")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).PrimaryFabricId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).RecoveryFabricId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FailoverDeploymentModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).FailoverDeploymentModel = (string) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).FailoverDeploymentModel, global::System.Convert.ToString); + } + if (content.Contains("ReplicationProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).ReplicationProvider = (string[]) content.GetValueForProperty("ReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).ReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("AllowedOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("LastPlannedFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).LastPlannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastPlannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).LastPlannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastUnplannedFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).LastUnplannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastUnplannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).LastUnplannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastTestFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).LastTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).LastTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("CurrentScenarioStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatus = (string) content.GetValueForProperty("CurrentScenarioStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatus, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioStatusDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatusDescription = (string) content.GetValueForProperty("CurrentScenarioStatusDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatusDescription, global::System.Convert.ToString); + } + if (content.Contains("Group")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTypeConverter.ConvertFrom)); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("CurrentScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioName, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RecoveryPlanProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CurrentScenario")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).PrimaryFabricId = (string) content.GetValueForProperty("PrimaryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).PrimaryFabricId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).RecoveryFabricId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("FailoverDeploymentModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).FailoverDeploymentModel = (string) content.GetValueForProperty("FailoverDeploymentModel",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).FailoverDeploymentModel, global::System.Convert.ToString); + } + if (content.Contains("ReplicationProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).ReplicationProvider = (string[]) content.GetValueForProperty("ReplicationProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).ReplicationProvider, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("AllowedOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("LastPlannedFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).LastPlannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastPlannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).LastPlannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastUnplannedFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).LastUnplannedFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastUnplannedFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).LastUnplannedFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastTestFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).LastTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).LastTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("CurrentScenarioStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatus = (string) content.GetValueForProperty("CurrentScenarioStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatus, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioStatusDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatusDescription = (string) content.GetValueForProperty("CurrentScenarioStatusDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStatusDescription, global::System.Convert.ToString); + } + if (content.Contains("Group")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTypeConverter.ConvertFrom)); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("CurrentScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioName, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan properties. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanPropertiesTypeConverter))] + public partial interface IRecoveryPlanProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProperties.TypeConverter.cs index 1bf189b86399..0c739fa0f88d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProperties.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProperties.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProperties.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProperties.cs index 992ae0ee5b54..61c811f5a1b7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan properties. public partial class RecoveryPlanProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal { /// Backing field for property. @@ -21,23 +21,23 @@ public partial class RecoveryPlanProperties : public string[] AllowedOperation { get => this._allowedOperation; set => this._allowedOperation = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails _currentScenario; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails _currentScenario; /// The current scenario details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails CurrentScenario { get => (this._currentScenario = this._currentScenario ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetails()); set => this._currentScenario = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails CurrentScenario { get => (this._currentScenario = this._currentScenario ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetails()); set => this._currentScenario = value; } /// ARM Id of the job being executed. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CurrentScenarioJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)CurrentScenario).JobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)CurrentScenario).JobId = value ?? null; } + public string CurrentScenarioJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)CurrentScenario).JobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)CurrentScenario).JobId = value ?? null; } /// Scenario name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CurrentScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)CurrentScenario).ScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)CurrentScenario).ScenarioName = value ?? null; } + public string CurrentScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)CurrentScenario).ScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)CurrentScenario).ScenarioName = value ?? null; } /// Start time of the workflow. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentScenarioStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)CurrentScenario).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)CurrentScenario).StartTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? CurrentScenarioStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)CurrentScenario).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)CurrentScenario).StartTime = value ?? default(global::System.DateTime); } /// Backing field for property. private string _currentScenarioStatus; @@ -68,11 +68,11 @@ public partial class RecoveryPlanProperties : public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] _group; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] _group; /// The recovery plan groups. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get => this._group; set => this._group = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get => this._group; set => this._group = value; } /// Backing field for property. private global::System.DateTime? _lastPlannedFailoverTime; @@ -96,7 +96,7 @@ public partial class RecoveryPlanProperties : public global::System.DateTime? LastUnplannedFailoverTime { get => this._lastUnplannedFailoverTime; set => this._lastUnplannedFailoverTime = value; } /// Internal Acessors for CurrentScenario - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanPropertiesInternal.CurrentScenario { get => (this._currentScenario = this._currentScenario ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetails()); set { {_currentScenario = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanPropertiesInternal.CurrentScenario { get => (this._currentScenario = this._currentScenario ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetails()); set { {_currentScenario = value;} } } /// Backing field for property. private string _primaryFabricFriendlyName; @@ -113,11 +113,11 @@ public partial class RecoveryPlanProperties : public string PrimaryFabricId { get => this._primaryFabricId; set => this._primaryFabricId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails[] _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails[] _providerSpecificDetail; /// The provider id and provider specific details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails[] ProviderSpecificDetail { get => this._providerSpecificDetail; set => this._providerSpecificDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails[] ProviderSpecificDetail { get => this._providerSpecificDetail; set => this._providerSpecificDetail = value; } /// Backing field for property. private string _recoveryFabricFriendlyName; @@ -220,8 +220,8 @@ public partial interface IRecoveryPlanProperties : ReadOnly = false, Description = @"The recovery plan groups.", SerializedName = @"groups", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get; set; } /// The start time of the last planned failover. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -268,8 +268,8 @@ public partial interface IRecoveryPlanProperties : ReadOnly = false, Description = @"The provider id and provider specific details.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails[] ProviderSpecificDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails[] ProviderSpecificDetail { get; set; } /// The recovery fabric friendly name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -303,7 +303,7 @@ internal partial interface IRecoveryPlanPropertiesInternal /// The list of allowed operations. string[] AllowedOperation { get; set; } /// The current scenario details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails CurrentScenario { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails CurrentScenario { get; set; } /// ARM Id of the job being executed. string CurrentScenarioJobId { get; set; } /// Scenario name. @@ -319,7 +319,7 @@ internal partial interface IRecoveryPlanPropertiesInternal /// The friendly name. string FriendlyName { get; set; } /// The recovery plan groups. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get; set; } /// The start time of the last planned failover. global::System.DateTime? LastPlannedFailoverTime { get; set; } /// The start time of the last test failover. @@ -331,7 +331,7 @@ internal partial interface IRecoveryPlanPropertiesInternal /// The primary fabric Id. string PrimaryFabricId { get; set; } /// The provider id and provider specific details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails[] ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails[] ProviderSpecificDetail { get; set; } /// The recovery fabric friendly name. string RecoveryFabricFriendlyName { get; set; } /// The recovery fabric Id. diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProperties.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProperties.json.cs index 71577a117985..176da15d3756 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanProperties(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - {_currentScenario = If( json?.PropertyT("currentScenario"), out var __jsonCurrentScenario) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetails.FromJson(__jsonCurrentScenario) : CurrentScenario;} + {_currentScenario = If( json?.PropertyT("currentScenario"), out var __jsonCurrentScenario) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetails.FromJson(__jsonCurrentScenario) : CurrentScenario;} {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)FriendlyName;} {_primaryFabricId = If( json?.PropertyT("primaryFabricId"), out var __jsonPrimaryFabricId) ? (string)__jsonPrimaryFabricId : (string)PrimaryFabricId;} {_primaryFabricFriendlyName = If( json?.PropertyT("primaryFabricFriendlyName"), out var __jsonPrimaryFabricFriendlyName) ? (string)__jsonPrimaryFabricFriendlyName : (string)PrimaryFabricFriendlyName;} @@ -91,8 +91,8 @@ internal RecoveryPlanProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti {_lastTestFailoverTime = If( json?.PropertyT("lastTestFailoverTime"), out var __jsonLastTestFailoverTime) ? global::System.DateTime.TryParse((string)__jsonLastTestFailoverTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastTestFailoverTimeValue) ? __jsonLastTestFailoverTimeValue : LastTestFailoverTime : LastTestFailoverTime;} {_currentScenarioStatus = If( json?.PropertyT("currentScenarioStatus"), out var __jsonCurrentScenarioStatus) ? (string)__jsonCurrentScenarioStatus : (string)CurrentScenarioStatus;} {_currentScenarioStatusDescription = If( json?.PropertyT("currentScenarioStatusDescription"), out var __jsonCurrentScenarioStatusDescription) ? (string)__jsonCurrentScenarioStatusDescription : (string)CurrentScenarioStatusDescription;} - {_group = If( json?.PropertyT("groups"), out var __jsonGroups) ? If( __jsonGroups as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroup.FromJson(__k) )) ))() : null : Group;} - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? If( __jsonProviderSpecificDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificDetails.FromJson(__f) )) ))() : null : ProviderSpecificDetail;} + {_group = If( json?.PropertyT("groups"), out var __jsonGroups) ? If( __jsonGroups as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroup.FromJson(__k) )) ))() : null : Group;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? If( __jsonProviderSpecificDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificDetails.FromJson(__f) )) ))() : null : ProviderSpecificDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProtectedItem.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProtectedItem.PowerShell.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProtectedItem.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProtectedItem.PowerShell.cs index c4d366d1f678..92370fd39e1c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProtectedItem.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProtectedItem.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class RecoveryPlanProtectedItem partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryPlanProtectedItem(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.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPlanProtectedItem(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal RecoveryPlanProtectedItem(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItemInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItemInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItemInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItemInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("VirtualMachineId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItemInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItemInternal)this).VirtualMachineId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItemInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItemInternal)this).VirtualMachineId, 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. @@ -128,11 +128,11 @@ internal RecoveryPlanProtectedItem(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItemInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItemInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItemInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItemInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("VirtualMachineId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItemInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItemInternal)this).VirtualMachineId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItemInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItemInternal)this).VirtualMachineId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProtectedItem.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProtectedItem.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProtectedItem.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProtectedItem.TypeConverter.cs index 4deb60d2e405..d4480daab565 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProtectedItem.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProtectedItem.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProtectedItem.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProtectedItem.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProtectedItem.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProtectedItem.cs index 269daad2634c..cb193fbea621 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProtectedItem.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProtectedItem.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan protected item. public partial class RecoveryPlanProtectedItem : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItemInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItemInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProtectedItem.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProtectedItem.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProtectedItem.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProtectedItem.json.cs index 14eedfecb996..f983c3c90b4f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProtectedItem.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProtectedItem.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanProtectedItem partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProtectedItem FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProtectedItem FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanProtectedItem(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificDetails.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificDetails.PowerShell.cs index 416451dd677d..a7f0313225bf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RecoveryPlanProviderSpecificDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryPlanProviderSpecificDetails(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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPlanProviderSpecificDetails(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,13 +107,13 @@ internal RecoveryPlanProviderSpecificDetails(global::System.Collections.IDiction // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType, 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. @@ -128,7 +128,7 @@ internal RecoveryPlanProviderSpecificDetails(global::System.Management.Automatio // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificDetails.TypeConverter.cs index 0362f49e2e94..606929c94ff5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificDetails.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificDetails.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificDetails.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificDetails.cs index 4fb582d1e36a..f8e3a09f55d3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan provider specific details. public partial class RecoveryPlanProviderSpecificDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificDetails.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificDetails.json.cs index 875e22a9ab1b..218b3c87f4ac 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class RecoveryPlanProviderSpecificDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails 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.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails 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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificFailoverInput.PowerShell.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificFailoverInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificFailoverInput.PowerShell.cs index 7f537e4d2a50..a096ba8f0f52 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificFailoverInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RecoveryPlanProviderSpecificFailoverInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryPlanProviderSpecificFailoverInput(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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPlanProviderSpecificFailoverInput(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal RecoveryPlanProviderSpecificFailoverInput(global::System.Collections.ID // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, 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. @@ -129,7 +129,7 @@ internal RecoveryPlanProviderSpecificFailoverInput(global::System.Management.Aut // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificFailoverInput.TypeConverter.cs index 1cdd4068275a..e9e147e3a476 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificFailoverInput.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificFailoverInput.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificFailoverInput.cs index 7d6e21826b27..87c384aebe62 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificFailoverInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan provider specific failover input. public partial class RecoveryPlanProviderSpecificFailoverInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificFailoverInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificFailoverInput.json.cs index 9762045a681f..2c9ef35dd1e1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class RecoveryPlanProviderSpecificFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput 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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificInput.PowerShell.cs index dc181840fb8b..3753458054fd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RecoveryPlanProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryPlanProviderSpecificInput(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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPlanProviderSpecificInput(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,13 +107,13 @@ internal RecoveryPlanProviderSpecificInput(global::System.Collections.IDictionar // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType, 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. @@ -128,7 +128,7 @@ internal RecoveryPlanProviderSpecificInput(global::System.Management.Automation. // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificInput.TypeConverter.cs index 9a194a253ec4..f2a46d202934 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificInput.cs index 28f3030ac43c..8e4fc73a93f1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan provider specific input base class. public partial class RecoveryPlanProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificInput.json.cs index 20c2333f2c54..b1c8027fc57e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class RecoveryPlanProviderSpecificInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput interface is + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput 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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanScriptActionDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanScriptActionDetails.PowerShell.cs new file mode 100644 index 000000000000..36c2783801e4 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanScriptActionDetails.PowerShell.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan script action details. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanScriptActionDetailsTypeConverter))] + public partial class RecoveryPlanScriptActionDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanScriptActionDetails(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.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanScriptActionDetails(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.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanScriptActionDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetailsInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetailsInternal)this).Path, global::System.Convert.ToString); + } + if (content.Contains("Timeout")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetailsInternal)this).Timeout = (string) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetailsInternal)this).Timeout, global::System.Convert.ToString); + } + if (content.Contains("FabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetailsInternal)this).FabricLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation) content.GetValueForProperty("FabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetailsInternal)this).FabricLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType, 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 RecoveryPlanScriptActionDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetailsInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetailsInternal)this).Path, global::System.Convert.ToString); + } + if (content.Contains("Timeout")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetailsInternal)this).Timeout = (string) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetailsInternal)this).Timeout, global::System.Convert.ToString); + } + if (content.Contains("FabricLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetailsInternal)this).FabricLocation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation) content.GetValueForProperty("FabricLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetailsInternal)this).FabricLocation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation.CreateFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan script action details. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanScriptActionDetailsTypeConverter))] + public partial interface IRecoveryPlanScriptActionDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanScriptActionDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanScriptActionDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanScriptActionDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanScriptActionDetails.TypeConverter.cs index 3086cc645089..e55522c70f77 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanScriptActionDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanScriptActionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanScriptActionDetails.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanScriptActionDetails.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanScriptActionDetails.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanScriptActionDetails.cs index 26cfe62ba1af..374b8b96b529 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanScriptActionDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanScriptActionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan script action details. public partial class RecoveryPlanScriptActionDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails __recoveryPlanActionDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails __recoveryPlanActionDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionDetails(); /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation _fabricLocation; @@ -30,7 +30,7 @@ public partial class RecoveryPlanScriptActionDetails : /// Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values). /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)__recoveryPlanActionDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal)__recoveryPlanActionDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)__recoveryPlanActionDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal)__recoveryPlanActionDetails).InstanceType = value ; } /// Backing field for property. private string _path; @@ -67,7 +67,7 @@ public RecoveryPlanScriptActionDetails() /// Recovery plan script action details. public partial interface IRecoveryPlanScriptActionDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetails { /// The fabric location. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -97,7 +97,7 @@ public partial interface IRecoveryPlanScriptActionDetails : } /// Recovery plan script action details. internal partial interface IRecoveryPlanScriptActionDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanActionDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanActionDetailsInternal { /// The fabric location. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.RecoveryPlanActionLocation FabricLocation { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanScriptActionDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanScriptActionDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanScriptActionDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanScriptActionDetails.json.cs index 38f43b3e2b6a..3eb108c0a08e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanScriptActionDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanScriptActionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanScriptActionDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanScriptActionDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanScriptActionDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanScriptActionDetails(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanScriptActionDetails(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - __recoveryPlanActionDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanActionDetails(json); + __recoveryPlanActionDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanActionDetails(json); {_path = If( json?.PropertyT("path"), out var __jsonPath) ? (string)__jsonPath : (string)Path;} {_timeout = If( json?.PropertyT("timeout"), out var __jsonTimeout) ? (string)__jsonTimeout : (string)Timeout;} {_fabricLocation = If( json?.PropertyT("fabricLocation"), out var __jsonFabricLocation) ? (string)__jsonFabricLocation : (string)FabricLocation;} diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanShutdownGroupTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanShutdownGroupTaskDetails.PowerShell.cs new file mode 100644 index 000000000000..bc6434d19ecb --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanShutdownGroupTaskDetails.PowerShell.cs @@ -0,0 +1,180 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class represents the recovery plan shutdown group task details. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanShutdownGroupTaskDetailsTypeConverter))] + public partial class RecoveryPlanShutdownGroupTaskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanShutdownGroupTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanShutdownGroupTaskDetails(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.Migrate.Models.Api202301.IRecoveryPlanShutdownGroupTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanShutdownGroupTaskDetails(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.Migrate.Models.Api202301.IRecoveryPlanShutdownGroupTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanShutdownGroupTaskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("ChildTask")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTaskTypeConverter.ConvertFrom)); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("GroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId = (string) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId, global::System.Convert.ToString); + } + if (content.Contains("RpGroupType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType = (string) content.GetValueForProperty("RpGroupType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType, 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 RecoveryPlanShutdownGroupTaskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("ChildTask")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[]) content.GetValueForProperty("ChildTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)this).ChildTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.AsrTaskTypeConverter.ConvertFrom)); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("GroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId = (string) content.GetValueForProperty("GroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).GroupId, global::System.Convert.ToString); + } + if (content.Contains("RpGroupType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType = (string) content.GetValueForProperty("RpGroupType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)this).RpGroupType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class represents the recovery plan shutdown group task details. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanShutdownGroupTaskDetailsTypeConverter))] + public partial interface IRecoveryPlanShutdownGroupTaskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanShutdownGroupTaskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanShutdownGroupTaskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanShutdownGroupTaskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanShutdownGroupTaskDetails.TypeConverter.cs index fb59abd9aae8..8f5166f7b711 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanShutdownGroupTaskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanShutdownGroupTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanShutdownGroupTaskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanShutdownGroupTaskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanShutdownGroupTaskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanShutdownGroupTaskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanShutdownGroupTaskDetails.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanShutdownGroupTaskDetails.cs new file mode 100644 index 000000000000..07ee03cef7e0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanShutdownGroupTaskDetails.cs @@ -0,0 +1,73 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// This class represents the recovery plan shutdown group task details. + public partial class RecoveryPlanShutdownGroupTaskDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanShutdownGroupTaskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanShutdownGroupTaskDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetails __recoveryPlanGroupTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTaskDetails(); + + /// The child tasks. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IAsrTask[] ChildTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).ChildTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).ChildTask = value ?? null /* arrayOf */; } + + /// The group identifier. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string GroupId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).GroupId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).GroupId = value ?? null; } + + /// The type of task details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).InstanceType = value ; } + + /// The name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).Name = value ?? null; } + + /// The group type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string RpGroupType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).RpGroupType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal)__recoveryPlanGroupTaskDetails).RpGroupType = value ?? null; } + + /// Creates an new instance. + public RecoveryPlanShutdownGroupTaskDetails() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__recoveryPlanGroupTaskDetails), __recoveryPlanGroupTaskDetails); + await eventListener.AssertObjectIsValid(nameof(__recoveryPlanGroupTaskDetails), __recoveryPlanGroupTaskDetails); + } + } + /// This class represents the recovery plan shutdown group task details. + public partial interface IRecoveryPlanShutdownGroupTaskDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetails + { + + } + /// This class represents the recovery plan shutdown group task details. + internal partial interface IRecoveryPlanShutdownGroupTaskDetailsInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroupTaskDetailsInternal + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanShutdownGroupTaskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanShutdownGroupTaskDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanShutdownGroupTaskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanShutdownGroupTaskDetails.json.cs index 87116c42ca3b..c47a34e28a7a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanShutdownGroupTaskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanShutdownGroupTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanShutdownGroupTaskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanShutdownGroupTaskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanShutdownGroupTaskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanShutdownGroupTaskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanShutdownGroupTaskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanShutdownGroupTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanShutdownGroupTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanShutdownGroupTaskDetails(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanShutdownGroupTaskDetails(Microsoft.Azure.PowerShell.Cmdlets { return; } - __recoveryPlanGroupTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTaskDetails(json); + __recoveryPlanGroupTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTaskDetails(json); AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInput.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInput.PowerShell.cs index 644a70f12ffa..2cf2b2ef35d2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RecoveryPlanTestFailoverCleanupInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryPlanTestFailoverCleanupInput(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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPlanTestFailoverCleanupInput(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,17 +107,17 @@ internal RecoveryPlanTestFailoverCleanupInput(global::System.Collections.IDictio // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTestFailoverCleanupInputPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTestFailoverCleanupInputPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputInternal)this).Comment, 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,11 +132,11 @@ internal RecoveryPlanTestFailoverCleanupInput(global::System.Management.Automati // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTestFailoverCleanupInputPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTestFailoverCleanupInputPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputInternal)this).Comment, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInput.TypeConverter.cs index 88db2704624c..159c03a1d2a1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInput.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInput.cs new file mode 100644 index 000000000000..45c30d3a114b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Recovery plan test failover cleanup input. + public partial class RecoveryPlanTestFailoverCleanupInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputInternal + { + + /// The test failover cleanup comments. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Comment { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputPropertiesInternal)Property).Comment; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputPropertiesInternal)Property).Comment = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTestFailoverCleanupInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties _property; + + /// The recovery plan test failover cleanup input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTestFailoverCleanupInputProperties()); set => this._property = value; } + + /// Creates an new instance. + public RecoveryPlanTestFailoverCleanupInput() + { + + } + } + /// Recovery plan test failover cleanup input. + public partial interface IRecoveryPlanTestFailoverCleanupInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The test failover cleanup comments. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The test failover cleanup comments.", + SerializedName = @"comments", + PossibleTypes = new [] { typeof(string) })] + string Comment { get; set; } + + } + /// Recovery plan test failover cleanup input. + internal partial interface IRecoveryPlanTestFailoverCleanupInputInternal + + { + /// The test failover cleanup comments. + string Comment { get; set; } + /// The recovery plan test failover cleanup input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInput.json.cs index 484fff11422e..a7ae4f72ad9a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanTestFailoverCleanupInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanTestFailoverCleanupInput(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanTestFailoverCleanupInput(Microsoft.Azure.PowerShell.Cmdlets { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTestFailoverCleanupInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTestFailoverCleanupInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInputProperties.PowerShell.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInputProperties.PowerShell.cs index f162764b5363..df4ee16c0d9f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RecoveryPlanTestFailoverCleanupInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryPlanTestFailoverCleanupInputProperties(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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPlanTestFailoverCleanupInputProperties(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal RecoveryPlanTestFailoverCleanupInputProperties(global::System.Collectio // actually deserialize if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputPropertiesInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputPropertiesInternal)this).Comment, 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. @@ -129,7 +129,7 @@ internal RecoveryPlanTestFailoverCleanupInputProperties(global::System.Managemen // actually deserialize if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputPropertiesInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputPropertiesInternal)this).Comment, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInputProperties.TypeConverter.cs index eab9d503b87e..b7dfeb83fd82 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInputProperties.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInputProperties.cs index 33fb4a2daf38..cc4d0b374238 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan test failover cleanup input properties. public partial class RecoveryPlanTestFailoverCleanupInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInputProperties.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInputProperties.json.cs index e19a8dfd4fdd..a22fd688d4b5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverCleanupInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverCleanupInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanTestFailoverCleanupInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverCleanupInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverCleanupInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanTestFailoverCleanupInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..9c83c74792d7 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInput.PowerShell.cs @@ -0,0 +1,178 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan test failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanTestFailoverInputTypeConverter))] + public partial class RecoveryPlanTestFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanTestFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanTestFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanTestFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTestFailoverInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); + } + if (content.Contains("NetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).NetworkType, global::System.Convert.ToString); + } + if (content.Contains("NetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).NetworkId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInputTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RecoveryPlanTestFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTestFailoverInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); + } + if (content.Contains("NetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).NetworkType, global::System.Convert.ToString); + } + if (content.Contains("NetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).NetworkId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan test failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanTestFailoverInputTypeConverter))] + public partial interface IRecoveryPlanTestFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInput.TypeConverter.cs index 5c553e68b4af..8512c672b297 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInput.cs new file mode 100644 index 000000000000..95c469a7da08 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInput.cs @@ -0,0 +1,102 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Recovery plan test failover input. + public partial class RecoveryPlanTestFailoverInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal + { + + /// The failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).FailoverDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).FailoverDirection = value ; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTestFailoverInputProperties()); set { {_property = value;} } } + + /// The Id of the network to be used for test failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string NetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).NetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).NetworkId = value ?? null; } + + /// The network type to be used for test failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string NetworkType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).NetworkType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).NetworkType = value ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties _property; + + /// The recovery plan test failover input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTestFailoverInputProperties()); set => this._property = value; } + + /// The provider specific properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* arrayOf */; } + + /// Creates an new instance. + public RecoveryPlanTestFailoverInput() + { + + } + } + /// Recovery plan test failover input. + public partial interface IRecoveryPlanTestFailoverInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The failover direction.", + SerializedName = @"failoverDirection", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get; set; } + /// The Id of the network to be used for test failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Id of the network to be used for test failover.", + SerializedName = @"networkId", + PossibleTypes = new [] { typeof(string) })] + string NetworkId { get; set; } + /// The network type to be used for test failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The network type to be used for test failover.", + SerializedName = @"networkType", + PossibleTypes = new [] { typeof(string) })] + string NetworkType { get; set; } + /// The provider specific properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The provider specific properties.", + SerializedName = @"providerSpecificDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } + + } + /// Recovery plan test failover input. + internal partial interface IRecoveryPlanTestFailoverInputInternal + + { + /// The failover direction. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get; set; } + /// The Id of the network to be used for test failover. + string NetworkId { get; set; } + /// The network type to be used for test failover. + string NetworkType { get; set; } + /// The recovery plan test failover input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties Property { get; set; } + /// The provider specific properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInput.json.cs index e683a03408bc..5443858055b7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanTestFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanTestFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanTestFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanTestFailoverInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanTestFailoverInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInputProperties.PowerShell.cs new file mode 100644 index 000000000000..51886d68c735 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInputProperties.PowerShell.cs @@ -0,0 +1,173 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan test failover input properties. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanTestFailoverInputPropertiesTypeConverter))] + public partial class RecoveryPlanTestFailoverInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanTestFailoverInputProperties(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.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanTestFailoverInputProperties(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.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanTestFailoverInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); + } + if (content.Contains("NetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkType, global::System.Convert.ToString); + } + if (content.Contains("NetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInputTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RecoveryPlanTestFailoverInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); + } + if (content.Contains("NetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkType, global::System.Convert.ToString); + } + if (content.Contains("NetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).NetworkId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan test failover input properties. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanTestFailoverInputPropertiesTypeConverter))] + public partial interface IRecoveryPlanTestFailoverInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInputProperties.TypeConverter.cs index 76256e06fa12..ddd408c24a27 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInputProperties.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInputProperties.cs index 6fbae7c08fea..7d6a6a9923a4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan test failover input properties. public partial class RecoveryPlanTestFailoverInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputPropertiesInternal { /// Backing field for property. @@ -35,11 +35,11 @@ public partial class RecoveryPlanTestFailoverInputProperties : public string NetworkType { get => this._networkType; set => this._networkType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] _providerSpecificDetail; /// The provider specific properties. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get => this._providerSpecificDetail; set => this._providerSpecificDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get => this._providerSpecificDetail; set => this._providerSpecificDetail = value; } /// Creates an new instance. public RecoveryPlanTestFailoverInputProperties() @@ -81,8 +81,8 @@ public partial interface IRecoveryPlanTestFailoverInputProperties : ReadOnly = false, Description = @"The provider specific properties.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } } /// Recovery plan test failover input properties. @@ -96,7 +96,7 @@ internal partial interface IRecoveryPlanTestFailoverInputPropertiesInternal /// The network type to be used for test failover. string NetworkType { get; set; } /// The provider specific properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInputProperties.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInputProperties.json.cs index 129bdb28b275..1962181d74d0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanTestFailoverInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanTestFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanTestFailoverInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanTestFailoverInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanTestFailoverInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanTestFailoverInputProperties(json) : null; } @@ -80,7 +80,7 @@ internal RecoveryPlanTestFailoverInputProperties(Microsoft.Azure.PowerShell.Cmdl {_failoverDirection = If( json?.PropertyT("failoverDirection"), out var __jsonFailoverDirection) ? (string)__jsonFailoverDirection : (string)FailoverDirection;} {_networkType = If( json?.PropertyT("networkType"), out var __jsonNetworkType) ? (string)__jsonNetworkType : (string)NetworkType;} {_networkId = If( json?.PropertyT("networkId"), out var __jsonNetworkId) ? (string)__jsonNetworkId : (string)NetworkId;} - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? If( __jsonProviderSpecificDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput.FromJson(__u) )) ))() : null : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? If( __jsonProviderSpecificDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput.FromJson(__u) )) ))() : null : ProviderSpecificDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..0287c0562b54 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInput.PowerShell.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan unplanned failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanUnplannedFailoverInputTypeConverter))] + public partial class RecoveryPlanUnplannedFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanUnplannedFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanUnplannedFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanUnplannedFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanUnplannedFailoverInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); + } + if (content.Contains("SourceSiteOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).SourceSiteOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).SourceSiteOperation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations.CreateFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInputTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RecoveryPlanUnplannedFailoverInput(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.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanUnplannedFailoverInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); + } + if (content.Contains("SourceSiteOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).SourceSiteOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).SourceSiteOperation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations.CreateFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan unplanned failover input. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanUnplannedFailoverInputTypeConverter))] + public partial interface IRecoveryPlanUnplannedFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInput.TypeConverter.cs index 9c514513af9d..dad049f5013c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInput.cs new file mode 100644 index 000000000000..7c87d29de0c4 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInput.cs @@ -0,0 +1,88 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Recovery plan unplanned failover input. + public partial class RecoveryPlanUnplannedFailoverInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal + { + + /// The failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)Property).FailoverDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)Property).FailoverDirection = value ; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanUnplannedFailoverInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties _property; + + /// The recovery plan unplanned failover input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanUnplannedFailoverInputProperties()); set => this._property = value; } + + /// The provider specific properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* arrayOf */; } + + /// A value indicating whether source site operations are required. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations SourceSiteOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)Property).SourceSiteOperation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)Property).SourceSiteOperation = value ; } + + /// Creates an new instance. + public RecoveryPlanUnplannedFailoverInput() + { + + } + } + /// Recovery plan unplanned failover input. + public partial interface IRecoveryPlanUnplannedFailoverInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The failover direction.", + SerializedName = @"failoverDirection", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get; set; } + /// The provider specific properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The provider specific properties.", + SerializedName = @"providerSpecificDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } + /// A value indicating whether source site operations are required. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A value indicating whether source site operations are required.", + SerializedName = @"sourceSiteOperations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations SourceSiteOperation { get; set; } + + } + /// Recovery plan unplanned failover input. + internal partial interface IRecoveryPlanUnplannedFailoverInputInternal + + { + /// The failover direction. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get; set; } + /// The recovery plan unplanned failover input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties Property { get; set; } + /// The provider specific properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } + /// A value indicating whether source site operations are required. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations SourceSiteOperation { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInput.json.cs index f2a06c798242..b9120b0d1216 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanUnplannedFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanUnplannedFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPlanUnplannedFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.M { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanUnplannedFailoverInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanUnplannedFailoverInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInputProperties.PowerShell.cs new file mode 100644 index 000000000000..d490fd118e04 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInputProperties.PowerShell.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery plan unplanned failover input properties. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanUnplannedFailoverInputPropertiesTypeConverter))] + public partial class RecoveryPlanUnplannedFailoverInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPlanUnplannedFailoverInputProperties(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.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPlanUnplannedFailoverInputProperties(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.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPlanUnplannedFailoverInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); + } + if (content.Contains("SourceSiteOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations.CreateFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInputTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RecoveryPlanUnplannedFailoverInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).FailoverDirection = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).FailoverDirection, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections.CreateFrom); + } + if (content.Contains("SourceSiteOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations.CreateFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[]) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery plan unplanned failover input properties. + [System.ComponentModel.TypeConverter(typeof(RecoveryPlanUnplannedFailoverInputPropertiesTypeConverter))] + public partial interface IRecoveryPlanUnplannedFailoverInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInputProperties.TypeConverter.cs index 61654cac34f0..2e285cbf9e70 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInputProperties.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInputProperties.cs index bb7cb314ee05..2939858e87cb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan unplanned failover input properties. public partial class RecoveryPlanUnplannedFailoverInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputPropertiesInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class RecoveryPlanUnplannedFailoverInputProperties : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get => this._failoverDirection; set => this._failoverDirection = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] _providerSpecificDetail; /// The provider specific properties. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get => this._providerSpecificDetail; set => this._providerSpecificDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get => this._providerSpecificDetail; set => this._providerSpecificDetail = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations _sourceSiteOperation; @@ -60,8 +60,8 @@ public partial interface IRecoveryPlanUnplannedFailoverInputProperties : ReadOnly = false, Description = @"The provider specific properties.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } /// A value indicating whether source site operations are required. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = true, @@ -79,7 +79,7 @@ internal partial interface IRecoveryPlanUnplannedFailoverInputPropertiesInternal /// The failover direction. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PossibleOperationsDirections FailoverDirection { get; set; } /// The provider specific properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput[] ProviderSpecificDetail { get; set; } /// A value indicating whether source site operations are required. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SourceSiteOperations SourceSiteOperation { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInputProperties.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInputProperties.json.cs index fc0ebeab79ac..66704d94c481 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPlanUnplannedFailoverInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPlanUnplannedFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPlanUnplannedFailoverInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanUnplannedFailoverInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanUnplannedFailoverInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPlanUnplannedFailoverInputProperties(json) : null; } @@ -80,7 +80,7 @@ internal RecoveryPlanUnplannedFailoverInputProperties(Microsoft.Azure.PowerShell } {_failoverDirection = If( json?.PropertyT("failoverDirection"), out var __jsonFailoverDirection) ? (string)__jsonFailoverDirection : (string)FailoverDirection;} {_sourceSiteOperation = If( json?.PropertyT("sourceSiteOperations"), out var __jsonSourceSiteOperations) ? (string)__jsonSourceSiteOperations : (string)SourceSiteOperation;} - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? If( __jsonProviderSpecificDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanProviderSpecificFailoverInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanProviderSpecificFailoverInput.FromJson(__u) )) ))() : null : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? If( __jsonProviderSpecificDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IRecoveryPlanProviderSpecificFailoverInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanProviderSpecificFailoverInput.FromJson(__u) )) ))() : null : ProviderSpecificDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPoint.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPoint.PowerShell.cs new file mode 100644 index 000000000000..f30332c7baa9 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPoint.PowerShell.cs @@ -0,0 +1,208 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery point. + [System.ComponentModel.TypeConverter(typeof(RecoveryPointTypeConverter))] + public partial class RecoveryPoint + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPoint(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.Migrate.Models.Api202301.IRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPoint(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.Migrate.Models.Api202301.IRecoveryPoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPoint(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.Migrate.Models.Api202301.IRecoveryPointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPointPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Time")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).Time = (global::System.DateTime?) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).Time, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).ProviderSpecificDetailInstanceType, 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 RecoveryPoint(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.Migrate.Models.Api202301.IRecoveryPointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPointPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Time")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).Time = (global::System.DateTime?) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).Time, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery point. + [System.ComponentModel.TypeConverter(typeof(RecoveryPointTypeConverter))] + public partial interface IRecoveryPoint + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPoint.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPoint.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPoint.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPoint.TypeConverter.cs index 2339d9a36651..70a9fbbe12d6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPoint.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPoint.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPoint.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPoint.cs new file mode 100644 index 000000000000..f008d1ecc3d7 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPoint.cs @@ -0,0 +1,136 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Recovery point. + public partial class RecoveryPoint : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPoint, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPointProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointProperties _property; + + /// The recovery point properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPointProperties()); set => this._property = value; } + + /// Gets the provider type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// The recovery point type: ApplicationConsistent, CrashConsistent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryPointType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)Property).RecoveryPointType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)Property).RecoveryPointType = value ?? null; } + + /// The recovery point time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? Time { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)Property).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)Property).RecoveryPointTime = value ?? default(global::System.DateTime); } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public RecoveryPoint() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Recovery point. + public partial interface IRecoveryPoint : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// Gets the provider type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the provider type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + /// The recovery point type: ApplicationConsistent, CrashConsistent. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery point type: ApplicationConsistent, CrashConsistent.", + SerializedName = @"recoveryPointType", + PossibleTypes = new [] { typeof(string) })] + string RecoveryPointType { get; set; } + /// The recovery point time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery point time.", + SerializedName = @"recoveryPointTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? Time { get; set; } + + } + /// Recovery point. + internal partial interface IRecoveryPointInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The recovery point properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointProperties Property { get; set; } + /// The provider specific details for the recovery point. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails ProviderSpecificDetail { get; set; } + /// Gets the provider type. + string ProviderSpecificDetailInstanceType { get; set; } + /// The recovery point type: ApplicationConsistent, CrashConsistent. + string RecoveryPointType { get; set; } + /// The recovery point time. + global::System.DateTime? Time { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPoint.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPoint.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPoint.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPoint.json.cs index d499fc16618f..29e825f864aa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPoint.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPoint.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPoint partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPoint(json) : null; } @@ -77,8 +77,8 @@ internal RecoveryPoint(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.J { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPointProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPointProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPointCollection.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPointCollection.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPointCollection.PowerShell.cs index d3f32ecd2726..6e87327e83a8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointCollection.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPointCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class RecoveryPointCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryPointCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryPointCollection(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.Migrate.Models.Api20220501.IRecoveryPointCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPointCollection(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal RecoveryPointCollection(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollectionInternal)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. @@ -128,11 +128,11 @@ internal RecoveryPointCollection(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollectionInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPointCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPointCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPointCollection.TypeConverter.cs index a2d2a70f99ed..35096260d628 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPointCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPointCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointCollection.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPointCollection.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPointCollection.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPointCollection.cs index 77a960420653..436d24a6f666 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPointCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Collection of recovery point details. public partial class RecoveryPointCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class RecoveryPointCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPoint[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPoint[] _value; /// The recovery point details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPoint[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPoint[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public RecoveryPointCollection() @@ -51,8 +51,8 @@ public partial interface IRecoveryPointCollection : ReadOnly = false, Description = @"The recovery point details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPoint) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPoint[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPoint) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPoint[] Value { get; set; } } /// Collection of recovery point details. @@ -62,7 +62,7 @@ internal partial interface IRecoveryPointCollectionInternal /// The value of next link. string NextLink { get; set; } /// The recovery point details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPoint[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPoint[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPointCollection.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPointCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPointCollection.json.cs index 59bcc6dd3f1e..181c781e49ee 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPointCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPointCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPointCollection(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPointCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPoint) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPoint.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IRecoveryPoint) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPoint.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryPointProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPointProperties.PowerShell.cs new file mode 100644 index 000000000000..9ae2bf0b4322 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPointProperties.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery point properties. + [System.ComponentModel.TypeConverter(typeof(RecoveryPointPropertiesTypeConverter))] + public partial class RecoveryPointProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryPointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryPointProperties(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.Migrate.Models.Api202301.IRecoveryPointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryPointProperties(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.Migrate.Models.Api202301.IRecoveryPointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryPointProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryPointTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).RecoveryPointType, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 RecoveryPointProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryPointTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("RecoveryPointType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).RecoveryPointType, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery point properties. + [System.ComponentModel.TypeConverter(typeof(RecoveryPointPropertiesTypeConverter))] + public partial interface IRecoveryPointProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPointProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPointProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPointProperties.TypeConverter.cs index 8ca7eb83cd02..940abbfa193b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPointProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointProperties.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPointProperties.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPointProperties.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPointProperties.cs index 9dd652f953b4..c573824fdb80 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPointProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery point properties. public partial class RecoveryPointProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal { /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetails()); set { {_providerSpecificDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetails()); set { {_providerSpecificDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails _providerSpecificDetail; /// The provider specific details for the recovery point. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetails()); set => this._providerSpecificDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetails()); set => this._providerSpecificDetail = value; } /// Gets the provider type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetailsInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetailsInternal)ProviderSpecificDetail).InstanceType = value ?? null; } /// Backing field for property. private global::System.DateTime? _recoveryPointTime; @@ -82,7 +82,7 @@ internal partial interface IRecoveryPointPropertiesInternal { /// The provider specific details for the recovery point. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProviderSpecificRecoveryPointDetails ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProviderSpecificRecoveryPointDetails ProviderSpecificDetail { get; set; } /// Gets the provider type. string ProviderSpecificDetailInstanceType { get; set; } /// The recovery point time. diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryPointProperties.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryPointProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryPointProperties.json.cs index 0c745cc4e56f..0f7f2ed11ee6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryPointProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryPointProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryPointProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryPointProperties(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryPointProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProviderSpecificRecoveryPointDetails.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProviderSpecificRecoveryPointDetails.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_recoveryPointTime = If( json?.PropertyT("recoveryPointTime"), out var __jsonRecoveryPointTime) ? global::System.DateTime.TryParse((string)__jsonRecoveryPointTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonRecoveryPointTimeValue) ? __jsonRecoveryPointTimeValue : RecoveryPointTime : RecoveryPointTime;} {_recoveryPointType = If( json?.PropertyT("recoveryPointType"), out var __jsonRecoveryPointType) ? (string)__jsonRecoveryPointType : (string)RecoveryPointType;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryProximityPlacementGroupCustomDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryProximityPlacementGroupCustomDetails.PowerShell.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryProximityPlacementGroupCustomDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryProximityPlacementGroupCustomDetails.PowerShell.cs index 25ae588f7cc9..61efea3ca0a1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryProximityPlacementGroupCustomDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryProximityPlacementGroupCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RecoveryProximityPlacementGroupCustomDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryProximityPlacementGroupCustomDetails(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.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryProximityPlacementGroupCustomDetails(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal RecoveryProximityPlacementGroupCustomDetails(global::System.Collections // actually deserialize if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType, 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. @@ -129,7 +129,7 @@ internal RecoveryProximityPlacementGroupCustomDetails(global::System.Management. // actually deserialize if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryProximityPlacementGroupCustomDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryProximityPlacementGroupCustomDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryProximityPlacementGroupCustomDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryProximityPlacementGroupCustomDetails.TypeConverter.cs index 2ca9df6a6713..0805a4f17ae7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryProximityPlacementGroupCustomDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryProximityPlacementGroupCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryProximityPlacementGroupCustomDetails.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryProximityPlacementGroupCustomDetails.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryProximityPlacementGroupCustomDetails.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryProximityPlacementGroupCustomDetails.cs index a84723786415..adc7c0bb3d0c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryProximityPlacementGroupCustomDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryProximityPlacementGroupCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery Proximity placement group custom input. public partial class RecoveryProximityPlacementGroupCustomDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryProximityPlacementGroupCustomDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryProximityPlacementGroupCustomDetails.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryProximityPlacementGroupCustomDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryProximityPlacementGroupCustomDetails.json.cs index 99751a236b19..82858f3d1080 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryProximityPlacementGroupCustomDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryProximityPlacementGroupCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,16 +54,15 @@ public partial class RecoveryProximityPlacementGroupCustomDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails - /// 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.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails 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.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryProximityPlacementGroupCustomDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryProximityPlacementGroupCustomDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryResourceGroupCustomDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryResourceGroupCustomDetails.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryResourceGroupCustomDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryResourceGroupCustomDetails.PowerShell.cs index 14c7f3beb6eb..ea912de4ec3a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryResourceGroupCustomDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryResourceGroupCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RecoveryResourceGroupCustomDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryResourceGroupCustomDetails(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.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryResourceGroupCustomDetails(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,13 +107,13 @@ internal RecoveryResourceGroupCustomDetails(global::System.Collections.IDictiona // actually deserialize if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType, 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. @@ -128,7 +128,7 @@ internal RecoveryResourceGroupCustomDetails(global::System.Management.Automation // actually deserialize if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryResourceGroupCustomDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryResourceGroupCustomDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryResourceGroupCustomDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryResourceGroupCustomDetails.TypeConverter.cs index fc3fef44d5f7..5c059958565b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryResourceGroupCustomDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryResourceGroupCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryResourceGroupCustomDetails.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryResourceGroupCustomDetails.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryResourceGroupCustomDetails.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryResourceGroupCustomDetails.cs index ee650fb5de3e..3adf3cc74e3b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryResourceGroupCustomDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryResourceGroupCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery Resource Group custom input. public partial class RecoveryResourceGroupCustomDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryResourceGroupCustomDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryResourceGroupCustomDetails.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryResourceGroupCustomDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryResourceGroupCustomDetails.json.cs index c7160edc058f..1c14e13b5ab2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryResourceGroupCustomDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryResourceGroupCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class RecoveryResourceGroupCustomDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails 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.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails 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.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryResourceGroupCustomDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryResourceGroupCustomDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProvider.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProvider.PowerShell.cs new file mode 100644 index 000000000000..b88b4ce988ad --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProvider.PowerShell.cs @@ -0,0 +1,480 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Provider details. + [System.ComponentModel.TypeConverter(typeof(RecoveryServicesProviderTypeConverter))] + public partial class RecoveryServicesProvider + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryServicesProvider DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryServicesProvider(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.Migrate.Models.Api202301.IRecoveryServicesProvider DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryServicesProvider(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.Migrate.Models.Api202301.IRecoveryServicesProvider FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryServicesProvider(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.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProviderPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails) content.GetValueForProperty("AuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceAccessIdentityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails) content.GetValueForProperty("ResourceAccessIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderVersionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails) content.GetValueForProperty("ProviderVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FabricType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).FabricType, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersion = (string) content.GetValueForProperty("ProviderVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersion, global::System.Convert.ToString); + } + if (content.Contains("ServerVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ServerVersion = (string) content.GetValueForProperty("ServerVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ServerVersion, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionState = (string) content.GetValueForProperty("ProviderVersionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionState, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).FabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("LastHeartBeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).LastHeartBeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartBeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).LastHeartBeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ConnectionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ConnectionStatus = (string) content.GetValueForProperty("ConnectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ConnectionStatus, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllowedScenario")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AllowedScenario = (string[]) content.GetValueForProperty("AllowedScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AllowedScenario, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("HealthErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("DraIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DraIdentifier = (string) content.GetValueForProperty("DraIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DraIdentifier, global::System.Convert.ToString); + } + if (content.Contains("MachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).MachineId, global::System.Convert.ToString); + } + if (content.Contains("MachineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).MachineName, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("AuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailTenantId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("AuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailObjectId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("AuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAudience, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailTenantId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailApplicationId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailObjectId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAudience = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAudience, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailTenantId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailObjectId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAudience, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetailVersion = (string) content.GetValueForProperty("ProviderVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionDetailExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProviderVersionDetailStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("ProviderVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RecoveryServicesProvider(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.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProviderPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails) content.GetValueForProperty("AuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceAccessIdentityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails) content.GetValueForProperty("ResourceAccessIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderVersionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails) content.GetValueForProperty("ProviderVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FabricType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).FabricType, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersion = (string) content.GetValueForProperty("ProviderVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersion, global::System.Convert.ToString); + } + if (content.Contains("ServerVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ServerVersion = (string) content.GetValueForProperty("ServerVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ServerVersion, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionState = (string) content.GetValueForProperty("ProviderVersionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionState, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).FabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("LastHeartBeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).LastHeartBeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartBeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).LastHeartBeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ConnectionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ConnectionStatus = (string) content.GetValueForProperty("ConnectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ConnectionStatus, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllowedScenario")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AllowedScenario = (string[]) content.GetValueForProperty("AllowedScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AllowedScenario, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("HealthErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("DraIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DraIdentifier = (string) content.GetValueForProperty("DraIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DraIdentifier, global::System.Convert.ToString); + } + if (content.Contains("MachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).MachineId, global::System.Convert.ToString); + } + if (content.Contains("MachineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).MachineName, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("AuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailTenantId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("AuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailObjectId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("AuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAudience, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).AuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailTenantId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailApplicationId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailObjectId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAudience = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAudience, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ResourceAccessIdentityDetailAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailTenantId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailObjectId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAudience, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetailVersion = (string) content.GetValueForProperty("ProviderVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionDetailExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProviderVersionDetailStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("ProviderVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal)this).ProviderVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Provider details. + [System.ComponentModel.TypeConverter(typeof(RecoveryServicesProviderTypeConverter))] + public partial interface IRecoveryServicesProvider + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProvider.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProvider.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProvider.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryServicesProvider.TypeConverter.cs index e8e99f5434b0..e71f6e935897 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProvider.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProvider.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryServicesProvider ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProvider.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProvider.cs new file mode 100644 index 000000000000..a1a0386b7d2b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProvider.cs @@ -0,0 +1,693 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Provider details. + public partial class RecoveryServicesProvider : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// The scenarios allowed on this provider. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string[] AllowedScenario { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).AllowedScenario; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).AllowedScenario = value ?? null /* arrayOf */; } + + /// The base authority for Azure Active Directory authentication. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string AuthenticationIdentityDetailAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailAadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailAadAuthority = value ?? null; } + + /// + /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string AuthenticationIdentityDetailApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailApplicationId = value ?? null; } + + /// + /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string AuthenticationIdentityDetailAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailAudience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailAudience = value ?? null; } + + /// + /// The object Id of the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string AuthenticationIdentityDetailObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailObjectId = value ?? null; } + + /// + /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string AuthenticationIdentityDetailTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetailTenantId = value ?? null; } + + /// The Bios Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string BiosId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).BiosId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).BiosId = value ?? null; } + + /// A value indicating whether DRA is responsive. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ConnectionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ConnectionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ConnectionStatus = value ?? null; } + + /// The base authority for Azure Active Directory authentication. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DataPlaneAuthenticationIdentityDetailAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailAadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailAadAuthority = value ?? null; } + + /// + /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DataPlaneAuthenticationIdentityDetailApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailApplicationId = value ?? null; } + + /// + /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DataPlaneAuthenticationIdentityDetailAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailAudience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailAudience = value ?? null; } + + /// + /// The object Id of the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DataPlaneAuthenticationIdentityDetailObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailObjectId = value ?? null; } + + /// + /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DataPlaneAuthenticationIdentityDetailTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetailTenantId = value ?? null; } + + /// The DRA Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DraIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).DraIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).DraIdentifier = value ?? null; } + + /// The fabric friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).FabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).FabricFriendlyName = value ?? null; } + + /// Type of the site. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FabricType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).FabricType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).FabricType = value ?? null; } + + /// Friendly name of the DRA. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).FriendlyName = value ?? null; } + + /// The recovery services provider health error details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).HealthErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).HealthErrorDetail = value ?? null /* arrayOf */; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Time when last heartbeat was sent by the DRA. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? LastHeartBeat { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).LastHeartBeat; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).LastHeartBeat = value ?? default(global::System.DateTime); } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// The machine Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string MachineId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).MachineId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).MachineId = value ?? null; } + + /// The machine name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string MachineName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).MachineName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).MachineName = value ?? null; } + + /// Internal Acessors for AuthenticationIdentityDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal.AuthenticationIdentityDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).AuthenticationIdentityDetail = value; } + + /// Internal Acessors for DataPlaneAuthenticationIdentityDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal.DataPlaneAuthenticationIdentityDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).DataPlaneAuthenticationIdentityDetail = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProviderProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderVersionDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal.ProviderVersionDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetail = value; } + + /// Internal Acessors for ResourceAccessIdentityDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderInternal.ResourceAccessIdentityDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetail = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderProperties _property; + + /// Provider properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProviderProperties()); set => this._property = value; } + + /// Number of protected VMs currently managed by the DRA. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public int? ProtectedItemCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProtectedItemCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProtectedItemCount = value ?? default(int); } + + /// The provider version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersion = value ?? null; } + + /// Version expiry date. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? ProviderVersionDetailExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetailExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetailExpiryDate = value ?? default(global::System.DateTime); } + + /// A value indicating whether security update required. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? ProviderVersionDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetailStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetailStatus = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus)""); } + + /// The agent version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderVersionDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetailVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionDetailVersion = value ?? null; } + + /// Expiry date of the version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? ProviderVersionExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionExpiryDate = value ?? default(global::System.DateTime); } + + /// DRA version status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderVersionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ProviderVersionState = value ?? null; } + + /// The base authority for Azure Active Directory authentication. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ResourceAccessIdentityDetailAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailAadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailAadAuthority = value ?? null; } + + /// + /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ResourceAccessIdentityDetailApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailApplicationId = value ?? null; } + + /// + /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ResourceAccessIdentityDetailAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailAudience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailAudience = value ?? null; } + + /// + /// The object Id of the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ResourceAccessIdentityDetailObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailObjectId = value ?? null; } + + /// + /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ResourceAccessIdentityDetailTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ResourceAccessIdentityDetailTenantId = value ?? null; } + + /// The fabric provider. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ServerVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ServerVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)Property).ServerVersion = value ?? null; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public RecoveryServicesProvider() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Provider details. + public partial interface IRecoveryServicesProvider : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// The scenarios allowed on this provider. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The scenarios allowed on this provider.", + SerializedName = @"allowedScenarios", + PossibleTypes = new [] { typeof(string) })] + string[] AllowedScenario { get; set; } + /// The base authority for Azure Active Directory authentication. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The base authority for Azure Active Directory authentication.", + SerializedName = @"aadAuthority", + PossibleTypes = new [] { typeof(string) })] + string AuthenticationIdentityDetailAadAuthority { get; set; } + /// + /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.", + SerializedName = @"applicationId", + PossibleTypes = new [] { typeof(string) })] + string AuthenticationIdentityDetailApplicationId { get; set; } + /// + /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The intended Audience of the service principal with which the on-premise management/data plane components would communicate with our Azure services.", + SerializedName = @"audience", + PossibleTypes = new [] { typeof(string) })] + string AuthenticationIdentityDetailAudience { get; set; } + /// + /// The object Id of the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.", + SerializedName = @"objectId", + PossibleTypes = new [] { typeof(string) })] + string AuthenticationIdentityDetailObjectId { get; set; } + /// + /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string AuthenticationIdentityDetailTenantId { get; set; } + /// The Bios Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Bios Id.", + SerializedName = @"biosId", + PossibleTypes = new [] { typeof(string) })] + string BiosId { get; set; } + /// A value indicating whether DRA is responsive. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether DRA is responsive.", + SerializedName = @"connectionStatus", + PossibleTypes = new [] { typeof(string) })] + string ConnectionStatus { get; set; } + /// The base authority for Azure Active Directory authentication. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The base authority for Azure Active Directory authentication.", + SerializedName = @"aadAuthority", + PossibleTypes = new [] { typeof(string) })] + string DataPlaneAuthenticationIdentityDetailAadAuthority { get; set; } + /// + /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.", + SerializedName = @"applicationId", + PossibleTypes = new [] { typeof(string) })] + string DataPlaneAuthenticationIdentityDetailApplicationId { get; set; } + /// + /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The intended Audience of the service principal with which the on-premise management/data plane components would communicate with our Azure services.", + SerializedName = @"audience", + PossibleTypes = new [] { typeof(string) })] + string DataPlaneAuthenticationIdentityDetailAudience { get; set; } + /// + /// The object Id of the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.", + SerializedName = @"objectId", + PossibleTypes = new [] { typeof(string) })] + string DataPlaneAuthenticationIdentityDetailObjectId { get; set; } + /// + /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string DataPlaneAuthenticationIdentityDetailTenantId { get; set; } + /// The DRA Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The DRA Id.", + SerializedName = @"draIdentifier", + PossibleTypes = new [] { typeof(string) })] + string DraIdentifier { get; set; } + /// The fabric friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fabric friendly name.", + SerializedName = @"fabricFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string FabricFriendlyName { get; set; } + /// Type of the site. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of the site.", + SerializedName = @"fabricType", + PossibleTypes = new [] { typeof(string) })] + string FabricType { get; set; } + /// Friendly name of the DRA. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Friendly name of the DRA.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// The recovery services provider health error details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery services provider health error details.", + SerializedName = @"healthErrorDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get; set; } + /// Time when last heartbeat was sent by the DRA. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Time when last heartbeat was sent by the DRA.", + SerializedName = @"lastHeartBeat", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastHeartBeat { get; set; } + /// The machine Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The machine Id.", + SerializedName = @"machineId", + PossibleTypes = new [] { typeof(string) })] + string MachineId { get; set; } + /// The machine name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The machine name.", + SerializedName = @"machineName", + PossibleTypes = new [] { typeof(string) })] + string MachineName { get; set; } + /// Number of protected VMs currently managed by the DRA. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Number of protected VMs currently managed by the DRA.", + SerializedName = @"protectedItemCount", + PossibleTypes = new [] { typeof(int) })] + int? ProtectedItemCount { get; set; } + /// The provider version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The provider version.", + SerializedName = @"providerVersion", + PossibleTypes = new [] { typeof(string) })] + string ProviderVersion { get; set; } + /// Version expiry date. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Version expiry date.", + SerializedName = @"expiryDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ProviderVersionDetailExpiryDate { get; set; } + /// A value indicating whether security update required. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether security update required.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? ProviderVersionDetailStatus { get; set; } + /// The agent version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The agent version.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string ProviderVersionDetailVersion { get; set; } + /// Expiry date of the version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Expiry date of the version.", + SerializedName = @"providerVersionExpiryDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ProviderVersionExpiryDate { get; set; } + /// DRA version status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"DRA version status.", + SerializedName = @"providerVersionState", + PossibleTypes = new [] { typeof(string) })] + string ProviderVersionState { get; set; } + /// The base authority for Azure Active Directory authentication. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The base authority for Azure Active Directory authentication.", + SerializedName = @"aadAuthority", + PossibleTypes = new [] { typeof(string) })] + string ResourceAccessIdentityDetailAadAuthority { get; set; } + /// + /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.", + SerializedName = @"applicationId", + PossibleTypes = new [] { typeof(string) })] + string ResourceAccessIdentityDetailApplicationId { get; set; } + /// + /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The intended Audience of the service principal with which the on-premise management/data plane components would communicate with our Azure services.", + SerializedName = @"audience", + PossibleTypes = new [] { typeof(string) })] + string ResourceAccessIdentityDetailAudience { get; set; } + /// + /// The object Id of the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.", + SerializedName = @"objectId", + PossibleTypes = new [] { typeof(string) })] + string ResourceAccessIdentityDetailObjectId { get; set; } + /// + /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string ResourceAccessIdentityDetailTenantId { get; set; } + /// The fabric provider. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fabric provider.", + SerializedName = @"serverVersion", + PossibleTypes = new [] { typeof(string) })] + string ServerVersion { get; set; } + + } + /// Provider details. + internal partial interface IRecoveryServicesProviderInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The scenarios allowed on this provider. + string[] AllowedScenario { get; set; } + /// The authentication identity details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails AuthenticationIdentityDetail { get; set; } + /// The base authority for Azure Active Directory authentication. + string AuthenticationIdentityDetailAadAuthority { get; set; } + /// + /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + string AuthenticationIdentityDetailApplicationId { get; set; } + /// + /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + string AuthenticationIdentityDetailAudience { get; set; } + /// + /// The object Id of the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + string AuthenticationIdentityDetailObjectId { get; set; } + /// + /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + string AuthenticationIdentityDetailTenantId { get; set; } + /// The Bios Id. + string BiosId { get; set; } + /// A value indicating whether DRA is responsive. + string ConnectionStatus { get; set; } + /// The data plane authentication identity details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails DataPlaneAuthenticationIdentityDetail { get; set; } + /// The base authority for Azure Active Directory authentication. + string DataPlaneAuthenticationIdentityDetailAadAuthority { get; set; } + /// + /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + string DataPlaneAuthenticationIdentityDetailApplicationId { get; set; } + /// + /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + string DataPlaneAuthenticationIdentityDetailAudience { get; set; } + /// + /// The object Id of the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + string DataPlaneAuthenticationIdentityDetailObjectId { get; set; } + /// + /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + string DataPlaneAuthenticationIdentityDetailTenantId { get; set; } + /// The DRA Id. + string DraIdentifier { get; set; } + /// The fabric friendly name. + string FabricFriendlyName { get; set; } + /// Type of the site. + string FabricType { get; set; } + /// Friendly name of the DRA. + string FriendlyName { get; set; } + /// The recovery services provider health error details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get; set; } + /// Time when last heartbeat was sent by the DRA. + global::System.DateTime? LastHeartBeat { get; set; } + /// The machine Id. + string MachineId { get; set; } + /// The machine name. + string MachineName { get; set; } + /// Provider properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderProperties Property { get; set; } + /// Number of protected VMs currently managed by the DRA. + int? ProtectedItemCount { get; set; } + /// The provider version. + string ProviderVersion { get; set; } + /// The provider version details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails ProviderVersionDetail { get; set; } + /// Version expiry date. + global::System.DateTime? ProviderVersionDetailExpiryDate { get; set; } + /// A value indicating whether security update required. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? ProviderVersionDetailStatus { get; set; } + /// The agent version. + string ProviderVersionDetailVersion { get; set; } + /// Expiry date of the version. + global::System.DateTime? ProviderVersionExpiryDate { get; set; } + /// DRA version status. + string ProviderVersionState { get; set; } + /// The resource access identity details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails ResourceAccessIdentityDetail { get; set; } + /// The base authority for Azure Active Directory authentication. + string ResourceAccessIdentityDetailAadAuthority { get; set; } + /// + /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + string ResourceAccessIdentityDetailApplicationId { get; set; } + /// + /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate + /// with our Azure services. + /// + string ResourceAccessIdentityDetailAudience { get; set; } + /// + /// The object Id of the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + string ResourceAccessIdentityDetailObjectId { get; set; } + /// + /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with + /// our Azure services. + /// + string ResourceAccessIdentityDetailTenantId { get; set; } + /// The fabric provider. + string ServerVersion { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProvider.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProvider.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProvider.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryServicesProvider.json.cs index 6b6bacf20ba8..add4fe5a4892 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProvider.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProvider.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryServicesProvider partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryServicesProvider(json) : null; } @@ -77,8 +77,8 @@ internal RecoveryServicesProvider(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProviderProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProviderProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderCollection.PowerShell.cs new file mode 100644 index 000000000000..b616c1bf5075 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderCollection.PowerShell.cs @@ -0,0 +1,156 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Collection of providers. + [System.ComponentModel.TypeConverter(typeof(RecoveryServicesProviderCollectionTypeConverter))] + public partial class RecoveryServicesProviderCollection + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryServicesProviderCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryServicesProviderCollection(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.Migrate.Models.Api202301.IRecoveryServicesProviderCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryServicesProviderCollection(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.Migrate.Models.Api202301.IRecoveryServicesProviderCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryServicesProviderCollection(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProviderTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RecoveryServicesProviderCollection(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProviderTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Collection of providers. + [System.ComponentModel.TypeConverter(typeof(RecoveryServicesProviderCollectionTypeConverter))] + public partial interface IRecoveryServicesProviderCollection + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderCollection.TypeConverter.cs index 8ea7285db22b..c9e7fc09bb5d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryServicesProviderCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderCollection.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderCollection.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderCollection.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderCollection.cs index a90108dcf60e..1b379de260e3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Collection of providers. public partial class RecoveryServicesProviderCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class RecoveryServicesProviderCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider[] _value; /// The Servers details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public RecoveryServicesProviderCollection() @@ -51,8 +51,8 @@ public partial interface IRecoveryServicesProviderCollection : ReadOnly = false, Description = @"The Servers details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider[] Value { get; set; } } /// Collection of providers. @@ -62,7 +62,7 @@ internal partial interface IRecoveryServicesProviderCollectionInternal /// The value of next link. string NextLink { get; set; } /// The Servers details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderCollection.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderCollection.json.cs index b10a33c3561c..62227929888f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryServicesProviderCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryServicesProviderCollection(json) : null; } @@ -77,7 +77,7 @@ internal RecoveryServicesProviderCollection(Microsoft.Azure.PowerShell.Cmdlets.M { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryServicesProvider) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryServicesProvider.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IRecoveryServicesProvider) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryServicesProvider.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderProperties.PowerShell.cs new file mode 100644 index 000000000000..5e76ecabef52 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderProperties.PowerShell.cs @@ -0,0 +1,444 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Recovery services provider properties. + [System.ComponentModel.TypeConverter(typeof(RecoveryServicesProviderPropertiesTypeConverter))] + public partial class RecoveryServicesProviderProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRecoveryServicesProviderProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecoveryServicesProviderProperties(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.Migrate.Models.Api202301.IRecoveryServicesProviderProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecoveryServicesProviderProperties(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.Migrate.Models.Api202301.IRecoveryServicesProviderProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecoveryServicesProviderProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AuthenticationIdentityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails) content.GetValueForProperty("AuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceAccessIdentityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails) content.GetValueForProperty("ResourceAccessIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderVersionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails) content.GetValueForProperty("ProviderVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FabricType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).FabricType, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersion = (string) content.GetValueForProperty("ProviderVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersion, global::System.Convert.ToString); + } + if (content.Contains("ServerVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ServerVersion = (string) content.GetValueForProperty("ServerVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ServerVersion, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionState = (string) content.GetValueForProperty("ProviderVersionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionState, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).FabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("LastHeartBeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).LastHeartBeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartBeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).LastHeartBeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ConnectionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ConnectionStatus = (string) content.GetValueForProperty("ConnectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ConnectionStatus, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllowedScenario")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AllowedScenario = (string[]) content.GetValueForProperty("AllowedScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AllowedScenario, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("HealthErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("DraIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DraIdentifier = (string) content.GetValueForProperty("DraIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DraIdentifier, global::System.Convert.ToString); + } + if (content.Contains("MachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).MachineId, global::System.Convert.ToString); + } + if (content.Contains("MachineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).MachineName, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("AuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailTenantId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("AuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailObjectId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("AuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAudience, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailTenantId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailApplicationId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailObjectId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAudience = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAudience, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailTenantId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailObjectId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAudience, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailVersion = (string) content.GetValueForProperty("ProviderVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionDetailExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProviderVersionDetailStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("ProviderVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RecoveryServicesProviderProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AuthenticationIdentityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails) content.GetValueForProperty("AuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceAccessIdentityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails) content.GetValueForProperty("ResourceAccessIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderVersionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails) content.GetValueForProperty("ProviderVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("FabricType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).FabricType = (string) content.GetValueForProperty("FabricType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).FabricType, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersion = (string) content.GetValueForProperty("ProviderVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersion, global::System.Convert.ToString); + } + if (content.Contains("ServerVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ServerVersion = (string) content.GetValueForProperty("ServerVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ServerVersion, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionState = (string) content.GetValueForProperty("ProviderVersionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionState, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).FabricFriendlyName = (string) content.GetValueForProperty("FabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).FabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("LastHeartBeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).LastHeartBeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartBeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).LastHeartBeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ConnectionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ConnectionStatus = (string) content.GetValueForProperty("ConnectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ConnectionStatus, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AllowedScenario")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AllowedScenario = (string[]) content.GetValueForProperty("AllowedScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AllowedScenario, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("HealthErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).HealthErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).HealthErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("DraIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DraIdentifier = (string) content.GetValueForProperty("DraIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DraIdentifier, global::System.Convert.ToString); + } + if (content.Contains("MachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).MachineId = (string) content.GetValueForProperty("MachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).MachineId, global::System.Convert.ToString); + } + if (content.Contains("MachineName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).MachineName = (string) content.GetValueForProperty("MachineName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).MachineName, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("AuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailTenantId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("AuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("AuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailObjectId, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("AuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAudience, global::System.Convert.ToString); + } + if (content.Contains("AuthenticationIdentityDetailAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("AuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).AuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailTenantId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailTenantId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailApplicationId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailApplicationId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailObjectId = (string) content.GetValueForProperty("ResourceAccessIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailObjectId, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAudience = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAudience, global::System.Convert.ToString); + } + if (content.Contains("ResourceAccessIdentityDetailAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAadAuthority = (string) content.GetValueForProperty("ResourceAccessIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ResourceAccessIdentityDetailAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailTenantId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailTenantId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailTenantId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailApplicationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailApplicationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailApplicationId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailObjectId = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailObjectId, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailAudience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAudience = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAudience",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAudience, global::System.Convert.ToString); + } + if (content.Contains("DataPlaneAuthenticationIdentityDetailAadAuthority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority = (string) content.GetValueForProperty("DataPlaneAuthenticationIdentityDetailAadAuthority",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).DataPlaneAuthenticationIdentityDetailAadAuthority, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailVersion = (string) content.GetValueForProperty("ProviderVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("ProviderVersionDetailExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ProviderVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProviderVersionDetailStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("ProviderVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal)this).ProviderVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Recovery services provider properties. + [System.ComponentModel.TypeConverter(typeof(RecoveryServicesProviderPropertiesTypeConverter))] + public partial interface IRecoveryServicesProviderProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderProperties.TypeConverter.cs index bbc3c63e9eda..419f964a5304 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderProperties.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderProperties.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderProperties.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderProperties.cs index a6116b964c60..1a54dec511b4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery services provider properties. public partial class RecoveryServicesProviderProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal { /// Backing field for property. @@ -21,43 +21,43 @@ public partial class RecoveryServicesProviderProperties : public string[] AllowedScenario { get => this._allowedScenario; set => this._allowedScenario = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails _authenticationIdentityDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails _authenticationIdentityDetail; /// The authentication identity details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails AuthenticationIdentityDetail { get => (this._authenticationIdentityDetail = this._authenticationIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetails()); set => this._authenticationIdentityDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails AuthenticationIdentityDetail { get => (this._authenticationIdentityDetail = this._authenticationIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetails()); set => this._authenticationIdentityDetail = value; } /// The base authority for Azure Active Directory authentication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityDetailAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).AadAuthority = value ?? null; } + public string AuthenticationIdentityDetailAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).AadAuthority = value ?? null; } /// /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityDetailApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).ApplicationId = value ?? null; } + public string AuthenticationIdentityDetailApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).ApplicationId = value ?? null; } /// /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityDetailAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).Audience = value ?? null; } + public string AuthenticationIdentityDetailAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).Audience = value ?? null; } /// /// The object Id of the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityDetailObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).ObjectId = value ?? null; } + public string AuthenticationIdentityDetailObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).ObjectId = value ?? null; } /// /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AuthenticationIdentityDetailTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).TenantId = value ?? null; } + public string AuthenticationIdentityDetailTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)AuthenticationIdentityDetail).TenantId = value ?? null; } /// Backing field for property. private string _biosId; @@ -76,43 +76,43 @@ public partial class RecoveryServicesProviderProperties : /// /// Backing field for property. /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails _dataPlaneAuthenticationIdentityDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails _dataPlaneAuthenticationIdentityDetail; /// The data plane authentication identity details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails DataPlaneAuthenticationIdentityDetail { get => (this._dataPlaneAuthenticationIdentityDetail = this._dataPlaneAuthenticationIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetails()); set => this._dataPlaneAuthenticationIdentityDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails DataPlaneAuthenticationIdentityDetail { get => (this._dataPlaneAuthenticationIdentityDetail = this._dataPlaneAuthenticationIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetails()); set => this._dataPlaneAuthenticationIdentityDetail = value; } /// The base authority for Azure Active Directory authentication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityDetailAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).AadAuthority = value ?? null; } + public string DataPlaneAuthenticationIdentityDetailAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).AadAuthority = value ?? null; } /// /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityDetailApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).ApplicationId = value ?? null; } + public string DataPlaneAuthenticationIdentityDetailApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).ApplicationId = value ?? null; } /// /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityDetailAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).Audience = value ?? null; } + public string DataPlaneAuthenticationIdentityDetailAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).Audience = value ?? null; } /// /// The object Id of the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityDetailObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).ObjectId = value ?? null; } + public string DataPlaneAuthenticationIdentityDetailObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).ObjectId = value ?? null; } /// /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string DataPlaneAuthenticationIdentityDetailTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).TenantId = value ?? null; } + public string DataPlaneAuthenticationIdentityDetailTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)DataPlaneAuthenticationIdentityDetail).TenantId = value ?? null; } /// Backing field for property. private string _draIdentifier; @@ -143,11 +143,11 @@ public partial class RecoveryServicesProviderProperties : public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthErrorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthErrorDetail; /// The recovery services provider health error details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get => this._healthErrorDetail; set => this._healthErrorDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get => this._healthErrorDetail; set => this._healthErrorDetail = value; } /// Backing field for property. private global::System.DateTime? _lastHeartBeat; @@ -171,16 +171,16 @@ public partial class RecoveryServicesProviderProperties : public string MachineName { get => this._machineName; set => this._machineName = value; } /// Internal Acessors for AuthenticationIdentityDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal.AuthenticationIdentityDetail { get => (this._authenticationIdentityDetail = this._authenticationIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetails()); set { {_authenticationIdentityDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal.AuthenticationIdentityDetail { get => (this._authenticationIdentityDetail = this._authenticationIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetails()); set { {_authenticationIdentityDetail = value;} } } /// Internal Acessors for DataPlaneAuthenticationIdentityDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal.DataPlaneAuthenticationIdentityDetail { get => (this._dataPlaneAuthenticationIdentityDetail = this._dataPlaneAuthenticationIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetails()); set { {_dataPlaneAuthenticationIdentityDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal.DataPlaneAuthenticationIdentityDetail { get => (this._dataPlaneAuthenticationIdentityDetail = this._dataPlaneAuthenticationIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetails()); set { {_dataPlaneAuthenticationIdentityDetail = value;} } } /// Internal Acessors for ProviderVersionDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal.ProviderVersionDetail { get => (this._providerVersionDetail = this._providerVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails()); set { {_providerVersionDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal.ProviderVersionDetail { get => (this._providerVersionDetail = this._providerVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails()); set { {_providerVersionDetail = value;} } } /// Internal Acessors for ResourceAccessIdentityDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderPropertiesInternal.ResourceAccessIdentityDetail { get => (this._resourceAccessIdentityDetail = this._resourceAccessIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetails()); set { {_resourceAccessIdentityDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderPropertiesInternal.ResourceAccessIdentityDetail { get => (this._resourceAccessIdentityDetail = this._resourceAccessIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetails()); set { {_resourceAccessIdentityDetail = value;} } } /// Backing field for property. private int? _protectedItemCount; @@ -197,23 +197,23 @@ public partial class RecoveryServicesProviderProperties : public string ProviderVersion { get => this._providerVersion; set => this._providerVersion = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails _providerVersionDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails _providerVersionDetail; /// The provider version details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails ProviderVersionDetail { get => (this._providerVersionDetail = this._providerVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails()); set => this._providerVersionDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails ProviderVersionDetail { get => (this._providerVersionDetail = this._providerVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails()); set => this._providerVersionDetail = value; } /// Version expiry date. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? ProviderVersionDetailExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)ProviderVersionDetail).ExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)ProviderVersionDetail).ExpiryDate = value ?? default(global::System.DateTime); } + public global::System.DateTime? ProviderVersionDetailExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)ProviderVersionDetail).ExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)ProviderVersionDetail).ExpiryDate = value ?? default(global::System.DateTime); } /// A value indicating whether security update required. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? ProviderVersionDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)ProviderVersionDetail).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)ProviderVersionDetail).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus)""); } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? ProviderVersionDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)ProviderVersionDetail).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)ProviderVersionDetail).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus)""); } /// The agent version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderVersionDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)ProviderVersionDetail).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)ProviderVersionDetail).Version = value ?? null; } + public string ProviderVersionDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)ProviderVersionDetail).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)ProviderVersionDetail).Version = value ?? null; } /// Backing field for property. private global::System.DateTime? _providerVersionExpiryDate; @@ -230,43 +230,43 @@ public partial class RecoveryServicesProviderProperties : public string ProviderVersionState { get => this._providerVersionState; set => this._providerVersionState = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails _resourceAccessIdentityDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails _resourceAccessIdentityDetail; /// The resource access identity details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails ResourceAccessIdentityDetail { get => (this._resourceAccessIdentityDetail = this._resourceAccessIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetails()); set => this._resourceAccessIdentityDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails ResourceAccessIdentityDetail { get => (this._resourceAccessIdentityDetail = this._resourceAccessIdentityDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetails()); set => this._resourceAccessIdentityDetail = value; } /// The base authority for Azure Active Directory authentication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityDetailAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).AadAuthority = value ?? null; } + public string ResourceAccessIdentityDetailAadAuthority { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).AadAuthority; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).AadAuthority = value ?? null; } /// /// The application/client Id for the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityDetailApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).ApplicationId = value ?? null; } + public string ResourceAccessIdentityDetailApplicationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).ApplicationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).ApplicationId = value ?? null; } /// /// The intended Audience of the service principal with which the on-premise management/data plane components would communicate /// with our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityDetailAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).Audience = value ?? null; } + public string ResourceAccessIdentityDetailAudience { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).Audience = value ?? null; } /// /// The object Id of the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityDetailObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).ObjectId = value ?? null; } + public string ResourceAccessIdentityDetailObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).ObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).ObjectId = value ?? null; } /// /// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with /// our Azure services. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ResourceAccessIdentityDetailTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).TenantId = value ?? null; } + public string ResourceAccessIdentityDetailTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetailsInternal)ResourceAccessIdentityDetail).TenantId = value ?? null; } /// Backing field for property. private string _serverVersion; @@ -451,8 +451,8 @@ public partial interface IRecoveryServicesProviderProperties : ReadOnly = false, Description = @"The recovery services provider health error details.", SerializedName = @"healthErrorDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get; set; } /// Time when last heartbeat was sent by the DRA. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -602,7 +602,7 @@ internal partial interface IRecoveryServicesProviderPropertiesInternal /// The scenarios allowed on this provider. string[] AllowedScenario { get; set; } /// The authentication identity details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails AuthenticationIdentityDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails AuthenticationIdentityDetail { get; set; } /// The base authority for Azure Active Directory authentication. string AuthenticationIdentityDetailAadAuthority { get; set; } /// @@ -630,7 +630,7 @@ internal partial interface IRecoveryServicesProviderPropertiesInternal /// A value indicating whether DRA is responsive. string ConnectionStatus { get; set; } /// The data plane authentication identity details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails DataPlaneAuthenticationIdentityDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails DataPlaneAuthenticationIdentityDetail { get; set; } /// The base authority for Azure Active Directory authentication. string DataPlaneAuthenticationIdentityDetailAadAuthority { get; set; } /// @@ -662,7 +662,7 @@ internal partial interface IRecoveryServicesProviderPropertiesInternal /// Friendly name of the DRA. string FriendlyName { get; set; } /// The recovery services provider health error details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthErrorDetail { get; set; } /// Time when last heartbeat was sent by the DRA. global::System.DateTime? LastHeartBeat { get; set; } /// The machine Id. @@ -674,7 +674,7 @@ internal partial interface IRecoveryServicesProviderPropertiesInternal /// The provider version. string ProviderVersion { get; set; } /// The provider version details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails ProviderVersionDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails ProviderVersionDetail { get; set; } /// Version expiry date. global::System.DateTime? ProviderVersionDetailExpiryDate { get; set; } /// A value indicating whether security update required. @@ -686,7 +686,7 @@ internal partial interface IRecoveryServicesProviderPropertiesInternal /// DRA version status. string ProviderVersionState { get; set; } /// The resource access identity details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIdentityProviderDetails ResourceAccessIdentityDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIdentityProviderDetails ResourceAccessIdentityDetail { get; set; } /// The base authority for Azure Active Directory authentication. string ResourceAccessIdentityDetailAadAuthority { get; set; } /// diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderProperties.json.cs index 7bf4728eef7e..9b6f5a505447 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryServicesProviderProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryServicesProviderProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecoveryServicesProviderProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProviderProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RecoveryServicesProviderProperties(json) : null; } @@ -77,10 +77,10 @@ internal RecoveryServicesProviderProperties(Microsoft.Azure.PowerShell.Cmdlets.M { return; } - {_authenticationIdentityDetail = If( json?.PropertyT("authenticationIdentityDetails"), out var __jsonAuthenticationIdentityDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetails.FromJson(__jsonAuthenticationIdentityDetails) : AuthenticationIdentityDetail;} - {_resourceAccessIdentityDetail = If( json?.PropertyT("resourceAccessIdentityDetails"), out var __jsonResourceAccessIdentityDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetails.FromJson(__jsonResourceAccessIdentityDetails) : ResourceAccessIdentityDetail;} - {_dataPlaneAuthenticationIdentityDetail = If( json?.PropertyT("dataPlaneAuthenticationIdentityDetails"), out var __jsonDataPlaneAuthenticationIdentityDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IdentityProviderDetails.FromJson(__jsonDataPlaneAuthenticationIdentityDetails) : DataPlaneAuthenticationIdentityDetail;} - {_providerVersionDetail = If( json?.PropertyT("providerVersionDetails"), out var __jsonProviderVersionDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails.FromJson(__jsonProviderVersionDetails) : ProviderVersionDetail;} + {_authenticationIdentityDetail = If( json?.PropertyT("authenticationIdentityDetails"), out var __jsonAuthenticationIdentityDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetails.FromJson(__jsonAuthenticationIdentityDetails) : AuthenticationIdentityDetail;} + {_resourceAccessIdentityDetail = If( json?.PropertyT("resourceAccessIdentityDetails"), out var __jsonResourceAccessIdentityDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetails.FromJson(__jsonResourceAccessIdentityDetails) : ResourceAccessIdentityDetail;} + {_dataPlaneAuthenticationIdentityDetail = If( json?.PropertyT("dataPlaneAuthenticationIdentityDetails"), out var __jsonDataPlaneAuthenticationIdentityDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IdentityProviderDetails.FromJson(__jsonDataPlaneAuthenticationIdentityDetails) : DataPlaneAuthenticationIdentityDetail;} + {_providerVersionDetail = If( json?.PropertyT("providerVersionDetails"), out var __jsonProviderVersionDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails.FromJson(__jsonProviderVersionDetails) : ProviderVersionDetail;} {_fabricType = If( json?.PropertyT("fabricType"), out var __jsonFabricType) ? (string)__jsonFabricType : (string)FabricType;} {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)FriendlyName;} {_providerVersion = If( json?.PropertyT("providerVersion"), out var __jsonProviderVersion) ? (string)__jsonProviderVersion : (string)ProviderVersion;} @@ -92,7 +92,7 @@ internal RecoveryServicesProviderProperties(Microsoft.Azure.PowerShell.Cmdlets.M {_connectionStatus = If( json?.PropertyT("connectionStatus"), out var __jsonConnectionStatus) ? (string)__jsonConnectionStatus : (string)ConnectionStatus;} {_protectedItemCount = If( json?.PropertyT("protectedItemCount"), out var __jsonProtectedItemCount) ? (int?)__jsonProtectedItemCount : ProtectedItemCount;} {_allowedScenario = If( json?.PropertyT("allowedScenarios"), out var __jsonAllowedScenarios) ? If( __jsonAllowedScenarios as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : AllowedScenario;} - {_healthErrorDetail = If( json?.PropertyT("healthErrorDetails"), out var __jsonHealthErrorDetails) ? If( __jsonHealthErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__p) )) ))() : null : HealthErrorDetail;} + {_healthErrorDetail = If( json?.PropertyT("healthErrorDetails"), out var __jsonHealthErrorDetails) ? If( __jsonHealthErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__p) )) ))() : null : HealthErrorDetail;} {_draIdentifier = If( json?.PropertyT("draIdentifier"), out var __jsonDraIdentifier) ? (string)__jsonDraIdentifier : (string)DraIdentifier;} {_machineId = If( json?.PropertyT("machineId"), out var __jsonMachineId) ? (string)__jsonMachineId : (string)MachineId;} {_machineName = If( json?.PropertyT("machineName"), out var __jsonMachineName) ? (string)__jsonMachineName : (string)MachineName;} diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryVirtualNetworkCustomDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryVirtualNetworkCustomDetails.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryVirtualNetworkCustomDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryVirtualNetworkCustomDetails.PowerShell.cs index cbddcd6df222..da91b0b7bca2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryVirtualNetworkCustomDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryVirtualNetworkCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RecoveryVirtualNetworkCustomDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RecoveryVirtualNetworkCustomDetails(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.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryVirtualNetworkCustomDetails(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRec /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,13 +107,13 @@ internal RecoveryVirtualNetworkCustomDetails(global::System.Collections.IDiction // actually deserialize if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType, 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. @@ -128,7 +128,7 @@ internal RecoveryVirtualNetworkCustomDetails(global::System.Management.Automatio // actually deserialize if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryVirtualNetworkCustomDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryVirtualNetworkCustomDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryVirtualNetworkCustomDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryVirtualNetworkCustomDetails.TypeConverter.cs index 6d7ac16fb5f2..7a1e47908e1f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryVirtualNetworkCustomDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryVirtualNetworkCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryVirtualNetworkCustomDetails.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryVirtualNetworkCustomDetails.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryVirtualNetworkCustomDetails.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryVirtualNetworkCustomDetails.cs index 4d037b3ef9a3..2995af7f7915 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryVirtualNetworkCustomDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryVirtualNetworkCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery Virtual network custom input. public partial class RecoveryVirtualNetworkCustomDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RecoveryVirtualNetworkCustomDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/RecoveryVirtualNetworkCustomDetails.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/RecoveryVirtualNetworkCustomDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/RecoveryVirtualNetworkCustomDetails.json.cs index 5282bbb5bd90..2cd835bd9f26 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RecoveryVirtualNetworkCustomDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RecoveryVirtualNetworkCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class RecoveryVirtualNetworkCustomDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails 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.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails 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.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryVirtualNetworkCustomDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryVirtualNetworkCustomDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/RemoveDisksInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInput.PowerShell.cs new file mode 100644 index 000000000000..b0096dff9cd3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInput.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input for remove disk(s) operation. + [System.ComponentModel.TypeConverter(typeof(RemoveDisksInputTypeConverter))] + public partial class RemoveDisksInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRemoveDisksInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RemoveDisksInput(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.Migrate.Models.Api202301.IRemoveDisksInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RemoveDisksInput(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.Migrate.Models.Api202301.IRemoveDisksInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RemoveDisksInput(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.Migrate.Models.Api202301.IRemoveDisksInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputInternal)this).ProviderSpecificDetailInstanceType, 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 RemoveDisksInput(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.Migrate.Models.Api202301.IRemoveDisksInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input for remove disk(s) operation. + [System.ComponentModel.TypeConverter(typeof(RemoveDisksInputTypeConverter))] + public partial interface IRemoveDisksInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/RemoveDisksInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RemoveDisksInput.TypeConverter.cs index 35704aa017e5..c54d0fde5d63 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRemoveDisksInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RemoveDisksInput.cs b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInput.cs new file mode 100644 index 000000000000..55a45d308848 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInput.cs @@ -0,0 +1,68 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input for remove disk(s) operation. + public partial class RemoveDisksInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputProperties _property; + + /// Remove disk input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksInputProperties()); set => this._property = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// Creates an new instance. + public RemoveDisksInput() + { + + } + } + /// Input for remove disk(s) operation. + public partial interface IRemoveDisksInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Input for remove disk(s) operation. + internal partial interface IRemoveDisksInputInternal + + { + /// Remove disk input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputProperties Property { get; set; } + /// + /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, + /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. + /// + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RemoveDisksInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RemoveDisksInput.json.cs index ac772d8c6b91..1af8f691a38e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RemoveDisksInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RemoveDisksInput(json) : null; } @@ -77,7 +77,7 @@ internal RemoveDisksInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Jso { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RemoveDisksInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInputProperties.PowerShell.cs new file mode 100644 index 000000000000..15ca7c71c623 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInputProperties.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Remove Disk input properties. + [System.ComponentModel.TypeConverter(typeof(RemoveDisksInputPropertiesTypeConverter))] + public partial class RemoveDisksInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRemoveDisksInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RemoveDisksInputProperties(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.Migrate.Models.Api202301.IRemoveDisksInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RemoveDisksInputProperties(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.Migrate.Models.Api202301.IRemoveDisksInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RemoveDisksInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 RemoveDisksInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Remove Disk input properties. + [System.ComponentModel.TypeConverter(typeof(RemoveDisksInputPropertiesTypeConverter))] + public partial interface IRemoveDisksInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RemoveDisksInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RemoveDisksInputProperties.TypeConverter.cs index 66f12a0fd5e2..b9c312bf7748 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRemoveDisksInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RemoveDisksInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInputProperties.cs new file mode 100644 index 000000000000..bf1f46b1977f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInputProperties.cs @@ -0,0 +1,66 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Remove Disk input properties. + public partial class RemoveDisksInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputPropertiesInternal + { + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput _providerSpecificDetail; + + /// + /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, + /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksProviderSpecificInput()); set => this._providerSpecificDetail = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + + /// Creates an new instance. + public RemoveDisksInputProperties() + { + + } + } + /// Remove Disk input properties. + public partial interface IRemoveDisksInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Remove Disk input properties. + internal partial interface IRemoveDisksInputPropertiesInternal + + { + /// + /// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider, + /// it will be SanEnableProtectionInput object. For HyperVReplicaAzure provider, it can be null. + /// + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/RemoveDisksInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/RemoveDisksInputProperties.json.cs index d217265f147f..cb56e297d6ba 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RemoveDisksInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RemoveDisksInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RemoveDisksInputProperties(json) : null; } @@ -77,7 +77,7 @@ internal RemoveDisksInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.R { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveDisksProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveDisksProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RemoveDisksProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/RemoveDisksProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RemoveDisksProviderSpecificInput.PowerShell.cs index 8260e4e07423..4a3788c00e78 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RemoveDisksProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RemoveDisksProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RemoveDisksProviderSpecificInput(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.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RemoveDisksProviderSpecificInput(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRem /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +105,13 @@ internal RemoveDisksProviderSpecificInput(global::System.Collections.IDictionary // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInputInternal)this).InstanceType, 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,7 +126,7 @@ internal RemoveDisksProviderSpecificInput(global::System.Management.Automation.P // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RemoveDisksProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RemoveDisksProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RemoveDisksProviderSpecificInput.TypeConverter.cs index ec2d39128f57..8b33f8e7b4e7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RemoveDisksProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/RemoveDisksProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RemoveDisksProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/RemoveDisksProviderSpecificInput.cs index ba5dac65be57..6b23e6808ccb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/RemoveDisksProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Remove Disk provider specific input. public partial class RemoveDisksProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RemoveDisksProviderSpecificInput.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/RemoveDisksProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RemoveDisksProviderSpecificInput.json.cs index 027312e6ece8..fc41f62c6491 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveDisksProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RemoveDisksProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class RemoveDisksProviderSpecificInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput 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.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput 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.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveDisksProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveDisksProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInput.PowerShell.cs new file mode 100644 index 000000000000..7e6c054ab2bd --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInput.PowerShell.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Container unpairing input. + [System.ComponentModel.TypeConverter(typeof(RemoveProtectionContainerMappingInputTypeConverter))] + public partial class RemoveProtectionContainerMappingInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RemoveProtectionContainerMappingInput(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.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RemoveProtectionContainerMappingInput(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.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RemoveProtectionContainerMappingInput(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.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveProtectionContainerMappingInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderContainerUnmappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInputInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType, 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 RemoveProtectionContainerMappingInput(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.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveProtectionContainerMappingInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderContainerUnmappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInputInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Container unpairing input. + [System.ComponentModel.TypeConverter(typeof(RemoveProtectionContainerMappingInputTypeConverter))] + public partial interface IRemoveProtectionContainerMappingInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInput.TypeConverter.cs index cdba7bd92b1e..277bbdae1cc7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInput.cs new file mode 100644 index 000000000000..e5bd4689c04a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInput.cs @@ -0,0 +1,65 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Container unpairing input. + public partial class RemoveProtectionContainerMappingInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveProtectionContainerMappingInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputInternal.ProviderSpecificInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInput = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties _property; + + /// Configure protection input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveProtectionContainerMappingInputProperties()); set => this._property = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificInputInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInputInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInputInstanceType = value ?? null; } + + /// Creates an new instance. + public RemoveProtectionContainerMappingInput() + { + + } + } + /// Container unpairing input. + public partial interface IRemoveProtectionContainerMappingInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificInputInstanceType { get; set; } + + } + /// Container unpairing input. + internal partial interface IRemoveProtectionContainerMappingInputInternal + + { + /// Configure protection input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties Property { get; set; } + /// Provider specific input for unpairing. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput ProviderSpecificInput { get; set; } + /// The class type. + string ProviderSpecificInputInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInput.json.cs index 5b7def9a4e14..164f02bf84d5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RemoveProtectionContainerMappingInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RemoveProtectionContainerMappingInput(json) : null; } @@ -77,7 +77,7 @@ internal RemoveProtectionContainerMappingInput(Microsoft.Azure.PowerShell.Cmdlet { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RemoveProtectionContainerMappingInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RemoveProtectionContainerMappingInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInputProperties.PowerShell.cs new file mode 100644 index 000000000000..734608e67095 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInputProperties.PowerShell.cs @@ -0,0 +1,157 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Unpairing input properties. + [System.ComponentModel.TypeConverter(typeof(RemoveProtectionContainerMappingInputPropertiesTypeConverter))] + public partial class RemoveProtectionContainerMappingInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RemoveProtectionContainerMappingInputProperties(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.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RemoveProtectionContainerMappingInputProperties(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.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RemoveProtectionContainerMappingInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderContainerUnmappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInputInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType, 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 RemoveProtectionContainerMappingInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderContainerUnmappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInputInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Unpairing input properties. + [System.ComponentModel.TypeConverter(typeof(RemoveProtectionContainerMappingInputPropertiesTypeConverter))] + public partial interface IRemoveProtectionContainerMappingInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInputProperties.TypeConverter.cs index 7a8a88009d65..d130e8c63a9e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInputProperties.cs new file mode 100644 index 000000000000..3d87fd17a3a3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInputProperties.cs @@ -0,0 +1,62 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Unpairing input properties. + public partial class RemoveProtectionContainerMappingInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputPropertiesInternal + { + + /// Internal Acessors for ProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputPropertiesInternal.ProviderSpecificInput { get => (this._providerSpecificInput = this._providerSpecificInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderContainerUnmappingInput()); set { {_providerSpecificInput = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput _providerSpecificInput; + + /// Provider specific input for unpairing. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput ProviderSpecificInput { get => (this._providerSpecificInput = this._providerSpecificInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderContainerUnmappingInput()); set => this._providerSpecificInput = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificInputInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInputInternal)ProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInputInternal)ProviderSpecificInput).InstanceType = value ?? null; } + + /// + /// Creates an new instance. + /// + public RemoveProtectionContainerMappingInputProperties() + { + + } + } + /// Unpairing input properties. + public partial interface IRemoveProtectionContainerMappingInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificInputInstanceType { get; set; } + + } + /// Unpairing input properties. + internal partial interface IRemoveProtectionContainerMappingInputPropertiesInternal + + { + /// Provider specific input for unpairing. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput ProviderSpecificInput { get; set; } + /// The class type. + string ProviderSpecificInputInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInputProperties.json.cs index 3bd1eedb8c09..15a7dcb7c4a3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RemoveProtectionContainerMappingInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RemoveProtectionContainerMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RemoveProtectionContainerMappingInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRemoveProtectionContainerMappingInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRemoveProtectionContainerMappingInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RemoveProtectionContainerMappingInputProperties(json) : null; } @@ -78,7 +78,7 @@ internal RemoveProtectionContainerMappingInputProperties(Microsoft.Azure.PowerSh { return; } - {_providerSpecificInput = If( json?.PropertyT("providerSpecificInput"), out var __jsonProviderSpecificInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderContainerUnmappingInput.FromJson(__jsonProviderSpecificInput) : ProviderSpecificInput;} + {_providerSpecificInput = If( json?.PropertyT("providerSpecificInput"), out var __jsonProviderSpecificInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderContainerUnmappingInput.FromJson(__jsonProviderSpecificInput) : ProviderSpecificInput;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInput.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/RenewCertificateInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RenewCertificateInput.PowerShell.cs index 9edb943ce7ed..6e651e47448e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class RenewCertificateInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRenewCertificateInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RenewCertificateInput(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.Migrate.Models.Api20220501.IRenewCertificateInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RenewCertificateInput(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRen /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal RenewCertificateInput(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RenewCertificateInputPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RenewCertificateInputPropertiesTypeConverter.ConvertFrom); } if (content.Contains("RenewCertificateType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputInternal)this).RenewCertificateType = (string) content.GetValueForProperty("RenewCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputInternal)this).RenewCertificateType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputInternal)this).RenewCertificateType = (string) content.GetValueForProperty("RenewCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputInternal)this).RenewCertificateType, 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. @@ -128,11 +128,11 @@ internal RenewCertificateInput(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RenewCertificateInputPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RenewCertificateInputPropertiesTypeConverter.ConvertFrom); } if (content.Contains("RenewCertificateType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputInternal)this).RenewCertificateType = (string) content.GetValueForProperty("RenewCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputInternal)this).RenewCertificateType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputInternal)this).RenewCertificateType = (string) content.GetValueForProperty("RenewCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputInternal)this).RenewCertificateType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RenewCertificateInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RenewCertificateInput.TypeConverter.cs index f8ab08b773fe..d6d3925092e9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRenewCertificateInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/RenewCertificateInput.cs b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInput.cs new file mode 100644 index 000000000000..f86a7497e8b9 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Certificate renewal input. + public partial class RenewCertificateInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RenewCertificateInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties _property; + + /// Renew certificate input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RenewCertificateInputProperties()); set => this._property = value; } + + /// Renew certificate type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RenewCertificateType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputPropertiesInternal)Property).RenewCertificateType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputPropertiesInternal)Property).RenewCertificateType = value ?? null; } + + /// Creates an new instance. + public RenewCertificateInput() + { + + } + } + /// Certificate renewal input. + public partial interface IRenewCertificateInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Renew certificate type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Renew certificate type.", + SerializedName = @"renewCertificateType", + PossibleTypes = new [] { typeof(string) })] + string RenewCertificateType { get; set; } + + } + /// Certificate renewal input. + internal partial interface IRenewCertificateInputInternal + + { + /// Renew certificate input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties Property { get; set; } + /// Renew certificate type. + string RenewCertificateType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInput.json.cs b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/RenewCertificateInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/RenewCertificateInput.json.cs index 4f3baa462a46..b8d39a1b89ec 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RenewCertificateInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RenewCertificateInput(json) : null; } @@ -77,7 +77,7 @@ internal RenewCertificateInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RenewCertificateInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RenewCertificateInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInputProperties.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/RenewCertificateInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RenewCertificateInputProperties.PowerShell.cs index a01b6f203206..d9a7bf1f5b17 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RenewCertificateInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRenewCertificateInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RenewCertificateInputProperties(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.Migrate.Models.Api20220501.IRenewCertificateInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RenewCertificateInputProperties(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRen /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +105,13 @@ internal RenewCertificateInputProperties(global::System.Collections.IDictionary // actually deserialize if (content.Contains("RenewCertificateType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputPropertiesInternal)this).RenewCertificateType = (string) content.GetValueForProperty("RenewCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputPropertiesInternal)this).RenewCertificateType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputPropertiesInternal)this).RenewCertificateType = (string) content.GetValueForProperty("RenewCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputPropertiesInternal)this).RenewCertificateType, 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,7 +126,7 @@ internal RenewCertificateInputProperties(global::System.Management.Automation.PS // actually deserialize if (content.Contains("RenewCertificateType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputPropertiesInternal)this).RenewCertificateType = (string) content.GetValueForProperty("RenewCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputPropertiesInternal)this).RenewCertificateType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputPropertiesInternal)this).RenewCertificateType = (string) content.GetValueForProperty("RenewCertificateType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputPropertiesInternal)this).RenewCertificateType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RenewCertificateInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RenewCertificateInputProperties.TypeConverter.cs index 1819c19fc4ee..21ece56cc39d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRenewCertificateInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInputProperties.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RenewCertificateInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/RenewCertificateInputProperties.cs index 44bd352990a8..14d6af196cad 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Renew Certificate input properties. public partial class RenewCertificateInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInputProperties.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/RenewCertificateInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/RenewCertificateInputProperties.json.cs index 016ba0220423..ccbf2be414eb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RenewCertificateInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RenewCertificateInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RenewCertificateInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRenewCertificateInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRenewCertificateInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RenewCertificateInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationAgentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationAgentDetails.PowerShell.cs new file mode 100644 index 000000000000..413de657d4d4 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationAgentDetails.PowerShell.cs @@ -0,0 +1,208 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Replication agent details. + [System.ComponentModel.TypeConverter(typeof(ReplicationAgentDetailsTypeConverter))] + public partial class ReplicationAgentDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReplicationAgentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReplicationAgentDetails(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.Migrate.Models.Api202301.IReplicationAgentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReplicationAgentDetails(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.Migrate.Models.Api202301.IReplicationAgentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReplicationAgentDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReplicationAgentDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Replication agent details. + [System.ComponentModel.TypeConverter(typeof(ReplicationAgentDetailsTypeConverter))] + public partial interface IReplicationAgentDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationAgentDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationAgentDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationAgentDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationAgentDetails.TypeConverter.cs index cf1847be4458..673d0873e7b0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationAgentDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationAgentDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationAgentDetails.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationAgentDetails.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationAgentDetails.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationAgentDetails.cs index 96ad1aca57a5..49996cfce4a5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationAgentDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Replication agent details. public partial class ReplicationAgentDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal { /// Backing field for property. @@ -42,11 +42,11 @@ public partial class ReplicationAgentDetails : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get => this._health; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthError; /// The health errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => this._healthError; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => this._healthError; } /// Backing field for property. private string _id; @@ -63,31 +63,31 @@ public partial class ReplicationAgentDetails : public global::System.DateTime? LastHeartbeatUtc { get => this._lastHeartbeatUtc; } /// Internal Acessors for BiosId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } /// Internal Acessors for FabricObjectId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal.FabricObjectId { get => this._fabricObjectId; set { {_fabricObjectId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal.FabricObjectId { get => this._fabricObjectId; set { {_fabricObjectId = value;} } } /// Internal Acessors for Fqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } /// Internal Acessors for Health - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal.Health { get => this._health; set { {_health = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal.Health { get => this._health; set { {_health = value;} } } /// Internal Acessors for HealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for LastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetailsInternal.Version { get => this._version; set { {_version = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetailsInternal.Version { get => this._version; set { {_version = value;} } } /// Backing field for property. private string _name; @@ -151,8 +151,8 @@ public partial interface IReplicationAgentDetails : ReadOnly = true, Description = @"The health errors.", SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; } /// The replication agent Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -200,7 +200,7 @@ internal partial interface IReplicationAgentDetailsInternal /// The health of the replication agent. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get; set; } /// The health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The replication agent Id. string Id { get; set; } /// The last heartbeat received from the replication agent. diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationAgentDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationAgentDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationAgentDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationAgentDetails.json.cs index c886fad3b85b..bf30ab0e18f5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationAgentDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationAgentDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAgentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAgentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationAgentDetails(json) : null; } @@ -85,7 +85,7 @@ internal ReplicationAgentDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} {_lastHeartbeatUtc = If( json?.PropertyT("lastHeartbeatUtc"), out var __jsonLastHeartbeatUtc) ? global::System.DateTime.TryParse((string)__jsonLastHeartbeatUtc, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastHeartbeatUtcValue) ? __jsonLastHeartbeatUtcValue : LastHeartbeatUtc : LastHeartbeatUtc;} {_health = If( json?.PropertyT("health"), out var __jsonHealth) ? (string)__jsonHealth : (string)Health;} - {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__u) )) ))() : null : HealthError;} + {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__u) )) ))() : null : HealthError;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationAppliance.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationAppliance.PowerShell.cs new file mode 100644 index 000000000000..3ed3bb445dbc --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationAppliance.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Replication appliance definition. + [System.ComponentModel.TypeConverter(typeof(ReplicationApplianceTypeConverter))] + public partial class ReplicationAppliance + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReplicationAppliance DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReplicationAppliance(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.Migrate.Models.Api202301.IReplicationAppliance DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReplicationAppliance(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.Migrate.Models.Api202301.IReplicationAppliance FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReplicationAppliance(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.Migrate.Models.Api202301.IReplicationApplianceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationAppliancePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceInternal)this).ProviderSpecificDetailInstanceType, 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 ReplicationAppliance(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.Migrate.Models.Api202301.IReplicationApplianceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationAppliancePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Replication appliance definition. + [System.ComponentModel.TypeConverter(typeof(ReplicationApplianceTypeConverter))] + public partial interface IReplicationAppliance + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationAppliance.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationAppliance.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationAppliance.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationAppliance.TypeConverter.cs index 94468f59b9a9..15b9558354ee 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationAppliance.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationAppliance.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationAppliance ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliance ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliance).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliance).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationAppliance.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationAppliance.cs new file mode 100644 index 000000000000..358f12bbfcbd --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationAppliance.cs @@ -0,0 +1,65 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Replication appliance definition. + public partial class ReplicationAppliance : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliance, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationApplianceProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliancePropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliancePropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceProperties _property; + + /// Appliance related data. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationApplianceProperties()); set => this._property = value; } + + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliancePropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliancePropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// Creates an new instance. + public ReplicationAppliance() + { + + } + } + /// Replication appliance definition. + public partial interface IReplicationAppliance : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the class type. Overridden in derived classes.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Replication appliance definition. + internal partial interface IReplicationApplianceInternal + + { + /// Appliance related data. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceProperties Property { get; set; } + /// Provider specific settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails ProviderSpecificDetail { get; set; } + /// Gets the class type. Overridden in derived classes. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationAppliance.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationAppliance.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationAppliance.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationAppliance.json.cs index dc44e676a497..69a6cab80da6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationAppliance.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationAppliance.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationAppliance partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliance. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliance. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliance. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliance. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationAppliance FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliance FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationAppliance(json) : null; } @@ -77,7 +77,7 @@ internal ReplicationAppliance(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationApplianceProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationApplianceProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationApplianceProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationApplianceProperties.PowerShell.cs new file mode 100644 index 000000000000..8f075d001c3e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationApplianceProperties.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Replication appliance properties. + [System.ComponentModel.TypeConverter(typeof(ReplicationAppliancePropertiesTypeConverter))] + public partial class ReplicationApplianceProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReplicationApplianceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReplicationApplianceProperties(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.Migrate.Models.Api202301.IReplicationApplianceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReplicationApplianceProperties(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.Migrate.Models.Api202301.IReplicationApplianceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReplicationApplianceProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 ReplicationApplianceProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceSpecificDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliancePropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Replication appliance properties. + [System.ComponentModel.TypeConverter(typeof(ReplicationAppliancePropertiesTypeConverter))] + public partial interface IReplicationApplianceProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationApplianceProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationApplianceProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationApplianceProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationApplianceProperties.TypeConverter.cs index 5923df5b094a..d94fb8d60c52 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationApplianceProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationApplianceProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationApplianceProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationApplianceProperties.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationApplianceProperties.cs new file mode 100644 index 000000000000..a49599a46f08 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationApplianceProperties.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Replication appliance properties. + public partial class ReplicationApplianceProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliancePropertiesInternal + { + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationAppliancePropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceSpecificDetails()); set { {_providerSpecificDetail = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails _providerSpecificDetail; + + /// Provider specific settings. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceSpecificDetails()); set => this._providerSpecificDetail = value; } + + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetailsInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetailsInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + + /// Creates an new instance. + public ReplicationApplianceProperties() + { + + } + } + /// Replication appliance properties. + public partial interface IReplicationApplianceProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the class type. Overridden in derived classes.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Replication appliance properties. + internal partial interface IReplicationAppliancePropertiesInternal + + { + /// Provider specific settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IApplianceSpecificDetails ProviderSpecificDetail { get; set; } + /// Gets the class type. Overridden in derived classes. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationApplianceProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationApplianceProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationApplianceProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationApplianceProperties.json.cs index 13d158b4f0e6..6bb6cffc7515 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationApplianceProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationApplianceProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationApplianceProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationApplianceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationApplianceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationApplianceProperties(json) : null; } @@ -77,7 +77,7 @@ internal ReplicationApplianceProperties(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ApplianceSpecificDetails.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ApplianceSpecificDetails.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResults.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResults.PowerShell.cs new file mode 100644 index 000000000000..e6ca0d0941cd --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResults.PowerShell.cs @@ -0,0 +1,186 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Replication eligibility results response model. + [System.ComponentModel.TypeConverter(typeof(ReplicationEligibilityResultsTypeConverter))] + public partial class ReplicationEligibilityResults + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReplicationEligibilityResults DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReplicationEligibilityResults(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.Migrate.Models.Api202301.IReplicationEligibilityResults DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReplicationEligibilityResults(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.Migrate.Models.Api202301.IReplicationEligibilityResults FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReplicationEligibilityResults(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.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("ClientRequestId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).ClientRequestId = (string) content.GetValueForProperty("ClientRequestId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).ClientRequestId, global::System.Convert.ToString); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsErrorInfoTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReplicationEligibilityResults(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.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("ClientRequestId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).ClientRequestId = (string) content.GetValueForProperty("ClientRequestId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).ClientRequestId, global::System.Convert.ToString); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsErrorInfoTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Replication eligibility results response model. + [System.ComponentModel.TypeConverter(typeof(ReplicationEligibilityResultsTypeConverter))] + public partial interface IReplicationEligibilityResults + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResults.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResults.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResults.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResults.TypeConverter.cs index edd1ce346c81..e2c6deeac369 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResults.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResults.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationEligibilityResults ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResults ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResults).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResults).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResults.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResults.cs new file mode 100644 index 000000000000..260871c2d1e0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResults.cs @@ -0,0 +1,137 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Replication eligibility results response model. + public partial class ReplicationEligibilityResults : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResults, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal + { + + /// The client request Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ClientRequestId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal)Property).ClientRequestId; } + + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo[] Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal)Property).Error = value ?? null /* arrayOf */; } + + /// Backing field for property. + private string _id; + + /// Gets Unique ARM identifier for this object. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Internal Acessors for ClientRequestId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal.ClientRequestId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal)Property).ClientRequestId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal)Property).ClientRequestId = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsProperties()); set { {_property = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// Gets the name of this object. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties _property; + + /// Gets properties model for replication eligibility results API. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsProperties()); } + + /// Backing field for property. + private string _type; + + /// Gets the object type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public ReplicationEligibilityResults() + { + + } + } + /// Replication eligibility results response model. + public partial interface IReplicationEligibilityResults : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The client request Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The client request Id.", + SerializedName = @"clientRequestId", + PossibleTypes = new [] { typeof(string) })] + string ClientRequestId { get; } + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The error details.", + SerializedName = @"errors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo[] Error { get; set; } + /// Gets Unique ARM identifier for this object. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Gets Unique ARM identifier for this object.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// Gets the name of this object. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Gets the name of this object.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// Gets the object type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Gets the object type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// Replication eligibility results response model. + internal partial interface IReplicationEligibilityResultsInternal + + { + /// The client request Id. + string ClientRequestId { get; set; } + /// The error details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo[] Error { get; set; } + /// Gets Unique ARM identifier for this object. + string Id { get; set; } + /// Gets the name of this object. + string Name { get; set; } + /// Gets properties model for replication eligibility results API. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties Property { get; set; } + /// Gets the object type. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResults.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResults.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResults.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResults.json.cs index 87aac9e9305c..4e81062ed8da 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResults.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResults.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationEligibilityResults partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResults. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResults. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResults. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResults. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResults FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResults FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationEligibilityResults(json) : null; } @@ -77,7 +77,7 @@ internal ReplicationEligibilityResults(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsProperties.FromJson(__jsonProperties) : Property;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsCollection.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsCollection.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsCollection.PowerShell.cs index 4d1b0e8e6f5a..2a82dbd0068a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsCollection.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ReplicationEligibilityResultsCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IReplicationEligibilityResultsCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ReplicationEligibilityResultsCollection(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.Migrate.Models.Api20220501.IReplicationEligibilityResultsCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ReplicationEligibilityResultsCollection(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRep /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal ReplicationEligibilityResultsCollection(global::System.Collections.IDic // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResults[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResults[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsTypeConverter.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. @@ -129,7 +129,7 @@ internal ReplicationEligibilityResultsCollection(global::System.Management.Autom // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResults[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResults[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsCollection.TypeConverter.cs index 426497a552fa..3d15bed7364d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationEligibilityResultsCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsCollection.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsCollection.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsCollection.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsCollection.cs index e6fa2d6c516c..44ce9f5102cb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsCollection.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Replication eligibility results collection response model. public partial class ReplicationEligibilityResultsCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsCollectionInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResults[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResults[] _value; /// The replication eligibility results details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResults[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResults[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ReplicationEligibilityResultsCollection() @@ -36,8 +36,8 @@ public partial interface IReplicationEligibilityResultsCollection : ReadOnly = false, Description = @"The replication eligibility results details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResults) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResults[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResults) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResults[] Value { get; set; } } /// Replication eligibility results collection response model. @@ -45,7 +45,7 @@ internal partial interface IReplicationEligibilityResultsCollectionInternal { /// The replication eligibility results details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResults[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResults[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsCollection.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsCollection.json.cs index 5ffd51b89ecf..51ea9f81924a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationEligibilityResultsCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationEligibilityResultsCollection(json) : null; } @@ -77,7 +77,7 @@ internal ReplicationEligibilityResultsCollection(Microsoft.Azure.PowerShell.Cmdl { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationEligibilityResults) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResults.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IReplicationEligibilityResults) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResults.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsErrorInfo.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsErrorInfo.PowerShell.cs new file mode 100644 index 000000000000..106ea592ade3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsErrorInfo.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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Error model that can be exposed to the user. + [System.ComponentModel.TypeConverter(typeof(ReplicationEligibilityResultsErrorInfoTypeConverter))] + public partial class ReplicationEligibilityResultsErrorInfo + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReplicationEligibilityResultsErrorInfo(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.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReplicationEligibilityResultsErrorInfo(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.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReplicationEligibilityResultsErrorInfo(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).Status, 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 ReplicationEligibilityResultsErrorInfo(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal)this).Status, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Error model that can be exposed to the user. + [System.ComponentModel.TypeConverter(typeof(ReplicationEligibilityResultsErrorInfoTypeConverter))] + public partial interface IReplicationEligibilityResultsErrorInfo + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsErrorInfo.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsErrorInfo.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsErrorInfo.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsErrorInfo.TypeConverter.cs index 43d86230947a..7fa733c0484d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsErrorInfo.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsErrorInfo.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsErrorInfo.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsErrorInfo.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsErrorInfo.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsErrorInfo.cs index 4dee798f99cc..3abe43a9b272 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsErrorInfo.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsErrorInfo.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Error model that can be exposed to the user. public partial class ReplicationEligibilityResultsErrorInfo : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal { /// Backing field for property. @@ -28,7 +28,7 @@ public partial class ReplicationEligibilityResultsErrorInfo : public string Message { get => this._message; set => this._message = value; } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfoInternal.Status { get => this._status; set { {_status = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfoInternal.Status { get => this._status; set { {_status = value;} } } /// Backing field for property. private string _possibleCaus; diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsErrorInfo.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsErrorInfo.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsErrorInfo.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsErrorInfo.json.cs index 0fa108e12834..20631bc275c8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsErrorInfo.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsErrorInfo.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationEligibilityResultsErrorInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationEligibilityResultsErrorInfo(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsProperties.PowerShell.cs new file mode 100644 index 000000000000..4d7fddbfebf8 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsProperties.PowerShell.cs @@ -0,0 +1,157 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Properties model for replication eligibility results API. + [System.ComponentModel.TypeConverter(typeof(ReplicationEligibilityResultsPropertiesTypeConverter))] + public partial class ReplicationEligibilityResultsProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReplicationEligibilityResultsProperties(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.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReplicationEligibilityResultsProperties(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.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReplicationEligibilityResultsProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ClientRequestId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal)this).ClientRequestId = (string) content.GetValueForProperty("ClientRequestId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal)this).ClientRequestId, global::System.Convert.ToString); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsErrorInfoTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReplicationEligibilityResultsProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ClientRequestId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal)this).ClientRequestId = (string) content.GetValueForProperty("ClientRequestId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal)this).ClientRequestId, global::System.Convert.ToString); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsErrorInfoTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties model for replication eligibility results API. + [System.ComponentModel.TypeConverter(typeof(ReplicationEligibilityResultsPropertiesTypeConverter))] + public partial interface IReplicationEligibilityResultsProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsProperties.TypeConverter.cs index 854a6b2c65a6..367c10b574c7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsProperties.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsProperties.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsProperties.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsProperties.cs index 41e6d1d49f48..8e45c7243eca 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Properties model for replication eligibility results API. public partial class ReplicationEligibilityResultsProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal { /// Backing field for property. @@ -21,14 +21,14 @@ public partial class ReplicationEligibilityResultsProperties : public string ClientRequestId { get => this._clientRequestId; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo[] _error; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo[] _error; /// The error details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo[] Error { get => this._error; set => this._error = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo[] Error { get => this._error; set => this._error = value; } /// Internal Acessors for ClientRequestId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsPropertiesInternal.ClientRequestId { get => this._clientRequestId; set { {_clientRequestId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsPropertiesInternal.ClientRequestId { get => this._clientRequestId; set { {_clientRequestId = value;} } } /// Creates an new instance. public ReplicationEligibilityResultsProperties() @@ -54,8 +54,8 @@ public partial interface IReplicationEligibilityResultsProperties : ReadOnly = false, Description = @"The error details.", SerializedName = @"errors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo[] Error { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo[] Error { get; set; } } /// Properties model for replication eligibility results API. @@ -65,7 +65,7 @@ internal partial interface IReplicationEligibilityResultsPropertiesInternal /// The client request Id. string ClientRequestId { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo[] Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo[] Error { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsProperties.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsProperties.json.cs index 3fc1060d1510..e2a8b1925466 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationEligibilityResultsProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationEligibilityResultsProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationEligibilityResultsProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationEligibilityResultsProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationEligibilityResultsProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationEligibilityResultsProperties(json) : null; } @@ -78,7 +78,7 @@ internal ReplicationEligibilityResultsProperties(Microsoft.Azure.PowerShell.Cmdl return; } {_clientRequestId = If( json?.PropertyT("clientRequestId"), out var __jsonClientRequestId) ? (string)__jsonClientRequestId : (string)ClientRequestId;} - {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? If( __jsonErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationEligibilityResultsErrorInfo) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationEligibilityResultsErrorInfo.FromJson(__u) )) ))() : null : Error;} + {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? If( __jsonErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IReplicationEligibilityResultsErrorInfo) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationEligibilityResultsErrorInfo.FromJson(__u) )) ))() : null : Error;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationGroupDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationGroupDetails.PowerShell.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationGroupDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationGroupDetails.PowerShell.cs index 7381685963cf..6e33c14cff3f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationGroupDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationGroupDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ReplicationGroupDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IReplicationGroupDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationGroupDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ReplicationGroupDetails(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.Migrate.Models.Api20220501.IReplicationGroupDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationGroupDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ReplicationGroupDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRep /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationGroupDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationGroupDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,13 +103,13 @@ internal ReplicationGroupDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType, 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. @@ -124,7 +124,7 @@ internal ReplicationGroupDetails(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationGroupDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationGroupDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationGroupDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationGroupDetails.TypeConverter.cs index 3b609a65e8b0..95a60ba66536 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationGroupDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationGroupDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationGroupDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationGroupDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationGroupDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationGroupDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationGroupDetails.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationGroupDetails.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationGroupDetails.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationGroupDetails.cs index bde056fc7282..2a1b3085594b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationGroupDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationGroupDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Replication group details. This will be used in case of San. public partial class ReplicationGroupDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationGroupDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationGroupDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationGroupDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationGroupDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings __configurationSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings __configurationSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettings(); /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)__configurationSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)__configurationSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)__configurationSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)__configurationSettings).InstanceType = value ; } /// Creates an new instance. public ReplicationGroupDetails() @@ -44,13 +44,13 @@ public ReplicationGroupDetails() /// Replication group details. This will be used in case of San. public partial interface IReplicationGroupDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings { } /// Replication group details. This will be used in case of San. internal partial interface IReplicationGroupDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal { } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationGroupDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationGroupDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationGroupDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationGroupDetails.json.cs index 91b01765a4e5..c4c196454877 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationGroupDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationGroupDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationGroupDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationGroupDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationGroupDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationGroupDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationGroupDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationGroupDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationGroupDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationGroupDetails(json) : null; } @@ -77,7 +77,7 @@ internal ReplicationGroupDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - __configurationSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettings(json); + __configurationSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettings(json); AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItem.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItem.PowerShell.cs new file mode 100644 index 000000000000..b9ebad4f2588 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItem.PowerShell.cs @@ -0,0 +1,448 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Replication protected item. + [System.ComponentModel.TypeConverter(typeof(ReplicationProtectedItemTypeConverter))] + public partial class ReplicationProtectedItem + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReplicationProtectedItem DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReplicationProtectedItem(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.Migrate.Models.Api202301.IReplicationProtectedItem DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReplicationProtectedItem(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.Migrate.Models.Api202301.IReplicationProtectedItem FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReplicationProtectedItem(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.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItemPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenario")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectedItemType = (string) content.GetValueForProperty("ProtectedItemType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectedItemType, global::System.Convert.ToString); + } + if (content.Contains("ProtectableItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectableItemId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryServicesProviderId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PrimaryFabricProvider = (string) content.GetValueForProperty("PrimaryFabricProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PrimaryFabricProvider, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryFabricId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PrimaryProtectionContainerFriendlyName = (string) content.GetValueForProperty("PrimaryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PrimaryProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryProtectionContainerFriendlyName = (string) content.GetValueForProperty("RecoveryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectionState = (string) content.GetValueForProperty("ProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectionState, global::System.Convert.ToString); + } + if (content.Contains("ProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectionStateDescription = (string) content.GetValueForProperty("ProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("ActiveLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ActiveLocation = (string) content.GetValueForProperty("ActiveLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ActiveLocation, global::System.Convert.ToString); + } + if (content.Contains("TestFailoverState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).TestFailoverState = (string) content.GetValueForProperty("TestFailoverState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).TestFailoverState, global::System.Convert.ToString); + } + if (content.Contains("TestFailoverStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).TestFailoverStateDescription = (string) content.GetValueForProperty("TestFailoverStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).TestFailoverStateDescription, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).SwitchProviderState = (string) content.GetValueForProperty("SwitchProviderState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).SwitchProviderState, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).SwitchProviderStateDescription = (string) content.GetValueForProperty("SwitchProviderStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).SwitchProviderStateDescription, global::System.Convert.ToString); + } + if (content.Contains("AllowedOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ReplicationHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ReplicationHealth = (string) content.GetValueForProperty("ReplicationHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ReplicationHealth, global::System.Convert.ToString); + } + if (content.Contains("FailoverHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).FailoverHealth = (string) content.GetValueForProperty("FailoverHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).FailoverHealth, global::System.Convert.ToString); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("PolicyFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PolicyFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("LastSuccessfulFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).LastSuccessfulFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).LastSuccessfulFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastSuccessfulTestFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).LastSuccessfulTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).LastSuccessfulTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FailoverRecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).FailoverRecoveryPointId = (string) content.GetValueForProperty("FailoverRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).FailoverRecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryContainerId, global::System.Convert.ToString); + } + if (content.Contains("EventCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).EventCorrelationId, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenarioName, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProviderSpecificDetailInstanceType, 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 ReplicationProtectedItem(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.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItemPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenario")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectedItemType = (string) content.GetValueForProperty("ProtectedItemType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectedItemType, global::System.Convert.ToString); + } + if (content.Contains("ProtectableItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectableItemId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryServicesProviderId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PrimaryFabricProvider = (string) content.GetValueForProperty("PrimaryFabricProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PrimaryFabricProvider, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryFabricId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PrimaryProtectionContainerFriendlyName = (string) content.GetValueForProperty("PrimaryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PrimaryProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryProtectionContainerFriendlyName = (string) content.GetValueForProperty("RecoveryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectionState = (string) content.GetValueForProperty("ProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectionState, global::System.Convert.ToString); + } + if (content.Contains("ProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectionStateDescription = (string) content.GetValueForProperty("ProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("ActiveLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ActiveLocation = (string) content.GetValueForProperty("ActiveLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ActiveLocation, global::System.Convert.ToString); + } + if (content.Contains("TestFailoverState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).TestFailoverState = (string) content.GetValueForProperty("TestFailoverState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).TestFailoverState, global::System.Convert.ToString); + } + if (content.Contains("TestFailoverStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).TestFailoverStateDescription = (string) content.GetValueForProperty("TestFailoverStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).TestFailoverStateDescription, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).SwitchProviderState = (string) content.GetValueForProperty("SwitchProviderState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).SwitchProviderState, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).SwitchProviderStateDescription = (string) content.GetValueForProperty("SwitchProviderStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).SwitchProviderStateDescription, global::System.Convert.ToString); + } + if (content.Contains("AllowedOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ReplicationHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ReplicationHealth = (string) content.GetValueForProperty("ReplicationHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ReplicationHealth, global::System.Convert.ToString); + } + if (content.Contains("FailoverHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).FailoverHealth = (string) content.GetValueForProperty("FailoverHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).FailoverHealth, global::System.Convert.ToString); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("PolicyFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).PolicyFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("LastSuccessfulFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).LastSuccessfulFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).LastSuccessfulFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastSuccessfulTestFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).LastSuccessfulTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).LastSuccessfulTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FailoverRecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).FailoverRecoveryPointId = (string) content.GetValueForProperty("FailoverRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).FailoverRecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).RecoveryContainerId, global::System.Convert.ToString); + } + if (content.Contains("EventCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).EventCorrelationId, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenarioName, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Replication protected item. + [System.ComponentModel.TypeConverter(typeof(ReplicationProtectedItemTypeConverter))] + public partial interface IReplicationProtectedItem + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItem.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItem.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItem.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItem.TypeConverter.cs index 74cabd894ed6..f2e764ccdcf1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItem.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItem.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationProtectedItem ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItem ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItem).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItem).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItem.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItem.cs new file mode 100644 index 000000000000..e3a5c2230d28 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItem.cs @@ -0,0 +1,556 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Replication protected item. + public partial class ReplicationProtectedItem : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItem, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// The Current active location of the PE. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ActiveLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ActiveLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ActiveLocation = value ?? null; } + + /// The allowed operations on the Replication protected item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string[] AllowedOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).AllowedOperation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).AllowedOperation = value ?? null /* arrayOf */; } + + /// ARM Id of the job being executed. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string CurrentScenarioJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenarioJobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenarioJobId = value ?? null; } + + /// Scenario name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string CurrentScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenarioName = value ?? null; } + + /// Start time of the workflow. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? CurrentScenarioStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenarioStartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenarioStartTime = value ?? default(global::System.DateTime); } + + /// The correlation Id for events associated with this protected item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string EventCorrelationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).EventCorrelationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).EventCorrelationId = value ?? null; } + + /// The consolidated failover health for the VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FailoverHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).FailoverHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).FailoverHealth = value ?? null; } + + /// The recovery point ARM Id to which the Vm was failed over. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FailoverRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).FailoverRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).FailoverRecoveryPointId = value ?? null; } + + /// The name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).FriendlyName = value ?? null; } + + /// List of health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).HealthError = value ?? null /* arrayOf */; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// The Last successful failover time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? LastSuccessfulFailoverTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).LastSuccessfulFailoverTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).LastSuccessfulFailoverTime = value ?? default(global::System.DateTime); } + + /// The Last successful test failover time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? LastSuccessfulTestFailoverTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).LastSuccessfulTestFailoverTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).LastSuccessfulTestFailoverTime = value ?? default(global::System.DateTime); } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for CurrentScenario + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal.CurrentScenario { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenario; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).CurrentScenario = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItemProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// The name of Policy governing this PE. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PolicyFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).PolicyFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).PolicyFriendlyName = value ?? null; } + + /// The ID of Policy governing this PE. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).PolicyId = value ?? null; } + + /// The friendly name of the primary fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).PrimaryFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).PrimaryFabricFriendlyName = value ?? null; } + + /// The fabric provider of the primary fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryFabricProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).PrimaryFabricProvider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).PrimaryFabricProvider = value ?? null; } + + /// The name of primary protection container friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string PrimaryProtectionContainerFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).PrimaryProtectionContainerFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).PrimaryProtectionContainerFriendlyName = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemProperties _property; + + /// The custom data. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItemProperties()); set => this._property = value; } + + /// The protected item ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProtectableItemId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ProtectableItemId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ProtectableItemId = value ?? null; } + + /// The type of protected item type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProtectedItemType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ProtectedItemType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ProtectedItemType = value ?? null; } + + /// The protection status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProtectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ProtectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ProtectionState = value ?? null; } + + /// The protection state description. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProtectionStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ProtectionStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ProtectionStateDescription = value ?? null; } + + /// Gets the Instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// The recovery container Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryContainerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).RecoveryContainerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).RecoveryContainerId = value ?? null; } + + /// The friendly name of recovery fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryFabricFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).RecoveryFabricFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).RecoveryFabricFriendlyName = value ?? null; } + + /// The Arm Id of recovery fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryFabricId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).RecoveryFabricId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).RecoveryFabricId = value ?? null; } + + /// The name of recovery container friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryProtectionContainerFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).RecoveryProtectionContainerFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).RecoveryProtectionContainerFriendlyName = value ?? null; } + + /// The recovery provider ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryServicesProviderId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).RecoveryServicesProviderId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).RecoveryServicesProviderId = value ?? null; } + + /// + /// The consolidated protection health for the VM taking any issues with SRS as well as all the replication units associated + /// with the VM's replication group into account. This is a string representation of the ProtectionHealth enumeration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReplicationHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ReplicationHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).ReplicationHealth = value ?? null; } + + /// The switch provider state. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SwitchProviderState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).SwitchProviderState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).SwitchProviderState = value ?? null; } + + /// The switch provider state description. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SwitchProviderStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).SwitchProviderStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).SwitchProviderStateDescription = value ?? null; } + + /// The Test failover state. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TestFailoverState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).TestFailoverState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).TestFailoverState = value ?? null; } + + /// The Test failover state description. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TestFailoverStateDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).TestFailoverStateDescription; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)Property).TestFailoverStateDescription = value ?? null; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public ReplicationProtectedItem() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Replication protected item. + public partial interface IReplicationProtectedItem : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// The Current active location of the PE. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Current active location of the PE.", + SerializedName = @"activeLocation", + PossibleTypes = new [] { typeof(string) })] + string ActiveLocation { get; set; } + /// The allowed operations on the Replication protected item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The allowed operations on the Replication protected item.", + SerializedName = @"allowedOperations", + PossibleTypes = new [] { typeof(string) })] + string[] AllowedOperation { get; set; } + /// ARM Id of the job being executed. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ARM Id of the job being executed.", + SerializedName = @"jobId", + PossibleTypes = new [] { typeof(string) })] + string CurrentScenarioJobId { get; set; } + /// Scenario name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Scenario name.", + SerializedName = @"scenarioName", + PossibleTypes = new [] { typeof(string) })] + string CurrentScenarioName { get; set; } + /// Start time of the workflow. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Start time of the workflow.", + SerializedName = @"startTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? CurrentScenarioStartTime { get; set; } + /// The correlation Id for events associated with this protected item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The correlation Id for events associated with this protected item.", + SerializedName = @"eventCorrelationId", + PossibleTypes = new [] { typeof(string) })] + string EventCorrelationId { get; set; } + /// The consolidated failover health for the VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The consolidated failover health for the VM.", + SerializedName = @"failoverHealth", + PossibleTypes = new [] { typeof(string) })] + string FailoverHealth { get; set; } + /// The recovery point ARM Id to which the Vm was failed over. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery point ARM Id to which the Vm was failed over.", + SerializedName = @"failoverRecoveryPointId", + PossibleTypes = new [] { typeof(string) })] + string FailoverRecoveryPointId { get; set; } + /// The name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// List of health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of health errors.", + SerializedName = @"healthErrors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } + /// The Last successful failover time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Last successful failover time.", + SerializedName = @"lastSuccessfulFailoverTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastSuccessfulFailoverTime { get; set; } + /// The Last successful test failover time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Last successful test failover time.", + SerializedName = @"lastSuccessfulTestFailoverTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastSuccessfulTestFailoverTime { get; set; } + /// The name of Policy governing this PE. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of Policy governing this PE.", + SerializedName = @"policyFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string PolicyFriendlyName { get; set; } + /// The ID of Policy governing this PE. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The ID of Policy governing this PE.", + SerializedName = @"policyId", + PossibleTypes = new [] { typeof(string) })] + string PolicyId { get; set; } + /// The friendly name of the primary fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The friendly name of the primary fabric.", + SerializedName = @"primaryFabricFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string PrimaryFabricFriendlyName { get; set; } + /// The fabric provider of the primary fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fabric provider of the primary fabric.", + SerializedName = @"primaryFabricProvider", + PossibleTypes = new [] { typeof(string) })] + string PrimaryFabricProvider { get; set; } + /// The name of primary protection container friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of primary protection container friendly name.", + SerializedName = @"primaryProtectionContainerFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string PrimaryProtectionContainerFriendlyName { get; set; } + /// The protected item ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The protected item ARM Id.", + SerializedName = @"protectableItemId", + PossibleTypes = new [] { typeof(string) })] + string ProtectableItemId { get; set; } + /// The type of protected item type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of protected item type.", + SerializedName = @"protectedItemType", + PossibleTypes = new [] { typeof(string) })] + string ProtectedItemType { get; set; } + /// The protection status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The protection status.", + SerializedName = @"protectionState", + PossibleTypes = new [] { typeof(string) })] + string ProtectionState { get; set; } + /// The protection state description. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The protection state description.", + SerializedName = @"protectionStateDescription", + PossibleTypes = new [] { typeof(string) })] + string ProtectionStateDescription { get; set; } + /// Gets the Instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the Instance type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + /// The recovery container Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery container Id.", + SerializedName = @"recoveryContainerId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryContainerId { get; set; } + /// The friendly name of recovery fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The friendly name of recovery fabric.", + SerializedName = @"recoveryFabricFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string RecoveryFabricFriendlyName { get; set; } + /// The Arm Id of recovery fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Arm Id of recovery fabric.", + SerializedName = @"recoveryFabricId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryFabricId { get; set; } + /// The name of recovery container friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of recovery container friendly name.", + SerializedName = @"recoveryProtectionContainerFriendlyName", + PossibleTypes = new [] { typeof(string) })] + string RecoveryProtectionContainerFriendlyName { get; set; } + /// The recovery provider ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery provider ARM Id.", + SerializedName = @"recoveryServicesProviderId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryServicesProviderId { get; set; } + /// + /// The consolidated protection health for the VM taking any issues with SRS as well as all the replication units associated + /// with the VM's replication group into account. This is a string representation of the ProtectionHealth enumeration. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The consolidated protection health for the VM taking any issues with SRS as well as all the replication units associated with the VM's replication group into account. This is a string representation of the ProtectionHealth enumeration.", + SerializedName = @"replicationHealth", + PossibleTypes = new [] { typeof(string) })] + string ReplicationHealth { get; set; } + /// The switch provider state. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The switch provider state.", + SerializedName = @"switchProviderState", + PossibleTypes = new [] { typeof(string) })] + string SwitchProviderState { get; set; } + /// The switch provider state description. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The switch provider state description.", + SerializedName = @"switchProviderStateDescription", + PossibleTypes = new [] { typeof(string) })] + string SwitchProviderStateDescription { get; set; } + /// The Test failover state. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Test failover state.", + SerializedName = @"testFailoverState", + PossibleTypes = new [] { typeof(string) })] + string TestFailoverState { get; set; } + /// The Test failover state description. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Test failover state description.", + SerializedName = @"testFailoverStateDescription", + PossibleTypes = new [] { typeof(string) })] + string TestFailoverStateDescription { get; set; } + + } + /// Replication protected item. + internal partial interface IReplicationProtectedItemInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The Current active location of the PE. + string ActiveLocation { get; set; } + /// The allowed operations on the Replication protected item. + string[] AllowedOperation { get; set; } + /// The current scenario. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails CurrentScenario { get; set; } + /// ARM Id of the job being executed. + string CurrentScenarioJobId { get; set; } + /// Scenario name. + string CurrentScenarioName { get; set; } + /// Start time of the workflow. + global::System.DateTime? CurrentScenarioStartTime { get; set; } + /// The correlation Id for events associated with this protected item. + string EventCorrelationId { get; set; } + /// The consolidated failover health for the VM. + string FailoverHealth { get; set; } + /// The recovery point ARM Id to which the Vm was failed over. + string FailoverRecoveryPointId { get; set; } + /// The name. + string FriendlyName { get; set; } + /// List of health errors. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } + /// The Last successful failover time. + global::System.DateTime? LastSuccessfulFailoverTime { get; set; } + /// The Last successful test failover time. + global::System.DateTime? LastSuccessfulTestFailoverTime { get; set; } + /// The name of Policy governing this PE. + string PolicyFriendlyName { get; set; } + /// The ID of Policy governing this PE. + string PolicyId { get; set; } + /// The friendly name of the primary fabric. + string PrimaryFabricFriendlyName { get; set; } + /// The fabric provider of the primary fabric. + string PrimaryFabricProvider { get; set; } + /// The name of primary protection container friendly name. + string PrimaryProtectionContainerFriendlyName { get; set; } + /// The custom data. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemProperties Property { get; set; } + /// The protected item ARM Id. + string ProtectableItemId { get; set; } + /// The type of protected item type. + string ProtectedItemType { get; set; } + /// The protection status. + string ProtectionState { get; set; } + /// The protection state description. + string ProtectionStateDescription { get; set; } + /// The Replication provider custom settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings ProviderSpecificDetail { get; set; } + /// Gets the Instance type. + string ProviderSpecificDetailInstanceType { get; set; } + /// The recovery container Id. + string RecoveryContainerId { get; set; } + /// The friendly name of recovery fabric. + string RecoveryFabricFriendlyName { get; set; } + /// The Arm Id of recovery fabric. + string RecoveryFabricId { get; set; } + /// The name of recovery container friendly name. + string RecoveryProtectionContainerFriendlyName { get; set; } + /// The recovery provider ARM Id. + string RecoveryServicesProviderId { get; set; } + /// + /// The consolidated protection health for the VM taking any issues with SRS as well as all the replication units associated + /// with the VM's replication group into account. This is a string representation of the ProtectionHealth enumeration. + /// + string ReplicationHealth { get; set; } + /// The switch provider state. + string SwitchProviderState { get; set; } + /// The switch provider state description. + string SwitchProviderStateDescription { get; set; } + /// The Test failover state. + string TestFailoverState { get; set; } + /// The Test failover state description. + string TestFailoverStateDescription { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItem.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItem.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItem.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItem.json.cs index d8a10eafdb52..a23e7bad28d5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItem.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItem.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationProtectedItem partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItem. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItem. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItem. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItem. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItem FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItem FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationProtectedItem(json) : null; } @@ -77,8 +77,8 @@ internal ReplicationProtectedItem(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItemProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItemProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemCollection.PowerShell.cs new file mode 100644 index 000000000000..b52a57da6139 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemCollection.PowerShell.cs @@ -0,0 +1,156 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Replication protected item collection. + [System.ComponentModel.TypeConverter(typeof(ReplicationProtectedItemCollectionTypeConverter))] + public partial class ReplicationProtectedItemCollection + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReplicationProtectedItemCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReplicationProtectedItemCollection(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.Migrate.Models.Api202301.IReplicationProtectedItemCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReplicationProtectedItemCollection(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.Migrate.Models.Api202301.IReplicationProtectedItemCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReplicationProtectedItemCollection(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItem[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItemTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReplicationProtectedItemCollection(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItem[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItemTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Replication protected item collection. + [System.ComponentModel.TypeConverter(typeof(ReplicationProtectedItemCollectionTypeConverter))] + public partial interface IReplicationProtectedItemCollection + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemCollection.TypeConverter.cs index c57986c1bfc8..073413d64aa9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationProtectedItemCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemCollection.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemCollection.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemCollection.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemCollection.cs index 4a019124cc44..c50407e7875f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Replication protected item collection. public partial class ReplicationProtectedItemCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class ReplicationProtectedItemCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItem[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItem[] _value; /// The Replication protected item details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItem[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItem[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ReplicationProtectedItemCollection() @@ -51,8 +51,8 @@ public partial interface IReplicationProtectedItemCollection : ReadOnly = false, Description = @"The Replication protected item details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItem) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItem[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItem) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItem[] Value { get; set; } } /// Replication protected item collection. @@ -62,7 +62,7 @@ internal partial interface IReplicationProtectedItemCollectionInternal /// The value of next link. string NextLink { get; set; } /// The Replication protected item details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItem[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItem[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemCollection.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemCollection.json.cs index e5a3aa213c35..93f4df096a9d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationProtectedItemCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationProtectedItemCollection(json) : null; } @@ -77,7 +77,7 @@ internal ReplicationProtectedItemCollection(Microsoft.Azure.PowerShell.Cmdlets.M { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationProtectedItem) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectedItem.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IReplicationProtectedItem) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectedItem.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemProperties.PowerShell.cs new file mode 100644 index 000000000000..aa43ed1a87ba --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemProperties.PowerShell.cs @@ -0,0 +1,412 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Replication protected item custom data details. + [System.ComponentModel.TypeConverter(typeof(ReplicationProtectedItemPropertiesTypeConverter))] + public partial class ReplicationProtectedItemProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReplicationProtectedItemProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReplicationProtectedItemProperties(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.Migrate.Models.Api202301.IReplicationProtectedItemProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReplicationProtectedItemProperties(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.Migrate.Models.Api202301.IReplicationProtectedItemProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReplicationProtectedItemProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CurrentScenario")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectedItemType = (string) content.GetValueForProperty("ProtectedItemType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectedItemType, global::System.Convert.ToString); + } + if (content.Contains("ProtectableItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectableItemId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryServicesProviderId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricProvider = (string) content.GetValueForProperty("PrimaryFabricProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricProvider, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PrimaryProtectionContainerFriendlyName = (string) content.GetValueForProperty("PrimaryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PrimaryProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryProtectionContainerFriendlyName = (string) content.GetValueForProperty("RecoveryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectionState = (string) content.GetValueForProperty("ProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectionState, global::System.Convert.ToString); + } + if (content.Contains("ProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectionStateDescription = (string) content.GetValueForProperty("ProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("ActiveLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ActiveLocation = (string) content.GetValueForProperty("ActiveLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ActiveLocation, global::System.Convert.ToString); + } + if (content.Contains("TestFailoverState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).TestFailoverState = (string) content.GetValueForProperty("TestFailoverState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).TestFailoverState, global::System.Convert.ToString); + } + if (content.Contains("TestFailoverStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).TestFailoverStateDescription = (string) content.GetValueForProperty("TestFailoverStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).TestFailoverStateDescription, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderState = (string) content.GetValueForProperty("SwitchProviderState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderState, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderStateDescription = (string) content.GetValueForProperty("SwitchProviderStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderStateDescription, global::System.Convert.ToString); + } + if (content.Contains("AllowedOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ReplicationHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ReplicationHealth = (string) content.GetValueForProperty("ReplicationHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ReplicationHealth, global::System.Convert.ToString); + } + if (content.Contains("FailoverHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).FailoverHealth = (string) content.GetValueForProperty("FailoverHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).FailoverHealth, global::System.Convert.ToString); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("PolicyFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PolicyFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("LastSuccessfulFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastSuccessfulTestFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FailoverRecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).FailoverRecoveryPointId = (string) content.GetValueForProperty("FailoverRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).FailoverRecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryContainerId, global::System.Convert.ToString); + } + if (content.Contains("EventCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).EventCorrelationId, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioName, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 ReplicationProtectedItemProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CurrentScenario")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenario = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails) content.GetValueForProperty("CurrentScenario",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenario, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectedItemType = (string) content.GetValueForProperty("ProtectedItemType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectedItemType, global::System.Convert.ToString); + } + if (content.Contains("ProtectableItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectableItemId = (string) content.GetValueForProperty("ProtectableItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectableItemId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryServicesProviderId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryServicesProviderId = (string) content.GetValueForProperty("RecoveryServicesProviderId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryServicesProviderId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricFriendlyName = (string) content.GetValueForProperty("PrimaryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("PrimaryFabricProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricProvider = (string) content.GetValueForProperty("PrimaryFabricProvider",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PrimaryFabricProvider, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricFriendlyName = (string) content.GetValueForProperty("RecoveryFabricFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryFabricId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricId = (string) content.GetValueForProperty("RecoveryFabricId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryFabricId, global::System.Convert.ToString); + } + if (content.Contains("PrimaryProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PrimaryProtectionContainerFriendlyName = (string) content.GetValueForProperty("PrimaryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PrimaryProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryProtectionContainerFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryProtectionContainerFriendlyName = (string) content.GetValueForProperty("RecoveryProtectionContainerFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryProtectionContainerFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("ProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectionState = (string) content.GetValueForProperty("ProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectionState, global::System.Convert.ToString); + } + if (content.Contains("ProtectionStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectionStateDescription = (string) content.GetValueForProperty("ProtectionStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProtectionStateDescription, global::System.Convert.ToString); + } + if (content.Contains("ActiveLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ActiveLocation = (string) content.GetValueForProperty("ActiveLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ActiveLocation, global::System.Convert.ToString); + } + if (content.Contains("TestFailoverState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).TestFailoverState = (string) content.GetValueForProperty("TestFailoverState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).TestFailoverState, global::System.Convert.ToString); + } + if (content.Contains("TestFailoverStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).TestFailoverStateDescription = (string) content.GetValueForProperty("TestFailoverStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).TestFailoverStateDescription, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderState = (string) content.GetValueForProperty("SwitchProviderState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderState, global::System.Convert.ToString); + } + if (content.Contains("SwitchProviderStateDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderStateDescription = (string) content.GetValueForProperty("SwitchProviderStateDescription",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).SwitchProviderStateDescription, global::System.Convert.ToString); + } + if (content.Contains("AllowedOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).AllowedOperation = (string[]) content.GetValueForProperty("AllowedOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).AllowedOperation, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ReplicationHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ReplicationHealth = (string) content.GetValueForProperty("ReplicationHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ReplicationHealth, global::System.Convert.ToString); + } + if (content.Contains("FailoverHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).FailoverHealth = (string) content.GetValueForProperty("FailoverHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).FailoverHealth, global::System.Convert.ToString); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("PolicyId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PolicyId, global::System.Convert.ToString); + } + if (content.Contains("PolicyFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PolicyFriendlyName = (string) content.GetValueForProperty("PolicyFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).PolicyFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("LastSuccessfulFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastSuccessfulTestFailoverTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulTestFailoverTime = (global::System.DateTime?) content.GetValueForProperty("LastSuccessfulTestFailoverTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).LastSuccessfulTestFailoverTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FailoverRecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).FailoverRecoveryPointId = (string) content.GetValueForProperty("FailoverRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).FailoverRecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("RecoveryContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryContainerId = (string) content.GetValueForProperty("RecoveryContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).RecoveryContainerId, global::System.Convert.ToString); + } + if (content.Contains("EventCorrelationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).EventCorrelationId = (string) content.GetValueForProperty("EventCorrelationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).EventCorrelationId, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioName = (string) content.GetValueForProperty("CurrentScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioName, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioJobId = (string) content.GetValueForProperty("CurrentScenarioJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioJobId, global::System.Convert.ToString); + } + if (content.Contains("CurrentScenarioStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioStartTime = (global::System.DateTime?) content.GetValueForProperty("CurrentScenarioStartTime",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).CurrentScenarioStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Replication protected item custom data details. + [System.ComponentModel.TypeConverter(typeof(ReplicationProtectedItemPropertiesTypeConverter))] + public partial interface IReplicationProtectedItemProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemProperties.TypeConverter.cs index b50aaf729d53..5d6c8be309d5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationProtectedItemProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemProperties.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemProperties.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemProperties.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemProperties.cs index 20ccc897a368..b9b63820adb4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Replication protected item custom data details. public partial class ReplicationProtectedItemProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal { /// Backing field for property. @@ -28,23 +28,23 @@ public partial class ReplicationProtectedItemProperties : public string[] AllowedOperation { get => this._allowedOperation; set => this._allowedOperation = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails _currentScenario; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails _currentScenario; /// The current scenario. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails CurrentScenario { get => (this._currentScenario = this._currentScenario ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetails()); set => this._currentScenario = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails CurrentScenario { get => (this._currentScenario = this._currentScenario ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetails()); set => this._currentScenario = value; } /// ARM Id of the job being executed. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CurrentScenarioJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)CurrentScenario).JobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)CurrentScenario).JobId = value ?? null; } + public string CurrentScenarioJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)CurrentScenario).JobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)CurrentScenario).JobId = value ?? null; } /// Scenario name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string CurrentScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)CurrentScenario).ScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)CurrentScenario).ScenarioName = value ?? null; } + public string CurrentScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)CurrentScenario).ScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)CurrentScenario).ScenarioName = value ?? null; } /// Start time of the workflow. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? CurrentScenarioStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)CurrentScenario).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetailsInternal)CurrentScenario).StartTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? CurrentScenarioStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)CurrentScenario).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetailsInternal)CurrentScenario).StartTime = value ?? default(global::System.DateTime); } /// Backing field for property. private string _eventCorrelationId; @@ -75,11 +75,11 @@ public partial class ReplicationProtectedItemProperties : public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthError; /// List of health errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => this._healthError; set => this._healthError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => this._healthError; set => this._healthError = value; } /// Backing field for property. private global::System.DateTime? _lastSuccessfulFailoverTime; @@ -96,10 +96,10 @@ public partial class ReplicationProtectedItemProperties : public global::System.DateTime? LastSuccessfulTestFailoverTime { get => this._lastSuccessfulTestFailoverTime; set => this._lastSuccessfulTestFailoverTime = value; } /// Internal Acessors for CurrentScenario - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal.CurrentScenario { get => (this._currentScenario = this._currentScenario ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetails()); set { {_currentScenario = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal.CurrentScenario { get => (this._currentScenario = this._currentScenario ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetails()); set { {_currentScenario = value;} } } /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings()); set { {_providerSpecificDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings()); set { {_providerSpecificDetail = value;} } } /// Backing field for property. private string _policyFriendlyName; @@ -167,15 +167,15 @@ public partial class ReplicationProtectedItemProperties : public string ProtectionStateDescription { get => this._protectionStateDescription; set => this._protectionStateDescription = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings _providerSpecificDetail; /// The Replication provider custom settings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings()); set => this._providerSpecificDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings()); set => this._providerSpecificDetail = value; } /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)ProviderSpecificDetail).InstanceType = value ?? null; } /// Backing field for property. private string _recoveryContainerId; @@ -340,8 +340,8 @@ public partial interface IReplicationProtectedItemProperties : ReadOnly = false, Description = @"List of health errors.", SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The Last successful failover time. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -532,7 +532,7 @@ internal partial interface IReplicationProtectedItemPropertiesInternal /// The allowed operations on the Replication protected item. string[] AllowedOperation { get; set; } /// The current scenario. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICurrentScenarioDetails CurrentScenario { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICurrentScenarioDetails CurrentScenario { get; set; } /// ARM Id of the job being executed. string CurrentScenarioJobId { get; set; } /// Scenario name. @@ -548,7 +548,7 @@ internal partial interface IReplicationProtectedItemPropertiesInternal /// The name. string FriendlyName { get; set; } /// List of health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The Last successful failover time. global::System.DateTime? LastSuccessfulFailoverTime { get; set; } /// The Last successful test failover time. @@ -572,7 +572,7 @@ internal partial interface IReplicationProtectedItemPropertiesInternal /// The protection state description. string ProtectionStateDescription { get; set; } /// The Replication provider custom settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings ProviderSpecificDetail { get; set; } /// Gets the Instance type. string ProviderSpecificDetailInstanceType { get; set; } /// The recovery container Id. diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemProperties.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemProperties.json.cs index f2333c200113..e427d202818c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectedItemProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectedItemProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationProtectedItemProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectedItemProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectedItemProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationProtectedItemProperties(json) : null; } @@ -77,8 +77,8 @@ internal ReplicationProtectedItemProperties(Microsoft.Azure.PowerShell.Cmdlets.M { return; } - {_currentScenario = If( json?.PropertyT("currentScenario"), out var __jsonCurrentScenario) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CurrentScenarioDetails.FromJson(__jsonCurrentScenario) : CurrentScenario;} - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificSettings.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_currentScenario = If( json?.PropertyT("currentScenario"), out var __jsonCurrentScenario) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CurrentScenarioDetails.FromJson(__jsonCurrentScenario) : CurrentScenario;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificSettings.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)FriendlyName;} {_protectedItemType = If( json?.PropertyT("protectedItemType"), out var __jsonProtectedItemType) ? (string)__jsonProtectedItemType : (string)ProtectedItemType;} {_protectableItemId = If( json?.PropertyT("protectableItemId"), out var __jsonProtectableItemId) ? (string)__jsonProtectableItemId : (string)ProtectableItemId;} @@ -99,7 +99,7 @@ internal ReplicationProtectedItemProperties(Microsoft.Azure.PowerShell.Cmdlets.M {_allowedOperation = If( json?.PropertyT("allowedOperations"), out var __jsonAllowedOperations) ? If( __jsonAllowedOperations as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : AllowedOperation;} {_replicationHealth = If( json?.PropertyT("replicationHealth"), out var __jsonReplicationHealth) ? (string)__jsonReplicationHealth : (string)ReplicationHealth;} {_failoverHealth = If( json?.PropertyT("failoverHealth"), out var __jsonFailoverHealth) ? (string)__jsonFailoverHealth : (string)FailoverHealth;} - {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__p) )) ))() : null : HealthError;} + {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__p) )) ))() : null : HealthError;} {_policyId = If( json?.PropertyT("policyId"), out var __jsonPolicyId) ? (string)__jsonPolicyId : (string)PolicyId;} {_policyFriendlyName = If( json?.PropertyT("policyFriendlyName"), out var __jsonPolicyFriendlyName) ? (string)__jsonPolicyFriendlyName : (string)PolicyFriendlyName;} {_lastSuccessfulFailoverTime = If( json?.PropertyT("lastSuccessfulFailoverTime"), out var __jsonLastSuccessfulFailoverTime) ? global::System.DateTime.TryParse((string)__jsonLastSuccessfulFailoverTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastSuccessfulFailoverTimeValue) ? __jsonLastSuccessfulFailoverTimeValue : LastSuccessfulFailoverTime : LastSuccessfulFailoverTime;} diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntent.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntent.PowerShell.cs new file mode 100644 index 000000000000..69aac457bfd6 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntent.PowerShell.cs @@ -0,0 +1,232 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Replication protection intent. + [System.ComponentModel.TypeConverter(typeof(ReplicationProtectionIntentTypeConverter))] + public partial class ReplicationProtectionIntent + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReplicationProtectionIntent DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReplicationProtectionIntent(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.Migrate.Models.Api202301.IReplicationProtectionIntent DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReplicationProtectionIntent(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.Migrate.Models.Api202301.IReplicationProtectionIntent FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReplicationProtectionIntent(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.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProviderSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("JobState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).JobState = (string) content.GetValueForProperty("JobState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).JobState, global::System.Convert.ToString); + } + if (content.Contains("IsActive")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).IsActive = (bool?) content.GetValueForProperty("IsActive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).IsActive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("CreationTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).CreationTimeUtc = (string) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).CreationTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).ProviderSpecificDetailInstanceType, 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 ReplicationProtectionIntent(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.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProviderSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("JobState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).JobState = (string) content.GetValueForProperty("JobState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).JobState, global::System.Convert.ToString); + } + if (content.Contains("IsActive")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).IsActive = (bool?) content.GetValueForProperty("IsActive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).IsActive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("CreationTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).CreationTimeUtc = (string) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).CreationTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Replication protection intent. + [System.ComponentModel.TypeConverter(typeof(ReplicationProtectionIntentTypeConverter))] + public partial interface IReplicationProtectionIntent + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntent.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntent.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntent.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntent.TypeConverter.cs index 59db3c62d1c0..6b07e052117b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntent.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntent.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationProtectionIntent ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntent ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntent).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntent).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntent.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntent.cs new file mode 100644 index 000000000000..260363a648db --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntent.cs @@ -0,0 +1,190 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Replication protection intent. + public partial class ReplicationProtectionIntent : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntent, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// The creation time in UTC. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string CreationTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).CreationTimeUtc; } + + /// The name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).FriendlyName = value ?? null; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// A value indicating whether the intent object is active. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public bool? IsActive { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).IsActive; } + + /// The job Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string JobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).JobId; } + + /// The job state. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string JobState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).JobState; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for CreationTimeUtc + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal.CreationTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).CreationTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).CreationTimeUtc = value; } + + /// Internal Acessors for IsActive + bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal.IsActive { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).IsActive; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).IsActive = value; } + + /// Internal Acessors for JobId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal.JobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).JobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).JobId = value; } + + /// Internal Acessors for JobState + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal.JobState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).JobState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).JobState = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProperties _property; + + /// The custom data. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProperties()); set => this._property = value; } + + /// Gets the Instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public ReplicationProtectionIntent() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Replication protection intent. + public partial interface IReplicationProtectionIntent : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// The creation time in UTC. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The creation time in UTC.", + SerializedName = @"creationTimeUTC", + PossibleTypes = new [] { typeof(string) })] + string CreationTimeUtc { get; } + /// The name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// A value indicating whether the intent object is active. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A value indicating whether the intent object is active.", + SerializedName = @"isActive", + PossibleTypes = new [] { typeof(bool) })] + bool? IsActive { get; } + /// The job Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The job Id.", + SerializedName = @"jobId", + PossibleTypes = new [] { typeof(string) })] + string JobId { get; } + /// The job state. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The job state.", + SerializedName = @"jobState", + PossibleTypes = new [] { typeof(string) })] + string JobState { get; } + /// Gets the Instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the Instance type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Replication protection intent. + internal partial interface IReplicationProtectionIntentInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The creation time in UTC. + string CreationTimeUtc { get; set; } + /// The name. + string FriendlyName { get; set; } + /// A value indicating whether the intent object is active. + bool? IsActive { get; set; } + /// The job Id. + string JobId { get; set; } + /// The job state. + string JobState { get; set; } + /// The custom data. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProperties Property { get; set; } + /// The Replication provider custom settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings ProviderSpecificDetail { get; set; } + /// Gets the Instance type. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntent.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntent.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntent.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntent.json.cs index e12bba99b530..e76095cb79d1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntent.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntent.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationProtectionIntent partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntent. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntent. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntent. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntent. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntent FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntent FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationProtectionIntent(json) : null; } @@ -77,8 +77,8 @@ internal ReplicationProtectionIntent(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentCollection.PowerShell.cs new file mode 100644 index 000000000000..cf7c4b52e297 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentCollection.PowerShell.cs @@ -0,0 +1,157 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Replication protection intent objects collection. + [System.ComponentModel.TypeConverter(typeof(ReplicationProtectionIntentCollectionTypeConverter))] + public partial class ReplicationProtectionIntentCollection + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReplicationProtectionIntentCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReplicationProtectionIntentCollection(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.Migrate.Models.Api202301.IReplicationProtectionIntentCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReplicationProtectionIntentCollection(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.Migrate.Models.Api202301.IReplicationProtectionIntentCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReplicationProtectionIntentCollection(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReplicationProtectionIntentCollection(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntent[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Replication protection intent objects collection. + [System.ComponentModel.TypeConverter(typeof(ReplicationProtectionIntentCollectionTypeConverter))] + public partial interface IReplicationProtectionIntentCollection + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentCollection.TypeConverter.cs index a9f314f3c680..3dbf93254155 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationProtectionIntentCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentCollection.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentCollection.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentCollection.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentCollection.cs index 39f41aceb2b1..47c8179ad4bc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Replication protection intent objects collection. public partial class ReplicationProtectionIntentCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class ReplicationProtectionIntentCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntent[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntent[] _value; /// The Replication protection intent details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntent[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntent[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ReplicationProtectionIntentCollection() @@ -51,8 +51,8 @@ public partial interface IReplicationProtectionIntentCollection : ReadOnly = false, Description = @"The Replication protection intent details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntent) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntent[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntent) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntent[] Value { get; set; } } /// Replication protection intent objects collection. @@ -62,7 +62,7 @@ internal partial interface IReplicationProtectionIntentCollectionInternal /// The value of next link. string NextLink { get; set; } /// The Replication protection intent details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntent[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntent[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentCollection.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentCollection.json.cs index 563a1f5c0968..5596acce83d1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationProtectionIntentCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationProtectionIntentCollection(json) : null; } @@ -77,7 +77,7 @@ internal ReplicationProtectionIntentCollection(Microsoft.Azure.PowerShell.Cmdlet { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationProtectionIntent) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntent.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IReplicationProtectionIntent) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntent.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProperties.PowerShell.cs new file mode 100644 index 000000000000..942710270e25 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProperties.PowerShell.cs @@ -0,0 +1,197 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Replication protection intent custom data details. + [System.ComponentModel.TypeConverter(typeof(ReplicationProtectionIntentPropertiesTypeConverter))] + public partial class ReplicationProtectionIntentProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReplicationProtectionIntentProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReplicationProtectionIntentProperties(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.Migrate.Models.Api202301.IReplicationProtectionIntentProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReplicationProtectionIntentProperties(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.Migrate.Models.Api202301.IReplicationProtectionIntentProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReplicationProtectionIntentProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProviderSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("JobState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).JobState = (string) content.GetValueForProperty("JobState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).JobState, global::System.Convert.ToString); + } + if (content.Contains("IsActive")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).IsActive = (bool?) content.GetValueForProperty("IsActive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).IsActive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("CreationTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).CreationTimeUtc = (string) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).CreationTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 ReplicationProtectionIntentProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProviderSpecificSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("JobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).JobId, global::System.Convert.ToString); + } + if (content.Contains("JobState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).JobState = (string) content.GetValueForProperty("JobState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).JobState, global::System.Convert.ToString); + } + if (content.Contains("IsActive")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).IsActive = (bool?) content.GetValueForProperty("IsActive",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).IsActive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("CreationTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).CreationTimeUtc = (string) content.GetValueForProperty("CreationTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).CreationTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Replication protection intent custom data details. + [System.ComponentModel.TypeConverter(typeof(ReplicationProtectionIntentPropertiesTypeConverter))] + public partial interface IReplicationProtectionIntentProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProperties.TypeConverter.cs index 89d661d81296..fa5a830ae49f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProperties.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProperties.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProperties.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProperties.cs index 2b150325b0bb..a7300a988113 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Replication protection intent custom data details. public partial class ReplicationProtectionIntentProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal { /// Backing field for property. @@ -49,30 +49,30 @@ public partial class ReplicationProtectionIntentProperties : public string JobState { get => this._jobState; } /// Internal Acessors for CreationTimeUtc - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal.CreationTimeUtc { get => this._creationTimeUtc; set { {_creationTimeUtc = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal.CreationTimeUtc { get => this._creationTimeUtc; set { {_creationTimeUtc = value;} } } /// Internal Acessors for IsActive - bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal.IsActive { get => this._isActive; set { {_isActive = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal.IsActive { get => this._isActive; set { {_isActive = value;} } } /// Internal Acessors for JobId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal.JobId { get => this._jobId; set { {_jobId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal.JobId { get => this._jobId; set { {_jobId = value;} } } /// Internal Acessors for JobState - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal.JobState { get => this._jobState; set { {_jobState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal.JobState { get => this._jobState; set { {_jobState = value;} } } /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProviderSpecificSettings()); set { {_providerSpecificDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProviderSpecificSettings()); set { {_providerSpecificDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings _providerSpecificDetail; /// The Replication provider custom settings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProviderSpecificSettings()); set => this._providerSpecificDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProviderSpecificSettings()); set => this._providerSpecificDetail = value; } /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettingsInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettingsInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettingsInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettingsInternal)ProviderSpecificDetail).InstanceType = value ?? null; } /// Creates an new instance. public ReplicationProtectionIntentProperties() @@ -149,7 +149,7 @@ internal partial interface IReplicationProtectionIntentPropertiesInternal /// The job state. string JobState { get; set; } /// The Replication provider custom settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings ProviderSpecificDetail { get; set; } /// Gets the Instance type. string ProviderSpecificDetailInstanceType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProperties.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProperties.json.cs index 2241291ec208..3116feb5641c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationProtectionIntentProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationProtectionIntentProperties(json) : null; } @@ -77,7 +77,7 @@ internal ReplicationProtectionIntentProperties(Microsoft.Azure.PowerShell.Cmdlet { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProtectionIntentProviderSpecificSettings.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProtectionIntentProviderSpecificSettings.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)FriendlyName;} {_jobId = If( json?.PropertyT("jobId"), out var __jsonJobId) ? (string)__jsonJobId : (string)JobId;} {_jobState = If( json?.PropertyT("jobState"), out var __jsonJobState) ? (string)__jsonJobState : (string)JobState;} diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProviderSpecificSettings.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProviderSpecificSettings.PowerShell.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProviderSpecificSettings.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProviderSpecificSettings.PowerShell.cs index 97a67ab66552..7340845ac23f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProviderSpecificSettings.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProviderSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ReplicationProtectionIntentProviderSpecificSettings partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ReplicationProtectionIntentProviderSpecificSettings(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.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ReplicationProtectionIntentProviderSpecificSettings(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRep /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal ReplicationProtectionIntentProviderSpecificSettings(global::System.Coll // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType, 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. @@ -129,7 +129,7 @@ internal ReplicationProtectionIntentProviderSpecificSettings(global::System.Mana // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProviderSpecificSettings.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProviderSpecificSettings.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProviderSpecificSettings.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProviderSpecificSettings.TypeConverter.cs index 6eceee0127cd..034604608d65 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProviderSpecificSettings.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProviderSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProviderSpecificSettings.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProviderSpecificSettings.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProviderSpecificSettings.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProviderSpecificSettings.cs index 605fa39bcc01..7383931205ce 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProviderSpecificSettings.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProviderSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Replication provider specific settings. public partial class ReplicationProtectionIntentProviderSpecificSettings : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettingsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProviderSpecificSettings.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProviderSpecificSettings.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProviderSpecificSettings.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProviderSpecificSettings.json.cs index d91d59e3286d..5b4cecf51ac6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProtectionIntentProviderSpecificSettings.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProtectionIntentProviderSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,16 +54,16 @@ public partial class ReplicationProtectionIntentProviderSpecificSettings partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings /// 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.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProtectionIntentProviderSpecificSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProtectionIntentProviderSpecificSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderContainerUnmappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderContainerUnmappingInput.PowerShell.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderContainerUnmappingInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderContainerUnmappingInput.PowerShell.cs index 9e64a18987df..299c543d5422 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderContainerUnmappingInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderContainerUnmappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ReplicationProviderContainerUnmappingInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ReplicationProviderContainerUnmappingInput(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.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ReplicationProviderContainerUnmappingInput(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRep /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal ReplicationProviderContainerUnmappingInput(global::System.Collections.I // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInputInternal)this).InstanceType, 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. @@ -129,7 +129,7 @@ internal ReplicationProviderContainerUnmappingInput(global::System.Management.Au // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderContainerUnmappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderContainerUnmappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderContainerUnmappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderContainerUnmappingInput.TypeConverter.cs index 2390173452e0..6df2b336d89e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderContainerUnmappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderContainerUnmappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderContainerUnmappingInput.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderContainerUnmappingInput.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderContainerUnmappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderContainerUnmappingInput.cs index fec82f7ed4a1..2539a1006a73 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderContainerUnmappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderContainerUnmappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific input for unpairing operations. public partial class ReplicationProviderContainerUnmappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderContainerUnmappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderContainerUnmappingInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderContainerUnmappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderContainerUnmappingInput.json.cs index 4b1dbadad186..f1505b218f61 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderContainerUnmappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderContainerUnmappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReplicationProviderContainerUnmappingInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderContainerUnmappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderContainerUnmappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationProviderContainerUnmappingInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerCreationInput.PowerShell.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerCreationInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerCreationInput.PowerShell.cs index 6910b13e282d..6dee43a15fc6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerCreationInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ReplicationProviderSpecificContainerCreationInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ReplicationProviderSpecificContainerCreationInput(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.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ReplicationProviderSpecificContainerCreationInput(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRep /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal ReplicationProviderSpecificContainerCreationInput(global::System.Collec // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, 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. @@ -129,7 +129,7 @@ internal ReplicationProviderSpecificContainerCreationInput(global::System.Manage // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerCreationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerCreationInput.TypeConverter.cs index 786d29ecfe00..4e2181f2f819 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerCreationInput.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerCreationInput.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerCreationInput.cs index deb338e4dbc1..b3f3569018f9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerCreationInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific input for container creation operation. public partial class ReplicationProviderSpecificContainerCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerCreationInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerCreationInput.json.cs index 12a19426b2cd..52939c135df2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,16 +54,16 @@ public partial class ReplicationProviderSpecificContainerCreationInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput /// 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.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerMappingInput.PowerShell.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerMappingInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerMappingInput.PowerShell.cs index 0bd67eb14c3b..a1a4860333bf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerMappingInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ReplicationProviderSpecificContainerMappingInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ReplicationProviderSpecificContainerMappingInput(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.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ReplicationProviderSpecificContainerMappingInput(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRep /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal ReplicationProviderSpecificContainerMappingInput(global::System.Collect // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType, 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. @@ -129,7 +129,7 @@ internal ReplicationProviderSpecificContainerMappingInput(global::System.Managem // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerMappingInput.TypeConverter.cs index 77907fddd193..795bf37dd2db 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerMappingInput.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerMappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerMappingInput.cs index 58054522be23..81a62aab641f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerMappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific input for pairing operations. public partial class ReplicationProviderSpecificContainerMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerMappingInput.json.cs index 82f21169bc2e..7694998e7143 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificContainerMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,16 +54,16 @@ public partial class ReplicationProviderSpecificContainerMappingInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput /// 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.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificSettings.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificSettings.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificSettings.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificSettings.PowerShell.cs index cf5efac068a4..8305aa0dc845 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificSettings.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ReplicationProviderSpecificSettings partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ReplicationProviderSpecificSettings(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.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ReplicationProviderSpecificSettings(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRep /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,13 +107,13 @@ internal ReplicationProviderSpecificSettings(global::System.Collections.IDiction // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, 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. @@ -128,7 +128,7 @@ internal ReplicationProviderSpecificSettings(global::System.Management.Automatio // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificSettings.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificSettings.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificSettings.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificSettings.TypeConverter.cs index a12da0cfc660..72fe8f36a145 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificSettings.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificSettings.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificSettings.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificSettings.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificSettings.cs index eb6b068e5903..aec2c1e71c5c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificSettings.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Replication provider specific settings. public partial class ReplicationProviderSpecificSettings : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettingsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificSettings.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificSettings.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificSettings.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificSettings.json.cs index e37f733efd89..05f0ab420456 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificSettings.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class ReplicationProviderSpecificSettings partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings 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.Migrate.Models.Api202301.IReplicationProviderSpecificSettings. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings 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.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificUpdateContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificUpdateContainerMappingInput.PowerShell.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificUpdateContainerMappingInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificUpdateContainerMappingInput.PowerShell.cs index ff309a84286c..f7d458df56bc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificUpdateContainerMappingInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificUpdateContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ReplicationProviderSpecificUpdateContainerMappingInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ReplicationProviderSpecificUpdateContainerMappingInput(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.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ReplicationProviderSpecificUpdateContainerMappingInput(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRep /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal ReplicationProviderSpecificUpdateContainerMappingInput(global::System.C // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType, 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. @@ -129,7 +129,7 @@ internal ReplicationProviderSpecificUpdateContainerMappingInput(global::System.M // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificUpdateContainerMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificUpdateContainerMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificUpdateContainerMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificUpdateContainerMappingInput.TypeConverter.cs index 9bc5ca725711..b17afd354ca8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificUpdateContainerMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificUpdateContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificUpdateContainerMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificUpdateContainerMappingInput.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificUpdateContainerMappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificUpdateContainerMappingInput.cs index f933a791c870..cd08d43ab3be 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificUpdateContainerMappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificUpdateContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific input for update pairing operations. public partial class ReplicationProviderSpecificUpdateContainerMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificUpdateContainerMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificUpdateContainerMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificUpdateContainerMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificUpdateContainerMappingInput.json.cs index b3201dca653d..4591058cba2d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReplicationProviderSpecificUpdateContainerMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReplicationProviderSpecificUpdateContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,16 +54,16 @@ public partial class ReplicationProviderSpecificUpdateContainerMappingInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput /// 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.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificUpdateContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/ReprotectAgentDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReprotectAgentDetails.PowerShell.cs new file mode 100644 index 000000000000..9ab52fb55c8b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReprotectAgentDetails.PowerShell.cs @@ -0,0 +1,240 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Reprotect agent details. + [System.ComponentModel.TypeConverter(typeof(ReprotectAgentDetailsTypeConverter))] + public partial class ReprotectAgentDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReprotectAgentDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReprotectAgentDetails(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.Migrate.Models.Api202301.IReprotectAgentDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReprotectAgentDetails(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.Migrate.Models.Api202301.IReprotectAgentDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReprotectAgentDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AccessibleDatastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).AccessibleDatastore = (string[]) content.GetValueForProperty("AccessibleDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).AccessibleDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("VcenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).VcenterId = (string) content.GetValueForProperty("VcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).VcenterId, global::System.Convert.ToString); + } + if (content.Contains("LastDiscoveryInUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).LastDiscoveryInUtc = (global::System.DateTime?) content.GetValueForProperty("LastDiscoveryInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).LastDiscoveryInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ReprotectAgentDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("BiosId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).BiosId = (string) content.GetValueForProperty("BiosId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).BiosId, global::System.Convert.ToString); + } + if (content.Contains("FabricObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).FabricObjectId = (string) content.GetValueForProperty("FabricObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).FabricObjectId, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Fqdn, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeatUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).LastHeartbeatUtc = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeatUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).LastHeartbeatUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Health")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth.CreateFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ProtectedItemCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).ProtectedItemCount = (int?) content.GetValueForProperty("ProtectedItemCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).ProtectedItemCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AccessibleDatastore")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).AccessibleDatastore = (string[]) content.GetValueForProperty("AccessibleDatastore",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).AccessibleDatastore, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("VcenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).VcenterId = (string) content.GetValueForProperty("VcenterId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).VcenterId, global::System.Convert.ToString); + } + if (content.Contains("LastDiscoveryInUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).LastDiscoveryInUtc = (global::System.DateTime?) content.GetValueForProperty("LastDiscoveryInUtc",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal)this).LastDiscoveryInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Reprotect agent details. + [System.ComponentModel.TypeConverter(typeof(ReprotectAgentDetailsTypeConverter))] + public partial interface IReprotectAgentDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReprotectAgentDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReprotectAgentDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReprotectAgentDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReprotectAgentDetails.TypeConverter.cs index ca673ab1a55e..7b2ec940ed69 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReprotectAgentDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReprotectAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReprotectAgentDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReprotectAgentDetails.cs b/src/Migrate/generated/api/Models/Api202301/ReprotectAgentDetails.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/ReprotectAgentDetails.cs rename to src/Migrate/generated/api/Models/Api202301/ReprotectAgentDetails.cs index 8ec1bb3d0045..7359bbcbbc02 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReprotectAgentDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReprotectAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Reprotect agent details. public partial class ReprotectAgentDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal { /// Backing field for property. @@ -49,11 +49,11 @@ public partial class ReprotectAgentDetails : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get => this._health; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthError; /// The health errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => this._healthError; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => this._healthError; } /// Backing field for property. private string _id; @@ -77,43 +77,43 @@ public partial class ReprotectAgentDetails : public global::System.DateTime? LastHeartbeatUtc { get => this._lastHeartbeatUtc; } /// Internal Acessors for AccessibleDatastore - string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal.AccessibleDatastore { get => this._accessibleDatastore; set { {_accessibleDatastore = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal.AccessibleDatastore { get => this._accessibleDatastore; set { {_accessibleDatastore = value;} } } /// Internal Acessors for BiosId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal.BiosId { get => this._biosId; set { {_biosId = value;} } } /// Internal Acessors for FabricObjectId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal.FabricObjectId { get => this._fabricObjectId; set { {_fabricObjectId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal.FabricObjectId { get => this._fabricObjectId; set { {_fabricObjectId = value;} } } /// Internal Acessors for Fqdn - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } /// Internal Acessors for Health - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal.Health { get => this._health; set { {_health = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal.Health { get => this._health; set { {_health = value;} } } /// Internal Acessors for HealthError - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal.HealthError { get => this._healthError; set { {_healthError = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for LastDiscoveryInUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal.LastDiscoveryInUtc { get => this._lastDiscoveryInUtc; set { {_lastDiscoveryInUtc = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal.LastDiscoveryInUtc { get => this._lastDiscoveryInUtc; set { {_lastDiscoveryInUtc = value;} } } /// Internal Acessors for LastHeartbeatUtc - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal.LastHeartbeatUtc { get => this._lastHeartbeatUtc; set { {_lastHeartbeatUtc = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for ProtectedItemCount - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal.ProtectedItemCount { get => this._protectedItemCount; set { {_protectedItemCount = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal.ProtectedItemCount { get => this._protectedItemCount; set { {_protectedItemCount = value;} } } /// Internal Acessors for VcenterId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal.VcenterId { get => this._vcenterId; set { {_vcenterId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal.VcenterId { get => this._vcenterId; set { {_vcenterId = value;} } } /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetailsInternal.Version { get => this._version; set { {_version = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetailsInternal.Version { get => this._version; set { {_version = value;} } } /// Backing field for property. private string _name; @@ -199,8 +199,8 @@ public partial interface IReprotectAgentDetails : ReadOnly = true, Description = @"The health errors.", SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; } /// The reprotect agent Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -274,7 +274,7 @@ internal partial interface IReprotectAgentDetailsInternal /// The health of the reprotect agent. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ProtectionHealth? Health { get; set; } /// The health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The reprotect agent Id. string Id { get; set; } /// The last time when SDS information discovered in SRS. diff --git a/src/Migrate/generated/api/Models/Api20220501/ReprotectAgentDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/ReprotectAgentDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ReprotectAgentDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReprotectAgentDetails.json.cs index 12e5c9843662..cd1e6b10c460 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReprotectAgentDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReprotectAgentDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReprotectAgentDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReprotectAgentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReprotectAgentDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReprotectAgentDetails(json) : null; } @@ -85,7 +85,7 @@ internal ReprotectAgentDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} {_lastHeartbeatUtc = If( json?.PropertyT("lastHeartbeatUtc"), out var __jsonLastHeartbeatUtc) ? global::System.DateTime.TryParse((string)__jsonLastHeartbeatUtc, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastHeartbeatUtcValue) ? __jsonLastHeartbeatUtcValue : LastHeartbeatUtc : LastHeartbeatUtc;} {_health = If( json?.PropertyT("health"), out var __jsonHealth) ? (string)__jsonHealth : (string)Health;} - {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__u) )) ))() : null : HealthError;} + {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__u) )) ))() : null : HealthError;} {_protectedItemCount = If( json?.PropertyT("protectedItemCount"), out var __jsonProtectedItemCount) ? (int?)__jsonProtectedItemCount : ProtectedItemCount;} {_accessibleDatastore = If( json?.PropertyT("accessibleDatastores"), out var __jsonAccessibleDatastores) ? If( __jsonAccessibleDatastores as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : AccessibleDatastore;} {_vcenterId = If( json?.PropertyT("vcenterId"), out var __jsonVcenterId) ? (string)__jsonVcenterId : (string)VcenterId;} diff --git a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthError.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ResolveHealthError.PowerShell.cs similarity index 84% rename from src/Migrate/generated/api/Models/Api20220501/ResolveHealthError.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ResolveHealthError.PowerShell.cs index dd0121ac1ccf..ffa80adfe7f9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthError.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResolveHealthError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ResolveHealthError partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IResolveHealthError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResolveHealthError(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.Migrate.Models.Api20220501.IResolveHealthError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResolveHealthError(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,13 +103,13 @@ internal ResolveHealthError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("HealthErrorId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthErrorInternal)this).HealthErrorId = (string) content.GetValueForProperty("HealthErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthErrorInternal)this).HealthErrorId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthErrorInternal)this).HealthErrorId = (string) content.GetValueForProperty("HealthErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthErrorInternal)this).HealthErrorId, 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. @@ -124,7 +124,7 @@ internal ResolveHealthError(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("HealthErrorId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthErrorInternal)this).HealthErrorId = (string) content.GetValueForProperty("HealthErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthErrorInternal)this).HealthErrorId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthErrorInternal)this).HealthErrorId = (string) content.GetValueForProperty("HealthErrorId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthErrorInternal)this).HealthErrorId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthError.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ResolveHealthError.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/ResolveHealthError.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ResolveHealthError.TypeConverter.cs index e406b43c37d1..d25b936ef59e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthError.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResolveHealthError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResolveHealthError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthError.cs b/src/Migrate/generated/api/Models/Api202301/ResolveHealthError.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ResolveHealthError.cs rename to src/Migrate/generated/api/Models/Api202301/ResolveHealthError.cs index 2cecd23ee8b1..f58254f4046c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthError.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResolveHealthError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Resolve health errors input properties. public partial class ResolveHealthError : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthErrorInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthError.json.cs b/src/Migrate/generated/api/Models/Api202301/ResolveHealthError.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ResolveHealthError.json.cs rename to src/Migrate/generated/api/Models/Api202301/ResolveHealthError.json.cs index edbebd46e25b..84b5757eeeb4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthError.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResolveHealthError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResolveHealthError partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ResolveHealthError(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ResolveHealthInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInput.PowerShell.cs new file mode 100644 index 000000000000..6fa767170d15 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInput.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Resolve health input. + [System.ComponentModel.TypeConverter(typeof(ResolveHealthInputTypeConverter))] + public partial class ResolveHealthInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IResolveHealthInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ResolveHealthInput(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.Migrate.Models.Api202301.IResolveHealthInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ResolveHealthInput(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.Migrate.Models.Api202301.IResolveHealthInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ResolveHealthInput(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.Migrate.Models.Api202301.IResolveHealthInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResolveHealthInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResolveHealthErrorTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ResolveHealthInput(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.Migrate.Models.Api202301.IResolveHealthInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResolveHealthInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResolveHealthErrorTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Resolve health input. + [System.ComponentModel.TypeConverter(typeof(ResolveHealthInputTypeConverter))] + public partial interface IResolveHealthInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/ResolveHealthInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ResolveHealthInput.TypeConverter.cs index d359fa48fb4b..2fc02d7f2fdf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResolveHealthInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ResolveHealthInput.cs b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInput.cs new file mode 100644 index 000000000000..1f92c18a9215 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Resolve health input. + public partial class ResolveHealthInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputInternal + { + + /// Health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError[] HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputPropertiesInternal)Property).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputPropertiesInternal)Property).HealthError = value ?? null /* arrayOf */; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResolveHealthInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties _property; + + /// Disable resolve health input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResolveHealthInputProperties()); set => this._property = value; } + + /// Creates an new instance. + public ResolveHealthInput() + { + + } + } + /// Resolve health input. + public partial interface IResolveHealthInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Health errors. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Health errors.", + SerializedName = @"healthErrors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError[] HealthError { get; set; } + + } + /// Resolve health input. + internal partial interface IResolveHealthInputInternal + + { + /// Health errors. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError[] HealthError { get; set; } + /// Disable resolve health input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInput.json.cs b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ResolveHealthInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/ResolveHealthInput.json.cs index 7d5264517a72..cd30831785ba 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResolveHealthInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ResolveHealthInput(json) : null; } @@ -77,7 +77,7 @@ internal ResolveHealthInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.J { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResolveHealthInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResolveHealthInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInputProperties.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/ResolveHealthInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ResolveHealthInputProperties.PowerShell.cs index 25b42c0061e7..70527adbbfd1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,27 @@ public partial class ResolveHealthInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IResolveHealthInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResolveHealthInputProperties(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.Migrate.Models.Api20220501.IResolveHealthInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResolveHealthInputProperties(content); } @@ -87,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +103,13 @@ internal ResolveHealthInputProperties(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("HealthError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResolveHealthErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResolveHealthErrorTypeConverter.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. @@ -126,7 +124,7 @@ internal ResolveHealthInputProperties(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("HealthError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResolveHealthErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputPropertiesInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputPropertiesInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResolveHealthErrorTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ResolveHealthInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ResolveHealthInputProperties.TypeConverter.cs index 0c6a1e9d227f..35ac50eca3a7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResolveHealthInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInputProperties.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/ResolveHealthInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/ResolveHealthInputProperties.cs index 694050cdc76a..0f89d78530d4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInputProperties.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Resolve health input properties. public partial class ResolveHealthInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError[] _healthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError[] _healthError; /// Health errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError[] HealthError { get => this._healthError; set => this._healthError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError[] HealthError { get => this._healthError; set => this._healthError = value; } /// Creates an new instance. public ResolveHealthInputProperties() @@ -36,8 +36,8 @@ public partial interface IResolveHealthInputProperties : ReadOnly = false, Description = @"Health errors.", SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError[] HealthError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError[] HealthError { get; set; } } /// Resolve health input properties. @@ -45,7 +45,7 @@ internal partial interface IResolveHealthInputPropertiesInternal { /// Health errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthError[] HealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthError[] HealthError { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInputProperties.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/ResolveHealthInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/ResolveHealthInputProperties.json.cs index d5693f636d53..7559eee4742a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResolveHealthInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResolveHealthInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResolveHealthInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResolveHealthInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResolveHealthInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ResolveHealthInputProperties(json) : null; } @@ -77,7 +77,7 @@ internal ResolveHealthInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResolveHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResolveHealthError.FromJson(__u) )) ))() : null : HealthError;} + {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IResolveHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResolveHealthError.FromJson(__u) )) ))() : null : HealthError;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/Resource.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/Resource.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/Resource.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/Resource.PowerShell.cs index 7c6cca3d2a12..b5cab2116916 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Resource.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/Resource.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class Resource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Resource(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.Migrate.Models.Api20220501.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Resource(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,25 +103,25 @@ internal Resource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, 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. @@ -136,19 +136,19 @@ internal Resource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/Resource.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/Resource.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/Resource.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/Resource.TypeConverter.cs index 7a8b29a568f4..e604a3ed5320 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Resource.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/Resource.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/Resource.cs b/src/Migrate/generated/api/Models/Api202301/Resource.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/Resource.cs rename to src/Migrate/generated/api/Models/Api202301/Resource.cs index 2eefc49dd09b..a3b5423ec389 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Resource.cs +++ b/src/Migrate/generated/api/Models/Api202301/Resource.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Azure resource. public partial class Resource : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal { /// Backing field for property. @@ -28,13 +28,13 @@ public partial class Resource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; diff --git a/src/Migrate/generated/api/Models/Api20220501/Resource.json.cs b/src/Migrate/generated/api/Models/Api202301/Resource.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/Resource.json.cs rename to src/Migrate/generated/api/Models/Api202301/Resource.json.cs index bbe39892c2a7..dfa350891da6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Resource.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/Resource.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Resource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new Resource(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummary.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummary.PowerShell.cs new file mode 100644 index 000000000000..911d46ccef78 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummary.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// + /// Base class to define the health summary of the resources contained under an Arm resource. + /// + [System.ComponentModel.TypeConverter(typeof(ResourceHealthSummaryTypeConverter))] + public partial class ResourceHealthSummary + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IResourceHealthSummary DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ResourceHealthSummary(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.Migrate.Models.Api202301.IResourceHealthSummary DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ResourceHealthSummary(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.Migrate.Models.Api202301.IResourceHealthSummary FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ResourceHealthSummary(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)this).ResourceCount = (int?) content.GetValueForProperty("ResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)this).ResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Issue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)this).Issue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[]) content.GetValueForProperty("Issue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)this).Issue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummaryTypeConverter.ConvertFrom)); + } + if (content.Contains("CategorizedResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)this).CategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("CategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)this).CategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ResourceHealthSummary(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)this).ResourceCount = (int?) content.GetValueForProperty("ResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)this).ResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Issue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)this).Issue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[]) content.GetValueForProperty("Issue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)this).Issue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummaryTypeConverter.ConvertFrom)); + } + if (content.Contains("CategorizedResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)this).CategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("CategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)this).CategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Base class to define the health summary of the resources contained under an Arm resource. + [System.ComponentModel.TypeConverter(typeof(ResourceHealthSummaryTypeConverter))] + public partial interface IResourceHealthSummary + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummary.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummary.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummary.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ResourceHealthSummary.TypeConverter.cs index 30d0cdff9f72..66c564b98531 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummary.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResourceHealthSummary ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummary.cs b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummary.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummary.cs rename to src/Migrate/generated/api/Models/Api202301/ResourceHealthSummary.cs index 113243632bb1..fbd7236e2a3d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummary.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,23 +11,23 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// Base class to define the health summary of the resources contained under an Arm resource. /// public partial class ResourceHealthSummary : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts _categorizedResourceCount; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts _categorizedResourceCount; /// The categorized resource counts. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts CategorizedResourceCount { get => (this._categorizedResourceCount = this._categorizedResourceCount ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCounts()); set => this._categorizedResourceCount = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts CategorizedResourceCount { get => (this._categorizedResourceCount = this._categorizedResourceCount ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCounts()); set => this._categorizedResourceCount = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] _issue; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] _issue; /// The list of summary of health errors across the resources under the container. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] Issue { get => this._issue; set => this._issue = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] Issue { get => this._issue; set => this._issue = value; } /// Backing field for property. private int? _resourceCount; @@ -52,16 +52,16 @@ public partial interface IResourceHealthSummary : ReadOnly = false, Description = @"The categorized resource counts.", SerializedName = @"categorizedResourceCounts", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts CategorizedResourceCount { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts CategorizedResourceCount { get; set; } /// The list of summary of health errors across the resources under the container. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The list of summary of health errors across the resources under the container.", SerializedName = @"issues", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] Issue { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] Issue { get; set; } /// The count of total resources under the container. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -77,9 +77,9 @@ internal partial interface IResourceHealthSummaryInternal { /// The categorized resource counts. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts CategorizedResourceCount { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts CategorizedResourceCount { get; set; } /// The list of summary of health errors across the resources under the container. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthErrorSummary[] Issue { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] Issue { get; set; } /// The count of total resources under the container. int? ResourceCount { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummary.json.cs b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummary.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummary.json.cs rename to src/Migrate/generated/api/Models/Api202301/ResourceHealthSummary.json.cs index 9710d24d2882..3e22bde4aac8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummary.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class ResourceHealthSummary partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummary FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ResourceHealthSummary(json) : null; } @@ -80,8 +80,8 @@ internal ResourceHealthSummary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim return; } {_resourceCount = If( json?.PropertyT("resourceCount"), out var __jsonResourceCount) ? (int?)__jsonResourceCount : ResourceCount;} - {_issue = If( json?.PropertyT("issues"), out var __jsonIssues) ? If( __jsonIssues as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthErrorSummary) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthErrorSummary.FromJson(__u) )) ))() : null : Issue;} - {_categorizedResourceCount = If( json?.PropertyT("categorizedResourceCounts"), out var __jsonCategorizedResourceCounts) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCounts.FromJson(__jsonCategorizedResourceCounts) : CategorizedResourceCount;} + {_issue = If( json?.PropertyT("issues"), out var __jsonIssues) ? If( __jsonIssues as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IHealthErrorSummary) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummary.FromJson(__u) )) ))() : null : Issue;} + {_categorizedResourceCount = If( json?.PropertyT("categorizedResourceCounts"), out var __jsonCategorizedResourceCounts) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCounts.FromJson(__jsonCategorizedResourceCounts) : CategorizedResourceCount;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.PowerShell.cs index 3c2c98304437..c6e10cea4b00 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ResourceHealthSummaryCategorizedResourceCounts partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceHealthSummaryCategorizedResourceCounts(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.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceHealthSummaryCategorizedResourceCounts(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRes /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -112,7 +112,7 @@ internal ResourceHealthSummaryCategorizedResourceCounts(global::System.Collectio } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.TypeConverter.cs index 8e37071ed370..4726f77e775e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.cs b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.cs rename to src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.cs index d0003f8e3bab..3cc2dfec206f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The categorized resource counts. public partial class ResourceHealthSummaryCategorizedResourceCounts : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCountsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCountsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.dictionary.cs index 870ce15943c3..86715805b34d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummaryCategorizedResourceCounts source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCounts source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.json.cs b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.json.cs rename to src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.json.cs index 6917cd99b380..7eb275f954ca 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResourceHealthSummaryCategorizedResourceCounts.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResourceHealthSummaryCategorizedResourceCounts.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResourceHealthSummaryCategorizedResourceCounts partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResourceHealthSummaryCategorizedResourceCounts FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ResourceHealthSummaryCategorizedResourceCounts(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParams.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ResumeJobParams.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/ResumeJobParams.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeJobParams.PowerShell.cs index cd7325c57e0b..15f75cb891a6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParams.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeJobParams.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ResumeJobParams partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IResumeJobParams DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParams DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResumeJobParams(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.Migrate.Models.Api20220501.IResumeJobParams DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParams DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResumeJobParams(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParams FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParams FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal ResumeJobParams(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeJobParamsPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeJobParamsPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsInternal)this).Comment, 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. @@ -128,11 +128,11 @@ internal ResumeJobParams(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeJobParamsPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeJobParamsPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsInternal)this).Comment, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParams.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ResumeJobParams.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/ResumeJobParams.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeJobParams.TypeConverter.cs index c1509d8ee2df..855aaa1640c7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParams.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeJobParams.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResumeJobParams ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParams ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParams).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParams).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ResumeJobParams.cs b/src/Migrate/generated/api/Models/Api202301/ResumeJobParams.cs new file mode 100644 index 000000000000..36a3b9a2c3b8 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ResumeJobParams.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Resume job params. + public partial class ResumeJobParams : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParams, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsInternal + { + + /// Resume job comments. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Comment { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsPropertiesInternal)Property).Comment; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsPropertiesInternal)Property).Comment = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeJobParamsProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties _property; + + /// Resume job properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeJobParamsProperties()); set => this._property = value; } + + /// Creates an new instance. + public ResumeJobParams() + { + + } + } + /// Resume job params. + public partial interface IResumeJobParams : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Resume job comments. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resume job comments.", + SerializedName = @"comments", + PossibleTypes = new [] { typeof(string) })] + string Comment { get; set; } + + } + /// Resume job params. + internal partial interface IResumeJobParamsInternal + + { + /// Resume job comments. + string Comment { get; set; } + /// Resume job properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParams.json.cs b/src/Migrate/generated/api/Models/Api202301/ResumeJobParams.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ResumeJobParams.json.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeJobParams.json.cs index 3e5be77dd35e..e056f3745f58 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParams.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeJobParams.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResumeJobParams partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParams. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParams. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParams. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParams. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParams FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParams FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ResumeJobParams(json) : null; } @@ -77,7 +77,7 @@ internal ResumeJobParams(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeJobParamsProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeJobParamsProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParamsProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ResumeJobParamsProperties.PowerShell.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/ResumeJobParamsProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeJobParamsProperties.PowerShell.cs index 9c96ae731a87..a2fcead2444b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParamsProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeJobParamsProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ResumeJobParamsProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IResumeJobParamsProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResumeJobParamsProperties(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.Migrate.Models.Api20220501.IResumeJobParamsProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResumeJobParamsProperties(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,13 +103,13 @@ internal ResumeJobParamsProperties(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsPropertiesInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsPropertiesInternal)this).Comment, 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. @@ -124,7 +124,7 @@ internal ResumeJobParamsProperties(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsPropertiesInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsPropertiesInternal)this).Comment, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParamsProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ResumeJobParamsProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ResumeJobParamsProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeJobParamsProperties.TypeConverter.cs index 4d3c6736589c..90e6929aba10 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParamsProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeJobParamsProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResumeJobParamsProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParamsProperties.cs b/src/Migrate/generated/api/Models/Api202301/ResumeJobParamsProperties.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ResumeJobParamsProperties.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeJobParamsProperties.cs index 5b858177fc36..aa7f0343c5b6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParamsProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeJobParamsProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Resume job properties. public partial class ResumeJobParamsProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParamsProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/ResumeJobParamsProperties.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ResumeJobParamsProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeJobParamsProperties.json.cs index 302d14d0af36..94a7f37f9970 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeJobParamsProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeJobParamsProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResumeJobParamsProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeJobParamsProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeJobParamsProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ResumeJobParamsProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInput.PowerShell.cs new file mode 100644 index 000000000000..12a73ec6dfe6 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInput.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Resume replication input. + [System.ComponentModel.TypeConverter(typeof(ResumeReplicationInputTypeConverter))] + public partial class ResumeReplicationInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IResumeReplicationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ResumeReplicationInput(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.Migrate.Models.Api202301.IResumeReplicationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ResumeReplicationInput(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.Migrate.Models.Api202301.IResumeReplicationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ResumeReplicationInput(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.Migrate.Models.Api202301.IResumeReplicationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationProviderSpecificInputTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ResumeReplicationInput(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.Migrate.Models.Api202301.IResumeReplicationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationProviderSpecificInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Resume replication input. + [System.ComponentModel.TypeConverter(typeof(ResumeReplicationInputTypeConverter))] + public partial interface IResumeReplicationInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeReplicationInput.TypeConverter.cs index b2c2a1002dfc..e5a3ddc5339f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResumeReplicationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInput.cs b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInput.cs new file mode 100644 index 000000000000..804a5496d103 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Resume replication input. + public partial class ResumeReplicationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties _property; + + /// Resume replication input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationInputProperties()); set => this._property = value; } + + /// The provider specific input for resume replication. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputPropertiesInternal)Property).ProviderSpecificDetail = value ; } + + /// Creates an new instance. + public ResumeReplicationInput() + { + + } + } + /// Resume replication input. + public partial interface IResumeReplicationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The provider specific input for resume replication. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The provider specific input for resume replication.", + SerializedName = @"providerSpecificDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput ProviderSpecificDetail { get; set; } + + } + /// Resume replication input. + internal partial interface IResumeReplicationInputInternal + + { + /// Resume replication input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties Property { get; set; } + /// The provider specific input for resume replication. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput ProviderSpecificDetail { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeReplicationInput.json.cs index 821439647bb9..14657061daa8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResumeReplicationInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ResumeReplicationInput(json) : null; } @@ -77,7 +77,7 @@ internal ResumeReplicationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInputProperties.PowerShell.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeReplicationInputProperties.PowerShell.cs index ebd25b236f7f..e621d59b348c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ResumeReplicationInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IResumeReplicationInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResumeReplicationInputProperties(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.Migrate.Models.Api20220501.IResumeReplicationInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResumeReplicationInputProperties(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +105,13 @@ internal ResumeReplicationInputProperties(global::System.Collections.IDictionary // actually deserialize if (content.Contains("ProviderSpecificDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationProviderSpecificInputTypeConverter.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. @@ -126,7 +126,7 @@ internal ResumeReplicationInputProperties(global::System.Management.Automation.P // actually deserialize if (content.Contains("ProviderSpecificDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationProviderSpecificInputTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeReplicationInputProperties.TypeConverter.cs index b2fe5dce9529..4a4abe8b9c83 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResumeReplicationInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInputProperties.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeReplicationInputProperties.cs index 811040b9b0b7..889b8f89c590 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInputProperties.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Resume replication input properties. public partial class ResumeReplicationInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput _providerSpecificDetail; /// The provider specific input for resume replication. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationProviderSpecificInput()); set => this._providerSpecificDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationProviderSpecificInput()); set => this._providerSpecificDetail = value; } /// Creates an new instance. public ResumeReplicationInputProperties() @@ -36,8 +36,8 @@ public partial interface IResumeReplicationInputProperties : ReadOnly = false, Description = @"The provider specific input for resume replication.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput ProviderSpecificDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput ProviderSpecificDetail { get; set; } } /// Resume replication input properties. @@ -45,7 +45,7 @@ internal partial interface IResumeReplicationInputPropertiesInternal { /// The provider specific input for resume replication. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput ProviderSpecificDetail { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeReplicationInputProperties.json.cs index d6f04110e326..ce44cb29b041 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResumeReplicationInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ResumeReplicationInputProperties(json) : null; } @@ -77,7 +77,7 @@ internal ResumeReplicationInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Mig { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/ResumeReplicationProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeReplicationProviderSpecificInput.PowerShell.cs index f38a748807bb..c1be7a4d200d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ResumeReplicationProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResumeReplicationProviderSpecificInput(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.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResumeReplicationProviderSpecificInput(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRes /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal ResumeReplicationProviderSpecificInput(global::System.Collections.IDict // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInputInternal)this).InstanceType, 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. @@ -129,7 +129,7 @@ internal ResumeReplicationProviderSpecificInput(global::System.Management.Automa // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ResumeReplicationProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeReplicationProviderSpecificInput.TypeConverter.cs index 5fbad387552e..b3977d96c832 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ResumeReplicationProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeReplicationProviderSpecificInput.cs index afe70e07089d..aef55aad9782 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Resume replication provider specific input. public partial class ResumeReplicationProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationProviderSpecificInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ResumeReplicationProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/ResumeReplicationProviderSpecificInput.json.cs index 97dd7fd45b81..771904a9ab23 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResumeReplicationProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResumeReplicationProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class ResumeReplicationProviderSpecificInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput 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.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/ResyncInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ResyncInput.PowerShell.cs new file mode 100644 index 000000000000..eff68122ab0c --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ResyncInput.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Resync input. + [System.ComponentModel.TypeConverter(typeof(ResyncInputTypeConverter))] + public partial class ResyncInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IResyncInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ResyncInput(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.Migrate.Models.Api202301.IResyncInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ResyncInput(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.Migrate.Models.Api202301.IResyncInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ResyncInput(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.Migrate.Models.Api202301.IResyncInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncProviderSpecificInputTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ResyncInput(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.Migrate.Models.Api202301.IResyncInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncProviderSpecificInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Resync input. + [System.ComponentModel.TypeConverter(typeof(ResyncInputTypeConverter))] + public partial interface IResyncInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResyncInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ResyncInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/ResyncInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ResyncInput.TypeConverter.cs index 521b33e30c52..808fb17840b7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResyncInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResyncInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResyncInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ResyncInput.cs b/src/Migrate/generated/api/Models/Api202301/ResyncInput.cs new file mode 100644 index 000000000000..919ae47d4188 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ResyncInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Resync input. + public partial class ResyncInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties _property; + + /// Resync input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncInputProperties()); set => this._property = value; } + + /// The provider specific details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputPropertiesInternal)Property).ProviderSpecificDetail = value ; } + + /// Creates an new instance. + public ResyncInput() + { + + } + } + /// Resync input. + public partial interface IResyncInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The provider specific details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The provider specific details.", + SerializedName = @"providerSpecificDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput ProviderSpecificDetail { get; set; } + + } + /// Resync input. + internal partial interface IResyncInputInternal + + { + /// Resync input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties Property { get; set; } + /// The provider specific details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput ProviderSpecificDetail { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResyncInput.json.cs b/src/Migrate/generated/api/Models/Api202301/ResyncInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ResyncInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/ResyncInput.json.cs index 120261190f7c..fa4687866889 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResyncInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResyncInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResyncInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ResyncInput(json) : null; } @@ -77,7 +77,7 @@ internal ResyncInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.Jso { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResyncInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ResyncInputProperties.PowerShell.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/ResyncInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ResyncInputProperties.PowerShell.cs index f258c671d275..5cafc23c1204 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResyncInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResyncInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ResyncInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IResyncInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResyncInputProperties(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.Migrate.Models.Api20220501.IResyncInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResyncInputProperties(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,13 +103,13 @@ internal ResyncInputProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ProviderSpecificDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncProviderSpecificInputTypeConverter.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. @@ -124,7 +124,7 @@ internal ResyncInputProperties(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("ProviderSpecificDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncProviderSpecificInputTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResyncInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ResyncInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ResyncInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ResyncInputProperties.TypeConverter.cs index 98e0c3332aba..f00dc08e378e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResyncInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResyncInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResyncInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResyncInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/ResyncInputProperties.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/ResyncInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/ResyncInputProperties.cs index d10ef8a05e1f..3a712c62d9df 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResyncInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResyncInputProperties.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Resync input properties. public partial class ResyncInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput _providerSpecificDetail; /// The provider specific details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncProviderSpecificInput()); set => this._providerSpecificDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncProviderSpecificInput()); set => this._providerSpecificDetail = value; } /// Creates an new instance. public ResyncInputProperties() @@ -36,8 +36,8 @@ public partial interface IResyncInputProperties : ReadOnly = false, Description = @"The provider specific details.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput ProviderSpecificDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput ProviderSpecificDetail { get; set; } } /// Resync input properties. @@ -45,7 +45,7 @@ internal partial interface IResyncInputPropertiesInternal { /// The provider specific details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput ProviderSpecificDetail { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ResyncInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/ResyncInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/ResyncInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/ResyncInputProperties.json.cs index 62dc81b0c1e4..0ff2cc1822c5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResyncInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResyncInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResyncInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ResyncInputProperties(json) : null; } @@ -77,7 +77,7 @@ internal ResyncInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResyncProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ResyncProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/ResyncProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ResyncProviderSpecificInput.PowerShell.cs index 1e60d22dcba3..d610007efc00 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResyncProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResyncProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,27 @@ public partial class ResyncProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IResyncProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResyncProviderSpecificInput(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.Migrate.Models.Api20220501.IResyncProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResyncProviderSpecificInput(content); } @@ -87,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +103,13 @@ internal ResyncProviderSpecificInput(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInputInternal)this).InstanceType, 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,7 +124,7 @@ internal ResyncProviderSpecificInput(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResyncProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ResyncProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ResyncProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ResyncProviderSpecificInput.TypeConverter.cs index 359efa116e24..6f9e921b7268 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResyncProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResyncProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IResyncProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ResyncProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/ResyncProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ResyncProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/ResyncProviderSpecificInput.cs index 871c144e7797..309df401cf94 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResyncProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResyncProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Resync provider specific input. public partial class ResyncProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ResyncProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/ResyncProviderSpecificInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ResyncProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/ResyncProviderSpecificInput.json.cs index 53c263a4f8d2..5324acba96b1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ResyncProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ResyncProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class ResyncProviderSpecificInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput 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.Migrate.Models.Api20220501.IResyncProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/RetentionVolume.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RetentionVolume.PowerShell.cs new file mode 100644 index 000000000000..4eefbb3995c7 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RetentionVolume.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// The retention details of the MT. + [System.ComponentModel.TypeConverter(typeof(RetentionVolumeTypeConverter))] + public partial class RetentionVolume + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRetentionVolume DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RetentionVolume(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.Migrate.Models.Api202301.IRetentionVolume DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RetentionVolume(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.Migrate.Models.Api202301.IRetentionVolume FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RetentionVolume(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VolumeName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).VolumeName = (string) content.GetValueForProperty("VolumeName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).VolumeName, global::System.Convert.ToString); + } + if (content.Contains("CapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("FreeSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).FreeSpaceInByte = (long?) content.GetValueForProperty("FreeSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).FreeSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ThresholdPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).ThresholdPercentage = (int?) content.GetValueForProperty("ThresholdPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).ThresholdPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RetentionVolume(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VolumeName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).VolumeName = (string) content.GetValueForProperty("VolumeName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).VolumeName, global::System.Convert.ToString); + } + if (content.Contains("CapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("FreeSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).FreeSpaceInByte = (long?) content.GetValueForProperty("FreeSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).FreeSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ThresholdPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).ThresholdPercentage = (int?) content.GetValueForProperty("ThresholdPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal)this).ThresholdPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The retention details of the MT. + [System.ComponentModel.TypeConverter(typeof(RetentionVolumeTypeConverter))] + public partial interface IRetentionVolume + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RetentionVolume.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RetentionVolume.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/RetentionVolume.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RetentionVolume.TypeConverter.cs index 4815276941b4..6767e58726c0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RetentionVolume.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RetentionVolume.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRetentionVolume ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolume ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolume).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolume).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RetentionVolume.cs b/src/Migrate/generated/api/Models/Api202301/RetentionVolume.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/RetentionVolume.cs rename to src/Migrate/generated/api/Models/Api202301/RetentionVolume.cs index 4d47267c299b..86672482fc1f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RetentionVolume.cs +++ b/src/Migrate/generated/api/Models/Api202301/RetentionVolume.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The retention details of the MT. public partial class RetentionVolume : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolume, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolumeInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolume, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolumeInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RetentionVolume.json.cs b/src/Migrate/generated/api/Models/Api202301/RetentionVolume.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RetentionVolume.json.cs rename to src/Migrate/generated/api/Models/Api202301/RetentionVolume.json.cs index 252ce51f5b58..a19947119b9d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RetentionVolume.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RetentionVolume.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RetentionVolume partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolume. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolume. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolume. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolume. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRetentionVolume FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRetentionVolume FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RetentionVolume(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInput.PowerShell.cs new file mode 100644 index 000000000000..7fccecf5bda9 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInput.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Reverse replication input. + [System.ComponentModel.TypeConverter(typeof(ReverseReplicationInputTypeConverter))] + public partial class ReverseReplicationInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReverseReplicationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReverseReplicationInput(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.Migrate.Models.Api202301.IReverseReplicationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReverseReplicationInput(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.Migrate.Models.Api202301.IReverseReplicationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReverseReplicationInput(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.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).ProviderSpecificDetailInstanceType, 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 ReverseReplicationInput(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.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Reverse replication input. + [System.ComponentModel.TypeConverter(typeof(ReverseReplicationInputTypeConverter))] + public partial interface IReverseReplicationInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReverseReplicationInput.TypeConverter.cs index 4930ebcc4a80..8f2aa674bebc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReverseReplicationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInput.cs b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInput.cs new file mode 100644 index 000000000000..48da6eda2629 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInput.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Reverse replication input. + public partial class ReverseReplicationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal + { + + /// Failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FailoverDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)Property).FailoverDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)Property).FailoverDirection = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputProperties _property; + + /// Reverse replication properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationInputProperties()); set => this._property = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// Creates an new instance. + public ReverseReplicationInput() + { + + } + } + /// Reverse replication input. + public partial interface IReverseReplicationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Failover direction.", + SerializedName = @"failoverDirection", + PossibleTypes = new [] { typeof(string) })] + string FailoverDirection { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Reverse replication input. + internal partial interface IReverseReplicationInputInternal + + { + /// Failover direction. + string FailoverDirection { get; set; } + /// Reverse replication properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputProperties Property { get; set; } + /// Provider specific reverse replication input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReverseReplicationInput.json.cs index 72921c10f1a7..a7fba8042d9e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReverseReplicationInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReverseReplicationInput(json) : null; } @@ -77,7 +77,7 @@ internal ReverseReplicationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInputProperties.PowerShell.cs new file mode 100644 index 000000000000..a9f0ec9d41ca --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInputProperties.PowerShell.cs @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Reverse replication input properties. + [System.ComponentModel.TypeConverter(typeof(ReverseReplicationInputPropertiesTypeConverter))] + public partial class ReverseReplicationInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IReverseReplicationInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReverseReplicationInputProperties(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.Migrate.Models.Api202301.IReverseReplicationInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReverseReplicationInputProperties(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.Migrate.Models.Api202301.IReverseReplicationInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReverseReplicationInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 ReverseReplicationInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Reverse replication input properties. + [System.ComponentModel.TypeConverter(typeof(ReverseReplicationInputPropertiesTypeConverter))] + public partial interface IReverseReplicationInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReverseReplicationInputProperties.TypeConverter.cs index dcf7d7c83075..16211156cdc0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReverseReplicationInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInputProperties.cs new file mode 100644 index 000000000000..e3e6cd4cff4d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInputProperties.cs @@ -0,0 +1,77 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Reverse replication input properties. + public partial class ReverseReplicationInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal + { + + /// Backing field for property. + private string _failoverDirection; + + /// Failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string FailoverDirection { get => this._failoverDirection; set => this._failoverDirection = value; } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput _providerSpecificDetail; + + /// Provider specific reverse replication input. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput()); set => this._providerSpecificDetail = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + + /// Creates an new instance. + public ReverseReplicationInputProperties() + { + + } + } + /// Reverse replication input properties. + public partial interface IReverseReplicationInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Failover direction.", + SerializedName = @"failoverDirection", + PossibleTypes = new [] { typeof(string) })] + string FailoverDirection { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Reverse replication input properties. + internal partial interface IReverseReplicationInputPropertiesInternal + + { + /// Failover direction. + string FailoverDirection { get; set; } + /// Provider specific reverse replication input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReverseReplicationInputProperties.json.cs index b92224b13992..9f54334cad77 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReverseReplicationInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReverseReplicationInputProperties(json) : null; } @@ -77,7 +77,7 @@ internal ReverseReplicationInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Mi { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReverseReplicationProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReverseReplicationProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_failoverDirection = If( json?.PropertyT("failoverDirection"), out var __jsonFailoverDirection) ? (string)__jsonFailoverDirection : (string)FailoverDirection;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/ReverseReplicationProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/ReverseReplicationProviderSpecificInput.PowerShell.cs index b0e2c180e2c8..1312ce0bd19b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ReverseReplicationProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ReverseReplicationProviderSpecificInput(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.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ReverseReplicationProviderSpecificInput(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRev /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal ReverseReplicationProviderSpecificInput(global::System.Collections.IDic // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, 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. @@ -129,7 +129,7 @@ internal ReverseReplicationProviderSpecificInput(global::System.Management.Autom // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ReverseReplicationProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ReverseReplicationProviderSpecificInput.TypeConverter.cs index 05183843f312..7d047ebc0131 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ReverseReplicationProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/ReverseReplicationProviderSpecificInput.cs index 52e2dd315589..c25e55b4e088 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific reverse replication input. public partial class ReverseReplicationProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationProviderSpecificInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/ReverseReplicationProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/ReverseReplicationProviderSpecificInput.json.cs index 6b397b36e9c7..6546ec72633f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ReverseReplicationProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ReverseReplicationProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class ReverseReplicationProviderSpecificInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput 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.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReverseReplicationProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReverseReplicationProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/RoleAssignment.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RoleAssignment.PowerShell.cs new file mode 100644 index 000000000000..b6c8439c58b2 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/RoleAssignment.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Azure role assignment details. + [System.ComponentModel.TypeConverter(typeof(RoleAssignmentTypeConverter))] + public partial class RoleAssignment + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IRoleAssignment DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RoleAssignment(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.Migrate.Models.Api202301.IRoleAssignment DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RoleAssignment(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.Migrate.Models.Api202301.IRoleAssignment FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RoleAssignment(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("PrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).PrincipalId, global::System.Convert.ToString); + } + if (content.Contains("RoleDefinitionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).RoleDefinitionId = (string) content.GetValueForProperty("RoleDefinitionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).RoleDefinitionId, 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 RoleAssignment(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("PrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).PrincipalId, global::System.Convert.ToString); + } + if (content.Contains("RoleDefinitionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).RoleDefinitionId = (string) content.GetValueForProperty("RoleDefinitionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal)this).RoleDefinitionId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Azure role assignment details. + [System.ComponentModel.TypeConverter(typeof(RoleAssignmentTypeConverter))] + public partial interface IRoleAssignment + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/RoleAssignment.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RoleAssignment.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/RoleAssignment.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RoleAssignment.TypeConverter.cs index 0ad13ea2973b..ee3a2cc82797 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RoleAssignment.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RoleAssignment.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRoleAssignment ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignment ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignment).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignment).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RoleAssignment.cs b/src/Migrate/generated/api/Models/Api202301/RoleAssignment.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/RoleAssignment.cs rename to src/Migrate/generated/api/Models/Api202301/RoleAssignment.cs index fcd9f2f3a5c0..60d14cf308aa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RoleAssignment.cs +++ b/src/Migrate/generated/api/Models/Api202301/RoleAssignment.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Azure role assignment details. public partial class RoleAssignment : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignment, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignmentInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignment, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignmentInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RoleAssignment.json.cs b/src/Migrate/generated/api/Models/Api202301/RoleAssignment.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RoleAssignment.json.cs rename to src/Migrate/generated/api/Models/Api202301/RoleAssignment.json.cs index e71beb3bb12f..852a42b6a950 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RoleAssignment.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RoleAssignment.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RoleAssignment partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignment. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignment. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignment. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignment. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRoleAssignment FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRoleAssignment FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RoleAssignment(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RunAsAccount.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/RunAsAccount.PowerShell.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/RunAsAccount.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/RunAsAccount.PowerShell.cs index 234085ceb390..5515235af0bc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RunAsAccount.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/RunAsAccount.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class RunAsAccount partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IRunAsAccount DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RunAsAccount(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.Migrate.Models.Api20220501.IRunAsAccount DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RunAsAccount(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRun /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccount FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal RunAsAccount(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccountInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccountInternal)this).AccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccountInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccountInternal)this).AccountId, global::System.Convert.ToString); } if (content.Contains("AccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccountInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccountInternal)this).AccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccountInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccountInternal)this).AccountName, 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. @@ -128,11 +128,11 @@ internal RunAsAccount(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("AccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccountInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccountInternal)this).AccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccountInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccountInternal)this).AccountId, global::System.Convert.ToString); } if (content.Contains("AccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccountInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccountInternal)this).AccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccountInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccountInternal)this).AccountName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/RunAsAccount.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/RunAsAccount.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/RunAsAccount.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/RunAsAccount.TypeConverter.cs index 8095fdf3661b..4cb6cb3c91c1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RunAsAccount.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/RunAsAccount.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRunAsAccount ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccount).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/RunAsAccount.cs b/src/Migrate/generated/api/Models/Api202301/RunAsAccount.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/RunAsAccount.cs rename to src/Migrate/generated/api/Models/Api202301/RunAsAccount.cs index b6ce7199a90e..a522dc6e1c2a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RunAsAccount.cs +++ b/src/Migrate/generated/api/Models/Api202301/RunAsAccount.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// CS Accounts Details. public partial class RunAsAccount : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccount, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccountInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccountInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/RunAsAccount.json.cs b/src/Migrate/generated/api/Models/Api202301/RunAsAccount.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/RunAsAccount.json.cs rename to src/Migrate/generated/api/Models/Api202301/RunAsAccount.json.cs index 5ef1790d4bca..9ac57faf197b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/RunAsAccount.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/RunAsAccount.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RunAsAccount partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccount. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccount. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccount FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new RunAsAccount(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/ScriptActionTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ScriptActionTaskDetails.PowerShell.cs new file mode 100644 index 000000000000..0b64748b7b8d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ScriptActionTaskDetails.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class represents the script action task details. + [System.ComponentModel.TypeConverter(typeof(ScriptActionTaskDetailsTypeConverter))] + public partial class ScriptActionTaskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IScriptActionTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ScriptActionTaskDetails(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.Migrate.Models.Api202301.IScriptActionTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ScriptActionTaskDetails(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.Migrate.Models.Api202301.IScriptActionTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ScriptActionTaskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).Path, global::System.Convert.ToString); + } + if (content.Contains("Output")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).Output = (string) content.GetValueForProperty("Output",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).Output, global::System.Convert.ToString); + } + if (content.Contains("IsPrimarySideScript")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).IsPrimarySideScript = (bool?) content.GetValueForProperty("IsPrimarySideScript",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).IsPrimarySideScript, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, 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 ScriptActionTaskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).Path, global::System.Convert.ToString); + } + if (content.Contains("Output")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).Output = (string) content.GetValueForProperty("Output",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).Output, global::System.Convert.ToString); + } + if (content.Contains("IsPrimarySideScript")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).IsPrimarySideScript = (bool?) content.GetValueForProperty("IsPrimarySideScript",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal)this).IsPrimarySideScript, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class represents the script action task details. + [System.ComponentModel.TypeConverter(typeof(ScriptActionTaskDetailsTypeConverter))] + public partial interface IScriptActionTaskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ScriptActionTaskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ScriptActionTaskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ScriptActionTaskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ScriptActionTaskDetails.TypeConverter.cs index 6e8b2fa0eb88..687d44e9a393 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ScriptActionTaskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ScriptActionTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IScriptActionTaskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ScriptActionTaskDetails.cs b/src/Migrate/generated/api/Models/Api202301/ScriptActionTaskDetails.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/ScriptActionTaskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/ScriptActionTaskDetails.cs index 00cb97a4803f..f936f820fcb2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ScriptActionTaskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/ScriptActionTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// This class represents the script action task details. public partial class ScriptActionTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails(); /// The type of task details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType = value ; } /// Backing field for property. private bool? _isPrimarySideScript; @@ -72,7 +72,7 @@ public ScriptActionTaskDetails() /// This class represents the script action task details. public partial interface IScriptActionTaskDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails { /// A value indicating whether it is a primary side script or not. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -110,7 +110,7 @@ public partial interface IScriptActionTaskDetails : } /// This class represents the script action task details. internal partial interface IScriptActionTaskDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal { /// A value indicating whether it is a primary side script or not. bool? IsPrimarySideScript { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ScriptActionTaskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/ScriptActionTaskDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/ScriptActionTaskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/ScriptActionTaskDetails.json.cs index a791e3c065c8..8765eb7007b6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ScriptActionTaskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ScriptActionTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ScriptActionTaskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IScriptActionTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IScriptActionTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ScriptActionTaskDetails(json) : null; } @@ -77,7 +77,7 @@ internal ScriptActionTaskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails(json); + __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails(json); {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_path = If( json?.PropertyT("path"), out var __jsonPath) ? (string)__jsonPath : (string)Path;} {_output = If( json?.PropertyT("output"), out var __jsonOutput) ? (string)__jsonOutput : (string)Output;} diff --git a/src/Migrate/generated/api/Models/Api202301/ServiceError.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/ServiceError.PowerShell.cs new file mode 100644 index 000000000000..f27ed19a852f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/ServiceError.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// ASR error model. + [System.ComponentModel.TypeConverter(typeof(ServiceErrorTypeConverter))] + public partial class ServiceError + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IServiceError DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ServiceError(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.Migrate.Models.Api202301.IServiceError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ServiceError(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.Migrate.Models.Api202301.IServiceError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ServiceError(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("ActivityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).ActivityId, 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 ServiceError(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("PossibleCaus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).PossibleCaus = (string) content.GetValueForProperty("PossibleCaus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).PossibleCaus, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("ActivityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal)this).ActivityId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// ASR error model. + [System.ComponentModel.TypeConverter(typeof(ServiceErrorTypeConverter))] + public partial interface IServiceError + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/ServiceError.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/ServiceError.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/ServiceError.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/ServiceError.TypeConverter.cs index ebb7e60de6c4..e59b4f4f3888 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ServiceError.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/ServiceError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IServiceError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/ServiceError.cs b/src/Migrate/generated/api/Models/Api202301/ServiceError.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/ServiceError.cs rename to src/Migrate/generated/api/Models/Api202301/ServiceError.cs index b2e40d1e8475..2e0ebf097c80 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ServiceError.cs +++ b/src/Migrate/generated/api/Models/Api202301/ServiceError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// ASR error model. public partial class ServiceError : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceError, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceError, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceErrorInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/ServiceError.json.cs b/src/Migrate/generated/api/Models/Api202301/ServiceError.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/ServiceError.json.cs rename to src/Migrate/generated/api/Models/Api202301/ServiceError.json.cs index 53bce70a8d4f..b168f680d874 100644 --- a/src/Migrate/generated/api/Models/Api20220501/ServiceError.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/ServiceError.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ServiceError partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IServiceError FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IServiceError FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ServiceError(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageAccountCustomDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/StorageAccountCustomDetails.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/StorageAccountCustomDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/StorageAccountCustomDetails.PowerShell.cs index c1a9f65247d4..641ae47236ee 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageAccountCustomDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageAccountCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,27 @@ public partial class StorageAccountCustomDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IStorageAccountCustomDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageAccountCustomDetails(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.Migrate.Models.Api20220501.IStorageAccountCustomDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageAccountCustomDetails(content); } @@ -87,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISto /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +103,13 @@ internal StorageAccountCustomDetails(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)this).ResourceType, 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,7 +124,7 @@ internal StorageAccountCustomDetails(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal)this).ResourceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageAccountCustomDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/StorageAccountCustomDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/StorageAccountCustomDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/StorageAccountCustomDetails.TypeConverter.cs index 49d7a4173114..08824443041b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageAccountCustomDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageAccountCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IStorageAccountCustomDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageAccountCustomDetails.cs b/src/Migrate/generated/api/Models/Api202301/StorageAccountCustomDetails.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/StorageAccountCustomDetails.cs rename to src/Migrate/generated/api/Models/Api202301/StorageAccountCustomDetails.cs index a3e6bc9ed904..c8f822a3e83d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageAccountCustomDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageAccountCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Storage account custom input. public partial class StorageAccountCustomDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageAccountCustomDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/StorageAccountCustomDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/StorageAccountCustomDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/StorageAccountCustomDetails.json.cs index a07e3d900003..78e806b2f55f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageAccountCustomDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageAccountCustomDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class StorageAccountCustomDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails 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.Migrate.Models.Api20220501.IStorageAccountCustomDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageAccountCustomDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageAccountCustomDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/StorageClassification.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassification.PowerShell.cs new file mode 100644 index 000000000000..1a8fe195ebca --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassification.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Storage object definition. + [System.ComponentModel.TypeConverter(typeof(StorageClassificationTypeConverter))] + public partial class StorageClassification + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IStorageClassification DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new StorageClassification(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.Migrate.Models.Api202301.IStorageClassification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new StorageClassification(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.Migrate.Models.Api202301.IStorageClassification FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal StorageClassification(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.Migrate.Models.Api202301.IStorageClassificationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationInternal)this).FriendlyName, 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 StorageClassification(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.Migrate.Models.Api202301.IStorageClassificationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationInternal)this).FriendlyName, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Storage object definition. + [System.ComponentModel.TypeConverter(typeof(StorageClassificationTypeConverter))] + public partial interface IStorageClassification + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassification.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassification.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassification.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassification.TypeConverter.cs index ba8c83bfc6db..602682f9ff81 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassification.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassification.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IStorageClassification ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassification ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassification).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassification).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/StorageClassification.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassification.cs new file mode 100644 index 000000000000..dc89731e56f3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassification.cs @@ -0,0 +1,103 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Storage object definition. + public partial class StorageClassification : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassification, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// Friendly name of the Storage classification. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationPropertiesInternal)Property).FriendlyName = value ?? null; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationProperties()); set { {_property = value;} } } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties _property; + + /// Properties of the storage object. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationProperties()); set => this._property = value; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public StorageClassification() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Storage object definition. + public partial interface IStorageClassification : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// Friendly name of the Storage classification. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Friendly name of the Storage classification.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + + } + /// Storage object definition. + internal partial interface IStorageClassificationInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// Friendly name of the Storage classification. + string FriendlyName { get; set; } + /// Properties of the storage object. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassification.json.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassification.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassification.json.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassification.json.cs index 5a1bc7f24c93..96f6ae4d7fe8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassification.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassification.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageClassification partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassification. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassification. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassification. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassification. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassification FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassification FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new StorageClassification(json) : null; } @@ -77,8 +77,8 @@ internal StorageClassification(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/StorageClassificationCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationCollection.PowerShell.cs new file mode 100644 index 000000000000..f4807ad1faec --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationCollection.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Collection of storage details. + [System.ComponentModel.TypeConverter(typeof(StorageClassificationCollectionTypeConverter))] + public partial class StorageClassificationCollection + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IStorageClassificationCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new StorageClassificationCollection(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.Migrate.Models.Api202301.IStorageClassificationCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new StorageClassificationCollection(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.Migrate.Models.Api202301.IStorageClassificationCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal StorageClassificationCollection(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassification[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal StorageClassificationCollection(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassification[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Collection of storage details. + [System.ComponentModel.TypeConverter(typeof(StorageClassificationCollectionTypeConverter))] + public partial interface IStorageClassificationCollection + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationCollection.TypeConverter.cs index 46e54e2e6f6b..40a5a0203416 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IStorageClassificationCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationCollection.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationCollection.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationCollection.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationCollection.cs index 904b06272501..200a64a5ee3e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Collection of storage details. public partial class StorageClassificationCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class StorageClassificationCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassification[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassification[] _value; /// The storage details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassification[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassification[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public StorageClassificationCollection() @@ -51,8 +51,8 @@ public partial interface IStorageClassificationCollection : ReadOnly = false, Description = @"The storage details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassification) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassification[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassification) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassification[] Value { get; set; } } /// Collection of storage details. @@ -62,7 +62,7 @@ internal partial interface IStorageClassificationCollectionInternal /// The value of next link. string NextLink { get; set; } /// The storage details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassification[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassification[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationCollection.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationCollection.json.cs index 839545af6e06..9d548ed79eb5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageClassificationCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new StorageClassificationCollection(json) : null; } @@ -77,7 +77,7 @@ internal StorageClassificationCollection(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IStorageClassification) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassification.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IStorageClassification) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassification.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/StorageClassificationMapping.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMapping.PowerShell.cs new file mode 100644 index 000000000000..4b3a608d5e7c --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMapping.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Storage mapping object. + [System.ComponentModel.TypeConverter(typeof(StorageClassificationMappingTypeConverter))] + public partial class StorageClassificationMapping + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IStorageClassificationMapping DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new StorageClassificationMapping(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.Migrate.Models.Api202301.IStorageClassificationMapping DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new StorageClassificationMapping(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.Migrate.Models.Api202301.IStorageClassificationMapping FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal StorageClassificationMapping(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.Migrate.Models.Api202301.IStorageClassificationMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMappingPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("TargetStorageClassificationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInternal)this).TargetStorageClassificationId, 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 StorageClassificationMapping(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.Migrate.Models.Api202301.IStorageClassificationMappingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMappingPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("TargetStorageClassificationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInternal)this).TargetStorageClassificationId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Storage mapping object. + [System.ComponentModel.TypeConverter(typeof(StorageClassificationMappingTypeConverter))] + public partial interface IStorageClassificationMapping + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMapping.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMapping.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationMapping.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationMapping.TypeConverter.cs index 7525d2c3c774..1eb5024e4c4d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMapping.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMapping.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IStorageClassificationMapping ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMapping ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMapping).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMapping).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/StorageClassificationMapping.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMapping.cs new file mode 100644 index 000000000000..86b5b3b5994c --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMapping.cs @@ -0,0 +1,103 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Storage mapping object. + public partial class StorageClassificationMapping : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMapping, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMappingProperties()); set { {_property = value;} } } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties _property; + + /// Properties of the storage mapping object. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMappingProperties()); set => this._property = value; } + + /// Target storage object Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetStorageClassificationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingPropertiesInternal)Property).TargetStorageClassificationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingPropertiesInternal)Property).TargetStorageClassificationId = value ?? null; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public StorageClassificationMapping() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Storage mapping object. + public partial interface IStorageClassificationMapping : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// Target storage object Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Target storage object Id.", + SerializedName = @"targetStorageClassificationId", + PossibleTypes = new [] { typeof(string) })] + string TargetStorageClassificationId { get; set; } + + } + /// Storage mapping object. + internal partial interface IStorageClassificationMappingInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// Properties of the storage mapping object. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties Property { get; set; } + /// Target storage object Id. + string TargetStorageClassificationId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMapping.json.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMapping.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationMapping.json.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationMapping.json.cs index ba9dbb457fe2..605d167441ba 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMapping.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMapping.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageClassificationMapping partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMapping. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMapping. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMapping. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMapping. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMapping FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMapping FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new StorageClassificationMapping(json) : null; } @@ -77,8 +77,8 @@ internal StorageClassificationMapping(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMappingProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMappingProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingCollection.PowerShell.cs new file mode 100644 index 000000000000..02d76c6c4ef6 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingCollection.PowerShell.cs @@ -0,0 +1,157 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Collection of storage mapping details. + [System.ComponentModel.TypeConverter(typeof(StorageClassificationMappingCollectionTypeConverter))] + public partial class StorageClassificationMappingCollection + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IStorageClassificationMappingCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new StorageClassificationMappingCollection(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.Migrate.Models.Api202301.IStorageClassificationMappingCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new StorageClassificationMappingCollection(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.Migrate.Models.Api202301.IStorageClassificationMappingCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal StorageClassificationMappingCollection(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMapping[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMappingTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal StorageClassificationMappingCollection(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMapping[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMappingTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Collection of storage mapping details. + [System.ComponentModel.TypeConverter(typeof(StorageClassificationMappingCollectionTypeConverter))] + public partial interface IStorageClassificationMappingCollection + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingCollection.TypeConverter.cs index 5a610a82e2c5..836bbf52aaa1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IStorageClassificationMappingCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingCollection.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingCollection.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingCollection.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingCollection.cs index d36fcf14e433..c1944e75f6ba 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Collection of storage mapping details. public partial class StorageClassificationMappingCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class StorageClassificationMappingCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMapping[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMapping[] _value; /// The storage details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMapping[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMapping[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public StorageClassificationMappingCollection() @@ -51,8 +51,8 @@ public partial interface IStorageClassificationMappingCollection : ReadOnly = false, Description = @"The storage details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMapping) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMapping[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMapping) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMapping[] Value { get; set; } } /// Collection of storage mapping details. @@ -62,7 +62,7 @@ internal partial interface IStorageClassificationMappingCollectionInternal /// The value of next link. string NextLink { get; set; } /// The storage details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMapping[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMapping[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingCollection.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingCollection.json.cs index 5b6e2f38f81d..e48f8be877ff 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageClassificationMappingCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new StorageClassificationMappingCollection(json) : null; } @@ -77,7 +77,7 @@ internal StorageClassificationMappingCollection(Microsoft.Azure.PowerShell.Cmdle { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IStorageClassificationMapping) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageClassificationMapping.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IStorageClassificationMapping) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageClassificationMapping.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingInput.PowerShell.cs new file mode 100644 index 000000000000..f5ef5d3356de --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingInput.PowerShell.cs @@ -0,0 +1,156 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Storage mapping input. + [System.ComponentModel.TypeConverter(typeof(StorageClassificationMappingInputTypeConverter))] + public partial class StorageClassificationMappingInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IStorageClassificationMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new StorageClassificationMappingInput(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.Migrate.Models.Api202301.IStorageClassificationMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new StorageClassificationMappingInput(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.Migrate.Models.Api202301.IStorageClassificationMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal StorageClassificationMappingInput(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.Migrate.Models.Api202301.IStorageClassificationMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageMappingInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("TargetStorageClassificationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInputInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInputInternal)this).TargetStorageClassificationId, 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 StorageClassificationMappingInput(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.Migrate.Models.Api202301.IStorageClassificationMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageMappingInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("TargetStorageClassificationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInputInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInputInternal)this).TargetStorageClassificationId, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Storage mapping input. + [System.ComponentModel.TypeConverter(typeof(StorageClassificationMappingInputTypeConverter))] + public partial interface IStorageClassificationMappingInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingInput.TypeConverter.cs index f5a15e6bf5eb..5ea7f449cf53 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IStorageClassificationMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingInput.cs new file mode 100644 index 000000000000..7c9c6ca9e00d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Storage mapping input. + public partial class StorageClassificationMappingInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageMappingInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties _property; + + /// Storage mapping input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageMappingInputProperties()); set => this._property = value; } + + /// The ID of the storage object. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetStorageClassificationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputPropertiesInternal)Property).TargetStorageClassificationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputPropertiesInternal)Property).TargetStorageClassificationId = value ?? null; } + + /// Creates an new instance. + public StorageClassificationMappingInput() + { + + } + } + /// Storage mapping input. + public partial interface IStorageClassificationMappingInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The ID of the storage object. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The ID of the storage object.", + SerializedName = @"targetStorageClassificationId", + PossibleTypes = new [] { typeof(string) })] + string TargetStorageClassificationId { get; set; } + + } + /// Storage mapping input. + internal partial interface IStorageClassificationMappingInputInternal + + { + /// Storage mapping input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties Property { get; set; } + /// The ID of the storage object. + string TargetStorageClassificationId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingInput.json.cs index 5407a4b6aeb6..97c9e4df6b6e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageClassificationMappingInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new StorageClassificationMappingInput(json) : null; } @@ -77,7 +77,7 @@ internal StorageClassificationMappingInput(Microsoft.Azure.PowerShell.Cmdlets.Mi { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.StorageMappingInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.StorageMappingInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingProperties.PowerShell.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingProperties.PowerShell.cs index c3a20c3ffd30..7afdcf2ab628 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class StorageClassificationMappingProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IStorageClassificationMappingProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageClassificationMappingProperties(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.Migrate.Models.Api20220501.IStorageClassificationMappingProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageClassificationMappingProperties(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISto /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal StorageClassificationMappingProperties(global::System.Collections.IDict // actually deserialize if (content.Contains("TargetStorageClassificationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingPropertiesInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingPropertiesInternal)this).TargetStorageClassificationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingPropertiesInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingPropertiesInternal)this).TargetStorageClassificationId, 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. @@ -129,7 +129,7 @@ internal StorageClassificationMappingProperties(global::System.Management.Automa // actually deserialize if (content.Contains("TargetStorageClassificationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingPropertiesInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingPropertiesInternal)this).TargetStorageClassificationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingPropertiesInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingPropertiesInternal)this).TargetStorageClassificationId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingProperties.TypeConverter.cs index fb279cba6b1c..1c917efdfa76 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IStorageClassificationMappingProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingProperties.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingProperties.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingProperties.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingProperties.cs index a772f58c7606..006e125d763a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Storage mapping properties. public partial class StorageClassificationMappingProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingProperties.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingProperties.json.cs index aa0a7663e9b2..48261b4ca5fa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationMappingProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationMappingProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageClassificationMappingProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationMappingProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationMappingProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new StorageClassificationMappingProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationProperties.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationProperties.PowerShell.cs index 7d3027fa4d71..c89708f33b7d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class StorageClassificationProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IStorageClassificationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageClassificationProperties(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.Migrate.Models.Api20220501.IStorageClassificationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageClassificationProperties(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISto /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +105,13 @@ internal StorageClassificationProperties(global::System.Collections.IDictionary // actually deserialize if (content.Contains("FriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationPropertiesInternal)this).FriendlyName, 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,7 +126,7 @@ internal StorageClassificationProperties(global::System.Management.Automation.PS // actually deserialize if (content.Contains("FriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationProperties.TypeConverter.cs index 1e229f9da316..e197ae8d38ec 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IStorageClassificationProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationProperties.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationProperties.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationProperties.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationProperties.cs index a758960691bc..dfe71ad3d7d0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Storage object properties. public partial class StorageClassificationProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/StorageClassificationProperties.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/StorageClassificationProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/StorageClassificationProperties.json.cs index 9d5c523e36ba..e68cd8568c2b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageClassificationProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageClassificationProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageClassificationProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageClassificationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageClassificationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new StorageClassificationProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageMappingInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/StorageMappingInputProperties.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/StorageMappingInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/StorageMappingInputProperties.PowerShell.cs index 63f33cbc006f..607833781bbe 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageMappingInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class StorageMappingInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IStorageMappingInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageMappingInputProperties(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.Migrate.Models.Api20220501.IStorageMappingInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageMappingInputProperties(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISto /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +105,13 @@ internal StorageMappingInputProperties(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("TargetStorageClassificationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputPropertiesInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputPropertiesInternal)this).TargetStorageClassificationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputPropertiesInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputPropertiesInternal)this).TargetStorageClassificationId, 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,7 +126,7 @@ internal StorageMappingInputProperties(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("TargetStorageClassificationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputPropertiesInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputPropertiesInternal)this).TargetStorageClassificationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputPropertiesInternal)this).TargetStorageClassificationId = (string) content.GetValueForProperty("TargetStorageClassificationId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputPropertiesInternal)this).TargetStorageClassificationId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageMappingInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/StorageMappingInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/StorageMappingInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/StorageMappingInputProperties.TypeConverter.cs index 2f8014f34473..bb39c01fd324 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageMappingInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IStorageMappingInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageMappingInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/StorageMappingInputProperties.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/StorageMappingInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/StorageMappingInputProperties.cs index 1cf43dc78de0..42a9a5c54817 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageMappingInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Storage mapping input properties. public partial class StorageMappingInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/StorageMappingInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/StorageMappingInputProperties.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/StorageMappingInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/StorageMappingInputProperties.json.cs index 1dee9b16838b..83f37e325fed 100644 --- a/src/Migrate/generated/api/Models/Api20220501/StorageMappingInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/StorageMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageMappingInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IStorageMappingInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IStorageMappingInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new StorageMappingInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/Subnet.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/Subnet.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/Subnet.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/Subnet.PowerShell.cs index 04fa1cc2abaf..6aa132de62ec 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Subnet.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/Subnet.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class Subnet partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.ISubnet DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Subnet(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.Migrate.Models.Api20220501.ISubnet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Subnet(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISub /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,21 +103,21 @@ internal Subnet(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnetInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnetInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnetInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnetInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("FriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnetInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnetInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnetInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnetInternal)this).FriendlyName, global::System.Convert.ToString); } if (content.Contains("AddressList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnetInternal)this).AddressList = (string[]) content.GetValueForProperty("AddressList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnetInternal)this).AddressList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnetInternal)this).AddressList = (string[]) content.GetValueForProperty("AddressList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnetInternal)this).AddressList, __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. @@ -132,15 +132,15 @@ internal Subnet(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnetInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnetInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnetInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnetInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("FriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnetInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnetInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnetInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnetInternal)this).FriendlyName, global::System.Convert.ToString); } if (content.Contains("AddressList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnetInternal)this).AddressList = (string[]) content.GetValueForProperty("AddressList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnetInternal)this).AddressList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnetInternal)this).AddressList = (string[]) content.GetValueForProperty("AddressList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnetInternal)this).AddressList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/Subnet.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/Subnet.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/Subnet.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/Subnet.TypeConverter.cs index 2d9b2d1d5d98..340b254e2e9d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Subnet.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/Subnet.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISubnet ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/Subnet.cs b/src/Migrate/generated/api/Models/Api202301/Subnet.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/Subnet.cs rename to src/Migrate/generated/api/Models/Api202301/Subnet.cs index f896deb06156..37e6bfb4d23b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Subnet.cs +++ b/src/Migrate/generated/api/Models/Api202301/Subnet.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Subnets of the network. public partial class Subnet : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnetInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnetInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/Subnet.json.cs b/src/Migrate/generated/api/Models/Api202301/Subnet.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/Subnet.json.cs rename to src/Migrate/generated/api/Models/Api202301/Subnet.json.cs index 288b9d13b7a7..2bee39d83ad7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/Subnet.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/Subnet.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Subnet partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISubnet FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISubnet FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new Subnet(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/SupportedOSDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOSDetails.PowerShell.cs new file mode 100644 index 000000000000..c97011741d6f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOSDetails.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Supported operating system details. + [System.ComponentModel.TypeConverter(typeof(SupportedOSDetailsTypeConverter))] + public partial class SupportedOSDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ISupportedOSDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SupportedOSDetails(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.Migrate.Models.Api202301.ISupportedOSDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SupportedOSDetails(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.Migrate.Models.Api202301.ISupportedOSDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SupportedOSDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("OSName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetailsInternal)this).OSName = (string) content.GetValueForProperty("OSName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetailsInternal)this).OSName, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("OSVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetailsInternal)this).OSVersion = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper[]) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetailsInternal)this).OSVersion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSVersionWrapperTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SupportedOSDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("OSName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetailsInternal)this).OSName = (string) content.GetValueForProperty("OSName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetailsInternal)this).OSName, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("OSVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetailsInternal)this).OSVersion = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper[]) content.GetValueForProperty("OSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetailsInternal)this).OSVersion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSVersionWrapperTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Supported operating system details. + [System.ComponentModel.TypeConverter(typeof(SupportedOSDetailsTypeConverter))] + public partial interface ISupportedOSDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOSDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOSDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/SupportedOSDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/SupportedOSDetails.TypeConverter.cs index 39b680ab448c..97ed9a117302 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOSDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOSDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISupportedOSDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOSDetails.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOSDetails.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/SupportedOSDetails.cs rename to src/Migrate/generated/api/Models/Api202301/SupportedOSDetails.cs index 4a6251f22469..885a005fb6b7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOSDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOSDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Supported operating system details. public partial class SupportedOSDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetailsInternal { /// Backing field for property. @@ -28,11 +28,11 @@ public partial class SupportedOSDetails : public string OSType { get => this._oSType; set => this._oSType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapper[] _oSVersion; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper[] _oSVersion; /// The list of version for operating system. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapper[] OSVersion { get => this._oSVersion; set => this._oSVersion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper[] OSVersion { get => this._oSVersion; set => this._oSVersion = value; } /// Creates an new instance. public SupportedOSDetails() @@ -66,8 +66,8 @@ public partial interface ISupportedOSDetails : ReadOnly = false, Description = @"The list of version for operating system.", SerializedName = @"osVersions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapper) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapper[] OSVersion { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper[] OSVersion { get; set; } } /// Supported operating system details. @@ -79,7 +79,7 @@ internal partial interface ISupportedOSDetailsInternal /// The type. string OSType { get; set; } /// The list of version for operating system. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOSVersionWrapper[] OSVersion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSVersionWrapper[] OSVersion { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOSDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOSDetails.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/SupportedOSDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/SupportedOSDetails.json.cs index b006e5b11cc7..7944793ac58c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOSDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOSDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SupportedOSDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new SupportedOSDetails(json) : null; } @@ -79,7 +79,7 @@ internal SupportedOSDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.J } {_oSName = If( json?.PropertyT("osName"), out var __jsonOSName) ? (string)__jsonOSName : (string)OSName;} {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType;} - {_oSVersion = If( json?.PropertyT("osVersions"), out var __jsonOSVersions) ? If( __jsonOSVersions as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IOSVersionWrapper) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.OSVersionWrapper.FromJson(__u) )) ))() : null : OSVersion;} + {_oSVersion = If( json?.PropertyT("osVersions"), out var __jsonOSVersions) ? If( __jsonOSVersions as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IOSVersionWrapper) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSVersionWrapper.FromJson(__u) )) ))() : null : OSVersion;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperties.PowerShell.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/SupportedOSProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/SupportedOSProperties.PowerShell.cs index dd24aa987ddb..b3cae1bae3d9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SupportedOSProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.ISupportedOSProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SupportedOSProperties(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.Migrate.Models.Api20220501.ISupportedOSProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SupportedOSProperties(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISup /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,13 +103,13 @@ internal SupportedOSProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("SupportedOSList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertiesInternal)this).SupportedOSList = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty[]) content.GetValueForProperty("SupportedOSList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertiesInternal)this).SupportedOSList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSPropertyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertiesInternal)this).SupportedOSList = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty[]) content.GetValueForProperty("SupportedOSList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertiesInternal)this).SupportedOSList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSPropertyTypeConverter.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. @@ -124,7 +124,7 @@ internal SupportedOSProperties(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("SupportedOSList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertiesInternal)this).SupportedOSList = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty[]) content.GetValueForProperty("SupportedOSList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertiesInternal)this).SupportedOSList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSPropertyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertiesInternal)this).SupportedOSList = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty[]) content.GetValueForProperty("SupportedOSList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertiesInternal)this).SupportedOSList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSPropertyTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/SupportedOSProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/SupportedOSProperties.TypeConverter.cs index 4b444e9052b7..9ed8ee701b70 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISupportedOSProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperties.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperties.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/SupportedOSProperties.cs rename to src/Migrate/generated/api/Models/Api202301/SupportedOSProperties.cs index 52e9df16600a..59d629f72dc3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperties.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Supported operating systems properties. public partial class SupportedOSProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty[] _supportedOSList; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty[] _supportedOSList; /// The supported operating systems property list. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty[] SupportedOSList { get => this._supportedOSList; set => this._supportedOSList = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty[] SupportedOSList { get => this._supportedOSList; set => this._supportedOSList = value; } /// Creates an new instance. public SupportedOSProperties() @@ -36,8 +36,8 @@ public partial interface ISupportedOSProperties : ReadOnly = false, Description = @"The supported operating systems property list.", SerializedName = @"supportedOsList", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty[] SupportedOSList { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty[] SupportedOSList { get; set; } } /// Supported operating systems properties. @@ -45,7 +45,7 @@ internal partial interface ISupportedOSPropertiesInternal { /// The supported operating systems property list. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty[] SupportedOSList { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty[] SupportedOSList { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperties.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/SupportedOSProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/SupportedOSProperties.json.cs index 3b4677d02651..13cc41e134fe 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SupportedOSProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new SupportedOSProperties(json) : null; } @@ -77,7 +77,7 @@ internal SupportedOSProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - {_supportedOSList = If( json?.PropertyT("supportedOsList"), out var __jsonSupportedOSList) ? If( __jsonSupportedOSList as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISupportedOSProperty) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSProperty.FromJson(__u) )) ))() : null : SupportedOSList;} + {_supportedOSList = If( json?.PropertyT("supportedOsList"), out var __jsonSupportedOSList) ? If( __jsonSupportedOSList as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.ISupportedOSProperty) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSProperty.FromJson(__u) )) ))() : null : SupportedOSList;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperty.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperty.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/SupportedOSProperty.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/SupportedOSProperty.PowerShell.cs index 19b978e13ebb..a32f6c80902e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperty.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperty.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SupportedOSProperty partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.ISupportedOSProperty DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SupportedOSProperty(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.Migrate.Models.Api20220501.ISupportedOSProperty DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SupportedOSProperty(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISup /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal SupportedOSProperty(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertyInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertyInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertyInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertyInternal)this).InstanceType, global::System.Convert.ToString); } if (content.Contains("SupportedOS")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertyInternal)this).SupportedOS = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetails[]) content.GetValueForProperty("SupportedOS",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertyInternal)this).SupportedOS, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertyInternal)this).SupportedOS = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetails[]) content.GetValueForProperty("SupportedOS",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertyInternal)this).SupportedOS, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSDetailsTypeConverter.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. @@ -128,11 +128,11 @@ internal SupportedOSProperty(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertyInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertyInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertyInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertyInternal)this).InstanceType, global::System.Convert.ToString); } if (content.Contains("SupportedOS")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertyInternal)this).SupportedOS = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetails[]) content.GetValueForProperty("SupportedOS",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertyInternal)this).SupportedOS, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertyInternal)this).SupportedOS = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetails[]) content.GetValueForProperty("SupportedOS",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertyInternal)this).SupportedOS, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSDetailsTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperty.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperty.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/SupportedOSProperty.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/SupportedOSProperty.TypeConverter.cs index cd67a4888c8a..9feb823c15f8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperty.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperty.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISupportedOSProperty ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperty.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperty.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/SupportedOSProperty.cs rename to src/Migrate/generated/api/Models/Api202301/SupportedOSProperty.cs index 58068b7442a4..2766d33e32b5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperty.cs +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperty.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Supported operating systems property. public partial class SupportedOSProperty : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSPropertyInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertyInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class SupportedOSProperty : public string InstanceType { get => this._instanceType; set => this._instanceType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetails[] _supportedOS; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetails[] _supportedOS; /// The list of supported operating systems. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetails[] SupportedOS { get => this._supportedOS; set => this._supportedOS = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetails[] SupportedOS { get => this._supportedOS; set => this._supportedOS = value; } /// Creates an new instance. public SupportedOSProperty() @@ -51,8 +51,8 @@ public partial interface ISupportedOSProperty : ReadOnly = false, Description = @"The list of supported operating systems.", SerializedName = @"supportedOs", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetails[] SupportedOS { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetails[] SupportedOS { get; set; } } /// Supported operating systems property. @@ -62,7 +62,7 @@ internal partial interface ISupportedOSPropertyInternal /// The replication provider type. string InstanceType { get; set; } /// The list of supported operating systems. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSDetails[] SupportedOS { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSDetails[] SupportedOS { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperty.json.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperty.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/SupportedOSProperty.json.cs rename to src/Migrate/generated/api/Models/Api202301/SupportedOSProperty.json.cs index 03b7177f3129..1ed7ef737e60 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOSProperty.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOSProperty.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SupportedOSProperty partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOSProperty FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new SupportedOSProperty(json) : null; } @@ -78,7 +78,7 @@ internal SupportedOSProperty(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime. return; } {_instanceType = If( json?.PropertyT("instanceType"), out var __jsonInstanceType) ? (string)__jsonInstanceType : (string)InstanceType;} - {_supportedOS = If( json?.PropertyT("supportedOs"), out var __jsonSupportedOS) ? If( __jsonSupportedOS as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISupportedOSDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSDetails.FromJson(__u) )) ))() : null : SupportedOS;} + {_supportedOS = If( json?.PropertyT("supportedOs"), out var __jsonSupportedOS) ? If( __jsonSupportedOS as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.ISupportedOSDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSDetails.FromJson(__u) )) ))() : null : SupportedOS;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/SupportedOperatingSystems.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOperatingSystems.PowerShell.cs new file mode 100644 index 000000000000..62305d4e1dee --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOperatingSystems.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Supported operating systems. + [System.ComponentModel.TypeConverter(typeof(SupportedOperatingSystemsTypeConverter))] + public partial class SupportedOperatingSystems + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ISupportedOperatingSystems DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SupportedOperatingSystems(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.Migrate.Models.Api202301.ISupportedOperatingSystems DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SupportedOperatingSystems(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.Migrate.Models.Api202301.ISupportedOperatingSystems FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SupportedOperatingSystems(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.Migrate.Models.Api202301.ISupportedOperatingSystemsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOperatingSystemsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SupportedOSList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOperatingSystemsInternal)this).SupportedOSList = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty[]) content.GetValueForProperty("SupportedOSList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOperatingSystemsInternal)this).SupportedOSList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSPropertyTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SupportedOperatingSystems(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.Migrate.Models.Api202301.ISupportedOperatingSystemsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOperatingSystemsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SupportedOSList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOperatingSystemsInternal)this).SupportedOSList = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty[]) content.GetValueForProperty("SupportedOSList",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOperatingSystemsInternal)this).SupportedOSList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSPropertyTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Supported operating systems. + [System.ComponentModel.TypeConverter(typeof(SupportedOperatingSystemsTypeConverter))] + public partial interface ISupportedOperatingSystems + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOperatingSystems.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOperatingSystems.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/SupportedOperatingSystems.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/SupportedOperatingSystems.TypeConverter.cs index 9f683a93ffb0..55ad8e773132 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOperatingSystems.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOperatingSystems.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISupportedOperatingSystems ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOperatingSystems ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOperatingSystems).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOperatingSystems).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/SupportedOperatingSystems.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOperatingSystems.cs new file mode 100644 index 000000000000..9a0b9b00be45 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOperatingSystems.cs @@ -0,0 +1,103 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Supported operating systems. + public partial class SupportedOperatingSystems : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOperatingSystems, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOperatingSystemsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOperatingSystemsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSProperties()); set { {_property = value;} } } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties _property; + + /// The supported operating systems properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSProperties()); set => this._property = value; } + + /// The supported operating systems property list. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty[] SupportedOSList { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertiesInternal)Property).SupportedOSList; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSPropertiesInternal)Property).SupportedOSList = value ?? null /* arrayOf */; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public SupportedOperatingSystems() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Supported operating systems. + public partial interface ISupportedOperatingSystems : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// The supported operating systems property list. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The supported operating systems property list.", + SerializedName = @"supportedOsList", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty[] SupportedOSList { get; set; } + + } + /// Supported operating systems. + internal partial interface ISupportedOperatingSystemsInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The supported operating systems properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperties Property { get; set; } + /// The supported operating systems property list. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOSProperty[] SupportedOSList { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SupportedOperatingSystems.json.cs b/src/Migrate/generated/api/Models/Api202301/SupportedOperatingSystems.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/SupportedOperatingSystems.json.cs rename to src/Migrate/generated/api/Models/Api202301/SupportedOperatingSystems.json.cs index 8b21b816d63e..b574a46d95ce 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SupportedOperatingSystems.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/SupportedOperatingSystems.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SupportedOperatingSystems partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOperatingSystems. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOperatingSystems. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOperatingSystems. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOperatingSystems. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISupportedOperatingSystems FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISupportedOperatingSystems FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new SupportedOperatingSystems(json) : null; } @@ -77,8 +77,8 @@ internal SupportedOperatingSystems(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SupportedOSProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SupportedOSProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInput.PowerShell.cs new file mode 100644 index 000000000000..dc16a1d39f90 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInput.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Switch protection input. + [System.ComponentModel.TypeConverter(typeof(SwitchProtectionInputTypeConverter))] + public partial class SwitchProtectionInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ISwitchProtectionInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SwitchProtectionInput(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.Migrate.Models.Api202301.ISwitchProtectionInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SwitchProtectionInput(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.Migrate.Models.Api202301.ISwitchProtectionInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SwitchProtectionInput(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.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("ReplicationProtectedItemName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).ReplicationProtectedItemName = (string) content.GetValueForProperty("ReplicationProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).ReplicationProtectedItemName, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).ProviderSpecificDetailInstanceType, 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 SwitchProtectionInput(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.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("ReplicationProtectedItemName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).ReplicationProtectedItemName = (string) content.GetValueForProperty("ReplicationProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).ReplicationProtectedItemName, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Switch protection input. + [System.ComponentModel.TypeConverter(typeof(SwitchProtectionInputTypeConverter))] + public partial interface ISwitchProtectionInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProtectionInput.TypeConverter.cs index 026d3b36e0c7..e72c2b64d090 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISwitchProtectionInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInput.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInput.cs new file mode 100644 index 000000000000..3a95439022f1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInput.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Switch protection input. + public partial class SwitchProtectionInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputProperties _property; + + /// Switch protection properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionInputProperties()); set => this._property = value; } + + /// Gets the Instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// The unique replication protected item name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ReplicationProtectedItemName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)Property).ReplicationProtectedItemName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)Property).ReplicationProtectedItemName = value ?? null; } + + /// Creates an new instance. + public SwitchProtectionInput() + { + + } + } + /// Switch protection input. + public partial interface ISwitchProtectionInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Gets the Instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the Instance type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + /// The unique replication protected item name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The unique replication protected item name.", + SerializedName = @"replicationProtectedItemName", + PossibleTypes = new [] { typeof(string) })] + string ReplicationProtectedItemName { get; set; } + + } + /// Switch protection input. + internal partial interface ISwitchProtectionInputInternal + + { + /// Switch protection properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputProperties Property { get; set; } + /// Provider specific switch protection input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput ProviderSpecificDetail { get; set; } + /// Gets the Instance type. + string ProviderSpecificDetailInstanceType { get; set; } + /// The unique replication protected item name. + string ReplicationProtectedItemName { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInput.json.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProtectionInput.json.cs index 30620460b37a..5e0d62f1501d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SwitchProtectionInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new SwitchProtectionInput(json) : null; } @@ -77,7 +77,7 @@ internal SwitchProtectionInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInputProperties.PowerShell.cs new file mode 100644 index 000000000000..c4325a7f4d82 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInputProperties.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Switch protection input properties. + [System.ComponentModel.TypeConverter(typeof(SwitchProtectionInputPropertiesTypeConverter))] + public partial class SwitchProtectionInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ISwitchProtectionInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SwitchProtectionInputProperties(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.Migrate.Models.Api202301.ISwitchProtectionInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SwitchProtectionInputProperties(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.Migrate.Models.Api202301.ISwitchProtectionInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SwitchProtectionInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("ReplicationProtectedItemName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)this).ReplicationProtectedItemName = (string) content.GetValueForProperty("ReplicationProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)this).ReplicationProtectedItemName, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 SwitchProtectionInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("ReplicationProtectedItemName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)this).ReplicationProtectedItemName = (string) content.GetValueForProperty("ReplicationProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)this).ReplicationProtectedItemName, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Switch protection input properties. + [System.ComponentModel.TypeConverter(typeof(SwitchProtectionInputPropertiesTypeConverter))] + public partial interface ISwitchProtectionInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProtectionInputProperties.TypeConverter.cs index 9b27d4543562..dbe1cc748166 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISwitchProtectionInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInputProperties.cs new file mode 100644 index 000000000000..087731ff3e71 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInputProperties.cs @@ -0,0 +1,77 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Switch protection input properties. + public partial class SwitchProtectionInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal + { + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput _providerSpecificDetail; + + /// Provider specific switch protection input. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionProviderSpecificInput()); set => this._providerSpecificDetail = value; } + + /// Gets the Instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + + /// Backing field for property. + private string _replicationProtectedItemName; + + /// The unique replication protected item name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ReplicationProtectedItemName { get => this._replicationProtectedItemName; set => this._replicationProtectedItemName = value; } + + /// Creates an new instance. + public SwitchProtectionInputProperties() + { + + } + } + /// Switch protection input properties. + public partial interface ISwitchProtectionInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Gets the Instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets the Instance type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + /// The unique replication protected item name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The unique replication protected item name.", + SerializedName = @"replicationProtectedItemName", + PossibleTypes = new [] { typeof(string) })] + string ReplicationProtectedItemName { get; set; } + + } + /// Switch protection input properties. + internal partial interface ISwitchProtectionInputPropertiesInternal + + { + /// Provider specific switch protection input. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput ProviderSpecificDetail { get; set; } + /// Gets the Instance type. + string ProviderSpecificDetailInstanceType { get; set; } + /// The unique replication protected item name. + string ReplicationProtectedItemName { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInputProperties.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProtectionInputProperties.json.cs index 6353286626b5..8bd62ea1442d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SwitchProtectionInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new SwitchProtectionInputProperties(json) : null; } @@ -77,7 +77,7 @@ internal SwitchProtectionInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProtectionProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProtectionProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_replicationProtectedItemName = If( json?.PropertyT("replicationProtectedItemName"), out var __jsonReplicationProtectedItemName) ? (string)__jsonReplicationProtectedItemName : (string)ReplicationProtectedItemName;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/SwitchProtectionJobDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionJobDetails.PowerShell.cs new file mode 100644 index 000000000000..faac7c52060a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionJobDetails.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class represents details for switch protection job. + [System.ComponentModel.TypeConverter(typeof(SwitchProtectionJobDetailsTypeConverter))] + public partial class SwitchProtectionJobDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ISwitchProtectionJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SwitchProtectionJobDetails(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.Migrate.Models.Api202301.ISwitchProtectionJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SwitchProtectionJobDetails(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.Migrate.Models.Api202301.ISwitchProtectionJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SwitchProtectionJobDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NewReplicationProtectedItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionJobDetailsInternal)this).NewReplicationProtectedItemId = (string) content.GetValueForProperty("NewReplicationProtectedItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionJobDetailsInternal)this).NewReplicationProtectedItemId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SwitchProtectionJobDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NewReplicationProtectedItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionJobDetailsInternal)this).NewReplicationProtectedItemId = (string) content.GetValueForProperty("NewReplicationProtectedItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionJobDetailsInternal)this).NewReplicationProtectedItemId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class represents details for switch protection job. + [System.ComponentModel.TypeConverter(typeof(SwitchProtectionJobDetailsTypeConverter))] + public partial interface ISwitchProtectionJobDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionJobDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionJobDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProtectionJobDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProtectionJobDetails.TypeConverter.cs index 5f0d9da8d038..146514ac113c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionJobDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISwitchProtectionJobDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionJobDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionJobDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionJobDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionJobDetails.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionJobDetails.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProtectionJobDetails.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProtectionJobDetails.cs index c0fc119c2148..599c7e77b33e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionJobDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionJobDetails.cs @@ -3,32 +3,32 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// This class represents details for switch protection job. public partial class SwitchProtectionJobDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionJobDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionJobDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionJobDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionJobDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails(); /// /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow /// object details. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).AffectedObjectDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).AffectedObjectDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).AffectedObjectDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).AffectedObjectDetail = value ?? null /* model class */; } /// Gets the type of job details (see JobDetailsTypes enum for possible values). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).InstanceType = value ; } /// Backing field for property. private string _newReplicationProtectedItemId; @@ -58,7 +58,7 @@ public SwitchProtectionJobDetails() /// This class represents details for switch protection job. public partial interface ISwitchProtectionJobDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails { /// ARM Id of the new replication protected item. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -72,7 +72,7 @@ public partial interface ISwitchProtectionJobDetails : } /// This class represents details for switch protection job. internal partial interface ISwitchProtectionJobDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal { /// ARM Id of the new replication protected item. string NewReplicationProtectedItemId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionJobDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionJobDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProtectionJobDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProtectionJobDetails.json.cs index d0bcad6fccf9..0b786f23716f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionJobDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SwitchProtectionJobDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionJobDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionJobDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionJobDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionJobDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new SwitchProtectionJobDetails(json) : null; } @@ -77,7 +77,7 @@ internal SwitchProtectionJobDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.R { return; } - __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails(json); + __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails(json); {_newReplicationProtectedItemId = If( json?.PropertyT("newReplicationProtectedItemId"), out var __jsonNewReplicationProtectedItemId) ? (string)__jsonNewReplicationProtectedItemId : (string)NewReplicationProtectedItemId;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProtectionProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProtectionProviderSpecificInput.PowerShell.cs index f8ff2f29067e..738a957fb673 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class SwitchProtectionProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SwitchProtectionProviderSpecificInput(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.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SwitchProtectionProviderSpecificInput(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwi /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -108,13 +108,13 @@ internal SwitchProtectionProviderSpecificInput(global::System.Collections.IDicti // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType, 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. @@ -129,7 +129,7 @@ internal SwitchProtectionProviderSpecificInput(global::System.Management.Automat // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProtectionProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProtectionProviderSpecificInput.TypeConverter.cs index 90ff8c960343..de105c91aec4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProtectionProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProtectionProviderSpecificInput.cs index f2bce46fb1c7..1455489f3553 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific switch protection input. public partial class SwitchProtectionProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionProviderSpecificInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProtectionProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProtectionProviderSpecificInput.json.cs index bce6b78b1876..96fc195bcec2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProtectionProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProtectionProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class SwitchProtectionProviderSpecificInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput 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.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProtectionProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProtectionProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/SwitchProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInput.PowerShell.cs new file mode 100644 index 000000000000..3ecbb306ecac --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInput.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input definition for switch provider. + [System.ComponentModel.TypeConverter(typeof(SwitchProviderInputTypeConverter))] + public partial class SwitchProviderInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ISwitchProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SwitchProviderInput(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.Migrate.Models.Api202301.ISwitchProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SwitchProviderInput(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.Migrate.Models.Api202301.ISwitchProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SwitchProviderInput(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.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("TargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).TargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).ProviderSpecificDetailInstanceType, 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 SwitchProviderInput(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.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("TargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).TargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input definition for switch provider. + [System.ComponentModel.TypeConverter(typeof(SwitchProviderInputTypeConverter))] + public partial interface ISwitchProviderInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProviderInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProviderInput.TypeConverter.cs index 2ae181933a87..30c06d0f7aff 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISwitchProviderInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/SwitchProviderInput.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInput.cs new file mode 100644 index 000000000000..c5f71243b8a4 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInput.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input definition for switch provider. + public partial class SwitchProviderInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputProperties _property; + + /// Switch provider input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderInputProperties()); set => this._property = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// Target provider type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)Property).TargetInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)Property).TargetInstanceType = value ?? null; } + + /// Creates an new instance. + public SwitchProviderInput() + { + + } + } + /// Input definition for switch provider. + public partial interface ISwitchProviderInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + /// Target provider type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Target provider type.", + SerializedName = @"targetInstanceType", + PossibleTypes = new [] { typeof(string) })] + string TargetInstanceType { get; set; } + + } + /// Input definition for switch provider. + internal partial interface ISwitchProviderInputInternal + + { + /// Switch provider input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputProperties Property { get; set; } + /// Provider specific settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + /// Target provider type. + string TargetInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInput.json.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProviderInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProviderInput.json.cs index c3b9277bf903..c8a6d6d4be7b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SwitchProviderInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new SwitchProviderInput(json) : null; } @@ -77,7 +77,7 @@ internal SwitchProviderInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime. { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/SwitchProviderInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInputProperties.PowerShell.cs new file mode 100644 index 000000000000..95ded0bc6d47 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInputProperties.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input definition for switch provider input properties. + [System.ComponentModel.TypeConverter(typeof(SwitchProviderInputPropertiesTypeConverter))] + public partial class SwitchProviderInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ISwitchProviderInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SwitchProviderInputProperties(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.Migrate.Models.Api202301.ISwitchProviderInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SwitchProviderInputProperties(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.Migrate.Models.Api202301.ISwitchProviderInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SwitchProviderInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("TargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)this).TargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 SwitchProviderInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("TargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)this).TargetInstanceType = (string) content.GetValueForProperty("TargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)this).TargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input definition for switch provider input properties. + [System.ComponentModel.TypeConverter(typeof(SwitchProviderInputPropertiesTypeConverter))] + public partial interface ISwitchProviderInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProviderInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProviderInputProperties.TypeConverter.cs index fc527e446c13..ca931e6b99ea 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISwitchProviderInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/SwitchProviderInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInputProperties.cs new file mode 100644 index 000000000000..4ce021aa0430 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInputProperties.cs @@ -0,0 +1,77 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input definition for switch provider input properties. + public partial class SwitchProviderInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal + { + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput _providerSpecificDetail; + + /// Provider specific settings. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderSpecificInput()); set => this._providerSpecificDetail = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + + /// Backing field for property. + private string _targetInstanceType; + + /// Target provider type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetInstanceType { get => this._targetInstanceType; set => this._targetInstanceType = value; } + + /// Creates an new instance. + public SwitchProviderInputProperties() + { + + } + } + /// Input definition for switch provider input properties. + public partial interface ISwitchProviderInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + /// Target provider type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Target provider type.", + SerializedName = @"targetInstanceType", + PossibleTypes = new [] { typeof(string) })] + string TargetInstanceType { get; set; } + + } + /// Input definition for switch provider input properties. + internal partial interface ISwitchProviderInputPropertiesInternal + + { + /// Provider specific settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + /// Target provider type. + string TargetInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInputProperties.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProviderInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProviderInputProperties.json.cs index 36ce855bc9ca..0cd449c1a490 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProviderInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SwitchProviderInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new SwitchProviderInputProperties(json) : null; } @@ -77,7 +77,7 @@ internal SwitchProviderInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.SwitchProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.SwitchProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_targetInstanceType = If( json?.PropertyT("targetInstanceType"), out var __jsonTargetInstanceType) ? (string)__jsonTargetInstanceType : (string)TargetInstanceType;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProviderSpecificInput.PowerShell.cs index 85ac47c743f4..0b8b10f38a71 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,27 @@ public partial class SwitchProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.ISwitchProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SwitchProviderSpecificInput(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.Migrate.Models.Api20220501.ISwitchProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SwitchProviderSpecificInput(content); } @@ -87,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwi /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +103,13 @@ internal SwitchProviderSpecificInput(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInputInternal)this).InstanceType, 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,7 +124,7 @@ internal SwitchProviderSpecificInput(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProviderSpecificInput.TypeConverter.cs index d86ebcacdc30..2ee533eb8b48 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ISwitchProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProviderSpecificInput.cs index 99ea0a49e9dc..1f23e1a28b40 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific switch provider input. public partial class SwitchProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/SwitchProviderSpecificInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/SwitchProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/SwitchProviderSpecificInput.json.cs index 0802b0a94b58..1c16be57ac2a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/SwitchProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/SwitchProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class SwitchProviderSpecificInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput 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.Migrate.Models.Api20220501.ISwitchProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ISwitchProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ISwitchProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/TargetComputeSize.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TargetComputeSize.PowerShell.cs new file mode 100644 index 000000000000..a8dc2961fd80 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/TargetComputeSize.PowerShell.cs @@ -0,0 +1,248 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Represents applicable recovery vm sizes. + [System.ComponentModel.TypeConverter(typeof(TargetComputeSizeTypeConverter))] + public partial class TargetComputeSize + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ITargetComputeSize DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TargetComputeSize(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.Migrate.Models.Api202301.ITargetComputeSize DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TargetComputeSize(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.Migrate.Models.Api202301.ITargetComputeSize FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TargetComputeSize(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.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSizePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("PropertiesName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).PropertiesName = (string) content.GetValueForProperty("PropertiesName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).PropertiesName, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("CpuCoresCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).CpuCoresCount = (int?) content.GetValueForProperty("CpuCoresCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).CpuCoresCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsAvailable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).VCpUsAvailable = (int?) content.GetValueForProperty("VCpUsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).VCpUsAvailable, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MemoryInGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).MemoryInGb = (double?) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("MaxDataDiskCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).MaxDataDiskCount = (int?) content.GetValueForProperty("MaxDataDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).MaxDataDiskCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MaxNicsCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).MaxNicsCount = (int?) content.GetValueForProperty("MaxNicsCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).MaxNicsCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ComputeSizeErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("HighIopsSupported")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).HighIopsSupported = (string) content.GetValueForProperty("HighIopsSupported",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).HighIopsSupported, global::System.Convert.ToString); + } + if (content.Contains("HyperVGeneration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).HyperVGeneration = (string[]) content.GetValueForProperty("HyperVGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).HyperVGeneration, __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 TargetComputeSize(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.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSizePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("PropertiesName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).PropertiesName = (string) content.GetValueForProperty("PropertiesName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).PropertiesName, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("CpuCoresCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).CpuCoresCount = (int?) content.GetValueForProperty("CpuCoresCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).CpuCoresCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsAvailable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).VCpUsAvailable = (int?) content.GetValueForProperty("VCpUsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).VCpUsAvailable, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MemoryInGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).MemoryInGb = (double?) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("MaxDataDiskCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).MaxDataDiskCount = (int?) content.GetValueForProperty("MaxDataDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).MaxDataDiskCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MaxNicsCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).MaxNicsCount = (int?) content.GetValueForProperty("MaxNicsCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).MaxNicsCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ComputeSizeErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("HighIopsSupported")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).HighIopsSupported = (string) content.GetValueForProperty("HighIopsSupported",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).HighIopsSupported, global::System.Convert.ToString); + } + if (content.Contains("HyperVGeneration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).HyperVGeneration = (string[]) content.GetValueForProperty("HyperVGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal)this).HyperVGeneration, __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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents applicable recovery vm sizes. + [System.ComponentModel.TypeConverter(typeof(TargetComputeSizeTypeConverter))] + public partial interface ITargetComputeSize + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSize.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TargetComputeSize.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/TargetComputeSize.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TargetComputeSize.TypeConverter.cs index 68dca5bafa30..4ccde41f7069 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSize.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TargetComputeSize.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITargetComputeSize ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSize ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSize).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSize).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSize.cs b/src/Migrate/generated/api/Models/Api202301/TargetComputeSize.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/TargetComputeSize.cs rename to src/Migrate/generated/api/Models/Api202301/TargetComputeSize.cs index 750683487e83..7063d792f00a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSize.cs +++ b/src/Migrate/generated/api/Models/Api202301/TargetComputeSize.cs @@ -3,37 +3,37 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Represents applicable recovery vm sizes. public partial class TargetComputeSize : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSize, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSize, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal { /// The maximum cpu cores count supported by target compute size. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? CpuCoresCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).CpuCoresCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).CpuCoresCount = value ?? default(int); } + public int? CpuCoresCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).CpuCoresCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).CpuCoresCount = value ?? default(int); } /// /// The reasons why the target compute size is not applicable for the protected item. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails[] Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).Error = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails[] Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).Error = value ?? null /* arrayOf */; } /// Target compute size display name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).FriendlyName = value ?? null; } + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).FriendlyName = value ?? null; } /// The value indicating whether the target compute size supports high Iops. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string HighIopsSupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).HighIopsSupported; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).HighIopsSupported = value ?? null; } + public string HighIopsSupported { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).HighIopsSupported; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).HighIopsSupported = value ?? null; } /// The supported HyperV Generations. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string[] HyperVGeneration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).HyperVGeneration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).HyperVGeneration = value ?? null /* arrayOf */; } + public string[] HyperVGeneration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).HyperVGeneration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).HyperVGeneration = value ?? null /* arrayOf */; } /// Backing field for property. private string _id; @@ -44,21 +44,21 @@ public partial class TargetComputeSize : /// The maximum data disks count supported by target compute size. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? MaxDataDiskCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).MaxDataDiskCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).MaxDataDiskCount = value ?? default(int); } + public int? MaxDataDiskCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).MaxDataDiskCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).MaxDataDiskCount = value ?? default(int); } /// The maximum Nics count supported by target compute size. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? MaxNicsCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).MaxNicsCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).MaxNicsCount = value ?? default(int); } + public int? MaxNicsCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).MaxNicsCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).MaxNicsCount = value ?? default(int); } /// The maximum memory in GB supported by target compute size. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public double? MemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).MemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).MemoryInGb = value ?? default(double); } + public double? MemoryInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).MemoryInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).MemoryInGb = value ?? default(double); } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSizeProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSizeProperties()); set { {_property = value;} } } /// Internal Acessors for VCpUsAvailable - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeInternal.VCpUsAvailable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).VCpUsAvailable; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).VCpUsAvailable = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeInternal.VCpUsAvailable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).VCpUsAvailable; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).VCpUsAvailable = value; } /// Backing field for property. private string _name; @@ -69,14 +69,14 @@ public partial class TargetComputeSize : /// Target compute size name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).Name = value ?? null; } + public string PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).Name = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeProperties _property; /// The custom data. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSizeProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSizeProperties()); set => this._property = value; } /// Backing field for property. private string _type; @@ -87,7 +87,7 @@ public partial class TargetComputeSize : /// The Available vCPUs supported by target compute size. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public int? VCpUsAvailable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal)Property).VCpUsAvailable; } + public int? VCpUsAvailable { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)Property).VCpUsAvailable; } /// Creates an new instance. public TargetComputeSize() @@ -115,8 +115,8 @@ public partial interface ITargetComputeSize : ReadOnly = false, Description = @"The reasons why the target compute size is not applicable for the protected item.", SerializedName = @"errors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails[] Error { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails[] Error { get; set; } /// Target compute size display name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -216,7 +216,7 @@ internal partial interface ITargetComputeSizeInternal /// /// The reasons why the target compute size is not applicable for the protected item. /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails[] Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails[] Error { get; set; } /// Target compute size display name. string FriendlyName { get; set; } /// The value indicating whether the target compute size supports high Iops. @@ -236,7 +236,7 @@ internal partial interface ITargetComputeSizeInternal /// Target compute size name. string PropertiesName { get; set; } /// The custom data. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeProperties Property { get; set; } /// The Type of the object. string Type { get; set; } /// The Available vCPUs supported by target compute size. diff --git a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSize.json.cs b/src/Migrate/generated/api/Models/Api202301/TargetComputeSize.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/TargetComputeSize.json.cs rename to src/Migrate/generated/api/Models/Api202301/TargetComputeSize.json.cs index 7c0cf627e26d..7ff2d604b646 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSize.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TargetComputeSize.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TargetComputeSize partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSize. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSize. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSize. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSize. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSize FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSize FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new TargetComputeSize(json) : null; } @@ -77,7 +77,7 @@ internal TargetComputeSize(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSizeProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSizeProperties.FromJson(__jsonProperties) : Property;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} diff --git a/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeCollection.PowerShell.cs new file mode 100644 index 000000000000..ea9e90ce254f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeCollection.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Target compute size collection. + [System.ComponentModel.TypeConverter(typeof(TargetComputeSizeCollectionTypeConverter))] + public partial class TargetComputeSizeCollection + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ITargetComputeSizeCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TargetComputeSizeCollection(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.Migrate.Models.Api202301.ITargetComputeSizeCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TargetComputeSizeCollection(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.Migrate.Models.Api202301.ITargetComputeSizeCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TargetComputeSizeCollection(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSize[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSizeTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal TargetComputeSizeCollection(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSize[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSizeTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollectionInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Target compute size collection. + [System.ComponentModel.TypeConverter(typeof(TargetComputeSizeCollectionTypeConverter))] + public partial interface ITargetComputeSizeCollection + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TargetComputeSizeCollection.TypeConverter.cs index bdf9104b2792..47704af65779 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITargetComputeSizeCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeCollection.cs b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeCollection.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeCollection.cs rename to src/Migrate/generated/api/Models/Api202301/TargetComputeSizeCollection.cs index e3bbeb1dbe1f..0638f0f093b4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Target compute size collection. public partial class TargetComputeSizeCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class TargetComputeSizeCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSize[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSize[] _value; /// The list of target compute sizes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSize[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSize[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public TargetComputeSizeCollection() @@ -51,8 +51,8 @@ public partial interface ITargetComputeSizeCollection : ReadOnly = false, Description = @"The list of target compute sizes.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSize) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSize[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSize) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSize[] Value { get; set; } } /// Target compute size collection. @@ -62,7 +62,7 @@ internal partial interface ITargetComputeSizeCollectionInternal /// The value of next link. string NextLink { get; set; } /// The list of target compute sizes. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSize[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSize[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeCollection.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/TargetComputeSizeCollection.json.cs index 061dc2b661f6..9333d1683752 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TargetComputeSizeCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new TargetComputeSizeCollection(json) : null; } @@ -77,7 +77,7 @@ internal TargetComputeSizeCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITargetComputeSize) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TargetComputeSize.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.ITargetComputeSize) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TargetComputeSize.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeProperties.PowerShell.cs new file mode 100644 index 000000000000..b66e3969de7b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeProperties.PowerShell.cs @@ -0,0 +1,216 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Represents applicable recovery vm sizes properties. + [System.ComponentModel.TypeConverter(typeof(TargetComputeSizePropertiesTypeConverter))] + public partial class TargetComputeSizeProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ITargetComputeSizeProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TargetComputeSizeProperties(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.Migrate.Models.Api202301.ITargetComputeSizeProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TargetComputeSizeProperties(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.Migrate.Models.Api202301.ITargetComputeSizeProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TargetComputeSizeProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("CpuCoresCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).CpuCoresCount = (int?) content.GetValueForProperty("CpuCoresCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).CpuCoresCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsAvailable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).VCpUsAvailable = (int?) content.GetValueForProperty("VCpUsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).VCpUsAvailable, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MemoryInGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).MemoryInGb = (double?) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("MaxDataDiskCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).MaxDataDiskCount = (int?) content.GetValueForProperty("MaxDataDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).MaxDataDiskCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MaxNicsCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).MaxNicsCount = (int?) content.GetValueForProperty("MaxNicsCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).MaxNicsCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ComputeSizeErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("HighIopsSupported")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).HighIopsSupported = (string) content.GetValueForProperty("HighIopsSupported",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).HighIopsSupported, global::System.Convert.ToString); + } + if (content.Contains("HyperVGeneration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).HyperVGeneration = (string[]) content.GetValueForProperty("HyperVGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).HyperVGeneration, __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 TargetComputeSizeProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("CpuCoresCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).CpuCoresCount = (int?) content.GetValueForProperty("CpuCoresCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).CpuCoresCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsAvailable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).VCpUsAvailable = (int?) content.GetValueForProperty("VCpUsAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).VCpUsAvailable, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MemoryInGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).MemoryInGb = (double?) content.GetValueForProperty("MemoryInGb",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).MemoryInGb, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("MaxDataDiskCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).MaxDataDiskCount = (int?) content.GetValueForProperty("MaxDataDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).MaxDataDiskCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MaxNicsCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).MaxNicsCount = (int?) content.GetValueForProperty("MaxNicsCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).MaxNicsCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ComputeSizeErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("HighIopsSupported")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).HighIopsSupported = (string) content.GetValueForProperty("HighIopsSupported",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).HighIopsSupported, global::System.Convert.ToString); + } + if (content.Contains("HyperVGeneration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).HyperVGeneration = (string[]) content.GetValueForProperty("HyperVGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal)this).HyperVGeneration, __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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents applicable recovery vm sizes properties. + [System.ComponentModel.TypeConverter(typeof(TargetComputeSizePropertiesTypeConverter))] + public partial interface ITargetComputeSizeProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TargetComputeSizeProperties.TypeConverter.cs index bf5f342a48f7..0c34898fb658 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITargetComputeSizeProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeProperties.cs b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeProperties.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeProperties.cs rename to src/Migrate/generated/api/Models/Api202301/TargetComputeSizeProperties.cs index 7d0a826ca248..c33d9fdb4794 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Represents applicable recovery vm sizes properties. public partial class TargetComputeSizeProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal { /// Backing field for property. @@ -21,13 +21,13 @@ public partial class TargetComputeSizeProperties : public int? CpuCoresCount { get => this._cpuCoresCount; set => this._cpuCoresCount = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails[] _error; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails[] _error; /// /// The reasons why the target compute size is not applicable for the protected item. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails[] Error { get => this._error; set => this._error = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails[] Error { get => this._error; set => this._error = value; } /// Backing field for property. private string _friendlyName; @@ -72,7 +72,7 @@ public partial class TargetComputeSizeProperties : public double? MemoryInGb { get => this._memoryInGb; set => this._memoryInGb = value; } /// Internal Acessors for VCpUsAvailable - int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizePropertiesInternal.VCpUsAvailable { get => this._vCpUsAvailable; set { {_vCpUsAvailable = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizePropertiesInternal.VCpUsAvailable { get => this._vCpUsAvailable; set { {_vCpUsAvailable = value;} } } /// Backing field for property. private string _name; @@ -114,8 +114,8 @@ public partial interface ITargetComputeSizeProperties : ReadOnly = false, Description = @"The reasons why the target compute size is not applicable for the protected item.", SerializedName = @"errors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails[] Error { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails[] Error { get; set; } /// Target compute size display name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -191,7 +191,7 @@ internal partial interface ITargetComputeSizePropertiesInternal /// /// The reasons why the target compute size is not applicable for the protected item. /// - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IComputeSizeErrorDetails[] Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IComputeSizeErrorDetails[] Error { get; set; } /// Target compute size display name. string FriendlyName { get; set; } /// The value indicating whether the target compute size supports high Iops. diff --git a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeProperties.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/TargetComputeSizeProperties.json.cs index bd9bbe5719de..bbe1e334e225 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TargetComputeSizeProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TargetComputeSizeProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TargetComputeSizeProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITargetComputeSizeProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITargetComputeSizeProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new TargetComputeSizeProperties(json) : null; } @@ -84,7 +84,7 @@ internal TargetComputeSizeProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate. {_memoryInGb = If( json?.PropertyT("memoryInGB"), out var __jsonMemoryInGb) ? (double?)__jsonMemoryInGb : MemoryInGb;} {_maxDataDiskCount = If( json?.PropertyT("maxDataDiskCount"), out var __jsonMaxDataDiskCount) ? (int?)__jsonMaxDataDiskCount : MaxDataDiskCount;} {_maxNicsCount = If( json?.PropertyT("maxNicsCount"), out var __jsonMaxNicsCount) ? (int?)__jsonMaxNicsCount : MaxNicsCount;} - {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? If( __jsonErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IComputeSizeErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ComputeSizeErrorDetails.FromJson(__u) )) ))() : null : Error;} + {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? If( __jsonErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IComputeSizeErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ComputeSizeErrorDetails.FromJson(__u) )) ))() : null : Error;} {_highIopsSupported = If( json?.PropertyT("highIopsSupported"), out var __jsonHighIopsSupported) ? (string)__jsonHighIopsSupported : (string)HighIopsSupported;} {_hyperVGeneration = If( json?.PropertyT("hyperVGenerations"), out var __jsonHyperVGenerations) ? If( __jsonHyperVGenerations as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : HyperVGeneration;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api20220501/TaskTypeDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TaskTypeDetails.PowerShell.cs similarity index 84% rename from src/Migrate/generated/api/Models/Api20220501/TaskTypeDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/TaskTypeDetails.PowerShell.cs index fd2ef0ee5c68..c42b19c25110 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TaskTypeDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/TaskTypeDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class TaskTypeDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.ITaskTypeDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TaskTypeDetails(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.Migrate.Models.Api20220501.ITaskTypeDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TaskTypeDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITas /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,13 +103,13 @@ internal TaskTypeDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, 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. @@ -124,7 +124,7 @@ internal TaskTypeDetails(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/TaskTypeDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TaskTypeDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/TaskTypeDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TaskTypeDetails.TypeConverter.cs index e87ef136df23..e67afe44d6ad 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TaskTypeDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TaskTypeDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITaskTypeDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/TaskTypeDetails.cs b/src/Migrate/generated/api/Models/Api202301/TaskTypeDetails.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/TaskTypeDetails.cs rename to src/Migrate/generated/api/Models/Api202301/TaskTypeDetails.cs index 865cf472cedf..553f8f992dae 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TaskTypeDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/TaskTypeDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Task details based on specific task type. public partial class TaskTypeDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/TaskTypeDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/TaskTypeDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/TaskTypeDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/TaskTypeDetails.json.cs index 170f9dac217c..282171881bd3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TaskTypeDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TaskTypeDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class TaskTypeDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails 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.Migrate.Models.Api202301.ITaskTypeDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails 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.Migrate.Models.Api20220501.ITaskTypeDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInput.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInput.PowerShell.cs index 13ca23ac9495..a106cc6606de 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class TestFailoverCleanupInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.ITestFailoverCleanupInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TestFailoverCleanupInput(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.Migrate.Models.Api20220501.ITestFailoverCleanupInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TestFailoverCleanupInput(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal TestFailoverCleanupInput(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverCleanupInputPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverCleanupInputPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputInternal)this).Comment, 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. @@ -128,11 +128,11 @@ internal TestFailoverCleanupInput(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverCleanupInputPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverCleanupInputPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputInternal)this).Comment, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInput.TypeConverter.cs index 1fbe186243e3..d4af28302058 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITestFailoverCleanupInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInput.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInput.cs new file mode 100644 index 000000000000..d7888e0ac0e3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input definition for test failover cleanup. + public partial class TestFailoverCleanupInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputInternal + { + + /// Test failover cleanup comments. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Comment { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputPropertiesInternal)Property).Comment; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputPropertiesInternal)Property).Comment = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverCleanupInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties _property; + + /// Test failover cleanup input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverCleanupInputProperties()); set => this._property = value; } + + /// Creates an new instance. + public TestFailoverCleanupInput() + { + + } + } + /// Input definition for test failover cleanup. + public partial interface ITestFailoverCleanupInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Test failover cleanup comments. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Test failover cleanup comments.", + SerializedName = @"comments", + PossibleTypes = new [] { typeof(string) })] + string Comment { get; set; } + + } + /// Input definition for test failover cleanup. + internal partial interface ITestFailoverCleanupInputInternal + + { + /// Test failover cleanup comments. + string Comment { get; set; } + /// Test failover cleanup input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInput.json.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInput.json.cs index bf7e8cd80ee3..38ce5ef068ff 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TestFailoverCleanupInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new TestFailoverCleanupInput(json) : null; } @@ -77,7 +77,7 @@ internal TestFailoverCleanupInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverCleanupInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverCleanupInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInputProperties.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInputProperties.PowerShell.cs index 026e9f3c554a..c8d98bdcedaf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class TestFailoverCleanupInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TestFailoverCleanupInputProperties(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.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TestFailoverCleanupInputProperties(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITes /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,13 +107,13 @@ internal TestFailoverCleanupInputProperties(global::System.Collections.IDictiona // actually deserialize if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputPropertiesInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputPropertiesInternal)this).Comment, 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. @@ -128,7 +128,7 @@ internal TestFailoverCleanupInputProperties(global::System.Management.Automation // actually deserialize if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputPropertiesInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputPropertiesInternal)this).Comment, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInputProperties.TypeConverter.cs index 30a6423e43af..f82fc3c7b2ba 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInputProperties.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInputProperties.cs index 853e0a0541a1..111a837b0ccb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Input definition for test failover cleanup input properties. public partial class TestFailoverCleanupInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInputProperties.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInputProperties.json.cs index 66ac511f6d92..26e07b3ed71c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverCleanupInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverCleanupInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TestFailoverCleanupInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverCleanupInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverCleanupInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new TestFailoverCleanupInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/TestFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..1e1fe3623594 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverInput.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input definition for test failover. + [System.ComponentModel.TypeConverter(typeof(TestFailoverInputTypeConverter))] + public partial class TestFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ITestFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TestFailoverInput(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.Migrate.Models.Api202301.ITestFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TestFailoverInput(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.Migrate.Models.Api202301.ITestFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TestFailoverInput(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.Migrate.Models.Api202301.ITestFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("NetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).NetworkType, global::System.Convert.ToString); + } + if (content.Contains("NetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).NetworkId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).ProviderSpecificDetailInstanceType, 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 TestFailoverInput(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.Migrate.Models.Api202301.ITestFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("NetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).NetworkType, global::System.Convert.ToString); + } + if (content.Contains("NetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).NetworkId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input definition for test failover. + [System.ComponentModel.TypeConverter(typeof(TestFailoverInputTypeConverter))] + public partial interface ITestFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverInput.TypeConverter.cs index ff104d70ccc5..1044b31788e5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITestFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/TestFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverInput.cs new file mode 100644 index 000000000000..89c835c5f77c --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverInput.cs @@ -0,0 +1,107 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input definition for test failover. + public partial class TestFailoverInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal + { + + /// Test failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FailoverDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)Property).FailoverDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)Property).FailoverDirection = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// The id of the network to be used for test failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string NetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)Property).NetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)Property).NetworkId = value ?? null; } + + /// Network type to be used for test failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string NetworkType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)Property).NetworkType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)Property).NetworkType = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputProperties _property; + + /// Test failover input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverInputProperties()); set => this._property = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// Creates an new instance. + public TestFailoverInput() + { + + } + } + /// Input definition for test failover. + public partial interface ITestFailoverInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Test failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Test failover direction.", + SerializedName = @"failoverDirection", + PossibleTypes = new [] { typeof(string) })] + string FailoverDirection { get; set; } + /// The id of the network to be used for test failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The id of the network to be used for test failover.", + SerializedName = @"networkId", + PossibleTypes = new [] { typeof(string) })] + string NetworkId { get; set; } + /// Network type to be used for test failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Network type to be used for test failover.", + SerializedName = @"networkType", + PossibleTypes = new [] { typeof(string) })] + string NetworkType { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + + } + /// Input definition for test failover. + internal partial interface ITestFailoverInputInternal + + { + /// Test failover direction. + string FailoverDirection { get; set; } + /// The id of the network to be used for test failover. + string NetworkId { get; set; } + /// Network type to be used for test failover. + string NetworkType { get; set; } + /// Test failover input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputProperties Property { get; set; } + /// Provider specific settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverInput.json.cs index 20d7196237c0..5ffc8c35e258 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TestFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new TestFailoverInput(json) : null; } @@ -77,7 +77,7 @@ internal TestFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/TestFailoverInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverInputProperties.PowerShell.cs new file mode 100644 index 000000000000..afe0ee5f894d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverInputProperties.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input definition for test failover input properties. + [System.ComponentModel.TypeConverter(typeof(TestFailoverInputPropertiesTypeConverter))] + public partial class TestFailoverInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ITestFailoverInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TestFailoverInputProperties(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.Migrate.Models.Api202301.ITestFailoverInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TestFailoverInputProperties(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.Migrate.Models.Api202301.ITestFailoverInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TestFailoverInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("NetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).NetworkType, global::System.Convert.ToString); + } + if (content.Contains("NetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).NetworkId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 TestFailoverInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("NetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).NetworkType, global::System.Convert.ToString); + } + if (content.Contains("NetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).NetworkId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input definition for test failover input properties. + [System.ComponentModel.TypeConverter(typeof(TestFailoverInputPropertiesTypeConverter))] + public partial interface ITestFailoverInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverInputProperties.TypeConverter.cs index 09482c6043e2..c994786ac6c3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITestFailoverInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverInputProperties.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverInputProperties.cs index a9d6514d9639..34e1732c8465 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Input definition for test failover input properties. public partial class TestFailoverInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal { /// Backing field for property. @@ -21,7 +21,7 @@ public partial class TestFailoverInputProperties : public string FailoverDirection { get => this._failoverDirection; set => this._failoverDirection = value; } /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } /// Backing field for property. private string _networkId; @@ -38,15 +38,15 @@ public partial class TestFailoverInputProperties : public string NetworkType { get => this._networkType; set => this._networkType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput _providerSpecificDetail; /// Provider specific settings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput()); set => this._providerSpecificDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput()); set => this._providerSpecificDetail = value; } /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } /// Creates an new instance. public TestFailoverInputProperties() @@ -103,7 +103,7 @@ internal partial interface ITestFailoverInputPropertiesInternal /// Network type to be used for test failover. string NetworkType { get; set; } /// Provider specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput ProviderSpecificDetail { get; set; } /// The class type. string ProviderSpecificDetailInstanceType { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverInputProperties.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverInputProperties.json.cs index b9e4868f52e9..73c022014d0f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TestFailoverInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new TestFailoverInputProperties(json) : null; } @@ -77,7 +77,7 @@ internal TestFailoverInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestFailoverProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestFailoverProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_failoverDirection = If( json?.PropertyT("failoverDirection"), out var __jsonFailoverDirection) ? (string)__jsonFailoverDirection : (string)FailoverDirection;} {_networkType = If( json?.PropertyT("networkType"), out var __jsonNetworkType) ? (string)__jsonNetworkType : (string)NetworkType;} {_networkId = If( json?.PropertyT("networkId"), out var __jsonNetworkId) ? (string)__jsonNetworkId : (string)NetworkId;} diff --git a/src/Migrate/generated/api/Models/Api202301/TestFailoverJobDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverJobDetails.PowerShell.cs new file mode 100644 index 000000000000..eca95b0c3c34 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverJobDetails.PowerShell.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class represents the details for a test failover job. + [System.ComponentModel.TypeConverter(typeof(TestFailoverJobDetailsTypeConverter))] + public partial class TestFailoverJobDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ITestFailoverJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TestFailoverJobDetails(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.Migrate.Models.Api202301.ITestFailoverJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TestFailoverJobDetails(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.Migrate.Models.Api202301.ITestFailoverJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TestFailoverJobDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TestFailoverStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).TestFailoverStatus = (string) content.GetValueForProperty("TestFailoverStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).TestFailoverStatus, global::System.Convert.ToString); + } + if (content.Contains("Comment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).Comment, global::System.Convert.ToString); + } + if (content.Contains("NetworkName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).NetworkName = (string) content.GetValueForProperty("NetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).NetworkName, global::System.Convert.ToString); + } + if (content.Contains("NetworkFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).NetworkFriendlyName = (string) content.GetValueForProperty("NetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).NetworkFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("NetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).NetworkType, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).ProtectedItemDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails[]) content.GetValueForProperty("ProtectedItemDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).ProtectedItemDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverReplicationProtectedItemDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal TestFailoverJobDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TestFailoverStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).TestFailoverStatus = (string) content.GetValueForProperty("TestFailoverStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).TestFailoverStatus, global::System.Convert.ToString); + } + if (content.Contains("Comment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).Comment, global::System.Convert.ToString); + } + if (content.Contains("NetworkName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).NetworkName = (string) content.GetValueForProperty("NetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).NetworkName, global::System.Convert.ToString); + } + if (content.Contains("NetworkFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).NetworkFriendlyName = (string) content.GetValueForProperty("NetworkFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).NetworkFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("NetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).NetworkType = (string) content.GetValueForProperty("NetworkType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).NetworkType, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).ProtectedItemDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails[]) content.GetValueForProperty("ProtectedItemDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal)this).ProtectedItemDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverReplicationProtectedItemDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("AffectedObjectDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails) content.GetValueForProperty("AffectedObjectDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)this).AffectedObjectDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetailsTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// This class represents the details for a test failover job. + [System.ComponentModel.TypeConverter(typeof(TestFailoverJobDetailsTypeConverter))] + public partial interface ITestFailoverJobDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverJobDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverJobDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverJobDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverJobDetails.TypeConverter.cs index 36363079af4e..3324acfac71e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverJobDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITestFailoverJobDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverJobDetails.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverJobDetails.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverJobDetails.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverJobDetails.cs index a562dc770f45..f3545f4cfad9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverJobDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// This class represents the details for a test failover job. public partial class TestFailoverJobDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails(); /// /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow /// object details. /// [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).AffectedObjectDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).AffectedObjectDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsAffectedObjectDetails AffectedObjectDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).AffectedObjectDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).AffectedObjectDetail = value ?? null /* model class */; } /// Backing field for property. private string _comment; @@ -35,7 +35,7 @@ public partial class TestFailoverJobDetails : /// Gets the type of job details (see JobDetailsTypes enum for possible values). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal)__jobDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal)__jobDetails).InstanceType = value ; } /// Backing field for property. private string _networkFriendlyName; @@ -59,11 +59,11 @@ public partial class TestFailoverJobDetails : public string NetworkType { get => this._networkType; set => this._networkType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails[] _protectedItemDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails[] _protectedItemDetail; /// The test VM details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails[] ProtectedItemDetail { get => this._protectedItemDetail; set => this._protectedItemDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails[] ProtectedItemDetail { get => this._protectedItemDetail; set => this._protectedItemDetail = value; } /// Backing field for property. private string _testFailoverStatus; @@ -93,7 +93,7 @@ public TestFailoverJobDetails() /// This class represents the details for a test failover job. public partial interface ITestFailoverJobDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetails { /// The test failover comments. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -133,8 +133,8 @@ public partial interface ITestFailoverJobDetails : ReadOnly = false, Description = @"The test VM details.", SerializedName = @"protectedItemDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails[] ProtectedItemDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails[] ProtectedItemDetail { get; set; } /// The test failover status. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -147,7 +147,7 @@ public partial interface ITestFailoverJobDetails : } /// This class represents the details for a test failover job. internal partial interface ITestFailoverJobDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobDetailsInternal { /// The test failover comments. string Comment { get; set; } @@ -158,7 +158,7 @@ internal partial interface ITestFailoverJobDetailsInternal : /// The test network type (see TestFailoverInput enum for possible values). string NetworkType { get; set; } /// The test VM details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails[] ProtectedItemDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails[] ProtectedItemDetail { get; set; } /// The test failover status. string TestFailoverStatus { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverJobDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverJobDetails.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverJobDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverJobDetails.json.cs index de0b134f9d13..411cff828fcd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverJobDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverJobDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TestFailoverJobDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new TestFailoverJobDetails(json) : null; } @@ -77,13 +77,13 @@ internal TestFailoverJobDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetails(json); + __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetails(json); {_testFailoverStatus = If( json?.PropertyT("testFailoverStatus"), out var __jsonTestFailoverStatus) ? (string)__jsonTestFailoverStatus : (string)TestFailoverStatus;} {_comment = If( json?.PropertyT("comments"), out var __jsonComments) ? (string)__jsonComments : (string)Comment;} {_networkName = If( json?.PropertyT("networkName"), out var __jsonNetworkName) ? (string)__jsonNetworkName : (string)NetworkName;} {_networkFriendlyName = If( json?.PropertyT("networkFriendlyName"), out var __jsonNetworkFriendlyName) ? (string)__jsonNetworkFriendlyName : (string)NetworkFriendlyName;} {_networkType = If( json?.PropertyT("networkType"), out var __jsonNetworkType) ? (string)__jsonNetworkType : (string)NetworkType;} - {_protectedItemDetail = If( json?.PropertyT("protectedItemDetails"), out var __jsonProtectedItemDetails) ? If( __jsonProtectedItemDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IFailoverReplicationProtectedItemDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FailoverReplicationProtectedItemDetails.FromJson(__u) )) ))() : null : ProtectedItemDetail;} + {_protectedItemDetail = If( json?.PropertyT("protectedItemDetails"), out var __jsonProtectedItemDetails) ? If( __jsonProtectedItemDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IFailoverReplicationProtectedItemDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FailoverReplicationProtectedItemDetails.FromJson(__u) )) ))() : null : ProtectedItemDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverProviderSpecificInput.PowerShell.cs index 7168a5512ca9..8b81228cbb2e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class TestFailoverProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TestFailoverProviderSpecificInput(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.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TestFailoverProviderSpecificInput(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITes /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,13 +107,13 @@ internal TestFailoverProviderSpecificInput(global::System.Collections.IDictionar // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType, 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. @@ -128,7 +128,7 @@ internal TestFailoverProviderSpecificInput(global::System.Management.Automation. // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverProviderSpecificInput.TypeConverter.cs index 7dca28f79e72..97a16835cf1a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverProviderSpecificInput.cs index 6664902e55f4..685d1d507eb4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific test failover input. public partial class TestFailoverProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/TestFailoverProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/TestFailoverProviderSpecificInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/TestFailoverProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/TestFailoverProviderSpecificInput.json.cs index a9c7280317d1..341ac9c7d478 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestFailoverProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestFailoverProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class TestFailoverProviderSpecificInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput interface is + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput 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.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestFailoverProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestFailoverProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInput.PowerShell.cs similarity index 76% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInput.PowerShell.cs index 326ec957f6a9..1e00a9a5aa13 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class TestMigrateCleanupInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.ITestMigrateCleanupInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TestMigrateCleanupInput(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.Migrate.Models.Api20220501.ITestMigrateCleanupInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TestMigrateCleanupInput(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,17 +103,17 @@ internal TestMigrateCleanupInput(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateCleanupInputPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateCleanupInputPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputInternal)this).Comment, 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. @@ -128,11 +128,11 @@ internal TestMigrateCleanupInput(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateCleanupInputPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateCleanupInputPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputInternal)this).Comment, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInput.TypeConverter.cs index 11d9d6ad6241..67ebc0def6d8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITestMigrateCleanupInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInput.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInput.cs new file mode 100644 index 000000000000..d24ce429fc8e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input for test migrate cleanup. + public partial class TestMigrateCleanupInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputInternal + { + + /// Test migrate cleanup comments. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Comment { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputPropertiesInternal)Property).Comment; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputPropertiesInternal)Property).Comment = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateCleanupInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties _property; + + /// Test migrate cleanup input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateCleanupInputProperties()); set => this._property = value; } + + /// Creates an new instance. + public TestMigrateCleanupInput() + { + + } + } + /// Input for test migrate cleanup. + public partial interface ITestMigrateCleanupInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Test migrate cleanup comments. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Test migrate cleanup comments.", + SerializedName = @"comments", + PossibleTypes = new [] { typeof(string) })] + string Comment { get; set; } + + } + /// Input for test migrate cleanup. + internal partial interface ITestMigrateCleanupInputInternal + + { + /// Test migrate cleanup comments. + string Comment { get; set; } + /// Test migrate cleanup input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInput.json.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInput.json.cs index e5afaa54d8e8..3ca9b463413b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TestMigrateCleanupInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new TestMigrateCleanupInput(json) : null; } @@ -77,7 +77,7 @@ internal TestMigrateCleanupInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateCleanupInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateCleanupInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInputProperties.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInputProperties.PowerShell.cs index e518edfdccec..136b4dfbad51 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class TestMigrateCleanupInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TestMigrateCleanupInputProperties(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.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TestMigrateCleanupInputProperties(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITes /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -107,13 +107,13 @@ internal TestMigrateCleanupInputProperties(global::System.Collections.IDictionar // actually deserialize if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputPropertiesInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputPropertiesInternal)this).Comment, 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. @@ -128,7 +128,7 @@ internal TestMigrateCleanupInputProperties(global::System.Management.Automation. // actually deserialize if (content.Contains("Comment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputPropertiesInternal)this).Comment, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputPropertiesInternal)this).Comment = (string) content.GetValueForProperty("Comment",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputPropertiesInternal)this).Comment, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInputProperties.TypeConverter.cs index cf548bfb9840..bcaabb8e980d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInputProperties.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInputProperties.cs index d4713e2363a0..38143178f78e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Test migrate cleanup input properties. public partial class TestMigrateCleanupInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInputProperties.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInputProperties.json.cs index fe68896811b6..e3fb87ec64b1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateCleanupInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateCleanupInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TestMigrateCleanupInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new TestMigrateCleanupInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/TestMigrateInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateInput.PowerShell.cs new file mode 100644 index 000000000000..a143d8b02a4e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateInput.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input for test migrate. + [System.ComponentModel.TypeConverter(typeof(TestMigrateInputTypeConverter))] + public partial class TestMigrateInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.ITestMigrateInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TestMigrateInput(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.Migrate.Models.Api202301.ITestMigrateInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TestMigrateInput(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.Migrate.Models.Api202301.ITestMigrateInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TestMigrateInput(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.Migrate.Models.Api202301.ITestMigrateInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateProviderSpecificInputTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal TestMigrateInput(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.Migrate.Models.Api202301.ITestMigrateInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateProviderSpecificInputTypeConverter.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input for test migrate. + [System.ComponentModel.TypeConverter(typeof(TestMigrateInputTypeConverter))] + public partial interface ITestMigrateInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateInput.TypeConverter.cs index 12432913c06c..80758e1efc8d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITestMigrateInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/TestMigrateInput.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateInput.cs new file mode 100644 index 000000000000..a3a4924236b0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input for test migrate. + public partial class TestMigrateInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties _property; + + /// Test migrate input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateInputProperties()); set => this._property = value; } + + /// The provider specific details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputPropertiesInternal)Property).ProviderSpecificDetail = value ; } + + /// Creates an new instance. + public TestMigrateInput() + { + + } + } + /// Input for test migrate. + public partial interface ITestMigrateInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The provider specific details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The provider specific details.", + SerializedName = @"providerSpecificDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } + + } + /// Input for test migrate. + internal partial interface ITestMigrateInputInternal + + { + /// Test migrate input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties Property { get; set; } + /// The provider specific details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInput.json.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateInput.json.cs index b03403e2c92d..c2d4d121c562 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TestMigrateInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new TestMigrateInput(json) : null; } @@ -77,7 +77,7 @@ internal TestMigrateInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Jso { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateInputProperties.PowerShell.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateInputProperties.PowerShell.cs index 35e59bd268cf..a8eb0992ff69 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class TestMigrateInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.ITestMigrateInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TestMigrateInputProperties(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.Migrate.Models.Api20220501.ITestMigrateInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TestMigrateInputProperties(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -103,13 +103,13 @@ internal TestMigrateInputProperties(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("ProviderSpecificDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateProviderSpecificInputTypeConverter.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. @@ -124,7 +124,7 @@ internal TestMigrateInputProperties(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("ProviderSpecificDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateProviderSpecificInputTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateInputProperties.TypeConverter.cs index 14e2134f50ee..698cbd977958 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITestMigrateInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateInputProperties.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateInputProperties.cs index 1674818c479d..bc5a7de5a121 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateInputProperties.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Test migrate input properties. public partial class TestMigrateInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput _providerSpecificDetail; /// The provider specific details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateProviderSpecificInput()); set => this._providerSpecificDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateProviderSpecificInput()); set => this._providerSpecificDetail = value; } /// Creates an new instance. public TestMigrateInputProperties() @@ -36,8 +36,8 @@ public partial interface ITestMigrateInputProperties : ReadOnly = false, Description = @"The provider specific details.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } } /// Test migrate input properties. @@ -45,7 +45,7 @@ internal partial interface ITestMigrateInputPropertiesInternal { /// The provider specific details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput ProviderSpecificDetail { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateInputProperties.json.cs index e5904b852efd..7becfb59e977 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TestMigrateInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new TestMigrateInputProperties(json) : null; } @@ -77,7 +77,7 @@ internal TestMigrateInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.R { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateProviderSpecificInput.PowerShell.cs index 4343b5672c07..f78055371107 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class TestMigrateProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TestMigrateProviderSpecificInput(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.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TestMigrateProviderSpecificInput(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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. @@ -105,13 +105,13 @@ internal TestMigrateProviderSpecificInput(global::System.Collections.IDictionary // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInputInternal)this).InstanceType, 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,7 +126,7 @@ internal TestMigrateProviderSpecificInput(global::System.Management.Automation.P // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateProviderSpecificInput.TypeConverter.cs index 12674e275d69..d036b523582b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateProviderSpecificInput.cs index 269f15e7689f..5eef797894bd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Test migrate provider specific input. public partial class TestMigrateProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/TestMigrateProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/TestMigrateProviderSpecificInput.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/TestMigrateProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/TestMigrateProviderSpecificInput.json.cs index a343f07a36e4..0954dd13a8bb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/TestMigrateProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/TestMigrateProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class TestMigrateProviderSpecificInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput 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.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput 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.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInput.PowerShell.cs new file mode 100644 index 000000000000..975eb5aff6bc --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInput.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input definition for unplanned failover. + [System.ComponentModel.TypeConverter(typeof(UnplannedFailoverInputTypeConverter))] + public partial class UnplannedFailoverInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUnplannedFailoverInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UnplannedFailoverInput(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.Migrate.Models.Api202301.IUnplannedFailoverInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UnplannedFailoverInput(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.Migrate.Models.Api202301.IUnplannedFailoverInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UnplannedFailoverInput(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.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("SourceSiteOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).SourceSiteOperation = (string) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).SourceSiteOperation, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType, 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 UnplannedFailoverInput(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.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("SourceSiteOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).SourceSiteOperation = (string) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).SourceSiteOperation, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Input definition for unplanned failover. + [System.ComponentModel.TypeConverter(typeof(UnplannedFailoverInputTypeConverter))] + public partial interface IUnplannedFailoverInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInput.TypeConverter.cs index f5a06e7cab3e..00f1315dd325 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUnplannedFailoverInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInput.cs b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInput.cs new file mode 100644 index 000000000000..6bf21eeddb5f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInput.cs @@ -0,0 +1,93 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input definition for unplanned failover. + public partial class UnplannedFailoverInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal + { + + /// Failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FailoverDirection { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)Property).FailoverDirection; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)Property).FailoverDirection = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputProperties _property; + + /// Unplanned failover input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverInputProperties()); set => this._property = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// Source site operations status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SourceSiteOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)Property).SourceSiteOperation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)Property).SourceSiteOperation = value ?? null; } + + /// Creates an new instance. + public UnplannedFailoverInput() + { + + } + } + /// Input definition for unplanned failover. + public partial interface IUnplannedFailoverInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// Failover direction. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Failover direction.", + SerializedName = @"failoverDirection", + PossibleTypes = new [] { typeof(string) })] + string FailoverDirection { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + /// Source site operations status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Source site operations status.", + SerializedName = @"sourceSiteOperations", + PossibleTypes = new [] { typeof(string) })] + string SourceSiteOperation { get; set; } + + } + /// Input definition for unplanned failover. + internal partial interface IUnplannedFailoverInputInternal + + { + /// Failover direction. + string FailoverDirection { get; set; } + /// Unplanned failover input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputProperties Property { get; set; } + /// Provider specific settings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + /// Source site operations status. + string SourceSiteOperation { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInput.json.cs b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInput.json.cs index 79909beacf74..b932ff7f018b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UnplannedFailoverInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UnplannedFailoverInput(json) : null; } @@ -101,7 +101,7 @@ internal UnplannedFailoverInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInputProperties.PowerShell.cs new file mode 100644 index 000000000000..5c613bcc66f8 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInputProperties.PowerShell.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input definition for unplanned failover input properties. + [System.ComponentModel.TypeConverter(typeof(UnplannedFailoverInputPropertiesTypeConverter))] + public partial class UnplannedFailoverInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUnplannedFailoverInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UnplannedFailoverInputProperties(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.Migrate.Models.Api202301.IUnplannedFailoverInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UnplannedFailoverInputProperties(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.Migrate.Models.Api202301.IUnplannedFailoverInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UnplannedFailoverInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("SourceSiteOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation = (string) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 UnplannedFailoverInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("FailoverDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).FailoverDirection = (string) content.GetValueForProperty("FailoverDirection",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).FailoverDirection, global::System.Convert.ToString); + } + if (content.Contains("SourceSiteOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation = (string) content.GetValueForProperty("SourceSiteOperation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).SourceSiteOperation, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Input definition for unplanned failover input properties. + [System.ComponentModel.TypeConverter(typeof(UnplannedFailoverInputPropertiesTypeConverter))] + public partial interface IUnplannedFailoverInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInputProperties.TypeConverter.cs index 4161fdef592e..b0182c335fb4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInputProperties.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInputProperties.cs index 12a988cebf1d..938dac8877e8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Input definition for unplanned failover input properties. public partial class UnplannedFailoverInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal { /// Backing field for property. @@ -21,18 +21,18 @@ public partial class UnplannedFailoverInputProperties : public string FailoverDirection { get => this._failoverDirection; set => this._failoverDirection = value; } /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput _providerSpecificDetail; /// Provider specific settings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput()); set => this._providerSpecificDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput()); set => this._providerSpecificDetail = value; } /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } /// Backing field for property. private string _sourceSiteOperation; @@ -84,7 +84,7 @@ internal partial interface IUnplannedFailoverInputPropertiesInternal /// Failover direction. string FailoverDirection { get; set; } /// Provider specific settings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput ProviderSpecificDetail { get; set; } /// The class type. string ProviderSpecificDetailInstanceType { get; set; } /// Source site operations status. diff --git a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInputProperties.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInputProperties.json.cs index f6be2c3674e8..81c353ccef0e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UnplannedFailoverInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UnplannedFailoverInputProperties(json) : null; } @@ -103,7 +103,7 @@ internal UnplannedFailoverInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Mig { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UnplannedFailoverProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UnplannedFailoverProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_failoverDirection = If( json?.PropertyT("failoverDirection"), out var __jsonFailoverDirection) ? (string)__jsonFailoverDirection : (string)FailoverDirection;} {_sourceSiteOperation = If( json?.PropertyT("sourceSiteOperations"), out var __jsonSourceSiteOperations) ? (string)__jsonSourceSiteOperations : (string)SourceSiteOperation;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/UnplannedFailoverProviderSpecificInput.PowerShell.cs index 04e363794eb0..8d12efd5556b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class UnplannedFailoverProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UnplannedFailoverProviderSpecificInput(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.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UnplannedFailoverProviderSpecificInput(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnp /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnp public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// 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 UnplannedFailoverProviderSpecificInput(global::System.Collections.IDict // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, 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 UnplannedFailoverProviderSpecificInput(global::System.Management.Automa // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UnplannedFailoverProviderSpecificInput.TypeConverter.cs index 603d80809046..96e1d262980d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/UnplannedFailoverProviderSpecificInput.cs index 9593c58c6cb9..416e91ffbb96 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Provider specific unplanned failover input. public partial class UnplannedFailoverProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverProviderSpecificInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/UnplannedFailoverProviderSpecificInput.json.cs index 18360f44f818..7cc6bf59ae6a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UnplannedFailoverProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UnplannedFailoverProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class UnplannedFailoverProviderSpecificInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput 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.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUnplannedFailoverProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUnplannedFailoverProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInput.PowerShell.cs new file mode 100644 index 000000000000..3bd53047c922 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInput.PowerShell.cs @@ -0,0 +1,173 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Update appliance for replication protected item input. + [System.ComponentModel.TypeConverter(typeof(UpdateApplianceForReplicationProtectedItemInputTypeConverter))] + public partial class UpdateApplianceForReplicationProtectedItemInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdateApplianceForReplicationProtectedItemInput(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.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdateApplianceForReplicationProtectedItemInput(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.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdateApplianceForReplicationProtectedItemInput(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.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("TargetApplianceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).TargetApplianceId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType, 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 UpdateApplianceForReplicationProtectedItemInput(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.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("TargetApplianceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).TargetApplianceId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Update appliance for replication protected item input. + [System.ComponentModel.TypeConverter(typeof(UpdateApplianceForReplicationProtectedItemInputTypeConverter))] + public partial interface IUpdateApplianceForReplicationProtectedItemInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInput.TypeConverter.cs index c69d3d2edc52..b90f511fd3df 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInput.cs b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInput.cs new file mode 100644 index 000000000000..0eee2ea9d79e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInput.cs @@ -0,0 +1,81 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Update appliance for replication protected item input. + public partial class UpdateApplianceForReplicationProtectedItemInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties _property; + + /// Update appliance replication protected item properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemInputProperties()); set => this._property = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ; } + + /// The target appliance Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetApplianceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)Property).TargetApplianceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)Property).TargetApplianceId = value ; } + + /// + /// Creates an new instance. + /// + public UpdateApplianceForReplicationProtectedItemInput() + { + + } + } + /// Update appliance for replication protected item input. + public partial interface IUpdateApplianceForReplicationProtectedItemInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + /// The target appliance Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The target appliance Id.", + SerializedName = @"targetApplianceId", + PossibleTypes = new [] { typeof(string) })] + string TargetApplianceId { get; set; } + + } + /// Update appliance for replication protected item input. + internal partial interface IUpdateApplianceForReplicationProtectedItemInputInternal + + { + /// Update appliance replication protected item properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties Property { get; set; } + /// The provider specific input to update replication protected item. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + /// The target appliance Id. + string TargetApplianceId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInput.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInput.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInput.json.cs index acae468e6fd6..f67cc4c1c1be 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateApplianceForReplicationProtectedItemInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateApplianceForReplicationProtectedItemInput(json) : null; } @@ -104,7 +104,7 @@ internal UpdateApplianceForReplicationProtectedItemInput(Microsoft.Azure.PowerSh { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInputProperties.PowerShell.cs new file mode 100644 index 000000000000..1b7450c144e8 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInputProperties.PowerShell.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Update appliance for protected item input properties. + [System.ComponentModel.TypeConverter(typeof(UpdateApplianceForReplicationProtectedItemInputPropertiesTypeConverter))] + public partial class UpdateApplianceForReplicationProtectedItemInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdateApplianceForReplicationProtectedItemInputProperties(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.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdateApplianceForReplicationProtectedItemInputProperties(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.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdateApplianceForReplicationProtectedItemInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("TargetApplianceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).TargetApplianceId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 UpdateApplianceForReplicationProtectedItemInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemProviderSpecificInputTypeConverter.ConvertFrom); + } + if (content.Contains("TargetApplianceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).TargetApplianceId = (string) content.GetValueForProperty("TargetApplianceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).TargetApplianceId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Update appliance for protected item input properties. + [System.ComponentModel.TypeConverter(typeof(UpdateApplianceForReplicationProtectedItemInputPropertiesTypeConverter))] + public partial interface IUpdateApplianceForReplicationProtectedItemInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInputProperties.TypeConverter.cs index 00d381fe7ace..4c265f7c950e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no /// suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInputProperties.cs new file mode 100644 index 000000000000..3f7222a423a7 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInputProperties.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Update appliance for protected item input properties. + public partial class UpdateApplianceForReplicationProtectedItemInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal + { + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemProviderSpecificInput()); set { {_providerSpecificDetail = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput _providerSpecificDetail; + + /// The provider specific input to update replication protected item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemProviderSpecificInput()); set => this._providerSpecificDetail = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)ProviderSpecificDetail).InstanceType = value ; } + + /// Backing field for property. + private string _targetApplianceId; + + /// The target appliance Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetApplianceId { get => this._targetApplianceId; set => this._targetApplianceId = value; } + + /// + /// Creates an new instance. + /// + public UpdateApplianceForReplicationProtectedItemInputProperties() + { + + } + } + /// Update appliance for protected item input properties. + public partial interface IUpdateApplianceForReplicationProtectedItemInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + /// The target appliance Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The target appliance Id.", + SerializedName = @"targetApplianceId", + PossibleTypes = new [] { typeof(string) })] + string TargetApplianceId { get; set; } + + } + /// Update appliance for protected item input properties. + internal partial interface IUpdateApplianceForReplicationProtectedItemInputPropertiesInternal + + { + /// The provider specific input to update replication protected item. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + /// The target appliance Id. + string TargetApplianceId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInputProperties.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInputProperties.json.cs index 7c55da999b50..711cfa8fcc2f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateApplianceForReplicationProtectedItemInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateApplianceForReplicationProtectedItemInputProperties(json) : null; } @@ -105,7 +105,7 @@ internal UpdateApplianceForReplicationProtectedItemInputProperties(Microsoft.Azu { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateApplianceForReplicationProtectedItemProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateApplianceForReplicationProtectedItemProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_targetApplianceId = If( json?.PropertyT("targetApplianceId"), out var __jsonTargetApplianceId) ? (string)__jsonTargetApplianceId : (string)TargetApplianceId;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.PowerShell.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.PowerShell.cs index 68ef7e089259..1f9ed3a0579d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class UpdateApplianceForReplicationProtectedItemProviderSpecificI partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UpdateApplianceForReplicationProtectedItemProviderSpecificInput(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.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UpdateApplianceForReplicationProtectedItemProviderSpecificInput(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// 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 UpdateApplianceForReplicationProtectedItemProviderSpecificInput(global: // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType, 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 UpdateApplianceForReplicationProtectedItemProviderSpecificInput(global: // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.TypeConverter.cs index f1e9a750fe86..6fde194bd0cd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there /// is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.cs index c4498472ac7e..8d5bb6f1a6c7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Update replication protected item provider specific input. public partial class UpdateApplianceForReplicationProtectedItemProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.json.cs index a8a295ab692c..6027e9f1ca63 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateApplianceForReplicationProtectedItemProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,16 +54,16 @@ public partial class UpdateApplianceForReplicationProtectedItemProviderSpecificI partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput /// 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.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateApplianceForReplicationProtectedItemProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateDiskInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateDiskInput.PowerShell.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/UpdateDiskInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateDiskInput.PowerShell.cs index 6b199a3077d6..0cd50efe58a6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateDiskInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateDiskInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class UpdateDiskInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IUpdateDiskInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UpdateDiskInput(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.Migrate.Models.Api20220501.IUpdateDiskInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UpdateDiskInput(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// 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 UpdateDiskInput(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DiskId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInputInternal)this).DiskId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInputInternal)this).DiskId, global::System.Convert.ToString); } if (content.Contains("TargetDiskName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInputInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInputInternal)this).TargetDiskName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInputInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInputInternal)this).TargetDiskName, 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. @@ -133,11 +133,11 @@ internal UpdateDiskInput(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DiskId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInputInternal)this).DiskId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInputInternal)this).DiskId, global::System.Convert.ToString); } if (content.Contains("TargetDiskName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInputInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInputInternal)this).TargetDiskName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInputInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInputInternal)this).TargetDiskName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateDiskInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateDiskInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/UpdateDiskInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateDiskInput.TypeConverter.cs index 617bcd7bede2..97b7d4f1d41c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateDiskInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateDiskInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateDiskInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateDiskInput.cs b/src/Migrate/generated/api/Models/Api202301/UpdateDiskInput.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateDiskInput.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateDiskInput.cs index 8992950ac7bb..776d2077571e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateDiskInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateDiskInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Disk input for update. public partial class UpdateDiskInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateDiskInput.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateDiskInput.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/UpdateDiskInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateDiskInput.json.cs index 3c23df559df2..8839035cbe68 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateDiskInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateDiskInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateDiskInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateDiskInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateDiskInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateDiskInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInput.PowerShell.cs new file mode 100644 index 000000000000..c9f9f6026e81 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInput.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Update migration item input. + [System.ComponentModel.TypeConverter(typeof(UpdateMigrationItemInputTypeConverter))] + public partial class UpdateMigrationItemInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUpdateMigrationItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdateMigrationItemInput(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.Migrate.Models.Api202301.IUpdateMigrationItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdateMigrationItemInput(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.Migrate.Models.Api202301.IUpdateMigrationItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdateMigrationItemInput(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.Migrate.Models.Api202301.IUpdateMigrationItemInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemProviderSpecificInputTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal UpdateMigrationItemInput(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.Migrate.Models.Api202301.IUpdateMigrationItemInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemProviderSpecificInputTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + } + /// Update migration item input. + [System.ComponentModel.TypeConverter(typeof(UpdateMigrationItemInputTypeConverter))] + public partial interface IUpdateMigrationItemInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInput.TypeConverter.cs index 49b07d2317d9..8169819d5d36 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateMigrationItemInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInput.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInput.cs new file mode 100644 index 000000000000..93b8e085c9c1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Update migration item input. + public partial class UpdateMigrationItemInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties _property; + + /// Update migration item input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemInputProperties()); set => this._property = value; } + + /// The provider specific input to update migration item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputPropertiesInternal)Property).ProviderSpecificDetail = value ?? null /* model class */; } + + /// Creates an new instance. + public UpdateMigrationItemInput() + { + + } + } + /// Update migration item input. + public partial interface IUpdateMigrationItemInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The provider specific input to update migration item. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The provider specific input to update migration item.", + SerializedName = @"providerSpecificDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput ProviderSpecificDetail { get; set; } + + } + /// Update migration item input. + internal partial interface IUpdateMigrationItemInputInternal + + { + /// Update migration item input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties Property { get; set; } + /// The provider specific input to update migration item. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput ProviderSpecificDetail { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInput.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInput.json.cs index 4321dba8c3ec..fe0ff2f8ec22 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateMigrationItemInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateMigrationItemInput(json) : null; } @@ -101,7 +101,7 @@ internal UpdateMigrationItemInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInputProperties.PowerShell.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInputProperties.PowerShell.cs index a0c6b545cf50..cd15a5b4b651 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class UpdateMigrationItemInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UpdateMigrationItemInputProperties(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.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UpdateMigrationItemInputProperties(content); } @@ -89,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -97,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,13 +112,13 @@ internal UpdateMigrationItemInputProperties(global::System.Collections.IDictiona // actually deserialize if (content.Contains("ProviderSpecificDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemProviderSpecificInputTypeConverter.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,7 +133,7 @@ internal UpdateMigrationItemInputProperties(global::System.Management.Automation // actually deserialize if (content.Contains("ProviderSpecificDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemProviderSpecificInputTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInputProperties.TypeConverter.cs index 03aa473ce71f..4870869a2f9d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInputProperties.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInputProperties.cs index 822e97953bda..8764c8609544 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInputProperties.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Update migration item input properties. public partial class UpdateMigrationItemInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput _providerSpecificDetail; /// The provider specific input to update migration item. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemProviderSpecificInput()); set => this._providerSpecificDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemProviderSpecificInput()); set => this._providerSpecificDetail = value; } /// Creates an new instance. public UpdateMigrationItemInputProperties() @@ -36,8 +36,8 @@ public partial interface IUpdateMigrationItemInputProperties : ReadOnly = false, Description = @"The provider specific input to update migration item.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput ProviderSpecificDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput ProviderSpecificDetail { get; set; } } /// Update migration item input properties. @@ -45,7 +45,7 @@ internal partial interface IUpdateMigrationItemInputPropertiesInternal { /// The provider specific input to update migration item. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput ProviderSpecificDetail { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInputProperties.json.cs index d68f0a533bdc..8be8d6158d4b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateMigrationItemInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateMigrationItemInputProperties(json) : null; } @@ -102,7 +102,7 @@ internal UpdateMigrationItemInputProperties(Microsoft.Azure.PowerShell.Cmdlets.M { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemProviderSpecificInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemProviderSpecificInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemProviderSpecificInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemProviderSpecificInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemProviderSpecificInput.PowerShell.cs index d9606127b5d2..a7ccb727fa18 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemProviderSpecificInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class UpdateMigrationItemProviderSpecificInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UpdateMigrationItemProviderSpecificInput(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.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UpdateMigrationItemProviderSpecificInput(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// 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 UpdateMigrationItemProviderSpecificInput(global::System.Collections.IDi // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType, 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 UpdateMigrationItemProviderSpecificInput(global::System.Management.Auto // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemProviderSpecificInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemProviderSpecificInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemProviderSpecificInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemProviderSpecificInput.TypeConverter.cs index 25d9eed4dd95..e671a89b5406 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemProviderSpecificInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemProviderSpecificInput.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemProviderSpecificInput.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemProviderSpecificInput.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemProviderSpecificInput.cs index 7bf5abee1cb5..002cad2b7175 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemProviderSpecificInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Update migration item provider specific input. public partial class UpdateMigrationItemProviderSpecificInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemProviderSpecificInput.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemProviderSpecificInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemProviderSpecificInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemProviderSpecificInput.json.cs index edb349de4897..eef3e3064277 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMigrationItemProviderSpecificInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMigrationItemProviderSpecificInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class UpdateMigrationItemProviderSpecificInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput 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.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequest.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequest.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequest.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequest.PowerShell.cs index a2cafe71193e..39250c721eec 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequest.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequest.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,27 @@ public partial class UpdateMobilityServiceRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IUpdateMobilityServiceRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UpdateMobilityServiceRequest(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.Migrate.Models.Api20220501.IUpdateMobilityServiceRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UpdateMobilityServiceRequest(content); } @@ -87,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,17 +108,17 @@ internal UpdateMobilityServiceRequest(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMobilityServiceRequestPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMobilityServiceRequestPropertiesTypeConverter.ConvertFrom); } if (content.Contains("RunAsAccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestInternal)this).RunAsAccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestInternal)this).RunAsAccountId, 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. @@ -135,11 +133,11 @@ internal UpdateMobilityServiceRequest(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMobilityServiceRequestPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMobilityServiceRequestPropertiesTypeConverter.ConvertFrom); } if (content.Contains("RunAsAccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestInternal)this).RunAsAccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestInternal)this).RunAsAccountId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequest.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequest.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequest.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequest.TypeConverter.cs index 82adbd608a65..3ac8c0670557 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequest.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequest.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateMobilityServiceRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequest.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequest.cs new file mode 100644 index 000000000000..1a10daf9935a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequest.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Request to update the mobility service on a protected item. + public partial class UpdateMobilityServiceRequest : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequest, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMobilityServiceRequestProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties _property; + + /// The properties of the update mobility service request. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMobilityServiceRequestProperties()); set => this._property = value; } + + /// The CS run as account Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RunAsAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestPropertiesInternal)Property).RunAsAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestPropertiesInternal)Property).RunAsAccountId = value ?? null; } + + /// Creates an new instance. + public UpdateMobilityServiceRequest() + { + + } + } + /// Request to update the mobility service on a protected item. + public partial interface IUpdateMobilityServiceRequest : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The CS run as account Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The CS run as account Id.", + SerializedName = @"runAsAccountId", + PossibleTypes = new [] { typeof(string) })] + string RunAsAccountId { get; set; } + + } + /// Request to update the mobility service on a protected item. + internal partial interface IUpdateMobilityServiceRequestInternal + + { + /// The properties of the update mobility service request. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties Property { get; set; } + /// The CS run as account Id. + string RunAsAccountId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequest.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequest.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequest.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequest.json.cs index fc57fb45fdfb..e9dd010768c7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequest.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequest.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateMobilityServiceRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateMobilityServiceRequest(json) : null; } @@ -101,7 +101,7 @@ internal UpdateMobilityServiceRequest(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMobilityServiceRequestProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMobilityServiceRequestProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequestProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequestProperties.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequestProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequestProperties.PowerShell.cs index 4d9d3ab5b541..14f8680854e4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequestProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class UpdateMobilityServiceRequestProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UpdateMobilityServiceRequestProperties(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.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UpdateMobilityServiceRequestProperties(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// 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 UpdateMobilityServiceRequestProperties(global::System.Collections.IDict // actually deserialize if (content.Contains("RunAsAccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestPropertiesInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestPropertiesInternal)this).RunAsAccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestPropertiesInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestPropertiesInternal)this).RunAsAccountId, 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 UpdateMobilityServiceRequestProperties(global::System.Management.Automa // actually deserialize if (content.Contains("RunAsAccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestPropertiesInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestPropertiesInternal)this).RunAsAccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestPropertiesInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestPropertiesInternal)this).RunAsAccountId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequestProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequestProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequestProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequestProperties.TypeConverter.cs index 33514223a389..b8548fd66b55 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequestProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequestProperties.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequestProperties.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequestProperties.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequestProperties.cs index 5929bbc8d9d0..505e5a1a20ff 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequestProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The properties of an update mobility service request. public partial class UpdateMobilityServiceRequestProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequestProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequestProperties.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequestProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequestProperties.json.cs index e6ea73acd850..d4af8a43989a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateMobilityServiceRequestProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateMobilityServiceRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateMobilityServiceRequestProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMobilityServiceRequestProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMobilityServiceRequestProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateMobilityServiceRequestProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInput.PowerShell.cs new file mode 100644 index 000000000000..8ff9686d4ce8 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInput.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Update network mapping input. + [System.ComponentModel.TypeConverter(typeof(UpdateNetworkMappingInputTypeConverter))] + public partial class UpdateNetworkMappingInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUpdateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdateNetworkMappingInput(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.Migrate.Models.Api202301.IUpdateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdateNetworkMappingInput(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.Migrate.Models.Api202301.IUpdateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdateNetworkMappingInput(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.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateNetworkMappingInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FabricSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).RecoveryFabricName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).RecoveryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType, 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 UpdateNetworkMappingInput(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.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateNetworkMappingInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FabricSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).RecoveryFabricName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).RecoveryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal)this).FabricSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Update network mapping input. + [System.ComponentModel.TypeConverter(typeof(UpdateNetworkMappingInputTypeConverter))] + public partial interface IUpdateNetworkMappingInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInput.TypeConverter.cs index 1edc18408a4e..fd7054f39c1e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateNetworkMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInput.cs new file mode 100644 index 000000000000..783a1406ae13 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInput.cs @@ -0,0 +1,93 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Update network mapping input. + public partial class UpdateNetworkMappingInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal + { + + /// The instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetailInstanceType = value ?? null; } + + /// Internal Acessors for FabricSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal.FabricSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)Property).FabricSpecificDetail = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateNetworkMappingInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties _property; + + /// The input properties needed to update network mapping. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateNetworkMappingInputProperties()); set => this._property = value; } + + /// Recovery fabric name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryFabricName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)Property).RecoveryFabricName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)Property).RecoveryFabricName = value ?? null; } + + /// Recovery network Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)Property).RecoveryNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)Property).RecoveryNetworkId = value ?? null; } + + /// Creates an new instance. + public UpdateNetworkMappingInput() + { + + } + } + /// Update network mapping input. + public partial interface IUpdateNetworkMappingInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The instance type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string FabricSpecificDetailInstanceType { get; set; } + /// Recovery fabric name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Recovery fabric name.", + SerializedName = @"recoveryFabricName", + PossibleTypes = new [] { typeof(string) })] + string RecoveryFabricName { get; set; } + /// Recovery network Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Recovery network Id.", + SerializedName = @"recoveryNetworkId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryNetworkId { get; set; } + + } + /// Update network mapping input. + internal partial interface IUpdateNetworkMappingInputInternal + + { + /// Fabrics specific input network Id. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput FabricSpecificDetail { get; set; } + /// The instance type. + string FabricSpecificDetailInstanceType { get; set; } + /// The input properties needed to update network mapping. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties Property { get; set; } + /// Recovery fabric name. + string RecoveryFabricName { get; set; } + /// Recovery network Id. + string RecoveryNetworkId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInput.json.cs index 896d7cdc574b..5d86b795dbdb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateNetworkMappingInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateNetworkMappingInput(json) : null; } @@ -101,7 +101,7 @@ internal UpdateNetworkMappingInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateNetworkMappingInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateNetworkMappingInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInputProperties.PowerShell.cs new file mode 100644 index 000000000000..4fbd3621e00c --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInputProperties.PowerShell.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Common input details for network mapping operation. + [System.ComponentModel.TypeConverter(typeof(UpdateNetworkMappingInputPropertiesTypeConverter))] + public partial class UpdateNetworkMappingInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdateNetworkMappingInputProperties(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.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdateNetworkMappingInputProperties(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.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdateNetworkMappingInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FabricSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType, 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 UpdateNetworkMappingInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FabricSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput) content.GetValueForProperty("FabricSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryFabricName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName = (string) content.GetValueForProperty("RecoveryFabricName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryFabricName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId = (string) content.GetValueForProperty("RecoveryNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).RecoveryNetworkId, global::System.Convert.ToString); + } + if (content.Contains("FabricSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType = (string) content.GetValueForProperty("FabricSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal)this).FabricSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Common input details for network mapping operation. + [System.ComponentModel.TypeConverter(typeof(UpdateNetworkMappingInputPropertiesTypeConverter))] + public partial interface IUpdateNetworkMappingInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInputProperties.TypeConverter.cs index 2c42b221fd8c..24538e1563ad 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInputProperties.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInputProperties.cs index 85c75be5fddb..c974f9bf010d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Common input details for network mapping operation. public partial class UpdateNetworkMappingInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput _fabricSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput _fabricSpecificDetail; /// Fabrics specific input network Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput FabricSpecificDetail { get => (this._fabricSpecificDetail = this._fabricSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInput()); set => this._fabricSpecificDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput FabricSpecificDetail { get => (this._fabricSpecificDetail = this._fabricSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInput()); set => this._fabricSpecificDetail = value; } /// The instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)FabricSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)FabricSpecificDetail).InstanceType = value ?? null; } + public string FabricSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)FabricSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)FabricSpecificDetail).InstanceType = value ?? null; } /// Internal Acessors for FabricSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputPropertiesInternal.FabricSpecificDetail { get => (this._fabricSpecificDetail = this._fabricSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInput()); set { {_fabricSpecificDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputPropertiesInternal.FabricSpecificDetail { get => (this._fabricSpecificDetail = this._fabricSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInput()); set { {_fabricSpecificDetail = value;} } } /// Backing field for property. private string _recoveryFabricName; @@ -82,7 +82,7 @@ internal partial interface IUpdateNetworkMappingInputPropertiesInternal { /// Fabrics specific input network Id. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput FabricSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput FabricSpecificDetail { get; set; } /// The instance type. string FabricSpecificDetailInstanceType { get; set; } /// Recovery fabric name. diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInputProperties.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInputProperties.json.cs index 9592f8a76874..2f01d59bb510 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateNetworkMappingInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateNetworkMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateNetworkMappingInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateNetworkMappingInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateNetworkMappingInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateNetworkMappingInputProperties(json) : null; } @@ -104,7 +104,7 @@ internal UpdateNetworkMappingInputProperties(Microsoft.Azure.PowerShell.Cmdlets. { return; } - {_fabricSpecificDetail = If( json?.PropertyT("fabricSpecificDetails"), out var __jsonFabricSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInput.FromJson(__jsonFabricSpecificDetails) : FabricSpecificDetail;} + {_fabricSpecificDetail = If( json?.PropertyT("fabricSpecificDetails"), out var __jsonFabricSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInput.FromJson(__jsonFabricSpecificDetails) : FabricSpecificDetail;} {_recoveryFabricName = If( json?.PropertyT("recoveryFabricName"), out var __jsonRecoveryFabricName) ? (string)__jsonRecoveryFabricName : (string)RecoveryFabricName;} {_recoveryNetworkId = If( json?.PropertyT("recoveryNetworkId"), out var __jsonRecoveryNetworkId) ? (string)__jsonRecoveryNetworkId : (string)RecoveryNetworkId;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInput.PowerShell.cs new file mode 100644 index 000000000000..c6feef742932 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInput.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Update policy input. + [System.ComponentModel.TypeConverter(typeof(UpdatePolicyInputTypeConverter))] + public partial class UpdatePolicyInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUpdatePolicyInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdatePolicyInput(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.Migrate.Models.Api202301.IUpdatePolicyInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdatePolicyInput(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.Migrate.Models.Api202301.IUpdatePolicyInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdatePolicyInput(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.Migrate.Models.Api202301.IUpdatePolicyInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdatePolicyInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ReplicationProviderSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputInternal)this).ReplicationProviderSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput) content.GetValueForProperty("ReplicationProviderSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputInternal)this).ReplicationProviderSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInputTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal UpdatePolicyInput(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.Migrate.Models.Api202301.IUpdatePolicyInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdatePolicyInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ReplicationProviderSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputInternal)this).ReplicationProviderSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput) content.GetValueForProperty("ReplicationProviderSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputInternal)this).ReplicationProviderSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInputTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + } + /// Update policy input. + [System.ComponentModel.TypeConverter(typeof(UpdatePolicyInputTypeConverter))] + public partial interface IUpdatePolicyInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdatePolicyInput.TypeConverter.cs index 40d3d51eb2a2..f4db648feb7b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdatePolicyInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInput.cs b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInput.cs new file mode 100644 index 000000000000..6195e5823ae8 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Update policy input. + public partial class UpdatePolicyInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdatePolicyInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties _property; + + /// The ReplicationProviderSettings. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdatePolicyInputProperties()); set => this._property = value; } + + /// The ReplicationProviderSettings. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput ReplicationProviderSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputPropertiesInternal)Property).ReplicationProviderSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputPropertiesInternal)Property).ReplicationProviderSetting = value ?? null /* model class */; } + + /// Creates an new instance. + public UpdatePolicyInput() + { + + } + } + /// Update policy input. + public partial interface IUpdatePolicyInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The ReplicationProviderSettings. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The ReplicationProviderSettings.", + SerializedName = @"replicationProviderSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput ReplicationProviderSetting { get; set; } + + } + /// Update policy input. + internal partial interface IUpdatePolicyInputInternal + + { + /// The ReplicationProviderSettings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties Property { get; set; } + /// The ReplicationProviderSettings. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput ReplicationProviderSetting { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInput.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdatePolicyInput.json.cs index 12795118237d..c7962f33e1c4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdatePolicyInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdatePolicyInput(json) : null; } @@ -101,7 +101,7 @@ internal UpdatePolicyInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdatePolicyInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdatePolicyInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInputProperties.PowerShell.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/UpdatePolicyInputProperties.PowerShell.cs index b38130f5a719..4be558465336 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,27 @@ public partial class UpdatePolicyInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IUpdatePolicyInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UpdatePolicyInputProperties(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.Migrate.Models.Api20220501.IUpdatePolicyInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UpdatePolicyInputProperties(content); } @@ -87,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,13 +108,13 @@ internal UpdatePolicyInputProperties(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("ReplicationProviderSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputPropertiesInternal)this).ReplicationProviderSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput) content.GetValueForProperty("ReplicationProviderSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputPropertiesInternal)this).ReplicationProviderSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputPropertiesInternal)this).ReplicationProviderSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput) content.GetValueForProperty("ReplicationProviderSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputPropertiesInternal)this).ReplicationProviderSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInputTypeConverter.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. @@ -131,7 +129,7 @@ internal UpdatePolicyInputProperties(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("ReplicationProviderSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputPropertiesInternal)this).ReplicationProviderSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput) content.GetValueForProperty("ReplicationProviderSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputPropertiesInternal)this).ReplicationProviderSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInputTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputPropertiesInternal)this).ReplicationProviderSetting = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput) content.GetValueForProperty("ReplicationProviderSetting",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputPropertiesInternal)this).ReplicationProviderSetting, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInputTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdatePolicyInputProperties.TypeConverter.cs index c0b909f79004..ac2413cc7f6f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdatePolicyInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInputProperties.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/UpdatePolicyInputProperties.cs index e8b900442acf..19a5d53dba8b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInputProperties.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Policy update properties. public partial class UpdatePolicyInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput _replicationProviderSetting; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput _replicationProviderSetting; /// The ReplicationProviderSettings. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput ReplicationProviderSetting { get => (this._replicationProviderSetting = this._replicationProviderSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput()); set => this._replicationProviderSetting = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput ReplicationProviderSetting { get => (this._replicationProviderSetting = this._replicationProviderSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput()); set => this._replicationProviderSetting = value; } /// Creates an new instance. public UpdatePolicyInputProperties() @@ -36,8 +36,8 @@ public partial interface IUpdatePolicyInputProperties : ReadOnly = false, Description = @"The ReplicationProviderSettings.", SerializedName = @"replicationProviderSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput ReplicationProviderSetting { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput ReplicationProviderSetting { get; set; } } /// Policy update properties. @@ -45,7 +45,7 @@ internal partial interface IUpdatePolicyInputPropertiesInternal { /// The ReplicationProviderSettings. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput ReplicationProviderSetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput ReplicationProviderSetting { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInputProperties.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdatePolicyInputProperties.json.cs index 26930b7a7dbd..9e2e5a2ac434 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdatePolicyInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdatePolicyInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdatePolicyInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdatePolicyInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdatePolicyInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdatePolicyInputProperties(json) : null; } @@ -101,7 +101,7 @@ internal UpdatePolicyInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - {_replicationProviderSetting = If( json?.PropertyT("replicationProviderSettings"), out var __jsonReplicationProviderSettings) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput.FromJson(__jsonReplicationProviderSettings) : ReplicationProviderSetting;} + {_replicationProviderSetting = If( json?.PropertyT("replicationProviderSettings"), out var __jsonReplicationProviderSettings) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput.FromJson(__jsonReplicationProviderSettings) : ReplicationProviderSetting;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInput.PowerShell.cs new file mode 100644 index 000000000000..35b2dcaf1e69 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInput.PowerShell.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Container pairing update input. + [System.ComponentModel.TypeConverter(typeof(UpdateProtectionContainerMappingInputTypeConverter))] + public partial class UpdateProtectionContainerMappingInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdateProtectionContainerMappingInput(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.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdateProtectionContainerMappingInput(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.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdateProtectionContainerMappingInput(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.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateProtectionContainerMappingInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificUpdateContainerMappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInputInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType, 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 UpdateProtectionContainerMappingInput(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.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateProtectionContainerMappingInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificUpdateContainerMappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInputInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal)this).ProviderSpecificInputInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Container pairing update input. + [System.ComponentModel.TypeConverter(typeof(UpdateProtectionContainerMappingInputTypeConverter))] + public partial interface IUpdateProtectionContainerMappingInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInput.TypeConverter.cs index c00f13975dc4..bc9548e0d377 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInput.cs new file mode 100644 index 000000000000..5eeff8e56dbf --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInput.cs @@ -0,0 +1,65 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Container pairing update input. + public partial class UpdateProtectionContainerMappingInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateProtectionContainerMappingInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputInternal.ProviderSpecificInput { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInput; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInput = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties _property; + + /// Update protection container mapping input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateProtectionContainerMappingInputProperties()); set => this._property = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificInputInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInputInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputPropertiesInternal)Property).ProviderSpecificInputInstanceType = value ?? null; } + + /// Creates an new instance. + public UpdateProtectionContainerMappingInput() + { + + } + } + /// Container pairing update input. + public partial interface IUpdateProtectionContainerMappingInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificInputInstanceType { get; set; } + + } + /// Container pairing update input. + internal partial interface IUpdateProtectionContainerMappingInputInternal + + { + /// Update protection container mapping input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties Property { get; set; } + /// Provider specific input for updating protection container mapping. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput ProviderSpecificInput { get; set; } + /// The class type. + string ProviderSpecificInputInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInput.json.cs index 9ed636cd3c96..72f30d2d6d37 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateProtectionContainerMappingInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateProtectionContainerMappingInput(json) : null; } @@ -102,7 +102,7 @@ internal UpdateProtectionContainerMappingInput(Microsoft.Azure.PowerShell.Cmdlet { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateProtectionContainerMappingInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateProtectionContainerMappingInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInputProperties.PowerShell.cs new file mode 100644 index 000000000000..3e3a063ccd1f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInputProperties.PowerShell.cs @@ -0,0 +1,157 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Container pairing update input. + [System.ComponentModel.TypeConverter(typeof(UpdateProtectionContainerMappingInputPropertiesTypeConverter))] + public partial class UpdateProtectionContainerMappingInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdateProtectionContainerMappingInputProperties(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.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdateProtectionContainerMappingInputProperties(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.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdateProtectionContainerMappingInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificUpdateContainerMappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInputInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType, 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 UpdateProtectionContainerMappingInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificInput")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput) content.GetValueForProperty("ProviderSpecificInput",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInput, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificUpdateContainerMappingInputTypeConverter.ConvertFrom); + } + if (content.Contains("ProviderSpecificInputInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType = (string) content.GetValueForProperty("ProviderSpecificInputInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputPropertiesInternal)this).ProviderSpecificInputInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Container pairing update input. + [System.ComponentModel.TypeConverter(typeof(UpdateProtectionContainerMappingInputPropertiesTypeConverter))] + public partial interface IUpdateProtectionContainerMappingInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInputProperties.TypeConverter.cs index 9a3d8293cd1b..54a5a4572072 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInputProperties.cs new file mode 100644 index 000000000000..70d9002f7671 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInputProperties.cs @@ -0,0 +1,62 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Container pairing update input. + public partial class UpdateProtectionContainerMappingInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputPropertiesInternal + { + + /// Internal Acessors for ProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputPropertiesInternal.ProviderSpecificInput { get => (this._providerSpecificInput = this._providerSpecificInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificUpdateContainerMappingInput()); set { {_providerSpecificInput = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput _providerSpecificInput; + + /// Provider specific input for updating protection container mapping. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput ProviderSpecificInput { get => (this._providerSpecificInput = this._providerSpecificInput ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificUpdateContainerMappingInput()); set => this._providerSpecificInput = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificInputInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)ProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInputInternal)ProviderSpecificInput).InstanceType = value ?? null; } + + /// + /// Creates an new instance. + /// + public UpdateProtectionContainerMappingInputProperties() + { + + } + } + /// Container pairing update input. + public partial interface IUpdateProtectionContainerMappingInputProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificInputInstanceType { get; set; } + + } + /// Container pairing update input. + internal partial interface IUpdateProtectionContainerMappingInputPropertiesInternal + + { + /// Provider specific input for updating protection container mapping. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificUpdateContainerMappingInput ProviderSpecificInput { get; set; } + /// The class type. + string ProviderSpecificInputInstanceType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInputProperties.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInputProperties.json.cs index 28ef31b7ac86..0a5bf70e6184 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateProtectionContainerMappingInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateProtectionContainerMappingInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateProtectionContainerMappingInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateProtectionContainerMappingInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateProtectionContainerMappingInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateProtectionContainerMappingInputProperties(json) : null; } @@ -104,7 +104,7 @@ internal UpdateProtectionContainerMappingInputProperties(Microsoft.Azure.PowerSh { return; } - {_providerSpecificInput = If( json?.PropertyT("providerSpecificInput"), out var __jsonProviderSpecificInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificUpdateContainerMappingInput.FromJson(__jsonProviderSpecificInput) : ProviderSpecificInput;} + {_providerSpecificInput = If( json?.PropertyT("providerSpecificInput"), out var __jsonProviderSpecificInput) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificUpdateContainerMappingInput.FromJson(__jsonProviderSpecificInput) : ProviderSpecificInput;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInput.PowerShell.cs new file mode 100644 index 000000000000..b79a176a6746 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInput.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Update recovery plan input class. + [System.ComponentModel.TypeConverter(typeof(UpdateRecoveryPlanInputTypeConverter))] + public partial class UpdateRecoveryPlanInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUpdateRecoveryPlanInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdateRecoveryPlanInput(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.Migrate.Models.Api202301.IUpdateRecoveryPlanInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdateRecoveryPlanInput(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.Migrate.Models.Api202301.IUpdateRecoveryPlanInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdateRecoveryPlanInput(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.Migrate.Models.Api202301.IUpdateRecoveryPlanInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateRecoveryPlanInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Group")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal UpdateRecoveryPlanInput(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.Migrate.Models.Api202301.IUpdateRecoveryPlanInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateRecoveryPlanInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Group")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + } + /// Update recovery plan input class. + [System.ComponentModel.TypeConverter(typeof(UpdateRecoveryPlanInputTypeConverter))] + public partial interface IUpdateRecoveryPlanInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInput.TypeConverter.cs index 767041b35c64..b10fc1c5fd8d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateRecoveryPlanInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInput.cs b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInput.cs new file mode 100644 index 000000000000..6852c50cd8cc --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInput.cs @@ -0,0 +1,60 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Update recovery plan input class. + public partial class UpdateRecoveryPlanInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputInternal + { + + /// The recovery plan groups. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputPropertiesInternal)Property).Group; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputPropertiesInternal)Property).Group = value ?? null /* arrayOf */; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateRecoveryPlanInputProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties _property; + + /// Recovery plan update properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateRecoveryPlanInputProperties()); set => this._property = value; } + + /// Creates an new instance. + public UpdateRecoveryPlanInput() + { + + } + } + /// Update recovery plan input class. + public partial interface IUpdateRecoveryPlanInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The recovery plan groups. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The recovery plan groups.", + SerializedName = @"groups", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get; set; } + + } + /// Update recovery plan input class. + internal partial interface IUpdateRecoveryPlanInputInternal + + { + /// The recovery plan groups. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get; set; } + /// Recovery plan update properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInput.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInput.json.cs index b1efaef9178b..b587edeb5534 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateRecoveryPlanInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateRecoveryPlanInput(json) : null; } @@ -101,7 +101,7 @@ internal UpdateRecoveryPlanInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateRecoveryPlanInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateRecoveryPlanInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInputProperties.PowerShell.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInputProperties.PowerShell.cs index 0e384fea1a19..cfeddc7a9a47 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class UpdateRecoveryPlanInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UpdateRecoveryPlanInputProperties(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.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UpdateRecoveryPlanInputProperties(content); } @@ -89,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -97,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,13 +112,13 @@ internal UpdateRecoveryPlanInputProperties(global::System.Collections.IDictionar // actually deserialize if (content.Contains("Group")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputPropertiesInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputPropertiesInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputPropertiesInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputPropertiesInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTypeConverter.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,7 +133,7 @@ internal UpdateRecoveryPlanInputProperties(global::System.Management.Automation. // actually deserialize if (content.Contains("Group")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputPropertiesInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputPropertiesInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroupTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputPropertiesInternal)this).Group = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[]) content.GetValueForProperty("Group",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputPropertiesInternal)this).Group, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroupTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInputProperties.TypeConverter.cs index c88109bcd0d5..1c0f9f33a159 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInputProperties.cs similarity index 84% rename from src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInputProperties.cs index 467a0065ba31..88b8c79a8bf9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInputProperties.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Recovery plan update properties. public partial class UpdateRecoveryPlanInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] _group; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] _group; /// The recovery plan groups. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get => this._group; set => this._group = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get => this._group; set => this._group = value; } /// Creates an new instance. public UpdateRecoveryPlanInputProperties() @@ -36,8 +36,8 @@ public partial interface IUpdateRecoveryPlanInputProperties : ReadOnly = false, Description = @"The recovery plan groups.", SerializedName = @"groups", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get; set; } } /// Recovery plan update properties. @@ -45,7 +45,7 @@ internal partial interface IUpdateRecoveryPlanInputPropertiesInternal { /// The recovery plan groups. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryPlanGroup[] Group { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryPlanGroup[] Group { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInputProperties.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInputProperties.json.cs index 5a8285ef1c4d..de815e67a214 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateRecoveryPlanInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateRecoveryPlanInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateRecoveryPlanInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateRecoveryPlanInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateRecoveryPlanInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateRecoveryPlanInputProperties(json) : null; } @@ -109,7 +109,7 @@ internal UpdateRecoveryPlanInputProperties(Microsoft.Azure.PowerShell.Cmdlets.Mi { return; } - {_group = If( json?.PropertyT("groups"), out var __jsonGroups) ? If( __jsonGroups as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IRecoveryPlanGroup) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RecoveryPlanGroup.FromJson(__u) )) ))() : null : Group;} + {_group = If( json?.PropertyT("groups"), out var __jsonGroups) ? If( __jsonGroups as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IRecoveryPlanGroup) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RecoveryPlanGroup.FromJson(__u) )) ))() : null : Group;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInput.PowerShell.cs new file mode 100644 index 000000000000..4c84a6b5e5b6 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInput.PowerShell.cs @@ -0,0 +1,236 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Update replication protected item input. + [System.ComponentModel.TypeConverter(typeof(UpdateReplicationProtectedItemInputTypeConverter))] + public partial class UpdateReplicationProtectedItemInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdateReplicationProtectedItemInput(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.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdateReplicationProtectedItemInput(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.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdateReplicationProtectedItemInput(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.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); + } + if (content.Contains("SelectedRecoveryAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedTfoAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedSourceNicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).SelectedSourceNicId, global::System.Convert.ToString); + } + if (content.Contains("EnableRdpOnTargetOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType, 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 UpdateReplicationProtectedItemInput(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.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); + } + if (content.Contains("SelectedRecoveryAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedTfoAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedSourceNicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).SelectedSourceNicId, global::System.Convert.ToString); + } + if (content.Contains("EnableRdpOnTargetOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("RecoveryAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Update replication protected item input. + [System.ComponentModel.TypeConverter(typeof(UpdateReplicationProtectedItemInputTypeConverter))] + public partial interface IUpdateReplicationProtectedItemInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInput.TypeConverter.cs index 549c87d0dccd..008a83e95506 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInput.cs b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInput.cs new file mode 100644 index 000000000000..91d6c007340b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInput.cs @@ -0,0 +1,206 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Update replication protected item input. + public partial class UpdateReplicationProtectedItemInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal + { + + /// + /// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption + /// enum. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string EnableRdpOnTargetOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).EnableRdpOnTargetOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).EnableRdpOnTargetOption = value ?? null; } + + /// License type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).LicenseType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).LicenseType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType)""); } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemInputProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProviderSpecificDetail + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputInternal.ProviderSpecificDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetail = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties _property; + + /// Update replication protected item properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemInputProperties()); set => this._property = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).ProviderSpecificDetailInstanceType = value ?? null; } + + /// The target availability set Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryAvailabilitySetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).RecoveryAvailabilitySetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).RecoveryAvailabilitySetId = value ?? null; } + + /// Target Azure VM name given by the user. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryAzureVMName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).RecoveryAzureVMName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).RecoveryAzureVMName = value ?? null; } + + /// Target Azure VM size. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RecoveryAzureVMSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).RecoveryAzureVMSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).RecoveryAzureVMSize = value ?? null; } + + /// Target Azure Network Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SelectedRecoveryAzureNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).SelectedRecoveryAzureNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).SelectedRecoveryAzureNetworkId = value ?? null; } + + /// + /// The selected source nic Id which will be used as the primary nic during failover. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SelectedSourceNicId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).SelectedSourceNicId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).SelectedSourceNicId = value ?? null; } + + /// The Azure Network Id for test failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string SelectedTfoAzureNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).SelectedTfoAzureNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).SelectedTfoAzureNetworkId = value ?? null; } + + /// The list of VM nic details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails[] VMNic { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).VMNic; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)Property).VMNic = value ?? null /* arrayOf */; } + + /// Creates an new instance. + public UpdateReplicationProtectedItemInput() + { + + } + } + /// Update replication protected item input. + public partial interface IUpdateReplicationProtectedItemInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// + /// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption + /// enum. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption enum.", + SerializedName = @"enableRdpOnTargetOption", + PossibleTypes = new [] { typeof(string) })] + string EnableRdpOnTargetOption { get; set; } + /// License type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"License type.", + SerializedName = @"licenseType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get; set; } + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The class type.", + SerializedName = @"instanceType", + PossibleTypes = new [] { typeof(string) })] + string ProviderSpecificDetailInstanceType { get; set; } + /// The target availability set Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target availability set Id.", + SerializedName = @"recoveryAvailabilitySetId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryAvailabilitySetId { get; set; } + /// Target Azure VM name given by the user. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Target Azure VM name given by the user.", + SerializedName = @"recoveryAzureVMName", + PossibleTypes = new [] { typeof(string) })] + string RecoveryAzureVMName { get; set; } + /// Target Azure VM size. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Target Azure VM size.", + SerializedName = @"recoveryAzureVMSize", + PossibleTypes = new [] { typeof(string) })] + string RecoveryAzureVMSize { get; set; } + /// Target Azure Network Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Target Azure Network Id.", + SerializedName = @"selectedRecoveryAzureNetworkId", + PossibleTypes = new [] { typeof(string) })] + string SelectedRecoveryAzureNetworkId { get; set; } + /// + /// The selected source nic Id which will be used as the primary nic during failover. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The selected source nic Id which will be used as the primary nic during failover.", + SerializedName = @"selectedSourceNicId", + PossibleTypes = new [] { typeof(string) })] + string SelectedSourceNicId { get; set; } + /// The Azure Network Id for test failover. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The Azure Network Id for test failover.", + SerializedName = @"selectedTfoAzureNetworkId", + PossibleTypes = new [] { typeof(string) })] + string SelectedTfoAzureNetworkId { get; set; } + /// The list of VM nic details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of VM nic details.", + SerializedName = @"vmNics", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails[] VMNic { get; set; } + + } + /// Update replication protected item input. + internal partial interface IUpdateReplicationProtectedItemInputInternal + + { + /// + /// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption + /// enum. + /// + string EnableRdpOnTargetOption { get; set; } + /// License type. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get; set; } + /// Update replication protected item properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties Property { get; set; } + /// The provider specific input to update replication protected item. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput ProviderSpecificDetail { get; set; } + /// The class type. + string ProviderSpecificDetailInstanceType { get; set; } + /// The target availability set Id. + string RecoveryAvailabilitySetId { get; set; } + /// Target Azure VM name given by the user. + string RecoveryAzureVMName { get; set; } + /// Target Azure VM size. + string RecoveryAzureVMSize { get; set; } + /// Target Azure Network Id. + string SelectedRecoveryAzureNetworkId { get; set; } + /// + /// The selected source nic Id which will be used as the primary nic during failover. + /// + string SelectedSourceNicId { get; set; } + /// The Azure Network Id for test failover. + string SelectedTfoAzureNetworkId { get; set; } + /// The list of VM nic details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails[] VMNic { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInput.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInput.json.cs index 76669bff7e4b..9e66a6599651 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateReplicationProtectedItemInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateReplicationProtectedItemInput(json) : null; } @@ -102,7 +102,7 @@ internal UpdateReplicationProtectedItemInput(Microsoft.Azure.PowerShell.Cmdlets. { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInputProperties.PowerShell.cs new file mode 100644 index 000000000000..0dac3a02e561 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInputProperties.PowerShell.cs @@ -0,0 +1,229 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Update protected item input properties. + [System.ComponentModel.TypeConverter(typeof(UpdateReplicationProtectedItemInputPropertiesTypeConverter))] + public partial class UpdateReplicationProtectedItemInputProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdateReplicationProtectedItemInputProperties(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.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdateReplicationProtectedItemInputProperties(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.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdateReplicationProtectedItemInputProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); + } + if (content.Contains("SelectedRecoveryAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedTfoAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedSourceNicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedSourceNicId, global::System.Convert.ToString); + } + if (content.Contains("EnableRdpOnTargetOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("RecoveryAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, 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 UpdateReplicationProtectedItemInputProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProviderSpecificDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput) content.GetValueForProperty("ProviderSpecificDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInputTypeConverter.ConvertFrom); + } + if (content.Contains("RecoveryAzureVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMName = (string) content.GetValueForProperty("RecoveryAzureVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryAzureVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMSize = (string) content.GetValueForProperty("RecoveryAzureVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAzureVMSize, global::System.Convert.ToString); + } + if (content.Contains("SelectedRecoveryAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedRecoveryAzureNetworkId = (string) content.GetValueForProperty("SelectedRecoveryAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedRecoveryAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedTfoAzureNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedTfoAzureNetworkId = (string) content.GetValueForProperty("SelectedTfoAzureNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedTfoAzureNetworkId, global::System.Convert.ToString); + } + if (content.Contains("SelectedSourceNicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedSourceNicId = (string) content.GetValueForProperty("SelectedSourceNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).SelectedSourceNicId, global::System.Convert.ToString); + } + if (content.Contains("EnableRdpOnTargetOption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).EnableRdpOnTargetOption = (string) content.GetValueForProperty("EnableRdpOnTargetOption",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).EnableRdpOnTargetOption, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("RecoveryAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAvailabilitySetId = (string) content.GetValueForProperty("RecoveryAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).RecoveryAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("ProviderSpecificDetailInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType = (string) content.GetValueForProperty("ProviderSpecificDetailInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal)this).ProviderSpecificDetailInstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Update protected item input properties. + [System.ComponentModel.TypeConverter(typeof(UpdateReplicationProtectedItemInputPropertiesTypeConverter))] + public partial interface IUpdateReplicationProtectedItemInputProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInputProperties.TypeConverter.cs index 96f5b5fa5cf5..19223ef39222 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInputProperties.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInputProperties.cs index 2474c3a31fbe..e6f8e7e034c3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Update protected item input properties. public partial class UpdateReplicationProtectedItemInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal { /// Backing field for property. @@ -31,18 +31,18 @@ public partial class UpdateReplicationProtectedItemInputProperties : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get => this._licenseType; set => this._licenseType = value; } /// Internal Acessors for ProviderSpecificDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInput()); set { {_providerSpecificDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputPropertiesInternal.ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInput()); set { {_providerSpecificDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput _providerSpecificDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput _providerSpecificDetail; /// The provider specific input to update replication protected item. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInput()); set => this._providerSpecificDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput ProviderSpecificDetail { get => (this._providerSpecificDetail = this._providerSpecificDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInput()); set => this._providerSpecificDetail = value; } /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } + public string ProviderSpecificDetailInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)ProviderSpecificDetail).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)ProviderSpecificDetail).InstanceType = value ?? null; } /// Backing field for property. private string _recoveryAvailabilitySetId; @@ -89,11 +89,11 @@ public partial class UpdateReplicationProtectedItemInputProperties : public string SelectedTfoAzureNetworkId { get => this._selectedTfoAzureNetworkId; set => this._selectedTfoAzureNetworkId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails[] _vMNic; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails[] _vMNic; /// The list of VM nic details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } /// /// Creates an new instance. @@ -190,8 +190,8 @@ public partial interface IUpdateReplicationProtectedItemInputProperties : ReadOnly = false, Description = @"The list of VM nic details.", SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails[] VMNic { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails[] VMNic { get; set; } } /// Update protected item input properties. @@ -206,7 +206,7 @@ internal partial interface IUpdateReplicationProtectedItemInputPropertiesInterna /// License type. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get; set; } /// The provider specific input to update replication protected item. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput ProviderSpecificDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput ProviderSpecificDetail { get; set; } /// The class type. string ProviderSpecificDetailInstanceType { get; set; } /// The target availability set Id. @@ -224,7 +224,7 @@ internal partial interface IUpdateReplicationProtectedItemInputPropertiesInterna /// The Azure Network Id for test failover. string SelectedTfoAzureNetworkId { get; set; } /// The list of VM nic details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails[] VMNic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails[] VMNic { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInputProperties.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInputProperties.json.cs index 886ba83a0ab2..822acd752cf2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateReplicationProtectedItemInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateReplicationProtectedItemInputProperties(json) : null; } @@ -121,14 +121,14 @@ internal UpdateReplicationProtectedItemInputProperties(Microsoft.Azure.PowerShel { return; } - {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateReplicationProtectedItemProviderInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} + {_providerSpecificDetail = If( json?.PropertyT("providerSpecificDetails"), out var __jsonProviderSpecificDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateReplicationProtectedItemProviderInput.FromJson(__jsonProviderSpecificDetails) : ProviderSpecificDetail;} {_recoveryAzureVMName = If( json?.PropertyT("recoveryAzureVMName"), out var __jsonRecoveryAzureVMName) ? (string)__jsonRecoveryAzureVMName : (string)RecoveryAzureVMName;} {_recoveryAzureVMSize = If( json?.PropertyT("recoveryAzureVMSize"), out var __jsonRecoveryAzureVMSize) ? (string)__jsonRecoveryAzureVMSize : (string)RecoveryAzureVMSize;} {_selectedRecoveryAzureNetworkId = If( json?.PropertyT("selectedRecoveryAzureNetworkId"), out var __jsonSelectedRecoveryAzureNetworkId) ? (string)__jsonSelectedRecoveryAzureNetworkId : (string)SelectedRecoveryAzureNetworkId;} {_selectedTfoAzureNetworkId = If( json?.PropertyT("selectedTfoAzureNetworkId"), out var __jsonSelectedTfoAzureNetworkId) ? (string)__jsonSelectedTfoAzureNetworkId : (string)SelectedTfoAzureNetworkId;} {_selectedSourceNicId = If( json?.PropertyT("selectedSourceNicId"), out var __jsonSelectedSourceNicId) ? (string)__jsonSelectedSourceNicId : (string)SelectedSourceNicId;} {_enableRdpOnTargetOption = If( json?.PropertyT("enableRdpOnTargetOption"), out var __jsonEnableRdpOnTargetOption) ? (string)__jsonEnableRdpOnTargetOption : (string)EnableRdpOnTargetOption;} - {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMNicInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMNicInputDetails.FromJson(__u) )) ))() : null : VMNic;} + {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IVMNicInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMNicInputDetails.FromJson(__u) )) ))() : null : VMNic;} {_licenseType = If( json?.PropertyT("licenseType"), out var __jsonLicenseType) ? (string)__jsonLicenseType : (string)LicenseType;} {_recoveryAvailabilitySetId = If( json?.PropertyT("recoveryAvailabilitySetId"), out var __jsonRecoveryAvailabilitySetId) ? (string)__jsonRecoveryAvailabilitySetId : (string)RecoveryAvailabilitySetId;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemProviderInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemProviderInput.PowerShell.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemProviderInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemProviderInput.PowerShell.cs index 7bb765a2541b..99ed89353f8c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemProviderInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class UpdateReplicationProtectedItemProviderInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UpdateReplicationProtectedItemProviderInput(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.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UpdateReplicationProtectedItemProviderInput(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpd public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// 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 UpdateReplicationProtectedItemProviderInput(global::System.Collections. // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, 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 UpdateReplicationProtectedItemProviderInput(global::System.Management.A // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemProviderInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemProviderInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemProviderInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemProviderInput.TypeConverter.cs index bfa43820c249..23efbca73822 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemProviderInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemProviderInput.cs b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemProviderInput.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemProviderInput.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemProviderInput.cs index 7938f52e22e1..833a4e2654ed 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemProviderInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Update replication protected item provider specific input. public partial class UpdateReplicationProtectedItemProviderInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemProviderInput.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemProviderInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemProviderInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemProviderInput.json.cs index 260b9a19fd7e..78b785465dc8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateReplicationProtectedItemProviderInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateReplicationProtectedItemProviderInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class UpdateReplicationProtectedItemProviderInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput 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.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateReplicationProtectedItemProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateReplicationProtectedItemProviderInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json)) { diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequest.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequest.PowerShell.cs new file mode 100644 index 000000000000..fa2b7a8c6041 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequest.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input required to update vCenter. + [System.ComponentModel.TypeConverter(typeof(UpdateVCenterRequestTypeConverter))] + public partial class UpdateVCenterRequest + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUpdateVCenterRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdateVCenterRequest(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.Migrate.Models.Api202301.IUpdateVCenterRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdateVCenterRequest(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.Migrate.Models.Api202301.IUpdateVCenterRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdateVCenterRequest(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.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateVCenterRequestPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("Port")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).Port, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).RunAsAccountId, 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 UpdateVCenterRequest(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.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateVCenterRequestPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("Port")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).Port, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Input required to update vCenter. + [System.ComponentModel.TypeConverter(typeof(UpdateVCenterRequestTypeConverter))] + public partial interface IUpdateVCenterRequest + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequest.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequest.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequest.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequest.TypeConverter.cs index effc42f2fd5b..26c296c05783 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequest.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequest.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateVCenterRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequest.cs b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequest.cs new file mode 100644 index 000000000000..a7db6436f0c3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequest.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input required to update vCenter. + public partial class UpdateVCenterRequest : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequest, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal + { + + /// The friendly name of the vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)Property).FriendlyName = value ?? null; } + + /// The IP address of the vCenter to be discovered. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)Property).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)Property).IPAddress = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateVCenterRequestProperties()); set { {_property = value;} } } + + /// The port number for discovery. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Port { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)Property).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)Property).Port = value ?? null; } + + /// The process server Id from where the update can be orchestrated. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProcessServerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)Property).ProcessServerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)Property).ProcessServerId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestProperties _property; + + /// The update VCenter Request Properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateVCenterRequestProperties()); set => this._property = value; } + + /// The CS account Id which has privileges to update the vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RunAsAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)Property).RunAsAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)Property).RunAsAccountId = value ?? null; } + + /// Creates an new instance. + public UpdateVCenterRequest() + { + + } + } + /// Input required to update vCenter. + public partial interface IUpdateVCenterRequest : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The friendly name of the vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The friendly name of the vCenter.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// The IP address of the vCenter to be discovered. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The IP address of the vCenter to be discovered.", + SerializedName = @"ipAddress", + PossibleTypes = new [] { typeof(string) })] + string IPAddress { get; set; } + /// The port number for discovery. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The port number for discovery.", + SerializedName = @"port", + PossibleTypes = new [] { typeof(string) })] + string Port { get; set; } + /// The process server Id from where the update can be orchestrated. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The process server Id from where the update can be orchestrated.", + SerializedName = @"processServerId", + PossibleTypes = new [] { typeof(string) })] + string ProcessServerId { get; set; } + /// The CS account Id which has privileges to update the vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The CS account Id which has privileges to update the vCenter.", + SerializedName = @"runAsAccountId", + PossibleTypes = new [] { typeof(string) })] + string RunAsAccountId { get; set; } + + } + /// Input required to update vCenter. + internal partial interface IUpdateVCenterRequestInternal + + { + /// The friendly name of the vCenter. + string FriendlyName { get; set; } + /// The IP address of the vCenter to be discovered. + string IPAddress { get; set; } + /// The port number for discovery. + string Port { get; set; } + /// The process server Id from where the update can be orchestrated. + string ProcessServerId { get; set; } + /// The update VCenter Request Properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestProperties Property { get; set; } + /// The CS account Id which has privileges to update the vCenter. + string RunAsAccountId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequest.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequest.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequest.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequest.json.cs index bdba32b23a60..180850869185 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequest.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequest.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateVCenterRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateVCenterRequest(json) : null; } @@ -101,7 +101,7 @@ internal UpdateVCenterRequest(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateVCenterRequestProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateVCenterRequestProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequestProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequestProperties.PowerShell.cs new file mode 100644 index 000000000000..08ab97517663 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequestProperties.PowerShell.cs @@ -0,0 +1,178 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// The properties of an update vCenter request. + [System.ComponentModel.TypeConverter(typeof(UpdateVCenterRequestPropertiesTypeConverter))] + public partial class UpdateVCenterRequestProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IUpdateVCenterRequestProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new UpdateVCenterRequestProperties(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.Migrate.Models.Api202301.IUpdateVCenterRequestProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new UpdateVCenterRequestProperties(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.Migrate.Models.Api202301.IUpdateVCenterRequestProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal UpdateVCenterRequestProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("Port")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).Port, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).RunAsAccountId, 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 UpdateVCenterRequestProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("Port")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).Port, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// The properties of an update vCenter request. + [System.ComponentModel.TypeConverter(typeof(UpdateVCenterRequestPropertiesTypeConverter))] + public partial interface IUpdateVCenterRequestProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequestProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequestProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequestProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequestProperties.TypeConverter.cs index 0c63d5c8037b..dff5d49599be 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequestProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequestProperties.cs b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequestProperties.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequestProperties.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequestProperties.cs index a30d375c292c..9daf5bd9fceb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequestProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The properties of an update vCenter request. public partial class UpdateVCenterRequestProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequestProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequestProperties.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequestProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequestProperties.json.cs index f6572d84cda2..0037133236cd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/UpdateVCenterRequestProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/UpdateVCenterRequestProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateVCenterRequestProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateVCenterRequestProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateVCenterRequestProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new UpdateVCenterRequestProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/VCenterAutoGenerated.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VCenterAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..d04188988640 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VCenterAutoGenerated.PowerShell.cs @@ -0,0 +1,264 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// vCenter definition. + [System.ComponentModel.TypeConverter(typeof(VCenterAutoGeneratedTypeConverter))] + public partial class VCenterAutoGenerated + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVCenterAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VCenterAutoGenerated(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.Migrate.Models.Api202301.IVCenterAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VCenterAutoGenerated(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.Migrate.Models.Api202301.IVCenterAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VCenterAutoGenerated(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.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterPropertiesAutoGeneratedTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("InternalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).InternalId, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DiscoveryStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).DiscoveryStatus = (string) content.GetValueForProperty("DiscoveryStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).DiscoveryStatus, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("InfrastructureId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).InfrastructureId = (string) content.GetValueForProperty("InfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).InfrastructureId, global::System.Convert.ToString); + } + if (content.Contains("Port")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).Port, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("FabricArmResourceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).FabricArmResourceName = (string) content.GetValueForProperty("FabricArmResourceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).FabricArmResourceName, global::System.Convert.ToString); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal VCenterAutoGenerated(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.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterPropertiesAutoGeneratedTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("InternalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).InternalId, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DiscoveryStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).DiscoveryStatus = (string) content.GetValueForProperty("DiscoveryStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).DiscoveryStatus, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("InfrastructureId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).InfrastructureId = (string) content.GetValueForProperty("InfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).InfrastructureId, global::System.Convert.ToString); + } + if (content.Contains("Port")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).Port, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("FabricArmResourceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).FabricArmResourceName = (string) content.GetValueForProperty("FabricArmResourceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).FabricArmResourceName, global::System.Convert.ToString); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + } + /// vCenter definition. + [System.ComponentModel.TypeConverter(typeof(VCenterAutoGeneratedTypeConverter))] + public partial interface IVCenterAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VCenterAutoGenerated.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VCenterAutoGenerated.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VCenterAutoGenerated.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VCenterAutoGenerated.TypeConverter.cs index a76e207f4309..29c391306c74 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VCenterAutoGenerated.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VCenterAutoGenerated.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVCenterAutoGenerated ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGenerated ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGenerated).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGenerated).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/VCenterAutoGenerated.cs b/src/Migrate/generated/api/Models/Api202301/VCenterAutoGenerated.cs new file mode 100644 index 000000000000..516c7584aebd --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VCenterAutoGenerated.cs @@ -0,0 +1,243 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// vCenter definition. + public partial class VCenterAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// The VCenter discovery status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string DiscoveryStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).DiscoveryStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).DiscoveryStatus = value ?? null; } + + /// The ARM resource name of the fabric containing this VCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FabricArmResourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).FabricArmResourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).FabricArmResourceName = value ?? null; } + + /// Friendly name of the vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).FriendlyName = value ?? null; } + + /// The health errors for this VCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).HealthError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).HealthError = value ?? null /* arrayOf */; } + + /// The IP address of the vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).IPAddress = value ?? null; } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// The infrastructure Id of vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string InfrastructureId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).InfrastructureId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).InfrastructureId = value ?? null; } + + /// VCenter internal ID. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string InternalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).InternalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).InternalId = value ?? null; } + + /// The time when the last heartbeat was received by vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public global::System.DateTime? LastHeartbeat { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).LastHeartbeat; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).LastHeartbeat = value ?? default(global::System.DateTime); } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGeneratedInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterPropertiesAutoGenerated()); set { {_property = value;} } } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// The port number for discovery. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string Port { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).Port = value ?? null; } + + /// The process server Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string ProcessServerId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).ProcessServerId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).ProcessServerId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated _property; + + /// VCenter related data. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterPropertiesAutoGenerated()); set => this._property = value; } + + /// The account Id which has privileges to discover the vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string RunAsAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).RunAsAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)Property).RunAsAccountId = value ?? null; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public VCenterAutoGenerated() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// vCenter definition. + public partial interface IVCenterAutoGenerated : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// The VCenter discovery status. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The VCenter discovery status.", + SerializedName = @"discoveryStatus", + PossibleTypes = new [] { typeof(string) })] + string DiscoveryStatus { get; set; } + /// The ARM resource name of the fabric containing this VCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The ARM resource name of the fabric containing this VCenter.", + SerializedName = @"fabricArmResourceName", + PossibleTypes = new [] { typeof(string) })] + string FabricArmResourceName { get; set; } + /// Friendly name of the vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Friendly name of the vCenter.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + /// The health errors for this VCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The health errors for this VCenter.", + SerializedName = @"healthErrors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } + /// The IP address of the vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The IP address of the vCenter.", + SerializedName = @"ipAddress", + PossibleTypes = new [] { typeof(string) })] + string IPAddress { get; set; } + /// The infrastructure Id of vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The infrastructure Id of vCenter.", + SerializedName = @"infrastructureId", + PossibleTypes = new [] { typeof(string) })] + string InfrastructureId { get; set; } + /// VCenter internal ID. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"VCenter internal ID.", + SerializedName = @"internalId", + PossibleTypes = new [] { typeof(string) })] + string InternalId { get; set; } + /// The time when the last heartbeat was received by vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time when the last heartbeat was received by vCenter.", + SerializedName = @"lastHeartbeat", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastHeartbeat { get; set; } + /// The port number for discovery. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The port number for discovery.", + SerializedName = @"port", + PossibleTypes = new [] { typeof(string) })] + string Port { get; set; } + /// The process server Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The process server Id.", + SerializedName = @"processServerId", + PossibleTypes = new [] { typeof(string) })] + string ProcessServerId { get; set; } + /// The account Id which has privileges to discover the vCenter. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The account Id which has privileges to discover the vCenter.", + SerializedName = @"runAsAccountId", + PossibleTypes = new [] { typeof(string) })] + string RunAsAccountId { get; set; } + + } + /// vCenter definition. + internal partial interface IVCenterAutoGeneratedInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The VCenter discovery status. + string DiscoveryStatus { get; set; } + /// The ARM resource name of the fabric containing this VCenter. + string FabricArmResourceName { get; set; } + /// Friendly name of the vCenter. + string FriendlyName { get; set; } + /// The health errors for this VCenter. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } + /// The IP address of the vCenter. + string IPAddress { get; set; } + /// The infrastructure Id of vCenter. + string InfrastructureId { get; set; } + /// VCenter internal ID. + string InternalId { get; set; } + /// The time when the last heartbeat was received by vCenter. + global::System.DateTime? LastHeartbeat { get; set; } + /// The port number for discovery. + string Port { get; set; } + /// The process server Id. + string ProcessServerId { get; set; } + /// VCenter related data. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated Property { get; set; } + /// The account Id which has privileges to discover the vCenter. + string RunAsAccountId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VCenterAutoGenerated.json.cs b/src/Migrate/generated/api/Models/Api202301/VCenterAutoGenerated.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/VCenterAutoGenerated.json.cs rename to src/Migrate/generated/api/Models/Api202301/VCenterAutoGenerated.json.cs index 8e4c63142d14..87eefeff0010 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VCenterAutoGenerated.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VCenterAutoGenerated.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VCenterAutoGenerated partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGenerated. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGenerated. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGenerated. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGenerated. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VCenterAutoGenerated(json) : null; } @@ -102,8 +102,8 @@ internal VCenterAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterPropertiesAutoGenerated.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterPropertiesAutoGenerated.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/VCenterCollectionAutoGenerated.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VCenterCollectionAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..3b7f9878965b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VCenterCollectionAutoGenerated.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Collection of vCenter details. + [System.ComponentModel.TypeConverter(typeof(VCenterCollectionAutoGeneratedTypeConverter))] + public partial class VCenterCollectionAutoGenerated + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVCenterCollectionAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VCenterCollectionAutoGenerated(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.Migrate.Models.Api202301.IVCenterCollectionAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VCenterCollectionAutoGenerated(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.Migrate.Models.Api202301.IVCenterCollectionAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VCenterCollectionAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGenerated[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterAutoGeneratedTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal VCenterCollectionAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGeneratedInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGenerated[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGeneratedInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterAutoGeneratedTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGeneratedInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGeneratedInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Collection of vCenter details. + [System.ComponentModel.TypeConverter(typeof(VCenterCollectionAutoGeneratedTypeConverter))] + public partial interface IVCenterCollectionAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VCenterCollectionAutoGenerated.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VCenterCollectionAutoGenerated.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VCenterCollectionAutoGenerated.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VCenterCollectionAutoGenerated.TypeConverter.cs index 2920f5c87269..814a93157535 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VCenterCollectionAutoGenerated.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VCenterCollectionAutoGenerated.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVCenterCollectionAutoGenerated ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGenerated ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterCollectionAutoGenerated).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGenerated).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VCenterCollectionAutoGenerated.cs b/src/Migrate/generated/api/Models/Api202301/VCenterCollectionAutoGenerated.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/VCenterCollectionAutoGenerated.cs rename to src/Migrate/generated/api/Models/Api202301/VCenterCollectionAutoGenerated.cs index d05a63788163..055b80671fef 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VCenterCollectionAutoGenerated.cs +++ b/src/Migrate/generated/api/Models/Api202301/VCenterCollectionAutoGenerated.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Collection of vCenter details. public partial class VCenterCollectionAutoGenerated : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterCollectionAutoGenerated, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterCollectionAutoGeneratedInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGeneratedInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class VCenterCollectionAutoGenerated : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGenerated[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGenerated[] _value; /// The vCenter details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGenerated[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGenerated[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public VCenterCollectionAutoGenerated() @@ -51,8 +51,8 @@ public partial interface IVCenterCollectionAutoGenerated : ReadOnly = false, Description = @"The vCenter details.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGenerated) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGenerated[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGenerated) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGenerated[] Value { get; set; } } /// Collection of vCenter details. @@ -62,7 +62,7 @@ internal partial interface IVCenterCollectionAutoGeneratedInternal /// The value of next link. string NextLink { get; set; } /// The vCenter details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterAutoGenerated[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterAutoGenerated[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VCenterCollectionAutoGenerated.json.cs b/src/Migrate/generated/api/Models/Api202301/VCenterCollectionAutoGenerated.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/VCenterCollectionAutoGenerated.json.cs rename to src/Migrate/generated/api/Models/Api202301/VCenterCollectionAutoGenerated.json.cs index 5c4150e797df..4647779b29bc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VCenterCollectionAutoGenerated.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VCenterCollectionAutoGenerated.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VCenterCollectionAutoGenerated partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterCollectionAutoGenerated. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGenerated. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterCollectionAutoGenerated. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGenerated. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterCollectionAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterCollectionAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VCenterCollectionAutoGenerated(json) : null; } @@ -110,7 +110,7 @@ internal VCenterCollectionAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVCenterAutoGenerated) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VCenterAutoGenerated.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IVCenterAutoGenerated) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VCenterAutoGenerated.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/VCenterPropertiesAutoGenerated.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VCenterPropertiesAutoGenerated.PowerShell.cs new file mode 100644 index 000000000000..3885d0f35ae6 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VCenterPropertiesAutoGenerated.PowerShell.cs @@ -0,0 +1,226 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// vCenter properties. + [System.ComponentModel.TypeConverter(typeof(VCenterPropertiesAutoGeneratedTypeConverter))] + public partial class VCenterPropertiesAutoGenerated + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VCenterPropertiesAutoGenerated(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.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VCenterPropertiesAutoGenerated(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.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VCenterPropertiesAutoGenerated(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("InternalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).InternalId, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DiscoveryStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).DiscoveryStatus = (string) content.GetValueForProperty("DiscoveryStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).DiscoveryStatus, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("InfrastructureId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).InfrastructureId = (string) content.GetValueForProperty("InfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).InfrastructureId, global::System.Convert.ToString); + } + if (content.Contains("Port")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).Port, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("FabricArmResourceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).FabricArmResourceName = (string) content.GetValueForProperty("FabricArmResourceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).FabricArmResourceName, global::System.Convert.ToString); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal VCenterPropertiesAutoGenerated(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("InternalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).InternalId = (string) content.GetValueForProperty("InternalId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).InternalId, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("DiscoveryStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).DiscoveryStatus = (string) content.GetValueForProperty("DiscoveryStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).DiscoveryStatus, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).ProcessServerId = (string) content.GetValueForProperty("ProcessServerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).ProcessServerId, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("InfrastructureId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).InfrastructureId = (string) content.GetValueForProperty("InfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).InfrastructureId, global::System.Convert.ToString); + } + if (content.Contains("Port")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).Port = (string) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).Port, global::System.Convert.ToString); + } + if (content.Contains("RunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).RunAsAccountId = (string) content.GetValueForProperty("RunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).RunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("FabricArmResourceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).FabricArmResourceName = (string) content.GetValueForProperty("FabricArmResourceName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).FabricArmResourceName, global::System.Convert.ToString); + } + if (content.Contains("HealthError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).HealthError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("HealthError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal)this).HealthError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + } + /// vCenter properties. + [System.ComponentModel.TypeConverter(typeof(VCenterPropertiesAutoGeneratedTypeConverter))] + public partial interface IVCenterPropertiesAutoGenerated + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VCenterPropertiesAutoGenerated.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VCenterPropertiesAutoGenerated.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VCenterPropertiesAutoGenerated.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VCenterPropertiesAutoGenerated.TypeConverter.cs index b7b91ffbe02a..7b2fb54314eb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VCenterPropertiesAutoGenerated.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VCenterPropertiesAutoGenerated.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VCenterPropertiesAutoGenerated.cs b/src/Migrate/generated/api/Models/Api202301/VCenterPropertiesAutoGenerated.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VCenterPropertiesAutoGenerated.cs rename to src/Migrate/generated/api/Models/Api202301/VCenterPropertiesAutoGenerated.cs index b825af676cb7..1f6e7ec38c52 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VCenterPropertiesAutoGenerated.cs +++ b/src/Migrate/generated/api/Models/Api202301/VCenterPropertiesAutoGenerated.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// vCenter properties. public partial class VCenterPropertiesAutoGenerated : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGeneratedInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGeneratedInternal { /// Backing field for property. @@ -35,11 +35,11 @@ public partial class VCenterPropertiesAutoGenerated : public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _healthError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _healthError; /// The health errors for this VCenter. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get => this._healthError; set => this._healthError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get => this._healthError; set => this._healthError = value; } /// Backing field for property. private string _iPAddress; @@ -130,8 +130,8 @@ public partial interface IVCenterPropertiesAutoGenerated : ReadOnly = false, Description = @"The health errors for this VCenter.", SerializedName = @"healthErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The IP address of the vCenter. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -201,7 +201,7 @@ internal partial interface IVCenterPropertiesAutoGeneratedInternal /// Friendly name of the vCenter. string FriendlyName { get; set; } /// The health errors for this VCenter. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] HealthError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] HealthError { get; set; } /// The IP address of the vCenter. string IPAddress { get; set; } /// The infrastructure Id of vCenter. diff --git a/src/Migrate/generated/api/Models/Api20220501/VCenterPropertiesAutoGenerated.json.cs b/src/Migrate/generated/api/Models/Api202301/VCenterPropertiesAutoGenerated.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VCenterPropertiesAutoGenerated.json.cs rename to src/Migrate/generated/api/Models/Api202301/VCenterPropertiesAutoGenerated.json.cs index dc1b250c0027..11603219ab85 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VCenterPropertiesAutoGenerated.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VCenterPropertiesAutoGenerated.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VCenterPropertiesAutoGenerated partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVCenterPropertiesAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVCenterPropertiesAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VCenterPropertiesAutoGenerated(json) : null; } @@ -129,7 +129,7 @@ internal VCenterPropertiesAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.Migra {_port = If( json?.PropertyT("port"), out var __jsonPort) ? (string)__jsonPort : (string)Port;} {_runAsAccountId = If( json?.PropertyT("runAsAccountId"), out var __jsonRunAsAccountId) ? (string)__jsonRunAsAccountId : (string)RunAsAccountId;} {_fabricArmResourceName = If( json?.PropertyT("fabricArmResourceName"), out var __jsonFabricArmResourceName) ? (string)__jsonFabricArmResourceName : (string)FabricArmResourceName;} - {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__u) )) ))() : null : HealthError;} + {_healthError = If( json?.PropertyT("healthErrors"), out var __jsonHealthErrors) ? If( __jsonHealthErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__u) )) ))() : null : HealthError;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/VMNicDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMNicDetails.PowerShell.cs new file mode 100644 index 000000000000..fa8819569a5e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMNicDetails.PowerShell.cs @@ -0,0 +1,288 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Hyper V VM network details. + [System.ComponentModel.TypeConverter(typeof(VMNicDetailsTypeConverter))] + public partial class VMNicDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMNicDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMNicDetails(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.Migrate.Models.Api202301.IVMNicDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMNicDetails(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.Migrate.Models.Api202301.IVMNicDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMNicDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).NicId, global::System.Convert.ToString); + } + if (content.Contains("ReplicaNicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).ReplicaNicId = (string) content.GetValueForProperty("ReplicaNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).ReplicaNicId, global::System.Convert.ToString); + } + if (content.Contains("SourceNicArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).SourceNicArmId = (string) content.GetValueForProperty("SourceNicArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).SourceNicArmId, global::System.Convert.ToString); + } + if (content.Contains("VMNetworkName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).VMNetworkName = (string) content.GetValueForProperty("VMNetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).VMNetworkName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVMNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryVMNetworkId = (string) content.GetValueForProperty("RecoveryVMNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryVMNetworkId, global::System.Convert.ToString); + } + if (content.Contains("IPConfig")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).IPConfig = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetails[]) content.GetValueForProperty("IPConfig",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).IPConfig, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPConfigDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("SelectionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).SelectionType = (string) content.GetValueForProperty("SelectionType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).SelectionType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkSecurityGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryNetworkSecurityGroupId = (string) content.GetValueForProperty("RecoveryNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryNetworkSecurityGroupId, global::System.Convert.ToString); + } + if (content.Contains("EnableAcceleratedNetworkingOnRecovery")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnRecovery",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TfoVMNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoVMNetworkId = (string) content.GetValueForProperty("TfoVMNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoVMNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TfoNetworkSecurityGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoNetworkSecurityGroupId = (string) content.GetValueForProperty("TfoNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoNetworkSecurityGroupId, global::System.Convert.ToString); + } + if (content.Contains("EnableAcceleratedNetworkingOnTfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnTfo = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnTfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnTfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("RecoveryNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryNicName = (string) content.GetValueForProperty("RecoveryNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryNicName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNicResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryNicResourceGroupName = (string) content.GetValueForProperty("RecoveryNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryNicResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("ReuseExistingNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).ReuseExistingNic = (bool?) content.GetValueForProperty("ReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).ReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TfoRecoveryNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoRecoveryNicName = (string) content.GetValueForProperty("TfoRecoveryNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoRecoveryNicName, global::System.Convert.ToString); + } + if (content.Contains("TfoRecoveryNicResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoRecoveryNicResourceGroupName = (string) content.GetValueForProperty("TfoRecoveryNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoRecoveryNicResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("TfoReuseExistingNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoReuseExistingNic = (bool?) content.GetValueForProperty("TfoReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TargetNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TargetNicName, 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 VMNicDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).NicId, global::System.Convert.ToString); + } + if (content.Contains("ReplicaNicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).ReplicaNicId = (string) content.GetValueForProperty("ReplicaNicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).ReplicaNicId, global::System.Convert.ToString); + } + if (content.Contains("SourceNicArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).SourceNicArmId = (string) content.GetValueForProperty("SourceNicArmId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).SourceNicArmId, global::System.Convert.ToString); + } + if (content.Contains("VMNetworkName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).VMNetworkName = (string) content.GetValueForProperty("VMNetworkName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).VMNetworkName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryVMNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryVMNetworkId = (string) content.GetValueForProperty("RecoveryVMNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryVMNetworkId, global::System.Convert.ToString); + } + if (content.Contains("IPConfig")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).IPConfig = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetails[]) content.GetValueForProperty("IPConfig",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).IPConfig, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPConfigDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("SelectionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).SelectionType = (string) content.GetValueForProperty("SelectionType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).SelectionType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkSecurityGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryNetworkSecurityGroupId = (string) content.GetValueForProperty("RecoveryNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryNetworkSecurityGroupId, global::System.Convert.ToString); + } + if (content.Contains("EnableAcceleratedNetworkingOnRecovery")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnRecovery",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TfoVMNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoVMNetworkId = (string) content.GetValueForProperty("TfoVMNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoVMNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TfoNetworkSecurityGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoNetworkSecurityGroupId = (string) content.GetValueForProperty("TfoNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoNetworkSecurityGroupId, global::System.Convert.ToString); + } + if (content.Contains("EnableAcceleratedNetworkingOnTfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnTfo = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnTfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).EnableAcceleratedNetworkingOnTfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("RecoveryNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryNicName = (string) content.GetValueForProperty("RecoveryNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryNicName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNicResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryNicResourceGroupName = (string) content.GetValueForProperty("RecoveryNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).RecoveryNicResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("ReuseExistingNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).ReuseExistingNic = (bool?) content.GetValueForProperty("ReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).ReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TfoRecoveryNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoRecoveryNicName = (string) content.GetValueForProperty("TfoRecoveryNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoRecoveryNicName, global::System.Convert.ToString); + } + if (content.Contains("TfoRecoveryNicResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoRecoveryNicResourceGroupName = (string) content.GetValueForProperty("TfoRecoveryNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoRecoveryNicResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("TfoReuseExistingNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoReuseExistingNic = (bool?) content.GetValueForProperty("TfoReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TfoReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TargetNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal)this).TargetNicName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Hyper V VM network details. + [System.ComponentModel.TypeConverter(typeof(VMNicDetailsTypeConverter))] + public partial interface IVMNicDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMNicDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMNicDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/VMNicDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMNicDetails.TypeConverter.cs index 211b0bd59a1e..b7eb97b4e5d7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMNicDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMNicDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMNicDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMNicDetails.cs b/src/Migrate/generated/api/Models/Api202301/VMNicDetails.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/VMNicDetails.cs rename to src/Migrate/generated/api/Models/Api202301/VMNicDetails.cs index 7d16687b037d..a491fccb83a8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMNicDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMNicDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Hyper V VM network details. public partial class VMNicDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetailsInternal { /// @@ -30,11 +30,11 @@ public partial class VMNicDetails : public bool? EnableAcceleratedNetworkingOnTfo { get => this._enableAcceleratedNetworkingOnTfo; set => this._enableAcceleratedNetworkingOnTfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetails[] _iPConfig; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetails[] _iPConfig; /// The IP configurations of the NIC. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetails[] IPConfig { get => this._iPConfig; set => this._iPConfig = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetails[] IPConfig { get => this._iPConfig; set => this._iPConfig = value; } /// Backing field for property. private string _nicId; @@ -184,8 +184,8 @@ public partial interface IVMNicDetails : ReadOnly = false, Description = @"The IP configurations of the NIC.", SerializedName = @"ipConfigs", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetails[] IPConfig { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetails[] IPConfig { get; set; } /// The nic Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -329,7 +329,7 @@ internal partial interface IVMNicDetailsInternal /// Whether the TFO NIC has accelerated networking enabled. bool? EnableAcceleratedNetworkingOnTfo { get; set; } /// The IP configurations of the NIC. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigDetails[] IPConfig { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigDetails[] IPConfig { get; set; } /// The nic Id. string NicId { get; set; } /// The id of the NSG associated with the NIC. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMNicDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VMNicDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMNicDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMNicDetails.json.cs index 308e5f6c9b81..e1dc4a68d1d1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMNicDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMNicDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMNicDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMNicDetails(json) : null; } @@ -132,7 +132,7 @@ internal VMNicDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.Js {_sourceNicArmId = If( json?.PropertyT("sourceNicArmId"), out var __jsonSourceNicArmId) ? (string)__jsonSourceNicArmId : (string)SourceNicArmId;} {_vMNetworkName = If( json?.PropertyT("vMNetworkName"), out var __jsonVMNetworkName) ? (string)__jsonVMNetworkName : (string)VMNetworkName;} {_recoveryVMNetworkId = If( json?.PropertyT("recoveryVMNetworkId"), out var __jsonRecoveryVMNetworkId) ? (string)__jsonRecoveryVMNetworkId : (string)RecoveryVMNetworkId;} - {_iPConfig = If( json?.PropertyT("ipConfigs"), out var __jsonIPConfigs) ? If( __jsonIPConfigs as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IIPConfigDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPConfigDetails.FromJson(__u) )) ))() : null : IPConfig;} + {_iPConfig = If( json?.PropertyT("ipConfigs"), out var __jsonIPConfigs) ? If( __jsonIPConfigs as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IIPConfigDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPConfigDetails.FromJson(__u) )) ))() : null : IPConfig;} {_selectionType = If( json?.PropertyT("selectionType"), out var __jsonSelectionType) ? (string)__jsonSelectionType : (string)SelectionType;} {_recoveryNetworkSecurityGroupId = If( json?.PropertyT("recoveryNetworkSecurityGroupId"), out var __jsonRecoveryNetworkSecurityGroupId) ? (string)__jsonRecoveryNetworkSecurityGroupId : (string)RecoveryNetworkSecurityGroupId;} {_enableAcceleratedNetworkingOnRecovery = If( json?.PropertyT("enableAcceleratedNetworkingOnRecovery"), out var __jsonEnableAcceleratedNetworkingOnRecovery) ? (bool?)__jsonEnableAcceleratedNetworkingOnRecovery : EnableAcceleratedNetworkingOnRecovery;} diff --git a/src/Migrate/generated/api/Models/Api202301/VMNicInputDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMNicInputDetails.PowerShell.cs new file mode 100644 index 000000000000..c9a4e5c249ca --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMNicInputDetails.PowerShell.cs @@ -0,0 +1,248 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Hyper V VM network input details. + [System.ComponentModel.TypeConverter(typeof(VMNicInputDetailsTypeConverter))] + public partial class VMNicInputDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMNicInputDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMNicInputDetails(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.Migrate.Models.Api202301.IVMNicInputDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMNicInputDetails(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.Migrate.Models.Api202301.IVMNicInputDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMNicInputDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).NicId, global::System.Convert.ToString); + } + if (content.Contains("IPConfig")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).IPConfig = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetails[]) content.GetValueForProperty("IPConfig",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).IPConfig, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPConfigInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("SelectionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).SelectionType = (string) content.GetValueForProperty("SelectionType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).SelectionType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkSecurityGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).RecoveryNetworkSecurityGroupId = (string) content.GetValueForProperty("RecoveryNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).RecoveryNetworkSecurityGroupId, global::System.Convert.ToString); + } + if (content.Contains("EnableAcceleratedNetworkingOnRecovery")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnRecovery",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TfoNetworkSecurityGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoNetworkSecurityGroupId = (string) content.GetValueForProperty("TfoNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoNetworkSecurityGroupId, global::System.Convert.ToString); + } + if (content.Contains("EnableAcceleratedNetworkingOnTfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnTfo = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnTfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnTfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("RecoveryNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).RecoveryNicName = (string) content.GetValueForProperty("RecoveryNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).RecoveryNicName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNicResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).RecoveryNicResourceGroupName = (string) content.GetValueForProperty("RecoveryNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).RecoveryNicResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("ReuseExistingNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).ReuseExistingNic = (bool?) content.GetValueForProperty("ReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).ReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TfoNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoNicName = (string) content.GetValueForProperty("TfoNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoNicName, global::System.Convert.ToString); + } + if (content.Contains("TfoNicResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoNicResourceGroupName = (string) content.GetValueForProperty("TfoNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoNicResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("TfoReuseExistingNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoReuseExistingNic = (bool?) content.GetValueForProperty("TfoReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TargetNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TargetNicName, 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 VMNicInputDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).NicId, global::System.Convert.ToString); + } + if (content.Contains("IPConfig")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).IPConfig = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetails[]) content.GetValueForProperty("IPConfig",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).IPConfig, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPConfigInputDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("SelectionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).SelectionType = (string) content.GetValueForProperty("SelectionType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).SelectionType, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNetworkSecurityGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).RecoveryNetworkSecurityGroupId = (string) content.GetValueForProperty("RecoveryNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).RecoveryNetworkSecurityGroupId, global::System.Convert.ToString); + } + if (content.Contains("EnableAcceleratedNetworkingOnRecovery")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnRecovery",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnRecovery, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TfoNetworkSecurityGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoNetworkSecurityGroupId = (string) content.GetValueForProperty("TfoNetworkSecurityGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoNetworkSecurityGroupId, global::System.Convert.ToString); + } + if (content.Contains("EnableAcceleratedNetworkingOnTfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnTfo = (bool?) content.GetValueForProperty("EnableAcceleratedNetworkingOnTfo",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).EnableAcceleratedNetworkingOnTfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("RecoveryNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).RecoveryNicName = (string) content.GetValueForProperty("RecoveryNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).RecoveryNicName, global::System.Convert.ToString); + } + if (content.Contains("RecoveryNicResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).RecoveryNicResourceGroupName = (string) content.GetValueForProperty("RecoveryNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).RecoveryNicResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("ReuseExistingNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).ReuseExistingNic = (bool?) content.GetValueForProperty("ReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).ReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TfoNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoNicName = (string) content.GetValueForProperty("TfoNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoNicName, global::System.Convert.ToString); + } + if (content.Contains("TfoNicResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoNicResourceGroupName = (string) content.GetValueForProperty("TfoNicResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoNicResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("TfoReuseExistingNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoReuseExistingNic = (bool?) content.GetValueForProperty("TfoReuseExistingNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TfoReuseExistingNic, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TargetNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal)this).TargetNicName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Hyper V VM network input details. + [System.ComponentModel.TypeConverter(typeof(VMNicInputDetailsTypeConverter))] + public partial interface IVMNicInputDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMNicInputDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMNicInputDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/VMNicInputDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMNicInputDetails.TypeConverter.cs index 62541421996c..2b517da9e6a5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMNicInputDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMNicInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMNicInputDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMNicInputDetails.cs b/src/Migrate/generated/api/Models/Api202301/VMNicInputDetails.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMNicInputDetails.cs rename to src/Migrate/generated/api/Models/Api202301/VMNicInputDetails.cs index 7f42663f2a9f..307f0bc782fd 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMNicInputDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMNicInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Hyper V VM network input details. public partial class VMNicInputDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetailsInternal { /// @@ -30,11 +30,11 @@ public partial class VMNicInputDetails : public bool? EnableAcceleratedNetworkingOnTfo { get => this._enableAcceleratedNetworkingOnTfo; set => this._enableAcceleratedNetworkingOnTfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetails[] _iPConfig; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetails[] _iPConfig; /// The IP configurations to be used by NIC during test failover and failover. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetails[] IPConfig { get => this._iPConfig; set => this._iPConfig = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetails[] IPConfig { get => this._iPConfig; set => this._iPConfig = value; } /// Backing field for property. private string _nicId; @@ -149,8 +149,8 @@ public partial interface IVMNicInputDetails : ReadOnly = false, Description = @"The IP configurations to be used by NIC during test failover and failover.", SerializedName = @"ipConfigs", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetails[] IPConfig { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetails[] IPConfig { get; set; } /// The nic Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -254,7 +254,7 @@ internal partial interface IVMNicInputDetailsInternal /// Whether the test NIC has accelerated networking enabled. bool? EnableAcceleratedNetworkingOnTfo { get; set; } /// The IP configurations to be used by NIC during test failover and failover. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IIPConfigInputDetails[] IPConfig { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IIPConfigInputDetails[] IPConfig { get; set; } /// The nic Id. string NicId { get; set; } /// The id of the NSG associated with the NIC. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMNicInputDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VMNicInputDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMNicInputDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMNicInputDetails.json.cs index 0f47df09ea66..e21d1c02bbcf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMNicInputDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMNicInputDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMNicInputDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicInputDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMNicInputDetails(json) : null; } @@ -123,7 +123,7 @@ internal VMNicInputDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Js return; } {_nicId = If( json?.PropertyT("nicId"), out var __jsonNicId) ? (string)__jsonNicId : (string)NicId;} - {_iPConfig = If( json?.PropertyT("ipConfigs"), out var __jsonIPConfigs) ? If( __jsonIPConfigs as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IIPConfigInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPConfigInputDetails.FromJson(__u) )) ))() : null : IPConfig;} + {_iPConfig = If( json?.PropertyT("ipConfigs"), out var __jsonIPConfigs) ? If( __jsonIPConfigs as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IIPConfigInputDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPConfigInputDetails.FromJson(__u) )) ))() : null : IPConfig;} {_selectionType = If( json?.PropertyT("selectionType"), out var __jsonSelectionType) ? (string)__jsonSelectionType : (string)SelectionType;} {_recoveryNetworkSecurityGroupId = If( json?.PropertyT("recoveryNetworkSecurityGroupId"), out var __jsonRecoveryNetworkSecurityGroupId) ? (string)__jsonRecoveryNetworkSecurityGroupId : (string)RecoveryNetworkSecurityGroupId;} {_enableAcceleratedNetworkingOnRecovery = If( json?.PropertyT("enableAcceleratedNetworkingOnRecovery"), out var __jsonEnableAcceleratedNetworkingOnRecovery) ? (bool?)__jsonEnableAcceleratedNetworkingOnRecovery : EnableAcceleratedNetworkingOnRecovery;} diff --git a/src/Migrate/generated/api/Models/Api202301/VMNicUpdatesTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMNicUpdatesTaskDetails.PowerShell.cs new file mode 100644 index 000000000000..828f0145565f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMNicUpdatesTaskDetails.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class represents the vm NicUpdates task details. + [System.ComponentModel.TypeConverter(typeof(VMNicUpdatesTaskDetailsTypeConverter))] + public partial class VMNicUpdatesTaskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMNicUpdatesTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMNicUpdatesTaskDetails(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.Migrate.Models.Api202301.IVMNicUpdatesTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMNicUpdatesTaskDetails(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.Migrate.Models.Api202301.IVMNicUpdatesTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMNicUpdatesTaskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetailsInternal)this).VMId, global::System.Convert.ToString); + } + if (content.Contains("NicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetailsInternal)this).NicId, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, 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 VMNicUpdatesTaskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VMId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetailsInternal)this).VMId = (string) content.GetValueForProperty("VMId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetailsInternal)this).VMId, global::System.Convert.ToString); + } + if (content.Contains("NicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetailsInternal)this).NicId, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetailsInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetailsInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// This class represents the vm NicUpdates task details. + [System.ComponentModel.TypeConverter(typeof(VMNicUpdatesTaskDetailsTypeConverter))] + public partial interface IVMNicUpdatesTaskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMNicUpdatesTaskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMNicUpdatesTaskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMNicUpdatesTaskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMNicUpdatesTaskDetails.TypeConverter.cs index ed6dd54fe356..b5f414fc4af3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMNicUpdatesTaskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMNicUpdatesTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMNicUpdatesTaskDetails.cs b/src/Migrate/generated/api/Models/Api202301/VMNicUpdatesTaskDetails.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/VMNicUpdatesTaskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/VMNicUpdatesTaskDetails.cs index 7a1654c5845f..6bc409500772 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMNicUpdatesTaskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMNicUpdatesTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// This class represents the vm NicUpdates task details. public partial class VMNicUpdatesTaskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails(); /// The type of task details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__taskTypeDetails).InstanceType = value ; } /// Backing field for property. private string _name; @@ -65,7 +65,7 @@ public VMNicUpdatesTaskDetails() /// This class represents the vm NicUpdates task details. public partial interface IVMNicUpdatesTaskDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetails { /// Name of the Nic. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -95,7 +95,7 @@ public partial interface IVMNicUpdatesTaskDetails : } /// This class represents the vm NicUpdates task details. internal partial interface IVMNicUpdatesTaskDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITaskTypeDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal { /// Name of the Nic. string Name { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMNicUpdatesTaskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VMNicUpdatesTaskDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMNicUpdatesTaskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMNicUpdatesTaskDetails.json.cs index b78ba803a9e9..de44134a874e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMNicUpdatesTaskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMNicUpdatesTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMNicUpdatesTaskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMNicUpdatesTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMNicUpdatesTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMNicUpdatesTaskDetails(json) : null; } @@ -104,7 +104,7 @@ internal VMNicUpdatesTaskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runt { return; } - __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TaskTypeDetails(json); + __taskTypeDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TaskTypeDetails(json); {_vMId = If( json?.PropertyT("vmId"), out var __jsonVMId) ? (string)__jsonVMId : (string)VMId;} {_nicId = If( json?.PropertyT("nicId"), out var __jsonNicId) ? (string)__jsonNicId : (string)NicId;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerCreationInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerCreationInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerCreationInput.PowerShell.cs index 2c13eaf9b6b5..e26fe1edb4fc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerCreationInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VMwareCbtContainerCreationInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtContainerCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtContainerCreationInput(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.Migrate.Models.Api20220501.IVMwareCbtContainerCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtContainerCreationInput(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,13 +110,13 @@ internal VMwareCbtContainerCreationInput(global::System.Collections.IDictionary // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, 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. @@ -131,7 +131,7 @@ internal VMwareCbtContainerCreationInput(global::System.Management.Automation.PS // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerCreationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerCreationInput.TypeConverter.cs index 7648936e0f86..b7d618eb93dc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtContainerCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerCreationInput.cs new file mode 100644 index 000000000000..63c704d050c5 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerCreationInput.cs @@ -0,0 +1,57 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// VMwareCbt container creation input. + public partial class VMwareCbtContainerCreationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerCreationInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput __replicationProviderSpecificContainerCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerCreationInput(); + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)__replicationProviderSpecificContainerCreationInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal)__replicationProviderSpecificContainerCreationInput).InstanceType = value ; } + + /// Creates an new instance. + public VMwareCbtContainerCreationInput() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__replicationProviderSpecificContainerCreationInput), __replicationProviderSpecificContainerCreationInput); + await eventListener.AssertObjectIsValid(nameof(__replicationProviderSpecificContainerCreationInput), __replicationProviderSpecificContainerCreationInput); + } + } + /// VMwareCbt container creation input. + public partial interface IVMwareCbtContainerCreationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInput + { + + } + /// VMwareCbt container creation input. + internal partial interface IVMwareCbtContainerCreationInputInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerCreationInputInternal + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerCreationInput.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerCreationInput.json.cs index 9b21fcf7a3d1..876728b25dc4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtContainerCreationInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerCreationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerCreationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtContainerCreationInput(json) : null; } @@ -101,7 +101,7 @@ internal VMwareCbtContainerCreationInput(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - __replicationProviderSpecificContainerCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerCreationInput(json); + __replicationProviderSpecificContainerCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerCreationInput(json); AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerMappingInput.PowerShell.cs new file mode 100644 index 000000000000..41d844e0df80 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerMappingInput.PowerShell.cs @@ -0,0 +1,194 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMwareCbt container mapping input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtContainerMappingInputTypeConverter))] + public partial class VMwareCbtContainerMappingInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareCbtContainerMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareCbtContainerMappingInput(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.Migrate.Models.Api202301.IVMwareCbtContainerMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareCbtContainerMappingInput(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.Migrate.Models.Api202301.IVMwareCbtContainerMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareCbtContainerMappingInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("KeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).KeyVaultId = (string) content.GetValueForProperty("KeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).KeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).KeyVaultUri = (string) content.GetValueForProperty("KeyVaultUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).KeyVaultUri, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).StorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountSasSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).StorageAccountSasSecretName = (string) content.GetValueForProperty("StorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).StorageAccountSasSecretName, global::System.Convert.ToString); + } + if (content.Contains("ServiceBusConnectionStringSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).ServiceBusConnectionStringSecretName = (string) content.GetValueForProperty("ServiceBusConnectionStringSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).ServiceBusConnectionStringSecretName, global::System.Convert.ToString); + } + if (content.Contains("TargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).TargetLocation, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType, 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 VMwareCbtContainerMappingInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("KeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).KeyVaultId = (string) content.GetValueForProperty("KeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).KeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).KeyVaultUri = (string) content.GetValueForProperty("KeyVaultUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).KeyVaultUri, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).StorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountSasSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).StorageAccountSasSecretName = (string) content.GetValueForProperty("StorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).StorageAccountSasSecretName, global::System.Convert.ToString); + } + if (content.Contains("ServiceBusConnectionStringSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).ServiceBusConnectionStringSecretName = (string) content.GetValueForProperty("ServiceBusConnectionStringSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).ServiceBusConnectionStringSecretName, global::System.Convert.ToString); + } + if (content.Contains("TargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal)this).TargetLocation, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMwareCbt container mapping input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtContainerMappingInputTypeConverter))] + public partial interface IVMwareCbtContainerMappingInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerMappingInput.TypeConverter.cs index c65373a0ed04..58c73c2b8e0f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerMappingInput.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerMappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerMappingInput.cs index 97907a9af002..3d287ae68b7d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerMappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMwareCbt container mapping input. public partial class VMwareCbtContainerMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput __replicationProviderSpecificContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerMappingInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput __replicationProviderSpecificContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerMappingInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)__replicationProviderSpecificContainerMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal)__replicationProviderSpecificContainerMappingInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)__replicationProviderSpecificContainerMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal)__replicationProviderSpecificContainerMappingInput).InstanceType = value ; } /// Backing field for property. private string _keyVaultId; @@ -86,7 +86,7 @@ public VMwareCbtContainerMappingInput() /// VMwareCbt container mapping input. public partial interface IVMwareCbtContainerMappingInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput { /// The target key vault ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -140,7 +140,7 @@ public partial interface IVMwareCbtContainerMappingInput : } /// VMwareCbt container mapping input. internal partial interface IVMwareCbtContainerMappingInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInputInternal { /// The target key vault ARM Id. string KeyVaultId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerMappingInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerMappingInput.json.cs index dbed1ad11ff9..f682f14a1ffe 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtContainerMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtContainerMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtContainerMappingInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtContainerMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtContainerMappingInput(json) : null; } @@ -107,7 +107,7 @@ internal VMwareCbtContainerMappingInput(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - __replicationProviderSpecificContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ReplicationProviderSpecificContainerMappingInput(json); + __replicationProviderSpecificContainerMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ReplicationProviderSpecificContainerMappingInput(json); {_keyVaultId = If( json?.PropertyT("keyVaultId"), out var __jsonKeyVaultId) ? (string)__jsonKeyVaultId : (string)KeyVaultId;} {_keyVaultUri = If( json?.PropertyT("keyVaultUri"), out var __jsonKeyVaultUri) ? (string)__jsonKeyVaultUri : (string)KeyVaultUri;} {_storageAccountId = If( json?.PropertyT("storageAccountId"), out var __jsonStorageAccountId) ? (string)__jsonStorageAccountId : (string)StorageAccountId;} diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtDiskInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtDiskInput.PowerShell.cs new file mode 100644 index 000000000000..0ee2658a0876 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtDiskInput.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMwareCbt disk input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtDiskInputTypeConverter))] + public partial class VMwareCbtDiskInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareCbtDiskInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareCbtDiskInput(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.Migrate.Models.Api202301.IVMwareCbtDiskInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareCbtDiskInput(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.Migrate.Models.Api202301.IVMwareCbtDiskInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareCbtDiskInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("IsOSDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).IsOSDisk, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountSasSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).LogStorageAccountSasSecretName = (string) content.GetValueForProperty("LogStorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).LogStorageAccountSasSecretName, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).DiskEncryptionSetId, 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 VMwareCbtDiskInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("IsOSDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).IsOSDisk, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountSasSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).LogStorageAccountSasSecretName = (string) content.GetValueForProperty("LogStorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).LogStorageAccountSasSecretName, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMwareCbt disk input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtDiskInputTypeConverter))] + public partial interface IVMwareCbtDiskInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtDiskInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtDiskInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtDiskInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtDiskInput.TypeConverter.cs index 2dc54ca5194c..4d27523f0199 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtDiskInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtDiskInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtDiskInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtDiskInput.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtDiskInput.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtDiskInput.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtDiskInput.cs index 85a563f26436..ea403bbf12fa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtDiskInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtDiskInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMwareCbt disk input. public partial class VMwareCbtDiskInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtDiskInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtDiskInput.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtDiskInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtDiskInput.json.cs index 92c121f5711c..f64817550044 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtDiskInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtDiskInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtDiskInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtDiskInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInput.PowerShell.cs new file mode 100644 index 000000000000..e234e94c2011 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInput.PowerShell.cs @@ -0,0 +1,386 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMwareCbt specific enable migration input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtEnableMigrationInputTypeConverter))] + public partial class VMwareCbtEnableMigrationInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareCbtEnableMigrationInput(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.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareCbtEnableMigrationInput(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.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareCbtEnableMigrationInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetVMSecurityProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfile = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties) content.GetValueForProperty("TargetVMSecurityProfile",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfile, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtSecurityProfilePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("VmwareMachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).VmwareMachineId = (string) content.GetValueForProperty("VmwareMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).VmwareMachineId, global::System.Convert.ToString); + } + if (content.Contains("DisksToInclude")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).DisksToInclude = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtDiskInputTypeConverter.ConvertFrom)); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); + } + if (content.Contains("PerformSqlBulkRegistration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).PerformSqlBulkRegistration = (string) content.GetValueForProperty("PerformSqlBulkRegistration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).PerformSqlBulkRegistration, global::System.Convert.ToString); + } + if (content.Contains("DataMoverRunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).DataMoverRunAsAccountId = (string) content.GetValueForProperty("DataMoverRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).DataMoverRunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("SnapshotRunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).SnapshotRunAsAccountId = (string) content.GetValueForProperty("SnapshotRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).SnapshotRunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("TargetResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TestNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TestNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TargetSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TestSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("ConfidentialVMKeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).ConfidentialVMKeyVaultId = (string) content.GetValueForProperty("ConfidentialVMKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).ConfidentialVMKeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("TargetBootDiagnosticsStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("PerformAutoResync")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).PerformAutoResync = (string) content.GetValueForProperty("PerformAutoResync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).PerformAutoResync, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetVmtagsTypeConverter.ConvertFrom); + } + if (content.Contains("SeedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).SeedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags) content.GetValueForProperty("SeedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).SeedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputSeedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags) content.GetValueForProperty("TargetDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileTargetVmsecurityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileTargetVmsecurityType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType?) content.GetValueForProperty("TargetVMSecurityProfileTargetVmsecurityType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileTargetVmsecurityType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType.CreateFrom); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmsecureBootEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmsecureBootEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmsecureBootEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmsecureBootEnabled, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmtpmEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmtpmEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmtpmEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmtpmEnabled, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled, 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 VMwareCbtEnableMigrationInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetVMSecurityProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfile = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties) content.GetValueForProperty("TargetVMSecurityProfile",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfile, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtSecurityProfilePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("VmwareMachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).VmwareMachineId = (string) content.GetValueForProperty("VmwareMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).VmwareMachineId, global::System.Convert.ToString); + } + if (content.Contains("DisksToInclude")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).DisksToInclude = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput[]) content.GetValueForProperty("DisksToInclude",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).DisksToInclude, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtDiskInputTypeConverter.ConvertFrom)); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); + } + if (content.Contains("PerformSqlBulkRegistration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).PerformSqlBulkRegistration = (string) content.GetValueForProperty("PerformSqlBulkRegistration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).PerformSqlBulkRegistration, global::System.Convert.ToString); + } + if (content.Contains("DataMoverRunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).DataMoverRunAsAccountId = (string) content.GetValueForProperty("DataMoverRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).DataMoverRunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("SnapshotRunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).SnapshotRunAsAccountId = (string) content.GetValueForProperty("SnapshotRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).SnapshotRunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("TargetResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TestNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TestNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TargetSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TestSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("ConfidentialVMKeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).ConfidentialVMKeyVaultId = (string) content.GetValueForProperty("ConfidentialVMKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).ConfidentialVMKeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("TargetBootDiagnosticsStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("PerformAutoResync")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).PerformAutoResync = (string) content.GetValueForProperty("PerformAutoResync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).PerformAutoResync, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetVmtagsTypeConverter.ConvertFrom); + } + if (content.Contains("SeedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).SeedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags) content.GetValueForProperty("SeedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).SeedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputSeedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags) content.GetValueForProperty("TargetDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileTargetVmsecurityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileTargetVmsecurityType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType?) content.GetValueForProperty("TargetVMSecurityProfileTargetVmsecurityType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileTargetVmsecurityType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType.CreateFrom); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmsecureBootEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmsecureBootEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmsecureBootEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmsecureBootEnabled, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmtpmEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmtpmEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmtpmEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmtpmEnabled, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal)this).TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMwareCbt specific enable migration input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtEnableMigrationInputTypeConverter))] + public partial interface IVMwareCbtEnableMigrationInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInput.TypeConverter.cs index f394db2e513e..93d0f31a6375 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInput.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInput.cs new file mode 100644 index 000000000000..bb9b102d4d3f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInput.cs @@ -0,0 +1,549 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// VMwareCbt specific enable migration input. + public partial class VMwareCbtEnableMigrationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput __enableMigrationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationProviderSpecificInput(); + + /// Backing field for property. + private string _confidentialVMKeyVaultId; + + /// The confidential VM key vault Id for ADE installation. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ConfidentialVMKeyVaultId { get => this._confidentialVMKeyVaultId; set => this._confidentialVMKeyVaultId = value; } + + /// Backing field for property. + private string _dataMoverRunAsAccountId; + + /// The data mover run as account Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string DataMoverRunAsAccountId { get => this._dataMoverRunAsAccountId; set => this._dataMoverRunAsAccountId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput[] _disksToInclude; + + /// The disks to include list. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput[] DisksToInclude { get => this._disksToInclude; set => this._disksToInclude = value; } + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInputInternal)__enableMigrationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInputInternal)__enableMigrationProviderSpecificInput).InstanceType = value ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? _licenseType; + + /// License type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get => this._licenseType; set => this._licenseType = value; } + + /// Internal Acessors for TargetVMSecurityProfile + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputInternal.TargetVMSecurityProfile { get => (this._targetVMSecurityProfile = this._targetVMSecurityProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtSecurityProfileProperties()); set { {_targetVMSecurityProfile = value;} } } + + /// Backing field for property. + private string _performAutoResync; + + /// A value indicating whether auto resync is to be done. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PerformAutoResync { get => this._performAutoResync; set => this._performAutoResync = value; } + + /// Backing field for property. + private string _performSqlBulkRegistration; + + /// A value indicating whether bulk SQL RP registration to be done. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PerformSqlBulkRegistration { get => this._performSqlBulkRegistration; set => this._performSqlBulkRegistration = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags _seedDiskTag; + + /// The tags for the seed disks. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags SeedDiskTag { get => (this._seedDiskTag = this._seedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputSeedDiskTags()); set => this._seedDiskTag = value; } + + /// Backing field for property. + private string _snapshotRunAsAccountId; + + /// The snapshot run as account Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string SnapshotRunAsAccountId { get => this._snapshotRunAsAccountId; set => this._snapshotRunAsAccountId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType? _sqlServerLicenseType; + + /// The SQL Server license type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType? SqlServerLicenseType { get => this._sqlServerLicenseType; set => this._sqlServerLicenseType = value; } + + /// Backing field for property. + private string _targetAvailabilitySetId; + + /// The target availability set ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetAvailabilitySetId { get => this._targetAvailabilitySetId; set => this._targetAvailabilitySetId = value; } + + /// Backing field for property. + private string _targetAvailabilityZone; + + /// The target availability zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetAvailabilityZone { get => this._targetAvailabilityZone; set => this._targetAvailabilityZone = value; } + + /// + /// Backing field for property. + /// + private string _targetBootDiagnosticsStorageAccountId; + + /// The target boot diagnostics storage account ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetBootDiagnosticsStorageAccountId { get => this._targetBootDiagnosticsStorageAccountId; set => this._targetBootDiagnosticsStorageAccountId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags _targetDiskTag; + + /// The tags for the target disks. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags TargetDiskTag { get => (this._targetDiskTag = this._targetDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetDiskTags()); set => this._targetDiskTag = value; } + + /// Backing field for property. + private string _targetNetworkId; + + /// The target network ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetNetworkId { get => this._targetNetworkId; set => this._targetNetworkId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags _targetNicTag; + + /// The tags for the target NICs. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetNicTags()); set => this._targetNicTag = value; } + + /// Backing field for property. + private string _targetProximityPlacementGroupId; + + /// The target proximity placement group ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetProximityPlacementGroupId { get => this._targetProximityPlacementGroupId; set => this._targetProximityPlacementGroupId = value; } + + /// Backing field for property. + private string _targetResourceGroupId; + + /// The target resource group ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetResourceGroupId { get => this._targetResourceGroupId; set => this._targetResourceGroupId = value; } + + /// Backing field for property. + private string _targetSubnetName; + + /// The target subnet name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetSubnetName { get => this._targetSubnetName; set => this._targetSubnetName = value; } + + /// Backing field for property. + private string _targetVMName; + + /// The target VM name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetVMName { get => this._targetVMName; set => this._targetVMName = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties _targetVMSecurityProfile; + + /// The target VM security profile. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties TargetVMSecurityProfile { get => (this._targetVMSecurityProfile = this._targetVMSecurityProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtSecurityProfileProperties()); set => this._targetVMSecurityProfile = value; } + + /// A value indicating whether confidential compute encryption to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMConfidentialEncryptionEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMConfidentialEncryptionEnabled = value ?? null; } + + /// A value indicating whether integrity monitoring to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMIntegrityMonitoringEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMIntegrityMonitoringEnabled = value ?? null; } + + /// A value indicating whether secure boot to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetVMSecurityProfileIsTargetVmsecureBootEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMSecureBootEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMSecureBootEnabled = value ?? null; } + + /// A value indicating whether trusted platform module to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetVMSecurityProfileIsTargetVmtpmEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMTpmEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMTpmEnabled = value ?? null; } + + /// The target VM security type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType? TargetVMSecurityProfileTargetVmsecurityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).TargetVMSecurityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).TargetVMSecurityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType)""); } + + /// Backing field for property. + private string _targetVMSize; + + /// The target VM size. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetVMSize { get => this._targetVMSize; set => this._targetVMSize = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags _targetVMTag; + + /// The target VM tags. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetVmtags()); set => this._targetVMTag = value; } + + /// Backing field for property. + private string _testNetworkId; + + /// The selected test network ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TestNetworkId { get => this._testNetworkId; set => this._testNetworkId = value; } + + /// Backing field for property. + private string _testSubnetName; + + /// The selected test subnet name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TestSubnetName { get => this._testSubnetName; set => this._testSubnetName = value; } + + /// Backing field for property. + private string _vmwareMachineId; + + /// The ARM Id of the VM discovered in VMware. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string VmwareMachineId { get => this._vmwareMachineId; set => this._vmwareMachineId = value; } + + /// Creates an new instance. + public VMwareCbtEnableMigrationInput() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__enableMigrationProviderSpecificInput), __enableMigrationProviderSpecificInput); + await eventListener.AssertObjectIsValid(nameof(__enableMigrationProviderSpecificInput), __enableMigrationProviderSpecificInput); + } + } + /// VMwareCbt specific enable migration input. + public partial interface IVMwareCbtEnableMigrationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput + { + /// The confidential VM key vault Id for ADE installation. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The confidential VM key vault Id for ADE installation.", + SerializedName = @"confidentialVmKeyVaultId", + PossibleTypes = new [] { typeof(string) })] + string ConfidentialVMKeyVaultId { get; set; } + /// The data mover run as account Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The data mover run as account Id.", + SerializedName = @"dataMoverRunAsAccountId", + PossibleTypes = new [] { typeof(string) })] + string DataMoverRunAsAccountId { get; set; } + /// The disks to include list. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The disks to include list.", + SerializedName = @"disksToInclude", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput[] DisksToInclude { get; set; } + /// License type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"License type.", + SerializedName = @"licenseType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get; set; } + /// A value indicating whether auto resync is to be done. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether auto resync is to be done.", + SerializedName = @"performAutoResync", + PossibleTypes = new [] { typeof(string) })] + string PerformAutoResync { get; set; } + /// A value indicating whether bulk SQL RP registration to be done. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether bulk SQL RP registration to be done.", + SerializedName = @"performSqlBulkRegistration", + PossibleTypes = new [] { typeof(string) })] + string PerformSqlBulkRegistration { get; set; } + /// The tags for the seed disks. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The tags for the seed disks.", + SerializedName = @"seedDiskTags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags SeedDiskTag { get; set; } + /// The snapshot run as account Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The snapshot run as account Id.", + SerializedName = @"snapshotRunAsAccountId", + PossibleTypes = new [] { typeof(string) })] + string SnapshotRunAsAccountId { get; set; } + /// The SQL Server license type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SQL Server license type.", + SerializedName = @"sqlServerLicenseType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType? SqlServerLicenseType { get; set; } + /// The target availability set ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target availability set ARM Id.", + SerializedName = @"targetAvailabilitySetId", + PossibleTypes = new [] { typeof(string) })] + string TargetAvailabilitySetId { get; set; } + /// The target availability zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target availability zone.", + SerializedName = @"targetAvailabilityZone", + PossibleTypes = new [] { typeof(string) })] + string TargetAvailabilityZone { get; set; } + /// The target boot diagnostics storage account ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target boot diagnostics storage account ARM Id.", + SerializedName = @"targetBootDiagnosticsStorageAccountId", + PossibleTypes = new [] { typeof(string) })] + string TargetBootDiagnosticsStorageAccountId { get; set; } + /// The tags for the target disks. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The tags for the target disks.", + SerializedName = @"targetDiskTags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags TargetDiskTag { get; set; } + /// The target network ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The target network ARM Id.", + SerializedName = @"targetNetworkId", + PossibleTypes = new [] { typeof(string) })] + string TargetNetworkId { get; set; } + /// The tags for the target NICs. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The tags for the target NICs.", + SerializedName = @"targetNicTags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags TargetNicTag { get; set; } + /// The target proximity placement group ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target proximity placement group ARM Id.", + SerializedName = @"targetProximityPlacementGroupId", + PossibleTypes = new [] { typeof(string) })] + string TargetProximityPlacementGroupId { get; set; } + /// The target resource group ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The target resource group ARM Id.", + SerializedName = @"targetResourceGroupId", + PossibleTypes = new [] { typeof(string) })] + string TargetResourceGroupId { get; set; } + /// The target subnet name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target subnet name.", + SerializedName = @"targetSubnetName", + PossibleTypes = new [] { typeof(string) })] + string TargetSubnetName { get; set; } + /// The target VM name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target VM name.", + SerializedName = @"targetVmName", + PossibleTypes = new [] { typeof(string) })] + string TargetVMName { get; set; } + /// A value indicating whether confidential compute encryption to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether confidential compute encryption to be enabled.", + SerializedName = @"isTargetVmConfidentialEncryptionEnabled", + PossibleTypes = new [] { typeof(string) })] + string TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled { get; set; } + /// A value indicating whether integrity monitoring to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether integrity monitoring to be enabled.", + SerializedName = @"isTargetVmIntegrityMonitoringEnabled", + PossibleTypes = new [] { typeof(string) })] + string TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled { get; set; } + /// A value indicating whether secure boot to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether secure boot to be enabled.", + SerializedName = @"isTargetVmSecureBootEnabled", + PossibleTypes = new [] { typeof(string) })] + string TargetVMSecurityProfileIsTargetVmsecureBootEnabled { get; set; } + /// A value indicating whether trusted platform module to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether trusted platform module to be enabled.", + SerializedName = @"isTargetVmTpmEnabled", + PossibleTypes = new [] { typeof(string) })] + string TargetVMSecurityProfileIsTargetVmtpmEnabled { get; set; } + /// The target VM security type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target VM security type.", + SerializedName = @"targetVmSecurityType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType? TargetVMSecurityProfileTargetVmsecurityType { get; set; } + /// The target VM size. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target VM size.", + SerializedName = @"targetVmSize", + PossibleTypes = new [] { typeof(string) })] + string TargetVMSize { get; set; } + /// The target VM tags. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target VM tags.", + SerializedName = @"targetVmTags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags TargetVMTag { get; set; } + /// The selected test network ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The selected test network ARM Id.", + SerializedName = @"testNetworkId", + PossibleTypes = new [] { typeof(string) })] + string TestNetworkId { get; set; } + /// The selected test subnet name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The selected test subnet name.", + SerializedName = @"testSubnetName", + PossibleTypes = new [] { typeof(string) })] + string TestSubnetName { get; set; } + /// The ARM Id of the VM discovered in VMware. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ARM Id of the VM discovered in VMware.", + SerializedName = @"vmwareMachineId", + PossibleTypes = new [] { typeof(string) })] + string VmwareMachineId { get; set; } + + } + /// VMwareCbt specific enable migration input. + internal partial interface IVMwareCbtEnableMigrationInputInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInputInternal + { + /// The confidential VM key vault Id for ADE installation. + string ConfidentialVMKeyVaultId { get; set; } + /// The data mover run as account Id. + string DataMoverRunAsAccountId { get; set; } + /// The disks to include list. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput[] DisksToInclude { get; set; } + /// License type. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get; set; } + /// A value indicating whether auto resync is to be done. + string PerformAutoResync { get; set; } + /// A value indicating whether bulk SQL RP registration to be done. + string PerformSqlBulkRegistration { get; set; } + /// The tags for the seed disks. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags SeedDiskTag { get; set; } + /// The snapshot run as account Id. + string SnapshotRunAsAccountId { get; set; } + /// The SQL Server license type. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType? SqlServerLicenseType { get; set; } + /// The target availability set ARM Id. + string TargetAvailabilitySetId { get; set; } + /// The target availability zone. + string TargetAvailabilityZone { get; set; } + /// The target boot diagnostics storage account ARM Id. + string TargetBootDiagnosticsStorageAccountId { get; set; } + /// The tags for the target disks. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags TargetDiskTag { get; set; } + /// The target network ARM Id. + string TargetNetworkId { get; set; } + /// The tags for the target NICs. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags TargetNicTag { get; set; } + /// The target proximity placement group ARM Id. + string TargetProximityPlacementGroupId { get; set; } + /// The target resource group ARM Id. + string TargetResourceGroupId { get; set; } + /// The target subnet name. + string TargetSubnetName { get; set; } + /// The target VM name. + string TargetVMName { get; set; } + /// The target VM security profile. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties TargetVMSecurityProfile { get; set; } + /// A value indicating whether confidential compute encryption to be enabled. + string TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled { get; set; } + /// A value indicating whether integrity monitoring to be enabled. + string TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled { get; set; } + /// A value indicating whether secure boot to be enabled. + string TargetVMSecurityProfileIsTargetVmsecureBootEnabled { get; set; } + /// A value indicating whether trusted platform module to be enabled. + string TargetVMSecurityProfileIsTargetVmtpmEnabled { get; set; } + /// The target VM security type. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType? TargetVMSecurityProfileTargetVmsecurityType { get; set; } + /// The target VM size. + string TargetVMSize { get; set; } + /// The target VM tags. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags TargetVMTag { get; set; } + /// The selected test network ARM Id. + string TestNetworkId { get; set; } + /// The selected test subnet name. + string TestSubnetName { get; set; } + /// The ARM Id of the VM discovered in VMware. + string VmwareMachineId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInput.json.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInput.json.cs index 58f979f71559..9b88214f9963 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtEnableMigrationInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtEnableMigrationInput(json) : null; } @@ -85,6 +85,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M return container; } __enableMigrationProviderSpecificInput?.ToJson(container, serializationMode); + AddIf( null != this._targetVMSecurityProfile ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._targetVMSecurityProfile.ToJson(null,serializationMode) : null, "targetVmSecurityProfile" ,container.Add ); AddIf( null != (((object)this._vmwareMachineId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._vmwareMachineId.ToString()) : null, "vmwareMachineId" ,container.Add ); if (null != this._disksToInclude) { @@ -97,6 +98,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M } AddIf( null != (((object)this._licenseType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._licenseType.ToString()) : null, "licenseType" ,container.Add ); AddIf( null != (((object)this._sqlServerLicenseType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._sqlServerLicenseType.ToString()) : null, "sqlServerLicenseType" ,container.Add ); + AddIf( null != (((object)this._performSqlBulkRegistration)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._performSqlBulkRegistration.ToString()) : null, "performSqlBulkRegistration" ,container.Add ); AddIf( null != (((object)this._dataMoverRunAsAccountId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._dataMoverRunAsAccountId.ToString()) : null, "dataMoverRunAsAccountId" ,container.Add ); AddIf( null != (((object)this._snapshotRunAsAccountId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._snapshotRunAsAccountId.ToString()) : null, "snapshotRunAsAccountId" ,container.Add ); AddIf( null != (((object)this._targetVMName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._targetVMName.ToString()) : null, "targetVmName" ,container.Add ); @@ -109,6 +111,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M AddIf( null != (((object)this._targetAvailabilitySetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._targetAvailabilitySetId.ToString()) : null, "targetAvailabilitySetId" ,container.Add ); AddIf( null != (((object)this._targetAvailabilityZone)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._targetAvailabilityZone.ToString()) : null, "targetAvailabilityZone" ,container.Add ); AddIf( null != (((object)this._targetProximityPlacementGroupId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._targetProximityPlacementGroupId.ToString()) : null, "targetProximityPlacementGroupId" ,container.Add ); + AddIf( null != (((object)this._confidentialVMKeyVaultId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._confidentialVMKeyVaultId.ToString()) : null, "confidentialVmKeyVaultId" ,container.Add ); AddIf( null != (((object)this._targetBootDiagnosticsStorageAccountId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._targetBootDiagnosticsStorageAccountId.ToString()) : null, "targetBootDiagnosticsStorageAccountId" ,container.Add ); AddIf( null != (((object)this._performAutoResync)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._performAutoResync.ToString()) : null, "performAutoResync" ,container.Add ); AddIf( null != this._targetVMTag ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._targetVMTag.ToJson(null,serializationMode) : null, "targetVmTags" ,container.Add ); @@ -131,11 +134,13 @@ internal VMwareCbtEnableMigrationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - __enableMigrationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationProviderSpecificInput(json); + __enableMigrationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationProviderSpecificInput(json); + {_targetVMSecurityProfile = If( json?.PropertyT("targetVmSecurityProfile"), out var __jsonTargetVMSecurityProfile) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtSecurityProfileProperties.FromJson(__jsonTargetVMSecurityProfile) : TargetVMSecurityProfile;} {_vmwareMachineId = If( json?.PropertyT("vmwareMachineId"), out var __jsonVmwareMachineId) ? (string)__jsonVmwareMachineId : (string)VmwareMachineId;} - {_disksToInclude = If( json?.PropertyT("disksToInclude"), out var __jsonDisksToInclude) ? If( __jsonDisksToInclude as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtDiskInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtDiskInput.FromJson(__u) )) ))() : null : DisksToInclude;} + {_disksToInclude = If( json?.PropertyT("disksToInclude"), out var __jsonDisksToInclude) ? If( __jsonDisksToInclude as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IVMwareCbtDiskInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtDiskInput.FromJson(__u) )) ))() : null : DisksToInclude;} {_licenseType = If( json?.PropertyT("licenseType"), out var __jsonLicenseType) ? (string)__jsonLicenseType : (string)LicenseType;} {_sqlServerLicenseType = If( json?.PropertyT("sqlServerLicenseType"), out var __jsonSqlServerLicenseType) ? (string)__jsonSqlServerLicenseType : (string)SqlServerLicenseType;} + {_performSqlBulkRegistration = If( json?.PropertyT("performSqlBulkRegistration"), out var __jsonPerformSqlBulkRegistration) ? (string)__jsonPerformSqlBulkRegistration : (string)PerformSqlBulkRegistration;} {_dataMoverRunAsAccountId = If( json?.PropertyT("dataMoverRunAsAccountId"), out var __jsonDataMoverRunAsAccountId) ? (string)__jsonDataMoverRunAsAccountId : (string)DataMoverRunAsAccountId;} {_snapshotRunAsAccountId = If( json?.PropertyT("snapshotRunAsAccountId"), out var __jsonSnapshotRunAsAccountId) ? (string)__jsonSnapshotRunAsAccountId : (string)SnapshotRunAsAccountId;} {_targetVMName = If( json?.PropertyT("targetVmName"), out var __jsonTargetVMName) ? (string)__jsonTargetVMName : (string)TargetVMName;} @@ -148,12 +153,13 @@ internal VMwareCbtEnableMigrationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrat {_targetAvailabilitySetId = If( json?.PropertyT("targetAvailabilitySetId"), out var __jsonTargetAvailabilitySetId) ? (string)__jsonTargetAvailabilitySetId : (string)TargetAvailabilitySetId;} {_targetAvailabilityZone = If( json?.PropertyT("targetAvailabilityZone"), out var __jsonTargetAvailabilityZone) ? (string)__jsonTargetAvailabilityZone : (string)TargetAvailabilityZone;} {_targetProximityPlacementGroupId = If( json?.PropertyT("targetProximityPlacementGroupId"), out var __jsonTargetProximityPlacementGroupId) ? (string)__jsonTargetProximityPlacementGroupId : (string)TargetProximityPlacementGroupId;} + {_confidentialVMKeyVaultId = If( json?.PropertyT("confidentialVmKeyVaultId"), out var __jsonConfidentialVMKeyVaultId) ? (string)__jsonConfidentialVMKeyVaultId : (string)ConfidentialVMKeyVaultId;} {_targetBootDiagnosticsStorageAccountId = If( json?.PropertyT("targetBootDiagnosticsStorageAccountId"), out var __jsonTargetBootDiagnosticsStorageAccountId) ? (string)__jsonTargetBootDiagnosticsStorageAccountId : (string)TargetBootDiagnosticsStorageAccountId;} {_performAutoResync = If( json?.PropertyT("performAutoResync"), out var __jsonPerformAutoResync) ? (string)__jsonPerformAutoResync : (string)PerformAutoResync;} - {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetVmtags.FromJson(__jsonTargetVMTags) : TargetVMTag;} - {_seedDiskTag = If( json?.PropertyT("seedDiskTags"), out var __jsonSeedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputSeedDiskTags.FromJson(__jsonSeedDiskTags) : SeedDiskTag;} - {_targetDiskTag = If( json?.PropertyT("targetDiskTags"), out var __jsonTargetDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetDiskTags.FromJson(__jsonTargetDiskTags) : TargetDiskTag;} - {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} + {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetVmtags.FromJson(__jsonTargetVMTags) : TargetVMTag;} + {_seedDiskTag = If( json?.PropertyT("seedDiskTags"), out var __jsonSeedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputSeedDiskTags.FromJson(__jsonSeedDiskTags) : SeedDiskTag;} + {_targetDiskTag = If( json?.PropertyT("targetDiskTags"), out var __jsonTargetDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetDiskTags.FromJson(__jsonTargetDiskTags) : TargetDiskTag;} + {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.PowerShell.cs index be4ecb84d901..e741747bf567 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VMwareCbtEnableMigrationInputSeedDiskTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtEnableMigrationInputSeedDiskTags(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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtEnableMigrationInputSeedDiskTags(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VMwareCbtEnableMigrationInputSeedDiskTags(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. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.TypeConverter.cs index dc98aa57e661..84433f4df983 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.cs index 71efce82d967..ad4c59f55669 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the seed disks. public partial class VMwareCbtEnableMigrationInputSeedDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.dictionary.cs index 46ec968f727c..ff8e02a9d2ea 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputSeedDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputSeedDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.json.cs index 87e94662c4af..8db37f4aa3df 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputSeedDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputSeedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtEnableMigrationInputSeedDiskTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputSeedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputSeedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtEnableMigrationInputSeedDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.PowerShell.cs index 12a87402166e..a2eac25af656 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VMwareCbtEnableMigrationInputTargetDiskTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtEnableMigrationInputTargetDiskTags(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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtEnableMigrationInputTargetDiskTags(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VMwareCbtEnableMigrationInputTargetDiskTags(global::System.Collections. } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.TypeConverter.cs index b9fc71c2cae8..daaf7150824a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.cs index 059d9bd352aa..656982d00a16 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target disks. public partial class VMwareCbtEnableMigrationInputTargetDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.dictionary.cs index 72fa15f6b59c..5f018680e9a2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.json.cs index 24b0db295171..89ecea09e8ea 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtEnableMigrationInputTargetDiskTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtEnableMigrationInputTargetDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.PowerShell.cs index a6b33c7d732c..273bb2c2a9be 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VMwareCbtEnableMigrationInputTargetNicTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtEnableMigrationInputTargetNicTags(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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtEnableMigrationInputTargetNicTags(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VMwareCbtEnableMigrationInputTargetNicTags(global::System.Collections.I } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.TypeConverter.cs index 28ffea0ad664..377388b79024 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.cs index c840dee565bc..84ba39214202 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target NICs. public partial class VMwareCbtEnableMigrationInputTargetNicTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.dictionary.cs index a43a94780d32..f00c5ad78d22 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetNicTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetNicTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.json.cs index db80599c3d6a..b96fa33c197d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetNicTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtEnableMigrationInputTargetNicTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtEnableMigrationInputTargetNicTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.PowerShell.cs index 2ab18523f926..1a17efff398f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VMwareCbtEnableMigrationInputTargetVmtags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtEnableMigrationInputTargetVmtags(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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtEnableMigrationInputTargetVmtags(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VMwareCbtEnableMigrationInputTargetVmtags(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. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.TypeConverter.cs index eb73132849ca..78438dcac5a6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.cs index 914280080554..e3f57f7d3d87 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The target VM tags. public partial class VMwareCbtEnableMigrationInputTargetVmtags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.dictionary.cs index cd9f37e27695..78e0d94ad866 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtEnableMigrationInputTargetVmtags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtEnableMigrationInputTargetVmtags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.json.cs index b01112a70424..e546491ba3a0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEnableMigrationInputTargetVmtags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEnableMigrationInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtEnableMigrationInputTargetVmtags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtEnableMigrationInputTargetVmtags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEventDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEventDetails.PowerShell.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEventDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEventDetails.PowerShell.cs index 06cb1a397c55..7093436224e9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEventDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class VMwareCbtEventDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtEventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtEventDetails(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.Migrate.Models.Api20220501.IVMwareCbtEventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtEventDetails(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// 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 VMwareCbtEventDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("MigrationItemName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEventDetailsInternal)this).MigrationItemName = (string) content.GetValueForProperty("MigrationItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEventDetailsInternal)this).MigrationItemName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetailsInternal)this).MigrationItemName = (string) content.GetValueForProperty("MigrationItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetailsInternal)this).MigrationItemName, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, 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. @@ -133,11 +133,11 @@ internal VMwareCbtEventDetails(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("MigrationItemName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEventDetailsInternal)this).MigrationItemName = (string) content.GetValueForProperty("MigrationItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEventDetailsInternal)this).MigrationItemName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetailsInternal)this).MigrationItemName = (string) content.GetValueForProperty("MigrationItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetailsInternal)this).MigrationItemName, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEventDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEventDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEventDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEventDetails.TypeConverter.cs index c952f61a893c..37e775ac0379 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEventDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtEventDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEventDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEventDetails.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEventDetails.cs similarity index 81% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEventDetails.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEventDetails.cs index b8c4a69b745e..22e861a5aaf8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEventDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Event details for VMwareCbt provider. public partial class VMwareCbtEventDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEventDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEventDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(); /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal)__eventProviderSpecificDetails).InstanceType = value ; } /// Internal Acessors for MigrationItemName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEventDetailsInternal.MigrationItemName { get => this._migrationItemName; set { {_migrationItemName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetailsInternal.MigrationItemName { get => this._migrationItemName; set { {_migrationItemName = value;} } } /// Backing field for property. private string _migrationItemName; @@ -54,7 +54,7 @@ public VMwareCbtEventDetails() /// Event details for VMwareCbt provider. public partial interface IVMwareCbtEventDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetails { /// The migration item name. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -68,7 +68,7 @@ public partial interface IVMwareCbtEventDetails : } /// Event details for VMwareCbt provider. internal partial interface IVMwareCbtEventDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEventProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEventProviderSpecificDetailsInternal { /// The migration item name. string MigrationItemName { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEventDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEventDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtEventDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtEventDetails.json.cs index 6f4666f6e72c..96e962d1e3a9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtEventDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtEventDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtEventDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEventDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEventDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEventDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtEventDetails(json) : null; } @@ -105,7 +105,7 @@ internal VMwareCbtEventDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EventProviderSpecificDetails(json); + __eventProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EventProviderSpecificDetails(json); {_migrationItemName = If( json?.PropertyT("migrationItemName"), out var __jsonMigrationItemName) ? (string)__jsonMigrationItemName : (string)MigrationItemName;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrateInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrateInput.PowerShell.cs new file mode 100644 index 000000000000..4fcf2a5928fb --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrateInput.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMwareCbt specific migrate input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtMigrateInputTypeConverter))] + public partial class VMwareCbtMigrateInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareCbtMigrateInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareCbtMigrateInput(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.Migrate.Models.Api202301.IVMwareCbtMigrateInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareCbtMigrateInput(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.Migrate.Models.Api202301.IVMwareCbtMigrateInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareCbtMigrateInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PerformShutdown")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInputInternal)this).PerformShutdown = (string) content.GetValueForProperty("PerformShutdown",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInputInternal)this).PerformShutdown, global::System.Convert.ToString); + } + if (content.Contains("OSUpgradeVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInputInternal)this).OSUpgradeVersion = (string) content.GetValueForProperty("OSUpgradeVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInputInternal)this).OSUpgradeVersion, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInputInternal)this).InstanceType, 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 VMwareCbtMigrateInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("PerformShutdown")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInputInternal)this).PerformShutdown = (string) content.GetValueForProperty("PerformShutdown",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInputInternal)this).PerformShutdown, global::System.Convert.ToString); + } + if (content.Contains("OSUpgradeVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInputInternal)this).OSUpgradeVersion = (string) content.GetValueForProperty("OSUpgradeVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInputInternal)this).OSUpgradeVersion, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMwareCbt specific migrate input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtMigrateInputTypeConverter))] + public partial interface IVMwareCbtMigrateInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrateInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrateInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrateInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrateInput.TypeConverter.cs index a1280b283f07..75beedbacd64 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrateInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrateInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtMigrateInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrateInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrateInput.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrateInput.cs new file mode 100644 index 000000000000..f70f724e34ff --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrateInput.cs @@ -0,0 +1,91 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// VMwareCbt specific migrate input. + public partial class VMwareCbtMigrateInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput __migrateProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateProviderSpecificInput(); + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInputInternal)__migrateProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInputInternal)__migrateProviderSpecificInput).InstanceType = value ; } + + /// Backing field for property. + private string _oSUpgradeVersion; + + /// A value indicating the inplace OS Upgrade version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string OSUpgradeVersion { get => this._oSUpgradeVersion; set => this._oSUpgradeVersion = value; } + + /// Backing field for property. + private string _performShutdown; + + /// A value indicating whether VM is to be shutdown. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PerformShutdown { get => this._performShutdown; set => this._performShutdown = value; } + + /// Creates an new instance. + public VMwareCbtMigrateInput() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__migrateProviderSpecificInput), __migrateProviderSpecificInput); + await eventListener.AssertObjectIsValid(nameof(__migrateProviderSpecificInput), __migrateProviderSpecificInput); + } + } + /// VMwareCbt specific migrate input. + public partial interface IVMwareCbtMigrateInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput + { + /// A value indicating the inplace OS Upgrade version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating the inplace OS Upgrade version.", + SerializedName = @"osUpgradeVersion", + PossibleTypes = new [] { typeof(string) })] + string OSUpgradeVersion { get; set; } + /// A value indicating whether VM is to be shutdown. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A value indicating whether VM is to be shutdown.", + SerializedName = @"performShutdown", + PossibleTypes = new [] { typeof(string) })] + string PerformShutdown { get; set; } + + } + /// VMwareCbt specific migrate input. + internal partial interface IVMwareCbtMigrateInputInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInputInternal + { + /// A value indicating the inplace OS Upgrade version. + string OSUpgradeVersion { get; set; } + /// A value indicating whether VM is to be shutdown. + string PerformShutdown { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrateInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrateInput.json.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrateInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrateInput.json.cs index 19ee30c5b8b1..33df64228016 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrateInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrateInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtMigrateInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrateInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrateInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrateInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrateInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtMigrateInput(json) : null; } @@ -86,6 +86,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M } __migrateProviderSpecificInput?.ToJson(container, serializationMode); AddIf( null != (((object)this._performShutdown)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._performShutdown.ToString()) : null, "performShutdown" ,container.Add ); + AddIf( null != (((object)this._oSUpgradeVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._oSUpgradeVersion.ToString()) : null, "osUpgradeVersion" ,container.Add ); AfterToJson(ref container); return container; } @@ -102,8 +103,9 @@ internal VMwareCbtMigrateInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - __migrateProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateProviderSpecificInput(json); + __migrateProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateProviderSpecificInput(json); {_performShutdown = If( json?.PropertyT("performShutdown"), out var __jsonPerformShutdown) ? (string)__jsonPerformShutdown : (string)PerformShutdown;} + {_oSUpgradeVersion = If( json?.PropertyT("osUpgradeVersion"), out var __jsonOSUpgradeVersion) ? (string)__jsonOSUpgradeVersion : (string)OSUpgradeVersion;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetails.PowerShell.cs new file mode 100644 index 000000000000..1b83abd0f95b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetails.PowerShell.cs @@ -0,0 +1,520 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMwareCbt provider specific settings. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtMigrationDetailsTypeConverter))] + public partial class VMwareCbtMigrationDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareCbtMigrationDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareCbtMigrationDetails(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.Migrate.Models.Api202301.IVMwareCbtMigrationDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareCbtMigrationDetails(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.Migrate.Models.Api202301.IVMwareCbtMigrationDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareCbtMigrationDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetVMSecurityProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfile = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties) content.GetValueForProperty("TargetVMSecurityProfile",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfile, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtSecurityProfilePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("VmwareMachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).VmwareMachineId = (string) content.GetValueForProperty("VmwareMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).VmwareMachineId, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("OSName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).OSName = (string) content.GetValueForProperty("OSName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).OSName, global::System.Convert.ToString); + } + if (content.Contains("FirmwareType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).FirmwareType = (string) content.GetValueForProperty("FirmwareType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).FirmwareType, global::System.Convert.ToString); + } + if (content.Contains("TargetGeneration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetGeneration = (string) content.GetValueForProperty("TargetGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetGeneration, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).LicenseType, global::System.Convert.ToString); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SqlServerLicenseType = (string) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SqlServerLicenseType, global::System.Convert.ToString); + } + if (content.Contains("DataMoverRunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).DataMoverRunAsAccountId = (string) content.GetValueForProperty("DataMoverRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).DataMoverRunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("SnapshotRunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SnapshotRunAsAccountId = (string) content.GetValueForProperty("SnapshotRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SnapshotRunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("TargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetLocation, global::System.Convert.ToString); + } + if (content.Contains("TargetResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("ConfidentialVMKeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ConfidentialVMKeyVaultId = (string) content.GetValueForProperty("ConfidentialVMKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ConfidentialVMKeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("TargetBootDiagnosticsStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetVmtagsTypeConverter.ConvertFrom); + } + if (content.Contains("ProtectedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("TargetNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TestNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TestNetworkId, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationRecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).MigrationRecoveryPointId = (string) content.GetValueForProperty("MigrationRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).MigrationRecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("LastRecoveryPointReceived")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastRecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointId = (string) content.GetValueForProperty("LastRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InitialSeedingProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingProgressPercentage = (int?) content.GetValueForProperty("InitialSeedingProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MigrationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).MigrationProgressPercentage = (int?) content.GetValueForProperty("MigrationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).MigrationProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResyncProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResumeProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResumeProgressPercentage = (int?) content.GetValueForProperty("ResumeProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResumeProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InitialSeedingRetryCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingRetryCount = (long?) content.GetValueForProperty("InitialSeedingRetryCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingRetryCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncRetryCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncRetryCount = (long?) content.GetValueForProperty("ResyncRetryCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncRetryCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResumeRetryCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResumeRetryCount = (long?) content.GetValueForProperty("ResumeRetryCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResumeRetryCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); + } + if (content.Contains("ResyncState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState?) content.GetValueForProperty("ResyncState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState.CreateFrom); + } + if (content.Contains("PerformAutoResync")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).PerformAutoResync = (string) content.GetValueForProperty("PerformAutoResync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).PerformAutoResync, global::System.Convert.ToString); + } + if (content.Contains("SeedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SeedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags) content.GetValueForProperty("SeedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SeedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsSeedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags) content.GetValueForProperty("TargetDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("SupportedOSVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SupportedOSVersion = (string[]) content.GetValueForProperty("SupportedOSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SupportedOSVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileTargetVmsecurityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileTargetVmsecurityType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType?) content.GetValueForProperty("TargetVMSecurityProfileTargetVmsecurityType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileTargetVmsecurityType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType.CreateFrom); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmsecureBootEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmsecureBootEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmsecureBootEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmsecureBootEnabled, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmtpmEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmtpmEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmtpmEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmtpmEnabled, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled, 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 VMwareCbtMigrationDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetVMSecurityProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfile = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties) content.GetValueForProperty("TargetVMSecurityProfile",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfile, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtSecurityProfilePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("VmwareMachineId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).VmwareMachineId = (string) content.GetValueForProperty("VmwareMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).VmwareMachineId, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("OSName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).OSName = (string) content.GetValueForProperty("OSName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).OSName, global::System.Convert.ToString); + } + if (content.Contains("FirmwareType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).FirmwareType = (string) content.GetValueForProperty("FirmwareType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).FirmwareType, global::System.Convert.ToString); + } + if (content.Contains("TargetGeneration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetGeneration = (string) content.GetValueForProperty("TargetGeneration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetGeneration, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).LicenseType = (string) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).LicenseType, global::System.Convert.ToString); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SqlServerLicenseType = (string) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SqlServerLicenseType, global::System.Convert.ToString); + } + if (content.Contains("DataMoverRunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).DataMoverRunAsAccountId = (string) content.GetValueForProperty("DataMoverRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).DataMoverRunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("SnapshotRunAsAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SnapshotRunAsAccountId = (string) content.GetValueForProperty("SnapshotRunAsAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SnapshotRunAsAccountId, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("TargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetLocation, global::System.Convert.ToString); + } + if (content.Contains("TargetResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("ConfidentialVMKeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ConfidentialVMKeyVaultId = (string) content.GetValueForProperty("ConfidentialVMKeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ConfidentialVMKeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("TargetBootDiagnosticsStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetVmtagsTypeConverter.ConvertFrom); + } + if (content.Contains("ProtectedDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ProtectedDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails[]) content.GetValueForProperty("ProtectedDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ProtectedDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectedDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("TargetNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TestNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TestNetworkId, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetails[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationRecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).MigrationRecoveryPointId = (string) content.GetValueForProperty("MigrationRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).MigrationRecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("LastRecoveryPointReceived")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointReceived = (global::System.DateTime?) content.GetValueForProperty("LastRecoveryPointReceived",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointReceived, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastRecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointId = (string) content.GetValueForProperty("LastRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).LastRecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("InitialSeedingProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingProgressPercentage = (int?) content.GetValueForProperty("InitialSeedingProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MigrationProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).MigrationProgressPercentage = (int?) content.GetValueForProperty("MigrationProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).MigrationProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResyncProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncProgressPercentage = (int?) content.GetValueForProperty("ResyncProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ResumeProgressPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResumeProgressPercentage = (int?) content.GetValueForProperty("ResumeProgressPercentage",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResumeProgressPercentage, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InitialSeedingRetryCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingRetryCount = (long?) content.GetValueForProperty("InitialSeedingRetryCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).InitialSeedingRetryCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncRetryCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncRetryCount = (long?) content.GetValueForProperty("ResyncRetryCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncRetryCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResumeRetryCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResumeRetryCount = (long?) content.GetValueForProperty("ResumeRetryCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResumeRetryCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("ResyncRequired")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncRequired = (string) content.GetValueForProperty("ResyncRequired",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncRequired, global::System.Convert.ToString); + } + if (content.Contains("ResyncState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncState = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState?) content.GetValueForProperty("ResyncState",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).ResyncState, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState.CreateFrom); + } + if (content.Contains("PerformAutoResync")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).PerformAutoResync = (string) content.GetValueForProperty("PerformAutoResync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).PerformAutoResync, global::System.Convert.ToString); + } + if (content.Contains("SeedDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SeedDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags) content.GetValueForProperty("SeedDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SeedDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsSeedDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags) content.GetValueForProperty("TargetDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("SupportedOSVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SupportedOSVersion = (string[]) content.GetValueForProperty("SupportedOSVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).SupportedOSVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileTargetVmsecurityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileTargetVmsecurityType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType?) content.GetValueForProperty("TargetVMSecurityProfileTargetVmsecurityType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileTargetVmsecurityType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType.CreateFrom); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmsecureBootEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmsecureBootEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmsecureBootEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmsecureBootEnabled, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmtpmEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmtpmEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmtpmEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmtpmEnabled, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled = (string) content.GetValueForProperty("TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal)this).TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMwareCbt provider specific settings. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtMigrationDetailsTypeConverter))] + public partial interface IVMwareCbtMigrationDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetails.TypeConverter.cs index 426e3859d07e..179d88e095d7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetails.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetails.cs new file mode 100644 index 000000000000..a0953a2268e6 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetails.cs @@ -0,0 +1,907 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// VMwareCbt provider specific settings. + public partial class VMwareCbtMigrationDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings __migrationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationProviderSpecificSettings(); + + /// Backing field for property. + private string _confidentialVMKeyVaultId; + + /// The confidential VM key vault Id for ADE installation. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ConfidentialVMKeyVaultId { get => this._confidentialVMKeyVaultId; set => this._confidentialVMKeyVaultId = value; } + + /// Backing field for property. + private string _dataMoverRunAsAccountId; + + /// The data mover run as account Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string DataMoverRunAsAccountId { get => this._dataMoverRunAsAccountId; } + + /// Backing field for property. + private string _firmwareType; + + /// The firmware type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string FirmwareType { get => this._firmwareType; } + + /// Backing field for property. + private int? _initialSeedingProgressPercentage; + + /// The initial seeding progress percentage. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public int? InitialSeedingProgressPercentage { get => this._initialSeedingProgressPercentage; } + + /// Backing field for property. + private long? _initialSeedingRetryCount; + + /// The initial seeding retry count. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public long? InitialSeedingRetryCount { get => this._initialSeedingRetryCount; } + + /// Gets the instance type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettingsInternal)__migrationProviderSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettingsInternal)__migrationProviderSpecificSettings).InstanceType = value ; } + + /// Backing field for property. + private string _lastRecoveryPointId; + + /// The last recovery point Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string LastRecoveryPointId { get => this._lastRecoveryPointId; } + + /// Backing field for property. + private global::System.DateTime? _lastRecoveryPointReceived; + + /// The last recovery point received time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public global::System.DateTime? LastRecoveryPointReceived { get => this._lastRecoveryPointReceived; } + + /// Backing field for property. + private string _licenseType; + + /// License Type of the VM to be used. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string LicenseType { get => this._licenseType; set => this._licenseType = value; } + + /// Internal Acessors for DataMoverRunAsAccountId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.DataMoverRunAsAccountId { get => this._dataMoverRunAsAccountId; set { {_dataMoverRunAsAccountId = value;} } } + + /// Internal Acessors for FirmwareType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.FirmwareType { get => this._firmwareType; set { {_firmwareType = value;} } } + + /// Internal Acessors for InitialSeedingProgressPercentage + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.InitialSeedingProgressPercentage { get => this._initialSeedingProgressPercentage; set { {_initialSeedingProgressPercentage = value;} } } + + /// Internal Acessors for InitialSeedingRetryCount + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.InitialSeedingRetryCount { get => this._initialSeedingRetryCount; set { {_initialSeedingRetryCount = value;} } } + + /// Internal Acessors for LastRecoveryPointId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.LastRecoveryPointId { get => this._lastRecoveryPointId; set { {_lastRecoveryPointId = value;} } } + + /// Internal Acessors for LastRecoveryPointReceived + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.LastRecoveryPointReceived { get => this._lastRecoveryPointReceived; set { {_lastRecoveryPointReceived = value;} } } + + /// Internal Acessors for MigrationProgressPercentage + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.MigrationProgressPercentage { get => this._migrationProgressPercentage; set { {_migrationProgressPercentage = value;} } } + + /// Internal Acessors for MigrationRecoveryPointId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.MigrationRecoveryPointId { get => this._migrationRecoveryPointId; set { {_migrationRecoveryPointId = value;} } } + + /// Internal Acessors for OSName + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.OSName { get => this._oSName; set { {_oSName = value;} } } + + /// Internal Acessors for OSType + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.OSType { get => this._oSType; set { {_oSType = value;} } } + + /// Internal Acessors for ResumeProgressPercentage + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.ResumeProgressPercentage { get => this._resumeProgressPercentage; set { {_resumeProgressPercentage = value;} } } + + /// Internal Acessors for ResumeRetryCount + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.ResumeRetryCount { get => this._resumeRetryCount; set { {_resumeRetryCount = value;} } } + + /// Internal Acessors for ResyncProgressPercentage + int? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.ResyncProgressPercentage { get => this._resyncProgressPercentage; set { {_resyncProgressPercentage = value;} } } + + /// Internal Acessors for ResyncRequired + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.ResyncRequired { get => this._resyncRequired; set { {_resyncRequired = value;} } } + + /// Internal Acessors for ResyncRetryCount + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.ResyncRetryCount { get => this._resyncRetryCount; set { {_resyncRetryCount = value;} } } + + /// Internal Acessors for ResyncState + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.ResyncState { get => this._resyncState; set { {_resyncState = value;} } } + + /// Internal Acessors for SnapshotRunAsAccountId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.SnapshotRunAsAccountId { get => this._snapshotRunAsAccountId; set { {_snapshotRunAsAccountId = value;} } } + + /// Internal Acessors for StorageAccountId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.StorageAccountId { get => this._storageAccountId; set { {_storageAccountId = value;} } } + + /// Internal Acessors for TargetGeneration + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.TargetGeneration { get => this._targetGeneration; set { {_targetGeneration = value;} } } + + /// Internal Acessors for TargetLocation + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.TargetLocation { get => this._targetLocation; set { {_targetLocation = value;} } } + + /// Internal Acessors for TargetVMSecurityProfile + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.TargetVMSecurityProfile { get => (this._targetVMSecurityProfile = this._targetVMSecurityProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtSecurityProfileProperties()); set { {_targetVMSecurityProfile = value;} } } + + /// Internal Acessors for VmwareMachineId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsInternal.VmwareMachineId { get => this._vmwareMachineId; set { {_vmwareMachineId = value;} } } + + /// Backing field for property. + private int? _migrationProgressPercentage; + + /// The migration progress percentage. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public int? MigrationProgressPercentage { get => this._migrationProgressPercentage; } + + /// Backing field for property. + private string _migrationRecoveryPointId; + + /// The recovery point Id to which the VM was migrated. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string MigrationRecoveryPointId { get => this._migrationRecoveryPointId; } + + /// Backing field for property. + private string _oSName; + + /// The name of the OS on the VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string OSName { get => this._oSName; } + + /// Backing field for property. + private string _oSType; + + /// The type of the OS on the VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string OSType { get => this._oSType; } + + /// Backing field for property. + private string _performAutoResync; + + /// A value indicating whether auto resync is to be done. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string PerformAutoResync { get => this._performAutoResync; set => this._performAutoResync = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails[] _protectedDisk; + + /// The list of protected disks. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails[] ProtectedDisk { get => this._protectedDisk; set => this._protectedDisk = value; } + + /// Backing field for property. + private int? _resumeProgressPercentage; + + /// The resume progress percentage. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public int? ResumeProgressPercentage { get => this._resumeProgressPercentage; } + + /// Backing field for property. + private long? _resumeRetryCount; + + /// The resume retry count. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public long? ResumeRetryCount { get => this._resumeRetryCount; } + + /// Backing field for property. + private int? _resyncProgressPercentage; + + /// The resync progress percentage. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public int? ResyncProgressPercentage { get => this._resyncProgressPercentage; } + + /// Backing field for property. + private string _resyncRequired; + + /// A value indicating whether resync is required. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ResyncRequired { get => this._resyncRequired; } + + /// Backing field for property. + private long? _resyncRetryCount; + + /// The resync retry count. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public long? ResyncRetryCount { get => this._resyncRetryCount; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState? _resyncState; + + /// The resync state. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState? ResyncState { get => this._resyncState; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags _seedDiskTag; + + /// The tags for the seed disks. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags SeedDiskTag { get => (this._seedDiskTag = this._seedDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsSeedDiskTags()); set => this._seedDiskTag = value; } + + /// Backing field for property. + private string _snapshotRunAsAccountId; + + /// The snapshot run as account Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string SnapshotRunAsAccountId { get => this._snapshotRunAsAccountId; } + + /// Backing field for property. + private string _sqlServerLicenseType; + + /// The SQL Server license type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string SqlServerLicenseType { get => this._sqlServerLicenseType; set => this._sqlServerLicenseType = value; } + + /// Backing field for property. + private string _storageAccountId; + + /// + /// The replication storage account ARM Id. This is applicable only for the blob based replication test hook. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string StorageAccountId { get => this._storageAccountId; } + + /// Backing field for property. + private string[] _supportedOSVersion; + + /// List of supported inplace OS Upgrade versions. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string[] SupportedOSVersion { get => this._supportedOSVersion; set => this._supportedOSVersion = value; } + + /// Backing field for property. + private string _targetAvailabilitySetId; + + /// The target availability set Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetAvailabilitySetId { get => this._targetAvailabilitySetId; set => this._targetAvailabilitySetId = value; } + + /// Backing field for property. + private string _targetAvailabilityZone; + + /// The target availability zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetAvailabilityZone { get => this._targetAvailabilityZone; set => this._targetAvailabilityZone = value; } + + /// + /// Backing field for property. + /// + private string _targetBootDiagnosticsStorageAccountId; + + /// The target boot diagnostics storage account ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetBootDiagnosticsStorageAccountId { get => this._targetBootDiagnosticsStorageAccountId; set => this._targetBootDiagnosticsStorageAccountId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags _targetDiskTag; + + /// The tags for the target disks. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags TargetDiskTag { get => (this._targetDiskTag = this._targetDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetDiskTags()); set => this._targetDiskTag = value; } + + /// Backing field for property. + private string _targetGeneration; + + /// The target generation. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetGeneration { get => this._targetGeneration; } + + /// Backing field for property. + private string _targetLocation; + + /// The target location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetLocation { get => this._targetLocation; } + + /// Backing field for property. + private string _targetNetworkId; + + /// The target network Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetNetworkId { get => this._targetNetworkId; set => this._targetNetworkId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags _targetNicTag; + + /// The tags for the target NICs. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetNicTags()); set => this._targetNicTag = value; } + + /// Backing field for property. + private string _targetProximityPlacementGroupId; + + /// The target proximity placement group Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetProximityPlacementGroupId { get => this._targetProximityPlacementGroupId; set => this._targetProximityPlacementGroupId = value; } + + /// Backing field for property. + private string _targetResourceGroupId; + + /// The target resource group Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetResourceGroupId { get => this._targetResourceGroupId; set => this._targetResourceGroupId = value; } + + /// Backing field for property. + private string _targetVMName; + + /// Target VM name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetVMName { get => this._targetVMName; set => this._targetVMName = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties _targetVMSecurityProfile; + + /// The target VM security profile. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties TargetVMSecurityProfile { get => (this._targetVMSecurityProfile = this._targetVMSecurityProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtSecurityProfileProperties()); set => this._targetVMSecurityProfile = value; } + + /// A value indicating whether confidential compute encryption to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMConfidentialEncryptionEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMConfidentialEncryptionEnabled = value ?? null; } + + /// A value indicating whether integrity monitoring to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMIntegrityMonitoringEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMIntegrityMonitoringEnabled = value ?? null; } + + /// A value indicating whether secure boot to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetVMSecurityProfileIsTargetVmsecureBootEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMSecureBootEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMSecureBootEnabled = value ?? null; } + + /// A value indicating whether trusted platform module to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string TargetVMSecurityProfileIsTargetVmtpmEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMTpmEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).IsTargetVMTpmEnabled = value ?? null; } + + /// The target VM security type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType? TargetVMSecurityProfileTargetVmsecurityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).TargetVMSecurityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)TargetVMSecurityProfile).TargetVMSecurityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType)""); } + + /// Backing field for property. + private string _targetVMSize; + + /// The target VM size. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetVMSize { get => this._targetVMSize; set => this._targetVMSize = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags _targetVMTag; + + /// The target VM tags. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetVmtags()); set => this._targetVMTag = value; } + + /// Backing field for property. + private string _testNetworkId; + + /// The test network Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TestNetworkId { get => this._testNetworkId; set => this._testNetworkId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetails[] _vMNic; + + /// The network details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetails[] VMNic { get => this._vMNic; set => this._vMNic = value; } + + /// Backing field for property. + private string _vmwareMachineId; + + /// The ARM Id of the VM discovered in VMware. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string VmwareMachineId { get => this._vmwareMachineId; } + + /// Creates an new instance. + public VMwareCbtMigrationDetails() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__migrationProviderSpecificSettings), __migrationProviderSpecificSettings); + await eventListener.AssertObjectIsValid(nameof(__migrationProviderSpecificSettings), __migrationProviderSpecificSettings); + } + } + /// VMwareCbt provider specific settings. + public partial interface IVMwareCbtMigrationDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettings + { + /// The confidential VM key vault Id for ADE installation. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The confidential VM key vault Id for ADE installation.", + SerializedName = @"confidentialVmKeyVaultId", + PossibleTypes = new [] { typeof(string) })] + string ConfidentialVMKeyVaultId { get; set; } + /// The data mover run as account Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The data mover run as account Id.", + SerializedName = @"dataMoverRunAsAccountId", + PossibleTypes = new [] { typeof(string) })] + string DataMoverRunAsAccountId { get; } + /// The firmware type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The firmware type.", + SerializedName = @"firmwareType", + PossibleTypes = new [] { typeof(string) })] + string FirmwareType { get; } + /// The initial seeding progress percentage. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The initial seeding progress percentage.", + SerializedName = @"initialSeedingProgressPercentage", + PossibleTypes = new [] { typeof(int) })] + int? InitialSeedingProgressPercentage { get; } + /// The initial seeding retry count. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The initial seeding retry count.", + SerializedName = @"initialSeedingRetryCount", + PossibleTypes = new [] { typeof(long) })] + long? InitialSeedingRetryCount { get; } + /// The last recovery point Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The last recovery point Id.", + SerializedName = @"lastRecoveryPointId", + PossibleTypes = new [] { typeof(string) })] + string LastRecoveryPointId { get; } + /// The last recovery point received time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The last recovery point received time.", + SerializedName = @"lastRecoveryPointReceived", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastRecoveryPointReceived { get; } + /// License Type of the VM to be used. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"License Type of the VM to be used.", + SerializedName = @"licenseType", + PossibleTypes = new [] { typeof(string) })] + string LicenseType { get; set; } + /// The migration progress percentage. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The migration progress percentage.", + SerializedName = @"migrationProgressPercentage", + PossibleTypes = new [] { typeof(int) })] + int? MigrationProgressPercentage { get; } + /// The recovery point Id to which the VM was migrated. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The recovery point Id to which the VM was migrated.", + SerializedName = @"migrationRecoveryPointId", + PossibleTypes = new [] { typeof(string) })] + string MigrationRecoveryPointId { get; } + /// The name of the OS on the VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of the OS on the VM.", + SerializedName = @"osName", + PossibleTypes = new [] { typeof(string) })] + string OSName { get; } + /// The type of the OS on the VM. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The type of the OS on the VM.", + SerializedName = @"osType", + PossibleTypes = new [] { typeof(string) })] + string OSType { get; } + /// A value indicating whether auto resync is to be done. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether auto resync is to be done.", + SerializedName = @"performAutoResync", + PossibleTypes = new [] { typeof(string) })] + string PerformAutoResync { get; set; } + /// The list of protected disks. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of protected disks.", + SerializedName = @"protectedDisks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails[] ProtectedDisk { get; set; } + /// The resume progress percentage. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The resume progress percentage.", + SerializedName = @"resumeProgressPercentage", + PossibleTypes = new [] { typeof(int) })] + int? ResumeProgressPercentage { get; } + /// The resume retry count. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The resume retry count.", + SerializedName = @"resumeRetryCount", + PossibleTypes = new [] { typeof(long) })] + long? ResumeRetryCount { get; } + /// The resync progress percentage. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The resync progress percentage.", + SerializedName = @"resyncProgressPercentage", + PossibleTypes = new [] { typeof(int) })] + int? ResyncProgressPercentage { get; } + /// A value indicating whether resync is required. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A value indicating whether resync is required.", + SerializedName = @"resyncRequired", + PossibleTypes = new [] { typeof(string) })] + string ResyncRequired { get; } + /// The resync retry count. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The resync retry count.", + SerializedName = @"resyncRetryCount", + PossibleTypes = new [] { typeof(long) })] + long? ResyncRetryCount { get; } + /// The resync state. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The resync state.", + SerializedName = @"resyncState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState? ResyncState { get; } + /// The tags for the seed disks. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The tags for the seed disks.", + SerializedName = @"seedDiskTags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags SeedDiskTag { get; set; } + /// The snapshot run as account Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The snapshot run as account Id.", + SerializedName = @"snapshotRunAsAccountId", + PossibleTypes = new [] { typeof(string) })] + string SnapshotRunAsAccountId { get; } + /// The SQL Server license type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SQL Server license type.", + SerializedName = @"sqlServerLicenseType", + PossibleTypes = new [] { typeof(string) })] + string SqlServerLicenseType { get; set; } + /// + /// The replication storage account ARM Id. This is applicable only for the blob based replication test hook. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The replication storage account ARM Id. This is applicable only for the blob based replication test hook.", + SerializedName = @"storageAccountId", + PossibleTypes = new [] { typeof(string) })] + string StorageAccountId { get; } + /// List of supported inplace OS Upgrade versions. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of supported inplace OS Upgrade versions.", + SerializedName = @"supportedOSVersions", + PossibleTypes = new [] { typeof(string) })] + string[] SupportedOSVersion { get; set; } + /// The target availability set Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target availability set Id.", + SerializedName = @"targetAvailabilitySetId", + PossibleTypes = new [] { typeof(string) })] + string TargetAvailabilitySetId { get; set; } + /// The target availability zone. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target availability zone.", + SerializedName = @"targetAvailabilityZone", + PossibleTypes = new [] { typeof(string) })] + string TargetAvailabilityZone { get; set; } + /// The target boot diagnostics storage account ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target boot diagnostics storage account ARM Id.", + SerializedName = @"targetBootDiagnosticsStorageAccountId", + PossibleTypes = new [] { typeof(string) })] + string TargetBootDiagnosticsStorageAccountId { get; set; } + /// The tags for the target disks. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The tags for the target disks.", + SerializedName = @"targetDiskTags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags TargetDiskTag { get; set; } + /// The target generation. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The target generation.", + SerializedName = @"targetGeneration", + PossibleTypes = new [] { typeof(string) })] + string TargetGeneration { get; } + /// The target location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The target location.", + SerializedName = @"targetLocation", + PossibleTypes = new [] { typeof(string) })] + string TargetLocation { get; } + /// The target network Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target network Id.", + SerializedName = @"targetNetworkId", + PossibleTypes = new [] { typeof(string) })] + string TargetNetworkId { get; set; } + /// The tags for the target NICs. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The tags for the target NICs.", + SerializedName = @"targetNicTags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags TargetNicTag { get; set; } + /// The target proximity placement group Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target proximity placement group Id.", + SerializedName = @"targetProximityPlacementGroupId", + PossibleTypes = new [] { typeof(string) })] + string TargetProximityPlacementGroupId { get; set; } + /// The target resource group Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target resource group Id.", + SerializedName = @"targetResourceGroupId", + PossibleTypes = new [] { typeof(string) })] + string TargetResourceGroupId { get; set; } + /// Target VM name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Target VM name.", + SerializedName = @"targetVmName", + PossibleTypes = new [] { typeof(string) })] + string TargetVMName { get; set; } + /// A value indicating whether confidential compute encryption to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether confidential compute encryption to be enabled.", + SerializedName = @"isTargetVmConfidentialEncryptionEnabled", + PossibleTypes = new [] { typeof(string) })] + string TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled { get; set; } + /// A value indicating whether integrity monitoring to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether integrity monitoring to be enabled.", + SerializedName = @"isTargetVmIntegrityMonitoringEnabled", + PossibleTypes = new [] { typeof(string) })] + string TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled { get; set; } + /// A value indicating whether secure boot to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether secure boot to be enabled.", + SerializedName = @"isTargetVmSecureBootEnabled", + PossibleTypes = new [] { typeof(string) })] + string TargetVMSecurityProfileIsTargetVmsecureBootEnabled { get; set; } + /// A value indicating whether trusted platform module to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether trusted platform module to be enabled.", + SerializedName = @"isTargetVmTpmEnabled", + PossibleTypes = new [] { typeof(string) })] + string TargetVMSecurityProfileIsTargetVmtpmEnabled { get; set; } + /// The target VM security type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target VM security type.", + SerializedName = @"targetVmSecurityType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType? TargetVMSecurityProfileTargetVmsecurityType { get; set; } + /// The target VM size. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target VM size.", + SerializedName = @"targetVmSize", + PossibleTypes = new [] { typeof(string) })] + string TargetVMSize { get; set; } + /// The target VM tags. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target VM tags.", + SerializedName = @"targetVmTags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags TargetVMTag { get; set; } + /// The test network Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The test network Id.", + SerializedName = @"testNetworkId", + PossibleTypes = new [] { typeof(string) })] + string TestNetworkId { get; set; } + /// The network details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The network details.", + SerializedName = @"vmNics", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetails[] VMNic { get; set; } + /// The ARM Id of the VM discovered in VMware. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The ARM Id of the VM discovered in VMware.", + SerializedName = @"vmwareMachineId", + PossibleTypes = new [] { typeof(string) })] + string VmwareMachineId { get; } + + } + /// VMwareCbt provider specific settings. + internal partial interface IVMwareCbtMigrationDetailsInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationProviderSpecificSettingsInternal + { + /// The confidential VM key vault Id for ADE installation. + string ConfidentialVMKeyVaultId { get; set; } + /// The data mover run as account Id. + string DataMoverRunAsAccountId { get; set; } + /// The firmware type. + string FirmwareType { get; set; } + /// The initial seeding progress percentage. + int? InitialSeedingProgressPercentage { get; set; } + /// The initial seeding retry count. + long? InitialSeedingRetryCount { get; set; } + /// The last recovery point Id. + string LastRecoveryPointId { get; set; } + /// The last recovery point received time. + global::System.DateTime? LastRecoveryPointReceived { get; set; } + /// License Type of the VM to be used. + string LicenseType { get; set; } + /// The migration progress percentage. + int? MigrationProgressPercentage { get; set; } + /// The recovery point Id to which the VM was migrated. + string MigrationRecoveryPointId { get; set; } + /// The name of the OS on the VM. + string OSName { get; set; } + /// The type of the OS on the VM. + string OSType { get; set; } + /// A value indicating whether auto resync is to be done. + string PerformAutoResync { get; set; } + /// The list of protected disks. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails[] ProtectedDisk { get; set; } + /// The resume progress percentage. + int? ResumeProgressPercentage { get; set; } + /// The resume retry count. + long? ResumeRetryCount { get; set; } + /// The resync progress percentage. + int? ResyncProgressPercentage { get; set; } + /// A value indicating whether resync is required. + string ResyncRequired { get; set; } + /// The resync retry count. + long? ResyncRetryCount { get; set; } + /// The resync state. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.ResyncState? ResyncState { get; set; } + /// The tags for the seed disks. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags SeedDiskTag { get; set; } + /// The snapshot run as account Id. + string SnapshotRunAsAccountId { get; set; } + /// The SQL Server license type. + string SqlServerLicenseType { get; set; } + /// + /// The replication storage account ARM Id. This is applicable only for the blob based replication test hook. + /// + string StorageAccountId { get; set; } + /// List of supported inplace OS Upgrade versions. + string[] SupportedOSVersion { get; set; } + /// The target availability set Id. + string TargetAvailabilitySetId { get; set; } + /// The target availability zone. + string TargetAvailabilityZone { get; set; } + /// The target boot diagnostics storage account ARM Id. + string TargetBootDiagnosticsStorageAccountId { get; set; } + /// The tags for the target disks. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags TargetDiskTag { get; set; } + /// The target generation. + string TargetGeneration { get; set; } + /// The target location. + string TargetLocation { get; set; } + /// The target network Id. + string TargetNetworkId { get; set; } + /// The tags for the target NICs. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags TargetNicTag { get; set; } + /// The target proximity placement group Id. + string TargetProximityPlacementGroupId { get; set; } + /// The target resource group Id. + string TargetResourceGroupId { get; set; } + /// Target VM name. + string TargetVMName { get; set; } + /// The target VM security profile. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties TargetVMSecurityProfile { get; set; } + /// A value indicating whether confidential compute encryption to be enabled. + string TargetVMSecurityProfileIsTargetVmconfidentialEncryptionEnabled { get; set; } + /// A value indicating whether integrity monitoring to be enabled. + string TargetVMSecurityProfileIsTargetVmintegrityMonitoringEnabled { get; set; } + /// A value indicating whether secure boot to be enabled. + string TargetVMSecurityProfileIsTargetVmsecureBootEnabled { get; set; } + /// A value indicating whether trusted platform module to be enabled. + string TargetVMSecurityProfileIsTargetVmtpmEnabled { get; set; } + /// The target VM security type. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType? TargetVMSecurityProfileTargetVmsecurityType { get; set; } + /// The target VM size. + string TargetVMSize { get; set; } + /// The target VM tags. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags TargetVMTag { get; set; } + /// The test network Id. + string TestNetworkId { get; set; } + /// The network details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetails[] VMNic { get; set; } + /// The ARM Id of the VM discovered in VMware. + string VmwareMachineId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetails.json.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetails.json.cs index b0c7136dc91f..4a6b23b1ea27 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtMigrationDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtMigrationDetails(json) : null; } @@ -85,6 +85,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M return container; } __migrationProviderSpecificSettings?.ToJson(container, serializationMode); + AddIf( null != this._targetVMSecurityProfile ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._targetVMSecurityProfile.ToJson(null,serializationMode) : null, "targetVmSecurityProfile" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._vmwareMachineId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._vmwareMachineId.ToString()) : null, "vmwareMachineId" ,container.Add ); @@ -94,6 +95,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M AddIf( null != (((object)this._oSType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._oSType.ToString()) : null, "osType" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._oSName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._oSName.ToString()) : null, "osName" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._firmwareType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._firmwareType.ToString()) : null, "firmwareType" ,container.Add ); } @@ -125,6 +130,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M AddIf( null != (((object)this._targetAvailabilitySetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._targetAvailabilitySetId.ToString()) : null, "targetAvailabilitySetId" ,container.Add ); AddIf( null != (((object)this._targetAvailabilityZone)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._targetAvailabilityZone.ToString()) : null, "targetAvailabilityZone" ,container.Add ); AddIf( null != (((object)this._targetProximityPlacementGroupId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._targetProximityPlacementGroupId.ToString()) : null, "targetProximityPlacementGroupId" ,container.Add ); + AddIf( null != (((object)this._confidentialVMKeyVaultId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._confidentialVMKeyVaultId.ToString()) : null, "confidentialVmKeyVaultId" ,container.Add ); AddIf( null != (((object)this._targetBootDiagnosticsStorageAccountId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._targetBootDiagnosticsStorageAccountId.ToString()) : null, "targetBootDiagnosticsStorageAccountId" ,container.Add ); AddIf( null != this._targetVMTag ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._targetVMTag.ToJson(null,serializationMode) : null, "targetVmTags" ,container.Add ); if (null != this._protectedDisk) @@ -199,6 +205,15 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M AddIf( null != (((object)this._performAutoResync)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._performAutoResync.ToString()) : null, "performAutoResync" ,container.Add ); AddIf( null != this._seedDiskTag ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._seedDiskTag.ToJson(null,serializationMode) : null, "seedDiskTags" ,container.Add ); AddIf( null != this._targetDiskTag ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._targetDiskTag.ToJson(null,serializationMode) : null, "targetDiskTags" ,container.Add ); + if (null != this._supportedOSVersion) + { + var __m = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.XNodeArray(); + foreach( var __n in this._supportedOSVersion ) + { + AddIf(null != (((object)__n)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(__n.ToString()) : null ,__m.Add); + } + container.Add("supportedOSVersions",__m); + } AfterToJson(ref container); return container; } @@ -215,9 +230,11 @@ internal VMwareCbtMigrationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - __migrationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrationProviderSpecificSettings(json); + __migrationProviderSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrationProviderSpecificSettings(json); + {_targetVMSecurityProfile = If( json?.PropertyT("targetVmSecurityProfile"), out var __jsonTargetVMSecurityProfile) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtSecurityProfileProperties.FromJson(__jsonTargetVMSecurityProfile) : TargetVMSecurityProfile;} {_vmwareMachineId = If( json?.PropertyT("vmwareMachineId"), out var __jsonVmwareMachineId) ? (string)__jsonVmwareMachineId : (string)VmwareMachineId;} {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType;} + {_oSName = If( json?.PropertyT("osName"), out var __jsonOSName) ? (string)__jsonOSName : (string)OSName;} {_firmwareType = If( json?.PropertyT("firmwareType"), out var __jsonFirmwareType) ? (string)__jsonFirmwareType : (string)FirmwareType;} {_targetGeneration = If( json?.PropertyT("targetGeneration"), out var __jsonTargetGeneration) ? (string)__jsonTargetGeneration : (string)TargetGeneration;} {_licenseType = If( json?.PropertyT("licenseType"), out var __jsonLicenseType) ? (string)__jsonLicenseType : (string)LicenseType;} @@ -232,13 +249,14 @@ internal VMwareCbtMigrationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru {_targetAvailabilitySetId = If( json?.PropertyT("targetAvailabilitySetId"), out var __jsonTargetAvailabilitySetId) ? (string)__jsonTargetAvailabilitySetId : (string)TargetAvailabilitySetId;} {_targetAvailabilityZone = If( json?.PropertyT("targetAvailabilityZone"), out var __jsonTargetAvailabilityZone) ? (string)__jsonTargetAvailabilityZone : (string)TargetAvailabilityZone;} {_targetProximityPlacementGroupId = If( json?.PropertyT("targetProximityPlacementGroupId"), out var __jsonTargetProximityPlacementGroupId) ? (string)__jsonTargetProximityPlacementGroupId : (string)TargetProximityPlacementGroupId;} + {_confidentialVMKeyVaultId = If( json?.PropertyT("confidentialVmKeyVaultId"), out var __jsonConfidentialVMKeyVaultId) ? (string)__jsonConfidentialVMKeyVaultId : (string)ConfidentialVMKeyVaultId;} {_targetBootDiagnosticsStorageAccountId = If( json?.PropertyT("targetBootDiagnosticsStorageAccountId"), out var __jsonTargetBootDiagnosticsStorageAccountId) ? (string)__jsonTargetBootDiagnosticsStorageAccountId : (string)TargetBootDiagnosticsStorageAccountId;} - {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetVmtags.FromJson(__jsonTargetVMTags) : TargetVMTag;} - {_protectedDisk = If( json?.PropertyT("protectedDisks"), out var __jsonProtectedDisks) ? If( __jsonProtectedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectedDiskDetails.FromJson(__u) )) ))() : null : ProtectedDisk;} + {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetVmtags.FromJson(__jsonTargetVMTags) : TargetVMTag;} + {_protectedDisk = If( json?.PropertyT("protectedDisks"), out var __jsonProtectedDisks) ? If( __jsonProtectedDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectedDiskDetails.FromJson(__u) )) ))() : null : ProtectedDisk;} {_targetNetworkId = If( json?.PropertyT("targetNetworkId"), out var __jsonTargetNetworkId) ? (string)__jsonTargetNetworkId : (string)TargetNetworkId;} {_testNetworkId = If( json?.PropertyT("testNetworkId"), out var __jsonTestNetworkId) ? (string)__jsonTestNetworkId : (string)TestNetworkId;} - {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicDetails.FromJson(__p) )) ))() : null : VMNic;} - {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} + {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicDetails.FromJson(__p) )) ))() : null : VMNic;} + {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} {_migrationRecoveryPointId = If( json?.PropertyT("migrationRecoveryPointId"), out var __jsonMigrationRecoveryPointId) ? (string)__jsonMigrationRecoveryPointId : (string)MigrationRecoveryPointId;} {_lastRecoveryPointReceived = If( json?.PropertyT("lastRecoveryPointReceived"), out var __jsonLastRecoveryPointReceived) ? global::System.DateTime.TryParse((string)__jsonLastRecoveryPointReceived, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastRecoveryPointReceivedValue) ? __jsonLastRecoveryPointReceivedValue : LastRecoveryPointReceived : LastRecoveryPointReceived;} {_lastRecoveryPointId = If( json?.PropertyT("lastRecoveryPointId"), out var __jsonLastRecoveryPointId) ? (string)__jsonLastRecoveryPointId : (string)LastRecoveryPointId;} @@ -252,8 +270,9 @@ internal VMwareCbtMigrationDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru {_resyncRequired = If( json?.PropertyT("resyncRequired"), out var __jsonResyncRequired) ? (string)__jsonResyncRequired : (string)ResyncRequired;} {_resyncState = If( json?.PropertyT("resyncState"), out var __jsonResyncState) ? (string)__jsonResyncState : (string)ResyncState;} {_performAutoResync = If( json?.PropertyT("performAutoResync"), out var __jsonPerformAutoResync) ? (string)__jsonPerformAutoResync : (string)PerformAutoResync;} - {_seedDiskTag = If( json?.PropertyT("seedDiskTags"), out var __jsonSeedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsSeedDiskTags.FromJson(__jsonSeedDiskTags) : SeedDiskTag;} - {_targetDiskTag = If( json?.PropertyT("targetDiskTags"), out var __jsonTargetDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetDiskTags.FromJson(__jsonTargetDiskTags) : TargetDiskTag;} + {_seedDiskTag = If( json?.PropertyT("seedDiskTags"), out var __jsonSeedDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsSeedDiskTags.FromJson(__jsonSeedDiskTags) : SeedDiskTag;} + {_targetDiskTag = If( json?.PropertyT("targetDiskTags"), out var __jsonTargetDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetDiskTags.FromJson(__jsonTargetDiskTags) : TargetDiskTag;} + {_supportedOSVersion = If( json?.PropertyT("supportedOSVersions"), out var __jsonSupportedOSVersions) ? If( __jsonSupportedOSVersions as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(string) (__k is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __j ? (string)(__j.ToString()) : null)) ))() : null : SupportedOSVersion;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.PowerShell.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.PowerShell.cs index 701860e970e8..0dc1e69b80ae 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VMwareCbtMigrationDetailsSeedDiskTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtMigrationDetailsSeedDiskTags(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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtMigrationDetailsSeedDiskTags(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VMwareCbtMigrationDetailsSeedDiskTags(global::System.Collections.IDicti } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.TypeConverter.cs index af8706b74de5..6de369e11e30 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.cs index d6ed26c25c19..8adefc03f593 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the seed disks. public partial class VMwareCbtMigrationDetailsSeedDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTagsInternal { /// Creates an new instance. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.dictionary.cs index 10962a1d0335..f96cc23df0da 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsSeedDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsSeedDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.json.cs index 6c29f1894c86..61435865495f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsSeedDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsSeedDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtMigrationDetailsSeedDiskTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsSeedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsSeedDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtMigrationDetailsSeedDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.PowerShell.cs index 20ca7cf9bffc..0d8a34497ed0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VMwareCbtMigrationDetailsTargetDiskTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtMigrationDetailsTargetDiskTags(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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtMigrationDetailsTargetDiskTags(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VMwareCbtMigrationDetailsTargetDiskTags(global::System.Collections.IDic } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.TypeConverter.cs index 1b22530e89a3..929d61a203cc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.cs index a824826d7655..e4f37e2eb34e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target disks. public partial class VMwareCbtMigrationDetailsTargetDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTagsInternal { /// Creates an new instance. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.dictionary.cs index a3fb1694657d..9b2be421a2fc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.json.cs index fe632f6b3539..2a0dd593125a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtMigrationDetailsTargetDiskTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtMigrationDetailsTargetDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.PowerShell.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.PowerShell.cs index bca581cb576e..b88c4fbb8258 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VMwareCbtMigrationDetailsTargetNicTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtMigrationDetailsTargetNicTags(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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtMigrationDetailsTargetNicTags(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VMwareCbtMigrationDetailsTargetNicTags(global::System.Collections.IDict } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.TypeConverter.cs index 4b9e1e1b74d2..ac045cb24e48 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.cs index 67bfe359aea3..86549cb99e3f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target NICs. public partial class VMwareCbtMigrationDetailsTargetNicTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTagsInternal { /// Creates an new instance. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.dictionary.cs index 44c12bf016b9..9786b27bfd7f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetNicTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetNicTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.json.cs index edffefdc7343..3e38be3777cf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetNicTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtMigrationDetailsTargetNicTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtMigrationDetailsTargetNicTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.PowerShell.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.PowerShell.cs index 07aa4affa488..546710e2cf1c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VMwareCbtMigrationDetailsTargetVmtags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtMigrationDetailsTargetVmtags(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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtMigrationDetailsTargetVmtags(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VMwareCbtMigrationDetailsTargetVmtags(global::System.Collections.IDicti } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.TypeConverter.cs index 5f3e01eff098..e5d2024a409c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.cs index 473be30a8088..91babdb42728 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The target VM tags. public partial class VMwareCbtMigrationDetailsTargetVmtags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtagsInternal { /// Creates an new instance. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.dictionary.cs index 65a80763a51f..99c1503c414e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtMigrationDetailsTargetVmtags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtMigrationDetailsTargetVmtags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.json.cs index 3aee9fa71797..49d75f75e451 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtMigrationDetailsTargetVmtags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtMigrationDetailsTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtMigrationDetailsTargetVmtags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtMigrationDetailsTargetVmtags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtMigrationDetailsTargetVmtags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtMigrationDetailsTargetVmtags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicDetails.PowerShell.cs new file mode 100644 index 000000000000..70a617b14d93 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicDetails.PowerShell.cs @@ -0,0 +1,248 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMwareCbt NIC details. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtNicDetailsTypeConverter))] + public partial class VMwareCbtNicDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareCbtNicDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareCbtNicDetails(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.Migrate.Models.Api202301.IVMwareCbtNicDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareCbtNicDetails(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.Migrate.Models.Api202301.IVMwareCbtNicDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareCbtNicDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).NicId, global::System.Convert.ToString); + } + if (content.Contains("IsPrimaryNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).IsPrimaryNic, global::System.Convert.ToString); + } + if (content.Contains("SourceIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).SourceIPAddress = (string) content.GetValueForProperty("SourceIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).SourceIPAddress, global::System.Convert.ToString); + } + if (content.Contains("SourceIPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).SourceIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("SourceIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).SourceIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); + } + if (content.Contains("SourceNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).SourceNetworkId = (string) content.GetValueForProperty("SourceNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).SourceNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TargetIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetIPAddress = (string) content.GetValueForProperty("TargetIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TargetIPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TargetIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); + } + if (content.Contains("TargetSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TestSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestIPAddress = (string) content.GetValueForProperty("TestIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TestIPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TestIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); + } + if (content.Contains("TargetNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetNicName, global::System.Convert.ToString); + } + if (content.Contains("IsSelectedForMigration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).IsSelectedForMigration = (string) content.GetValueForProperty("IsSelectedForMigration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).IsSelectedForMigration, 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 VMwareCbtNicDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).NicId, global::System.Convert.ToString); + } + if (content.Contains("IsPrimaryNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).IsPrimaryNic, global::System.Convert.ToString); + } + if (content.Contains("SourceIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).SourceIPAddress = (string) content.GetValueForProperty("SourceIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).SourceIPAddress, global::System.Convert.ToString); + } + if (content.Contains("SourceIPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).SourceIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("SourceIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).SourceIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); + } + if (content.Contains("SourceNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).SourceNetworkId = (string) content.GetValueForProperty("SourceNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).SourceNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TargetIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetIPAddress = (string) content.GetValueForProperty("TargetIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TargetIPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TargetIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); + } + if (content.Contains("TargetSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TestSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestIPAddress = (string) content.GetValueForProperty("TestIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestIPAddress, global::System.Convert.ToString); + } + if (content.Contains("TestIPAddressType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestIPAddressType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType?) content.GetValueForProperty("TestIPAddressType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TestIPAddressType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType.CreateFrom); + } + if (content.Contains("TargetNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).TargetNicName, global::System.Convert.ToString); + } + if (content.Contains("IsSelectedForMigration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).IsSelectedForMigration = (string) content.GetValueForProperty("IsSelectedForMigration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal)this).IsSelectedForMigration, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMwareCbt NIC details. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtNicDetailsTypeConverter))] + public partial interface IVMwareCbtNicDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtNicDetails.TypeConverter.cs index 9a55c0ac83e4..3c699935947d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtNicDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicDetails.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicDetails.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicDetails.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtNicDetails.cs index c18be0c12838..5fd088a267bf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMwareCbt NIC details. public partial class VMwareCbtNicDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal { /// Backing field for property. @@ -28,16 +28,16 @@ public partial class VMwareCbtNicDetails : public string IsSelectedForMigration { get => this._isSelectedForMigration; set => this._isSelectedForMigration = value; } /// Internal Acessors for NicId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal.NicId { get => this._nicId; set { {_nicId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal.NicId { get => this._nicId; set { {_nicId = value;} } } /// Internal Acessors for SourceIPAddress - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal.SourceIPAddress { get => this._sourceIPAddress; set { {_sourceIPAddress = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal.SourceIPAddress { get => this._sourceIPAddress; set { {_sourceIPAddress = value;} } } /// Internal Acessors for SourceIPAddressType - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal.SourceIPAddressType { get => this._sourceIPAddressType; set { {_sourceIPAddressType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.EthernetAddressType? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal.SourceIPAddressType { get => this._sourceIPAddressType; set { {_sourceIPAddressType = value;} } } /// Internal Acessors for SourceNetworkId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetailsInternal.SourceNetworkId { get => this._sourceNetworkId; set { {_sourceNetworkId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetailsInternal.SourceNetworkId { get => this._sourceNetworkId; set { {_sourceNetworkId = value;} } } /// Backing field for property. private string _nicId; diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicDetails.json.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtNicDetails.json.cs index e8d9abdffa0e..d1f62340eeab 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtNicDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtNicDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicInput.PowerShell.cs new file mode 100644 index 000000000000..7f0b3f290e48 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicInput.PowerShell.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMwareCbt NIC input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtNicInputTypeConverter))] + public partial class VMwareCbtNicInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareCbtNicInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareCbtNicInput(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.Migrate.Models.Api202301.IVMwareCbtNicInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareCbtNicInput(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.Migrate.Models.Api202301.IVMwareCbtNicInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareCbtNicInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).NicId, global::System.Convert.ToString); + } + if (content.Contains("IsPrimaryNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).IsPrimaryNic, global::System.Convert.ToString); + } + if (content.Contains("TargetSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TargetSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TargetStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TargetStaticIPAddress = (string) content.GetValueForProperty("TargetStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TargetStaticIPAddress, global::System.Convert.ToString); + } + if (content.Contains("IsSelectedForMigration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).IsSelectedForMigration = (string) content.GetValueForProperty("IsSelectedForMigration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).IsSelectedForMigration, global::System.Convert.ToString); + } + if (content.Contains("TargetNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TargetNicName, global::System.Convert.ToString); + } + if (content.Contains("TestSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TestSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TestStaticIPAddress = (string) content.GetValueForProperty("TestStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TestStaticIPAddress, 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 VMwareCbtNicInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("NicId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).NicId = (string) content.GetValueForProperty("NicId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).NicId, global::System.Convert.ToString); + } + if (content.Contains("IsPrimaryNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).IsPrimaryNic = (string) content.GetValueForProperty("IsPrimaryNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).IsPrimaryNic, global::System.Convert.ToString); + } + if (content.Contains("TargetSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TargetSubnetName = (string) content.GetValueForProperty("TargetSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TargetSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TargetStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TargetStaticIPAddress = (string) content.GetValueForProperty("TargetStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TargetStaticIPAddress, global::System.Convert.ToString); + } + if (content.Contains("IsSelectedForMigration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).IsSelectedForMigration = (string) content.GetValueForProperty("IsSelectedForMigration",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).IsSelectedForMigration, global::System.Convert.ToString); + } + if (content.Contains("TargetNicName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TargetNicName = (string) content.GetValueForProperty("TargetNicName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TargetNicName, global::System.Convert.ToString); + } + if (content.Contains("TestSubnetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TestSubnetName = (string) content.GetValueForProperty("TestSubnetName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TestSubnetName, global::System.Convert.ToString); + } + if (content.Contains("TestStaticIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TestStaticIPAddress = (string) content.GetValueForProperty("TestStaticIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal)this).TestStaticIPAddress, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMwareCbt NIC input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtNicInputTypeConverter))] + public partial interface IVMwareCbtNicInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicInput.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtNicInput.TypeConverter.cs index ff2bd03e7537..0beda23d1be1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtNicInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicInput.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicInput.cs similarity index 99% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicInput.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtNicInput.cs index 6cd7a782844e..d40ff726a4a8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMwareCbt NIC input. public partial class VMwareCbtNicInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicInput.json.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtNicInput.json.cs index 31a27c276580..c60e20e617d7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtNicInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtNicInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtNicInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtNicInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtPolicyCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtPolicyCreationInput.PowerShell.cs new file mode 100644 index 000000000000..6f3e3e4a8279 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtPolicyCreationInput.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMware Cbt policy creation input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtPolicyCreationInputTypeConverter))] + public partial class VMwareCbtPolicyCreationInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareCbtPolicyCreationInput(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.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareCbtPolicyCreationInput(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.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareCbtPolicyCreationInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointHistoryInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, 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 VMwareCbtPolicyCreationInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointHistoryInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInputInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInputInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInputInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMware Cbt policy creation input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtPolicyCreationInputTypeConverter))] + public partial interface IVMwareCbtPolicyCreationInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtPolicyCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtPolicyCreationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtPolicyCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtPolicyCreationInput.TypeConverter.cs index b2a4864013db..5499dbdbf80a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtPolicyCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtPolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtPolicyCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtPolicyCreationInput.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtPolicyCreationInput.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtPolicyCreationInput.cs index 8b5a161d9c64..b2cc97d53a02 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtPolicyCreationInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtPolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMware Cbt policy creation input. public partial class VMwareCbtPolicyCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(); /// Backing field for property. private int? _appConsistentFrequencyInMinute; @@ -35,7 +35,7 @@ public partial class VMwareCbtPolicyCreationInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal)__policyProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private int? _recoveryPointHistoryInMinute; @@ -65,7 +65,7 @@ public VMwareCbtPolicyCreationInput() /// VMware Cbt policy creation input. public partial interface IVMwareCbtPolicyCreationInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput { /// The app consistent snapshot frequency (in minutes). [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -95,7 +95,7 @@ public partial interface IVMwareCbtPolicyCreationInput : } /// VMware Cbt policy creation input. internal partial interface IVMwareCbtPolicyCreationInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInputInternal { /// The app consistent snapshot frequency (in minutes). int? AppConsistentFrequencyInMinute { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtPolicyCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtPolicyCreationInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtPolicyCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtPolicyCreationInput.json.cs index f8ac33d3efc9..4018a7102c99 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtPolicyCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtPolicyCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtPolicyCreationInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtPolicyCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtPolicyCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtPolicyCreationInput(json) : null; } @@ -104,7 +104,7 @@ internal VMwareCbtPolicyCreationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate { return; } - __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificInput(json); + __policyProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificInput(json); {_recoveryPointHistoryInMinute = If( json?.PropertyT("recoveryPointHistoryInMinutes"), out var __jsonRecoveryPointHistoryInMinutes) ? (int?)__jsonRecoveryPointHistoryInMinutes : RecoveryPointHistoryInMinute;} {_crashConsistentFrequencyInMinute = If( json?.PropertyT("crashConsistentFrequencyInMinutes"), out var __jsonCrashConsistentFrequencyInMinutes) ? (int?)__jsonCrashConsistentFrequencyInMinutes : CrashConsistentFrequencyInMinute;} {_appConsistentFrequencyInMinute = If( json?.PropertyT("appConsistentFrequencyInMinutes"), out var __jsonAppConsistentFrequencyInMinutes) ? (int?)__jsonAppConsistentFrequencyInMinutes : AppConsistentFrequencyInMinute;} diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectedDiskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectedDiskDetails.PowerShell.cs new file mode 100644 index 000000000000..49b9c063399a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectedDiskDetails.PowerShell.cs @@ -0,0 +1,250 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMwareCbt protected disk details. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtProtectedDiskDetailsTypeConverter))] + public partial class VMwareCbtProtectedDiskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareCbtProtectedDiskDetails(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.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareCbtProtectedDiskDetails(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.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareCbtProtectedDiskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DiskPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskPath = (string) content.GetValueForProperty("DiskPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskPath, global::System.Convert.ToString); + } + if (content.Contains("IsOSDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); + } + if (content.Contains("CapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountSasSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountSasSecretName = (string) content.GetValueForProperty("LogStorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountSasSecretName, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("SeedManagedDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); + } + if (content.Contains("SeedBlobUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).SeedBlobUri = (string) content.GetValueForProperty("SeedBlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).SeedBlobUri, global::System.Convert.ToString); + } + if (content.Contains("TargetManagedDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).TargetManagedDiskId = (string) content.GetValueForProperty("TargetManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).TargetManagedDiskId, global::System.Convert.ToString); + } + if (content.Contains("TargetBlobUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).TargetBlobUri = (string) content.GetValueForProperty("TargetBlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).TargetBlobUri, global::System.Convert.ToString); + } + if (content.Contains("TargetDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).TargetDiskName, 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 VMwareCbtProtectedDiskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskId, global::System.Convert.ToString); + } + if (content.Contains("DiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskName = (string) content.GetValueForProperty("DiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskName, global::System.Convert.ToString); + } + if (content.Contains("DiskType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType?) content.GetValueForProperty("DiskType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.DiskAccountType.CreateFrom); + } + if (content.Contains("DiskPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskPath = (string) content.GetValueForProperty("DiskPath",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskPath, global::System.Convert.ToString); + } + if (content.Contains("IsOSDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).IsOSDisk, global::System.Convert.ToString); + } + if (content.Contains("CapacityInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).CapacityInByte = (long?) content.GetValueForProperty("CapacityInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).CapacityInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("LogStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountId = (string) content.GetValueForProperty("LogStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("LogStorageAccountSasSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountSasSecretName = (string) content.GetValueForProperty("LogStorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).LogStorageAccountSasSecretName, global::System.Convert.ToString); + } + if (content.Contains("DiskEncryptionSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskEncryptionSetId = (string) content.GetValueForProperty("DiskEncryptionSetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).DiskEncryptionSetId, global::System.Convert.ToString); + } + if (content.Contains("SeedManagedDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).SeedManagedDiskId = (string) content.GetValueForProperty("SeedManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).SeedManagedDiskId, global::System.Convert.ToString); + } + if (content.Contains("SeedBlobUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).SeedBlobUri = (string) content.GetValueForProperty("SeedBlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).SeedBlobUri, global::System.Convert.ToString); + } + if (content.Contains("TargetManagedDiskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).TargetManagedDiskId = (string) content.GetValueForProperty("TargetManagedDiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).TargetManagedDiskId, global::System.Convert.ToString); + } + if (content.Contains("TargetBlobUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).TargetBlobUri = (string) content.GetValueForProperty("TargetBlobUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).TargetBlobUri, global::System.Convert.ToString); + } + if (content.Contains("TargetDiskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal)this).TargetDiskName, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMwareCbt protected disk details. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtProtectedDiskDetailsTypeConverter))] + public partial interface IVMwareCbtProtectedDiskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectedDiskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectedDiskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectedDiskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectedDiskDetails.TypeConverter.cs index 3dc3ff94639a..a47903d7f288 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectedDiskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectedDiskDetails.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectedDiskDetails.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectedDiskDetails.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectedDiskDetails.cs index a830cc5e742e..5450f4bf0d6c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectedDiskDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMwareCbt protected disk details. public partial class VMwareCbtProtectedDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal { /// Backing field for property. @@ -77,40 +77,40 @@ public partial class VMwareCbtProtectedDiskDetails : public string LogStorageAccountSasSecretName { get => this._logStorageAccountSasSecretName; } /// Internal Acessors for CapacityInByte - long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal.CapacityInByte { get => this._capacityInByte; set { {_capacityInByte = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal.CapacityInByte { get => this._capacityInByte; set { {_capacityInByte = value;} } } /// Internal Acessors for DiskEncryptionSetId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal.DiskEncryptionSetId { get => this._diskEncryptionSetId; set { {_diskEncryptionSetId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal.DiskEncryptionSetId { get => this._diskEncryptionSetId; set { {_diskEncryptionSetId = value;} } } /// Internal Acessors for DiskId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal.DiskId { get => this._diskId; set { {_diskId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal.DiskId { get => this._diskId; set { {_diskId = value;} } } /// Internal Acessors for DiskName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal.DiskName { get => this._diskName; set { {_diskName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal.DiskName { get => this._diskName; set { {_diskName = value;} } } /// Internal Acessors for DiskPath - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal.DiskPath { get => this._diskPath; set { {_diskPath = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal.DiskPath { get => this._diskPath; set { {_diskPath = value;} } } /// Internal Acessors for IsOSDisk - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal.IsOSDisk { get => this._isOSDisk; set { {_isOSDisk = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal.IsOSDisk { get => this._isOSDisk; set { {_isOSDisk = value;} } } /// Internal Acessors for LogStorageAccountId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal.LogStorageAccountId { get => this._logStorageAccountId; set { {_logStorageAccountId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal.LogStorageAccountId { get => this._logStorageAccountId; set { {_logStorageAccountId = value;} } } /// Internal Acessors for LogStorageAccountSasSecretName - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal.LogStorageAccountSasSecretName { get => this._logStorageAccountSasSecretName; set { {_logStorageAccountSasSecretName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal.LogStorageAccountSasSecretName { get => this._logStorageAccountSasSecretName; set { {_logStorageAccountSasSecretName = value;} } } /// Internal Acessors for SeedBlobUri - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal.SeedBlobUri { get => this._seedBlobUri; set { {_seedBlobUri = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal.SeedBlobUri { get => this._seedBlobUri; set { {_seedBlobUri = value;} } } /// Internal Acessors for SeedManagedDiskId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal.SeedManagedDiskId { get => this._seedManagedDiskId; set { {_seedManagedDiskId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal.SeedManagedDiskId { get => this._seedManagedDiskId; set { {_seedManagedDiskId = value;} } } /// Internal Acessors for TargetBlobUri - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal.TargetBlobUri { get => this._targetBlobUri; set { {_targetBlobUri = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal.TargetBlobUri { get => this._targetBlobUri; set { {_targetBlobUri = value;} } } /// Internal Acessors for TargetManagedDiskId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetailsInternal.TargetManagedDiskId { get => this._targetManagedDiskId; set { {_targetManagedDiskId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetailsInternal.TargetManagedDiskId { get => this._targetManagedDiskId; set { {_targetManagedDiskId = value;} } } /// Backing field for property. private string _seedBlobUri; diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectedDiskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectedDiskDetails.json.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectedDiskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectedDiskDetails.json.cs index c087c43307d6..a7ffd58c8426 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectedDiskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectedDiskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtProtectedDiskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtProtectedDiskDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetails.PowerShell.cs new file mode 100644 index 000000000000..e1868d1cb0b1 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetails.PowerShell.cs @@ -0,0 +1,213 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMwareCbt provider specific container mapping details. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtProtectionContainerMappingDetailsTypeConverter))] + public partial class VMwareCbtProtectionContainerMappingDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareCbtProtectionContainerMappingDetails(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.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareCbtProtectionContainerMappingDetails(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.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareCbtProtectionContainerMappingDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("KeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultId = (string) content.GetValueForProperty("KeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultUri = (string) content.GetValueForProperty("KeyVaultUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultUri, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountSasSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountSasSecretName = (string) content.GetValueForProperty("StorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountSasSecretName, global::System.Convert.ToString); + } + if (content.Contains("ServiceBusConnectionStringSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).ServiceBusConnectionStringSecretName = (string) content.GetValueForProperty("ServiceBusConnectionStringSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).ServiceBusConnectionStringSecretName, global::System.Convert.ToString); + } + if (content.Contains("TargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).TargetLocation, global::System.Convert.ToString); + } + if (content.Contains("RoleSizeToNicCountMap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).RoleSizeToNicCountMap = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap) content.GetValueForProperty("RoleSizeToNicCountMap",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).RoleSizeToNicCountMap, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMapTypeConverter.ConvertFrom); + } + if (content.Contains("ExcludedSku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).ExcludedSku = (string[]) content.GetValueForProperty("ExcludedSku",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).ExcludedSku, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, 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 VMwareCbtProtectionContainerMappingDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("KeyVaultId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultId = (string) content.GetValueForProperty("KeyVaultId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultId, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultUri = (string) content.GetValueForProperty("KeyVaultUri",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).KeyVaultUri, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("StorageAccountSasSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountSasSecretName = (string) content.GetValueForProperty("StorageAccountSasSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).StorageAccountSasSecretName, global::System.Convert.ToString); + } + if (content.Contains("ServiceBusConnectionStringSecretName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).ServiceBusConnectionStringSecretName = (string) content.GetValueForProperty("ServiceBusConnectionStringSecretName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).ServiceBusConnectionStringSecretName, global::System.Convert.ToString); + } + if (content.Contains("TargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).TargetLocation = (string) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).TargetLocation, global::System.Convert.ToString); + } + if (content.Contains("RoleSizeToNicCountMap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).RoleSizeToNicCountMap = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap) content.GetValueForProperty("RoleSizeToNicCountMap",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).RoleSizeToNicCountMap, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMapTypeConverter.ConvertFrom); + } + if (content.Contains("ExcludedSku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).ExcludedSku = (string[]) content.GetValueForProperty("ExcludedSku",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal)this).ExcludedSku, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMwareCbt provider specific container mapping details. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtProtectionContainerMappingDetailsTypeConverter))] + public partial interface IVMwareCbtProtectionContainerMappingDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetails.TypeConverter.cs index e6296bd65726..74e30dcb0b6a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetails.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetails.cs new file mode 100644 index 000000000000..d01f277119e0 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetails.cs @@ -0,0 +1,216 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// VMwareCbt provider specific container mapping details. + public partial class VMwareCbtProtectionContainerMappingDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails __protectionContainerMappingProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProviderSpecificDetails(); + + /// Backing field for property. + private string[] _excludedSku; + + /// The SKUs to be excluded. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string[] ExcludedSku { get => this._excludedSku; set => this._excludedSku = value; } + + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)__protectionContainerMappingProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal)__protectionContainerMappingProviderSpecificDetails).InstanceType = value ; } + + /// Backing field for property. + private string _keyVaultId; + + /// The target key vault ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string KeyVaultId { get => this._keyVaultId; } + + /// Backing field for property. + private string _keyVaultUri; + + /// The target key vault URI. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string KeyVaultUri { get => this._keyVaultUri; } + + /// Internal Acessors for KeyVaultId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal.KeyVaultId { get => this._keyVaultId; set { {_keyVaultId = value;} } } + + /// Internal Acessors for KeyVaultUri + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal.KeyVaultUri { get => this._keyVaultUri; set { {_keyVaultUri = value;} } } + + /// Internal Acessors for RoleSizeToNicCountMap + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal.RoleSizeToNicCountMap { get => (this._roleSizeToNicCountMap = this._roleSizeToNicCountMap ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap()); set { {_roleSizeToNicCountMap = value;} } } + + /// Internal Acessors for ServiceBusConnectionStringSecretName + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal.ServiceBusConnectionStringSecretName { get => this._serviceBusConnectionStringSecretName; set { {_serviceBusConnectionStringSecretName = value;} } } + + /// Internal Acessors for StorageAccountId + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal.StorageAccountId { get => this._storageAccountId; set { {_storageAccountId = value;} } } + + /// Internal Acessors for StorageAccountSasSecretName + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal.StorageAccountSasSecretName { get => this._storageAccountSasSecretName; set { {_storageAccountSasSecretName = value;} } } + + /// Internal Acessors for TargetLocation + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsInternal.TargetLocation { get => this._targetLocation; set { {_targetLocation = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap _roleSizeToNicCountMap; + + /// The role size to NIC count map. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap RoleSizeToNicCountMap { get => (this._roleSizeToNicCountMap = this._roleSizeToNicCountMap ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap()); } + + /// Backing field for property. + private string _serviceBusConnectionStringSecretName; + + /// The secret name of the service bus connection string. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string ServiceBusConnectionStringSecretName { get => this._serviceBusConnectionStringSecretName; } + + /// Backing field for property. + private string _storageAccountId; + + /// The storage account ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string StorageAccountId { get => this._storageAccountId; } + + /// Backing field for property. + private string _storageAccountSasSecretName; + + /// The secret name of the storage account. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string StorageAccountSasSecretName { get => this._storageAccountSasSecretName; } + + /// Backing field for property. + private string _targetLocation; + + /// The target location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string TargetLocation { get => this._targetLocation; } + + /// + /// Creates an new instance. + /// + public VMwareCbtProtectionContainerMappingDetails() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__protectionContainerMappingProviderSpecificDetails), __protectionContainerMappingProviderSpecificDetails); + await eventListener.AssertObjectIsValid(nameof(__protectionContainerMappingProviderSpecificDetails), __protectionContainerMappingProviderSpecificDetails); + } + } + /// VMwareCbt provider specific container mapping details. + public partial interface IVMwareCbtProtectionContainerMappingDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetails + { + /// The SKUs to be excluded. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKUs to be excluded.", + SerializedName = @"excludedSkus", + PossibleTypes = new [] { typeof(string) })] + string[] ExcludedSku { get; set; } + /// The target key vault ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The target key vault ARM Id.", + SerializedName = @"keyVaultId", + PossibleTypes = new [] { typeof(string) })] + string KeyVaultId { get; } + /// The target key vault URI. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The target key vault URI.", + SerializedName = @"keyVaultUri", + PossibleTypes = new [] { typeof(string) })] + string KeyVaultUri { get; } + /// The role size to NIC count map. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The role size to NIC count map.", + SerializedName = @"roleSizeToNicCountMap", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap RoleSizeToNicCountMap { get; } + /// The secret name of the service bus connection string. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The secret name of the service bus connection string.", + SerializedName = @"serviceBusConnectionStringSecretName", + PossibleTypes = new [] { typeof(string) })] + string ServiceBusConnectionStringSecretName { get; } + /// The storage account ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The storage account ARM Id.", + SerializedName = @"storageAccountId", + PossibleTypes = new [] { typeof(string) })] + string StorageAccountId { get; } + /// The secret name of the storage account. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The secret name of the storage account.", + SerializedName = @"storageAccountSasSecretName", + PossibleTypes = new [] { typeof(string) })] + string StorageAccountSasSecretName { get; } + /// The target location. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The target location.", + SerializedName = @"targetLocation", + PossibleTypes = new [] { typeof(string) })] + string TargetLocation { get; } + + } + /// VMwareCbt provider specific container mapping details. + internal partial interface IVMwareCbtProtectionContainerMappingDetailsInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingProviderSpecificDetailsInternal + { + /// The SKUs to be excluded. + string[] ExcludedSku { get; set; } + /// The target key vault ARM Id. + string KeyVaultId { get; set; } + /// The target key vault URI. + string KeyVaultUri { get; set; } + /// The role size to NIC count map. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap RoleSizeToNicCountMap { get; set; } + /// The secret name of the service bus connection string. + string ServiceBusConnectionStringSecretName { get; set; } + /// The storage account ARM Id. + string StorageAccountId { get; set; } + /// The secret name of the storage account. + string StorageAccountSasSecretName { get; set; } + /// The target location. + string TargetLocation { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetails.json.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetails.json.cs index a8d259392d67..a8c7b6683252 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtProtectionContainerMappingDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtProtectionContainerMappingDetails(json) : null; } @@ -115,6 +115,15 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M { AddIf( null != this._roleSizeToNicCountMap ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) this._roleSizeToNicCountMap.ToJson(null,serializationMode) : null, "roleSizeToNicCountMap" ,container.Add ); } + if (null != this._excludedSku) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.XNodeArray(); + foreach( var __x in this._excludedSku ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("excludedSkus",__w); + } AfterToJson(ref container); return container; } @@ -131,14 +140,15 @@ internal VMwareCbtProtectionContainerMappingDetails(Microsoft.Azure.PowerShell.C { return; } - __protectionContainerMappingProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProtectionContainerMappingProviderSpecificDetails(json); + __protectionContainerMappingProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProtectionContainerMappingProviderSpecificDetails(json); {_keyVaultId = If( json?.PropertyT("keyVaultId"), out var __jsonKeyVaultId) ? (string)__jsonKeyVaultId : (string)KeyVaultId;} {_keyVaultUri = If( json?.PropertyT("keyVaultUri"), out var __jsonKeyVaultUri) ? (string)__jsonKeyVaultUri : (string)KeyVaultUri;} {_storageAccountId = If( json?.PropertyT("storageAccountId"), out var __jsonStorageAccountId) ? (string)__jsonStorageAccountId : (string)StorageAccountId;} {_storageAccountSasSecretName = If( json?.PropertyT("storageAccountSasSecretName"), out var __jsonStorageAccountSasSecretName) ? (string)__jsonStorageAccountSasSecretName : (string)StorageAccountSasSecretName;} {_serviceBusConnectionStringSecretName = If( json?.PropertyT("serviceBusConnectionStringSecretName"), out var __jsonServiceBusConnectionStringSecretName) ? (string)__jsonServiceBusConnectionStringSecretName : (string)ServiceBusConnectionStringSecretName;} {_targetLocation = If( json?.PropertyT("targetLocation"), out var __jsonTargetLocation) ? (string)__jsonTargetLocation : (string)TargetLocation;} - {_roleSizeToNicCountMap = If( json?.PropertyT("roleSizeToNicCountMap"), out var __jsonRoleSizeToNicCountMap) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.FromJson(__jsonRoleSizeToNicCountMap) : RoleSizeToNicCountMap;} + {_roleSizeToNicCountMap = If( json?.PropertyT("roleSizeToNicCountMap"), out var __jsonRoleSizeToNicCountMap) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.FromJson(__jsonRoleSizeToNicCountMap) : RoleSizeToNicCountMap;} + {_excludedSku = If( json?.PropertyT("excludedSkus"), out var __jsonExcludedSkus) ? If( __jsonExcludedSkus as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : ExcludedSku;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.PowerShell.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.PowerShell.cs index 2977d8e37418..3705f47bb58f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCoun partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap(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.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap(global: } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.TypeConverter.cs index d6ebf320305b..50b5e90974a8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there /// is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.cs index 1e7ae28b85a7..ca857f5473b6 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The role size to NIC count map. public partial class VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMapInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMapInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.dictionary.cs index 2b5063730316..46adbdde616b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.json.cs index fd06e81c8e19..b5ad68bd6d38 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCoun partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtProtectionContainerMappingDetailsRoleSizeToNicCountMap(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResumeReplicationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResumeReplicationInput.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtResumeReplicationInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtResumeReplicationInput.PowerShell.cs index d8cce16d4791..4a71adeea4f8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResumeReplicationInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResumeReplicationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VMwareCbtResumeReplicationInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtResumeReplicationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResumeReplicationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtResumeReplicationInput(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.Migrate.Models.Api20220501.IVMwareCbtResumeReplicationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResumeReplicationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtResumeReplicationInput(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResumeReplicationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResumeReplicationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,17 +110,17 @@ internal VMwareCbtResumeReplicationInput(global::System.Collections.IDictionary // actually deserialize if (content.Contains("DeleteMigrationResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResumeReplicationInputInternal)this).DeleteMigrationResource = (string) content.GetValueForProperty("DeleteMigrationResource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResumeReplicationInputInternal)this).DeleteMigrationResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResumeReplicationInputInternal)this).DeleteMigrationResource = (string) content.GetValueForProperty("DeleteMigrationResource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResumeReplicationInputInternal)this).DeleteMigrationResource, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInputInternal)this).InstanceType, 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. @@ -135,11 +135,11 @@ internal VMwareCbtResumeReplicationInput(global::System.Management.Automation.PS // actually deserialize if (content.Contains("DeleteMigrationResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResumeReplicationInputInternal)this).DeleteMigrationResource = (string) content.GetValueForProperty("DeleteMigrationResource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResumeReplicationInputInternal)this).DeleteMigrationResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResumeReplicationInputInternal)this).DeleteMigrationResource = (string) content.GetValueForProperty("DeleteMigrationResource",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResumeReplicationInputInternal)this).DeleteMigrationResource, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResumeReplicationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResumeReplicationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtResumeReplicationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtResumeReplicationInput.TypeConverter.cs index 647e9d8f8a05..c394e42f5d49 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResumeReplicationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResumeReplicationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtResumeReplicationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResumeReplicationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResumeReplicationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResumeReplicationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResumeReplicationInput.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResumeReplicationInput.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtResumeReplicationInput.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtResumeReplicationInput.cs index e162aab9870a..ddcd5d5d7a64 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResumeReplicationInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResumeReplicationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMwareCbt specific resume replication input. public partial class VMwareCbtResumeReplicationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResumeReplicationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResumeReplicationInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResumeReplicationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResumeReplicationInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput __resumeReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput __resumeReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationProviderSpecificInput(); /// Backing field for property. private string _deleteMigrationResource; @@ -28,7 +28,7 @@ public partial class VMwareCbtResumeReplicationInput : /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInputInternal)__resumeReplicationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInputInternal)__resumeReplicationProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInputInternal)__resumeReplicationProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInputInternal)__resumeReplicationProviderSpecificInput).InstanceType = value ; } /// Creates an new instance. public VMwareCbtResumeReplicationInput() @@ -51,7 +51,7 @@ public VMwareCbtResumeReplicationInput() /// VMwareCbt specific resume replication input. public partial interface IVMwareCbtResumeReplicationInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput { /// A value indicating whether Migration resources to be deleted. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IVMwareCbtResumeReplicationInput : } /// VMwareCbt specific resume replication input. internal partial interface IVMwareCbtResumeReplicationInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInputInternal { /// A value indicating whether Migration resources to be deleted. string DeleteMigrationResource { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResumeReplicationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResumeReplicationInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtResumeReplicationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtResumeReplicationInput.json.cs index 29555a128acc..a7dadd74245f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResumeReplicationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResumeReplicationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtResumeReplicationInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResumeReplicationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResumeReplicationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResumeReplicationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResumeReplicationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResumeReplicationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResumeReplicationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtResumeReplicationInput(json) : null; } @@ -102,7 +102,7 @@ internal VMwareCbtResumeReplicationInput(Microsoft.Azure.PowerShell.Cmdlets.Migr { return; } - __resumeReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationProviderSpecificInput(json); + __resumeReplicationProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationProviderSpecificInput(json); {_deleteMigrationResource = If( json?.PropertyT("deleteMigrationResources"), out var __jsonDeleteMigrationResources) ? (string)__jsonDeleteMigrationResources : (string)DeleteMigrationResource;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResyncInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResyncInput.PowerShell.cs similarity index 79% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtResyncInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtResyncInput.PowerShell.cs index b6ad1e55707d..ff4303a2fbfb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResyncInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResyncInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class VMwareCbtResyncInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtResyncInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResyncInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtResyncInput(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.Migrate.Models.Api20220501.IVMwareCbtResyncInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResyncInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtResyncInput(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResyncInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResyncInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// 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 VMwareCbtResyncInput(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("SkipCbtReset")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResyncInputInternal)this).SkipCbtReset = (string) content.GetValueForProperty("SkipCbtReset",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResyncInputInternal)this).SkipCbtReset, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResyncInputInternal)this).SkipCbtReset = (string) content.GetValueForProperty("SkipCbtReset",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResyncInputInternal)this).SkipCbtReset, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInputInternal)this).InstanceType, 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. @@ -133,11 +133,11 @@ internal VMwareCbtResyncInput(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("SkipCbtReset")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResyncInputInternal)this).SkipCbtReset = (string) content.GetValueForProperty("SkipCbtReset",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResyncInputInternal)this).SkipCbtReset, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResyncInputInternal)this).SkipCbtReset = (string) content.GetValueForProperty("SkipCbtReset",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResyncInputInternal)this).SkipCbtReset, global::System.Convert.ToString); } if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResyncInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResyncInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtResyncInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtResyncInput.TypeConverter.cs index a6e1debc8538..44ab4965d93a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResyncInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResyncInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtResyncInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResyncInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResyncInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResyncInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResyncInput.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResyncInput.cs similarity index 83% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtResyncInput.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtResyncInput.cs index ca5da1b47f20..f17d1c381abf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResyncInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResyncInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMwareCbt specific resync input. public partial class VMwareCbtResyncInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResyncInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResyncInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResyncInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResyncInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput __resyncProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput __resyncProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInputInternal)__resyncProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInputInternal)__resyncProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInputInternal)__resyncProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInputInternal)__resyncProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private string _skipCbtReset; @@ -51,7 +51,7 @@ public VMwareCbtResyncInput() /// VMwareCbt specific resync input. public partial interface IVMwareCbtResyncInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput { /// A value indicating whether CBT is to be reset. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IVMwareCbtResyncInput : } /// VMwareCbt specific resync input. internal partial interface IVMwareCbtResyncInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInputInternal { /// A value indicating whether CBT is to be reset. string SkipCbtReset { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResyncInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResyncInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtResyncInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtResyncInput.json.cs index 309202223993..14c1ea963e89 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtResyncInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtResyncInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtResyncInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResyncInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResyncInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResyncInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResyncInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtResyncInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtResyncInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtResyncInput(json) : null; } @@ -102,7 +102,7 @@ internal VMwareCbtResyncInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime { return; } - __resyncProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncProviderSpecificInput(json); + __resyncProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncProviderSpecificInput(json); {_skipCbtReset = If( json?.PropertyT("skipCbtReset"), out var __jsonSkipCbtReset) ? (string)__jsonSkipCbtReset : (string)SkipCbtReset;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtSecurityProfileProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtSecurityProfileProperties.PowerShell.cs new file mode 100644 index 000000000000..4ed14b53ec42 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtSecurityProfileProperties.PowerShell.cs @@ -0,0 +1,180 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMwareCbt security profile input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtSecurityProfilePropertiesTypeConverter))] + public partial class VMwareCbtSecurityProfileProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareCbtSecurityProfileProperties(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.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareCbtSecurityProfileProperties(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.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareCbtSecurityProfileProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetVMSecurityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).TargetVMSecurityType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType?) content.GetValueForProperty("TargetVMSecurityType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).TargetVMSecurityType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType.CreateFrom); + } + if (content.Contains("IsTargetVMSecureBootEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMSecureBootEnabled = (string) content.GetValueForProperty("IsTargetVMSecureBootEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMSecureBootEnabled, global::System.Convert.ToString); + } + if (content.Contains("IsTargetVMTpmEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMTpmEnabled = (string) content.GetValueForProperty("IsTargetVMTpmEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMTpmEnabled, global::System.Convert.ToString); + } + if (content.Contains("IsTargetVMIntegrityMonitoringEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMIntegrityMonitoringEnabled = (string) content.GetValueForProperty("IsTargetVMIntegrityMonitoringEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMIntegrityMonitoringEnabled, global::System.Convert.ToString); + } + if (content.Contains("IsTargetVMConfidentialEncryptionEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMConfidentialEncryptionEnabled = (string) content.GetValueForProperty("IsTargetVMConfidentialEncryptionEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMConfidentialEncryptionEnabled, 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 VMwareCbtSecurityProfileProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetVMSecurityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).TargetVMSecurityType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType?) content.GetValueForProperty("TargetVMSecurityType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).TargetVMSecurityType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType.CreateFrom); + } + if (content.Contains("IsTargetVMSecureBootEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMSecureBootEnabled = (string) content.GetValueForProperty("IsTargetVMSecureBootEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMSecureBootEnabled, global::System.Convert.ToString); + } + if (content.Contains("IsTargetVMTpmEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMTpmEnabled = (string) content.GetValueForProperty("IsTargetVMTpmEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMTpmEnabled, global::System.Convert.ToString); + } + if (content.Contains("IsTargetVMIntegrityMonitoringEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMIntegrityMonitoringEnabled = (string) content.GetValueForProperty("IsTargetVMIntegrityMonitoringEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMIntegrityMonitoringEnabled, global::System.Convert.ToString); + } + if (content.Contains("IsTargetVMConfidentialEncryptionEnabled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMConfidentialEncryptionEnabled = (string) content.GetValueForProperty("IsTargetVMConfidentialEncryptionEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal)this).IsTargetVMConfidentialEncryptionEnabled, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMwareCbt security profile input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtSecurityProfilePropertiesTypeConverter))] + public partial interface IVMwareCbtSecurityProfileProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtSecurityProfileProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtSecurityProfileProperties.TypeConverter.cs new file mode 100644 index 000000000000..597660206407 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtSecurityProfileProperties.TypeConverter.cs @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class VMwareCbtSecurityProfilePropertiesTypeConverter : 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.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return VMwareCbtSecurityProfileProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return VMwareCbtSecurityProfileProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return VMwareCbtSecurityProfileProperties.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/Migrate/generated/api/Models/Api202301/VMwareCbtSecurityProfileProperties.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtSecurityProfileProperties.cs new file mode 100644 index 000000000000..65ab6c01a0d8 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtSecurityProfileProperties.cs @@ -0,0 +1,121 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// VMwareCbt security profile input. + public partial class VMwareCbtSecurityProfileProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfilePropertiesInternal + { + + /// + /// Backing field for property. + /// + private string _isTargetVMConfidentialEncryptionEnabled; + + /// A value indicating whether confidential compute encryption to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string IsTargetVMConfidentialEncryptionEnabled { get => this._isTargetVMConfidentialEncryptionEnabled; set => this._isTargetVMConfidentialEncryptionEnabled = value; } + + /// Backing field for property. + private string _isTargetVMIntegrityMonitoringEnabled; + + /// A value indicating whether integrity monitoring to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string IsTargetVMIntegrityMonitoringEnabled { get => this._isTargetVMIntegrityMonitoringEnabled; set => this._isTargetVMIntegrityMonitoringEnabled = value; } + + /// Backing field for property. + private string _isTargetVMSecureBootEnabled; + + /// A value indicating whether secure boot to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string IsTargetVMSecureBootEnabled { get => this._isTargetVMSecureBootEnabled; set => this._isTargetVMSecureBootEnabled = value; } + + /// Backing field for property. + private string _isTargetVMTpmEnabled; + + /// A value indicating whether trusted platform module to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string IsTargetVMTpmEnabled { get => this._isTargetVMTpmEnabled; set => this._isTargetVMTpmEnabled = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType? _targetVMSecurityType; + + /// The target VM security type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType? TargetVMSecurityType { get => this._targetVMSecurityType; set => this._targetVMSecurityType = value; } + + /// Creates an new instance. + public VMwareCbtSecurityProfileProperties() + { + + } + } + /// VMwareCbt security profile input. + public partial interface IVMwareCbtSecurityProfileProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// A value indicating whether confidential compute encryption to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether confidential compute encryption to be enabled.", + SerializedName = @"isTargetVmConfidentialEncryptionEnabled", + PossibleTypes = new [] { typeof(string) })] + string IsTargetVMConfidentialEncryptionEnabled { get; set; } + /// A value indicating whether integrity monitoring to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether integrity monitoring to be enabled.", + SerializedName = @"isTargetVmIntegrityMonitoringEnabled", + PossibleTypes = new [] { typeof(string) })] + string IsTargetVMIntegrityMonitoringEnabled { get; set; } + /// A value indicating whether secure boot to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether secure boot to be enabled.", + SerializedName = @"isTargetVmSecureBootEnabled", + PossibleTypes = new [] { typeof(string) })] + string IsTargetVMSecureBootEnabled { get; set; } + /// A value indicating whether trusted platform module to be enabled. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating whether trusted platform module to be enabled.", + SerializedName = @"isTargetVmTpmEnabled", + PossibleTypes = new [] { typeof(string) })] + string IsTargetVMTpmEnabled { get; set; } + /// The target VM security type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target VM security type.", + SerializedName = @"targetVmSecurityType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType? TargetVMSecurityType { get; set; } + + } + /// VMwareCbt security profile input. + internal partial interface IVMwareCbtSecurityProfilePropertiesInternal + + { + /// A value indicating whether confidential compute encryption to be enabled. + string IsTargetVMConfidentialEncryptionEnabled { get; set; } + /// A value indicating whether integrity monitoring to be enabled. + string IsTargetVMIntegrityMonitoringEnabled { get; set; } + /// A value indicating whether secure boot to be enabled. + string IsTargetVMSecureBootEnabled { get; set; } + /// A value indicating whether trusted platform module to be enabled. + string IsTargetVMTpmEnabled { get; set; } + /// The target VM security type. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType? TargetVMSecurityType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtSecurityProfileProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtSecurityProfileProperties.json.cs new file mode 100644 index 000000000000..b63edea45552 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtSecurityProfileProperties.json.cs @@ -0,0 +1,117 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// VMwareCbt security profile input. + public partial class VMwareCbtSecurityProfileProperties + { + + /// + /// 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.Migrate.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.Migrate.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.Migrate.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.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtSecurityProfileProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtSecurityProfileProperties(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.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._targetVMSecurityType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._targetVMSecurityType.ToString()) : null, "targetVmSecurityType" ,container.Add ); + AddIf( null != (((object)this._isTargetVMSecureBootEnabled)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._isTargetVMSecureBootEnabled.ToString()) : null, "isTargetVmSecureBootEnabled" ,container.Add ); + AddIf( null != (((object)this._isTargetVMTpmEnabled)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._isTargetVMTpmEnabled.ToString()) : null, "isTargetVmTpmEnabled" ,container.Add ); + AddIf( null != (((object)this._isTargetVMIntegrityMonitoringEnabled)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._isTargetVMIntegrityMonitoringEnabled.ToString()) : null, "isTargetVmIntegrityMonitoringEnabled" ,container.Add ); + AddIf( null != (((object)this._isTargetVMConfidentialEncryptionEnabled)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._isTargetVMConfidentialEncryptionEnabled.ToString()) : null, "isTargetVmConfidentialEncryptionEnabled" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. + internal VMwareCbtSecurityProfileProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_targetVMSecurityType = If( json?.PropertyT("targetVmSecurityType"), out var __jsonTargetVMSecurityType) ? (string)__jsonTargetVMSecurityType : (string)TargetVMSecurityType;} + {_isTargetVMSecureBootEnabled = If( json?.PropertyT("isTargetVmSecureBootEnabled"), out var __jsonIsTargetVMSecureBootEnabled) ? (string)__jsonIsTargetVMSecureBootEnabled : (string)IsTargetVMSecureBootEnabled;} + {_isTargetVMTpmEnabled = If( json?.PropertyT("isTargetVmTpmEnabled"), out var __jsonIsTargetVMTpmEnabled) ? (string)__jsonIsTargetVMTpmEnabled : (string)IsTargetVMTpmEnabled;} + {_isTargetVMIntegrityMonitoringEnabled = If( json?.PropertyT("isTargetVmIntegrityMonitoringEnabled"), out var __jsonIsTargetVMIntegrityMonitoringEnabled) ? (string)__jsonIsTargetVMIntegrityMonitoringEnabled : (string)IsTargetVMIntegrityMonitoringEnabled;} + {_isTargetVMConfidentialEncryptionEnabled = If( json?.PropertyT("isTargetVmConfidentialEncryptionEnabled"), out var __jsonIsTargetVMConfidentialEncryptionEnabled) ? (string)__jsonIsTargetVMConfidentialEncryptionEnabled : (string)IsTargetVMConfidentialEncryptionEnabled;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtTestMigrateInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtTestMigrateInput.PowerShell.cs new file mode 100644 index 000000000000..95d613b3630c --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtTestMigrateInput.PowerShell.cs @@ -0,0 +1,176 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMwareCbt specific test migrate input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtTestMigrateInputTypeConverter))] + public partial class VMwareCbtTestMigrateInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareCbtTestMigrateInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareCbtTestMigrateInput(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.Migrate.Models.Api202301.IVMwareCbtTestMigrateInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareCbtTestMigrateInput(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.Migrate.Models.Api202301.IVMwareCbtTestMigrateInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareCbtTestMigrateInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("NetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).NetworkId, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicInputTypeConverter.ConvertFrom)); + } + if (content.Contains("OSUpgradeVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).OSUpgradeVersion = (string) content.GetValueForProperty("OSUpgradeVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).OSUpgradeVersion, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInputInternal)this).InstanceType, 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 VMwareCbtTestMigrateInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).RecoveryPointId, global::System.Convert.ToString); + } + if (content.Contains("NetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).NetworkId = (string) content.GetValueForProperty("NetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).NetworkId, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicInputTypeConverter.ConvertFrom)); + } + if (content.Contains("OSUpgradeVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).OSUpgradeVersion = (string) content.GetValueForProperty("OSUpgradeVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal)this).OSUpgradeVersion, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMwareCbt specific test migrate input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtTestMigrateInputTypeConverter))] + public partial interface IVMwareCbtTestMigrateInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtTestMigrateInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtTestMigrateInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtTestMigrateInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtTestMigrateInput.TypeConverter.cs index 4298fcef2475..859d25a0ac7b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtTestMigrateInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtTestMigrateInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtTestMigrateInput.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtTestMigrateInput.cs new file mode 100644 index 000000000000..84725612fd30 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtTestMigrateInput.cs @@ -0,0 +1,125 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// VMwareCbt specific test migrate input. + public partial class VMwareCbtTestMigrateInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput __testMigrateProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateProviderSpecificInput(); + + /// The class type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInputInternal)__testMigrateProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInputInternal)__testMigrateProviderSpecificInput).InstanceType = value ; } + + /// Backing field for property. + private string _networkId; + + /// The test network Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string NetworkId { get => this._networkId; set => this._networkId = value; } + + /// Backing field for property. + private string _oSUpgradeVersion; + + /// A value indicating the inplace OS Upgrade version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string OSUpgradeVersion { get => this._oSUpgradeVersion; set => this._oSUpgradeVersion = value; } + + /// Backing field for property. + private string _recoveryPointId; + + /// The recovery point Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string RecoveryPointId { get => this._recoveryPointId; set => this._recoveryPointId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[] _vMNic; + + /// The list of NIC details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[] VMNic { get => this._vMNic; set => this._vMNic = value; } + + /// Creates an new instance. + public VMwareCbtTestMigrateInput() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__testMigrateProviderSpecificInput), __testMigrateProviderSpecificInput); + await eventListener.AssertObjectIsValid(nameof(__testMigrateProviderSpecificInput), __testMigrateProviderSpecificInput); + } + } + /// VMwareCbt specific test migrate input. + public partial interface IVMwareCbtTestMigrateInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput + { + /// The test network Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The test network Id.", + SerializedName = @"networkId", + PossibleTypes = new [] { typeof(string) })] + string NetworkId { get; set; } + /// A value indicating the inplace OS Upgrade version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A value indicating the inplace OS Upgrade version.", + SerializedName = @"osUpgradeVersion", + PossibleTypes = new [] { typeof(string) })] + string OSUpgradeVersion { get; set; } + /// The recovery point Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The recovery point Id.", + SerializedName = @"recoveryPointId", + PossibleTypes = new [] { typeof(string) })] + string RecoveryPointId { get; set; } + /// The list of NIC details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of NIC details.", + SerializedName = @"vmNics", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[] VMNic { get; set; } + + } + /// VMwareCbt specific test migrate input. + internal partial interface IVMwareCbtTestMigrateInputInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInputInternal + { + /// The test network Id. + string NetworkId { get; set; } + /// A value indicating the inplace OS Upgrade version. + string OSUpgradeVersion { get; set; } + /// The recovery point Id. + string RecoveryPointId { get; set; } + /// The list of NIC details. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[] VMNic { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtTestMigrateInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtTestMigrateInput.json.cs similarity index 86% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtTestMigrateInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtTestMigrateInput.json.cs index 491b1fdedd1d..4e11300cad13 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtTestMigrateInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtTestMigrateInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtTestMigrateInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtTestMigrateInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtTestMigrateInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtTestMigrateInput(json) : null; } @@ -96,6 +96,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M } container.Add("vmNics",__w); } + AddIf( null != (((object)this._oSUpgradeVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._oSUpgradeVersion.ToString()) : null, "osUpgradeVersion" ,container.Add ); AfterToJson(ref container); return container; } @@ -112,10 +113,11 @@ internal VMwareCbtTestMigrateInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - __testMigrateProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateProviderSpecificInput(json); + __testMigrateProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateProviderSpecificInput(json); {_recoveryPointId = If( json?.PropertyT("recoveryPointId"), out var __jsonRecoveryPointId) ? (string)__jsonRecoveryPointId : (string)RecoveryPointId;} {_networkId = If( json?.PropertyT("networkId"), out var __jsonNetworkId) ? (string)__jsonNetworkId : (string)NetworkId;} - {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtNicInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicInput.FromJson(__u) )) ))() : null : VMNic;} + {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IVMwareCbtNicInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicInput.FromJson(__u) )) ))() : null : VMNic;} + {_oSUpgradeVersion = If( json?.PropertyT("osUpgradeVersion"), out var __jsonOSUpgradeVersion) ? (string)__jsonOSUpgradeVersion : (string)OSUpgradeVersion;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateDiskInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateDiskInput.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateDiskInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateDiskInput.PowerShell.cs index ac895ff5a38a..6140ec8b7fc4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateDiskInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateDiskInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class VMwareCbtUpdateDiskInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtUpdateDiskInput(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.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtUpdateDiskInput(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,21 +108,21 @@ internal VMwareCbtUpdateDiskInput(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("DiskId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInputInternal)this).DiskId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInputInternal)this).DiskId, global::System.Convert.ToString); } if (content.Contains("TargetDiskName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInputInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInputInternal)this).TargetDiskName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInputInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInputInternal)this).TargetDiskName, global::System.Convert.ToString); } if (content.Contains("IsOSDisk")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInputInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInputInternal)this).IsOSDisk, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInputInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInputInternal)this).IsOSDisk, 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. @@ -137,15 +137,15 @@ internal VMwareCbtUpdateDiskInput(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("DiskId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInputInternal)this).DiskId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInputInternal)this).DiskId = (string) content.GetValueForProperty("DiskId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInputInternal)this).DiskId, global::System.Convert.ToString); } if (content.Contains("TargetDiskName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInputInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInputInternal)this).TargetDiskName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInputInternal)this).TargetDiskName = (string) content.GetValueForProperty("TargetDiskName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInputInternal)this).TargetDiskName, global::System.Convert.ToString); } if (content.Contains("IsOSDisk")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInputInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInputInternal)this).IsOSDisk, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInputInternal)this).IsOSDisk = (string) content.GetValueForProperty("IsOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInputInternal)this).IsOSDisk, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateDiskInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateDiskInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateDiskInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateDiskInput.TypeConverter.cs index c34b33d9dc4e..dbc498b0232b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateDiskInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateDiskInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateDiskInput.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateDiskInput.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateDiskInput.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateDiskInput.cs index 2c37c20dbbe5..bb239da8df6f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateDiskInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateDiskInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMwareCbt disk input for update. public partial class VMwareCbtUpdateDiskInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInputInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateDiskInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateDiskInput.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateDiskInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateDiskInput.json.cs index 2deffeef1978..739087ba195c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateDiskInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateDiskInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtUpdateDiskInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtUpdateDiskInput(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInput.PowerShell.cs new file mode 100644 index 000000000000..33b825ee4c06 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInput.PowerShell.cs @@ -0,0 +1,284 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMwareCbt specific update migration item input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtUpdateMigrationItemInputTypeConverter))] + public partial class VMwareCbtUpdateMigrationItemInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareCbtUpdateMigrationItemInput(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.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareCbtUpdateMigrationItemInput(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.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareCbtUpdateMigrationItemInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("TargetResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetBootDiagnosticsStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TestNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TestNetworkId, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicInputTypeConverter.ConvertFrom)); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateDiskInputTypeConverter.ConvertFrom)); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); + } + if (content.Contains("PerformAutoResync")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).PerformAutoResync = (string) content.GetValueForProperty("PerformAutoResync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).PerformAutoResync, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetVmtagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags) content.GetValueForProperty("TargetDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType, 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 VMwareCbtUpdateMigrationItemInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetVMName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMName = (string) content.GetValueForProperty("TargetVMName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMName, global::System.Convert.ToString); + } + if (content.Contains("TargetVMSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMSize = (string) content.GetValueForProperty("TargetVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMSize, global::System.Convert.ToString); + } + if (content.Contains("TargetResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetResourceGroupId = (string) content.GetValueForProperty("TargetResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilitySetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilitySetId = (string) content.GetValueForProperty("TargetAvailabilitySetId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilitySetId, global::System.Convert.ToString); + } + if (content.Contains("TargetAvailabilityZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilityZone = (string) content.GetValueForProperty("TargetAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetAvailabilityZone, global::System.Convert.ToString); + } + if (content.Contains("TargetProximityPlacementGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetProximityPlacementGroupId = (string) content.GetValueForProperty("TargetProximityPlacementGroupId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetProximityPlacementGroupId, global::System.Convert.ToString); + } + if (content.Contains("TargetBootDiagnosticsStorageAccountId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetBootDiagnosticsStorageAccountId = (string) content.GetValueForProperty("TargetBootDiagnosticsStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetBootDiagnosticsStorageAccountId, global::System.Convert.ToString); + } + if (content.Contains("TargetNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNetworkId = (string) content.GetValueForProperty("TargetNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNetworkId, global::System.Convert.ToString); + } + if (content.Contains("TestNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TestNetworkId = (string) content.GetValueForProperty("TestNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TestNetworkId, global::System.Convert.ToString); + } + if (content.Contains("VMNic")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).VMNic = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[]) content.GetValueForProperty("VMNic",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).VMNic, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicInputTypeConverter.ConvertFrom)); + } + if (content.Contains("VMDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).VMDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput[]) content.GetValueForProperty("VMDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).VMDisk, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateDiskInputTypeConverter.ConvertFrom)); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType.CreateFrom); + } + if (content.Contains("SqlServerLicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).SqlServerLicenseType = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType?) content.GetValueForProperty("SqlServerLicenseType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).SqlServerLicenseType, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SqlServerLicenseType.CreateFrom); + } + if (content.Contains("PerformAutoResync")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).PerformAutoResync = (string) content.GetValueForProperty("PerformAutoResync",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).PerformAutoResync, global::System.Convert.ToString); + } + if (content.Contains("TargetVMTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags) content.GetValueForProperty("TargetVMTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetVMTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetVmtagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetDiskTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetDiskTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags) content.GetValueForProperty("TargetDiskTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetDiskTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetDiskTagsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetNicTag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNicTag = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags) content.GetValueForProperty("TargetNicTag",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal)this).TargetNicTag, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetNicTagsTypeConverter.ConvertFrom); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMwareCbt specific update migration item input. + [System.ComponentModel.TypeConverter(typeof(VMwareCbtUpdateMigrationItemInputTypeConverter))] + public partial interface IVMwareCbtUpdateMigrationItemInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInput.TypeConverter.cs index 10b88bfa6156..184cc7c0ce28 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInput.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInput.cs similarity index 85% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInput.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInput.cs index e95acb3a5762..2f2282621e30 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMwareCbt specific update migration item input. public partial class VMwareCbtUpdateMigrationItemInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput __updateMigrationItemProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemProviderSpecificInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput __updateMigrationItemProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemProviderSpecificInput(); /// The class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInputInternal)__updateMigrationItemProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInputInternal)__updateMigrationItemProviderSpecificInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInputInternal)__updateMigrationItemProviderSpecificInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInputInternal)__updateMigrationItemProviderSpecificInput).InstanceType = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? _licenseType; @@ -68,11 +68,11 @@ public partial class VMwareCbtUpdateMigrationItemInput : public string TargetBootDiagnosticsStorageAccountId { get => this._targetBootDiagnosticsStorageAccountId; set => this._targetBootDiagnosticsStorageAccountId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags _targetDiskTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags _targetDiskTag; /// The tags for the target disks. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags TargetDiskTag { get => (this._targetDiskTag = this._targetDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetDiskTags()); set => this._targetDiskTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags TargetDiskTag { get => (this._targetDiskTag = this._targetDiskTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetDiskTags()); set => this._targetDiskTag = value; } /// Backing field for property. private string _targetNetworkId; @@ -82,11 +82,11 @@ public partial class VMwareCbtUpdateMigrationItemInput : public string TargetNetworkId { get => this._targetNetworkId; set => this._targetNetworkId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags _targetNicTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags _targetNicTag; /// The tags for the target NICs. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetNicTags()); set => this._targetNicTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags TargetNicTag { get => (this._targetNicTag = this._targetNicTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetNicTags()); set => this._targetNicTag = value; } /// Backing field for property. private string _targetProximityPlacementGroupId; @@ -117,11 +117,11 @@ public partial class VMwareCbtUpdateMigrationItemInput : public string TargetVMSize { get => this._targetVMSize; set => this._targetVMSize = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags _targetVMTag; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags _targetVMTag; /// The target VM tags. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetVmtags()); set => this._targetVMTag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags TargetVMTag { get => (this._targetVMTag = this._targetVMTag ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetVmtags()); set => this._targetVMTag = value; } /// Backing field for property. private string _testNetworkId; @@ -131,18 +131,18 @@ public partial class VMwareCbtUpdateMigrationItemInput : public string TestNetworkId { get => this._testNetworkId; set => this._testNetworkId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput[] _vMDisk; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput[] _vMDisk; /// The list of disk update properties. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput[] VMDisk { get => this._vMDisk; set => this._vMDisk = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[] _vMNic; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[] _vMNic; /// The list of NIC details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[] VMNic { get => this._vMNic; set => this._vMNic = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[] VMNic { get => this._vMNic; set => this._vMNic = value; } /// Creates an new instance. public VMwareCbtUpdateMigrationItemInput() @@ -165,7 +165,7 @@ public VMwareCbtUpdateMigrationItemInput() /// VMwareCbt specific update migration item input. public partial interface IVMwareCbtUpdateMigrationItemInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput { /// The license type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -221,8 +221,8 @@ public partial interface IVMwareCbtUpdateMigrationItemInput : ReadOnly = false, Description = @"The tags for the target disks.", SerializedName = @"targetDiskTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags TargetDiskTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags TargetDiskTag { get; set; } /// The target network ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -237,8 +237,8 @@ public partial interface IVMwareCbtUpdateMigrationItemInput : ReadOnly = false, Description = @"The tags for the target NICs.", SerializedName = @"targetNicTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags TargetNicTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags TargetNicTag { get; set; } /// The target proximity placement group ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -277,8 +277,8 @@ public partial interface IVMwareCbtUpdateMigrationItemInput : ReadOnly = false, Description = @"The target VM tags.", SerializedName = @"targetVmTags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags TargetVMTag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags TargetVMTag { get; set; } /// The test network ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -293,21 +293,21 @@ public partial interface IVMwareCbtUpdateMigrationItemInput : ReadOnly = false, Description = @"The list of disk update properties.", SerializedName = @"vmDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput[] VMDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput[] VMDisk { get; set; } /// The list of NIC details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, ReadOnly = false, Description = @"The list of NIC details.", SerializedName = @"vmNics", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[] VMNic { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[] VMNic { get; set; } } /// VMwareCbt specific update migration item input. internal partial interface IVMwareCbtUpdateMigrationItemInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInputInternal { /// The license type. Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.LicenseType? LicenseType { get; set; } @@ -322,11 +322,11 @@ internal partial interface IVMwareCbtUpdateMigrationItemInputInternal : /// The target boot diagnostics storage account ARM Id. string TargetBootDiagnosticsStorageAccountId { get; set; } /// The tags for the target disks. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags TargetDiskTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags TargetDiskTag { get; set; } /// The target network ARM Id. string TargetNetworkId { get; set; } /// The tags for the target NICs. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags TargetNicTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags TargetNicTag { get; set; } /// The target proximity placement group ARM Id. string TargetProximityPlacementGroupId { get; set; } /// The target resource group ARM Id. @@ -336,13 +336,13 @@ internal partial interface IVMwareCbtUpdateMigrationItemInputInternal : /// The target VM size. string TargetVMSize { get; set; } /// The target VM tags. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags TargetVMTag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags TargetVMTag { get; set; } /// The test network ARM Id. string TestNetworkId { get; set; } /// The list of disk update properties. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput[] VMDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput[] VMDisk { get; set; } /// The list of NIC details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[] VMNic { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[] VMNic { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInput.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInput.json.cs index a09885d1bc36..e4a1c3bfb346 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtUpdateMigrationItemInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtUpdateMigrationItemInput(json) : null; } @@ -134,7 +134,7 @@ internal VMwareCbtUpdateMigrationItemInput(Microsoft.Azure.PowerShell.Cmdlets.Mi { return; } - __updateMigrationItemProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemProviderSpecificInput(json); + __updateMigrationItemProviderSpecificInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemProviderSpecificInput(json); {_targetVMName = If( json?.PropertyT("targetVmName"), out var __jsonTargetVMName) ? (string)__jsonTargetVMName : (string)TargetVMName;} {_targetVMSize = If( json?.PropertyT("targetVmSize"), out var __jsonTargetVMSize) ? (string)__jsonTargetVMSize : (string)TargetVMSize;} {_targetResourceGroupId = If( json?.PropertyT("targetResourceGroupId"), out var __jsonTargetResourceGroupId) ? (string)__jsonTargetResourceGroupId : (string)TargetResourceGroupId;} @@ -144,14 +144,14 @@ internal VMwareCbtUpdateMigrationItemInput(Microsoft.Azure.PowerShell.Cmdlets.Mi {_targetBootDiagnosticsStorageAccountId = If( json?.PropertyT("targetBootDiagnosticsStorageAccountId"), out var __jsonTargetBootDiagnosticsStorageAccountId) ? (string)__jsonTargetBootDiagnosticsStorageAccountId : (string)TargetBootDiagnosticsStorageAccountId;} {_targetNetworkId = If( json?.PropertyT("targetNetworkId"), out var __jsonTargetNetworkId) ? (string)__jsonTargetNetworkId : (string)TargetNetworkId;} {_testNetworkId = If( json?.PropertyT("testNetworkId"), out var __jsonTestNetworkId) ? (string)__jsonTestNetworkId : (string)TestNetworkId;} - {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtNicInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtNicInput.FromJson(__u) )) ))() : null : VMNic;} - {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateDiskInput.FromJson(__p) )) ))() : null : VMDisk;} + {_vMNic = If( json?.PropertyT("vmNics"), out var __jsonVMNics) ? If( __jsonVMNics as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IVMwareCbtNicInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtNicInput.FromJson(__u) )) ))() : null : VMNic;} + {_vMDisk = If( json?.PropertyT("vmDisks"), out var __jsonVMDisks) ? If( __jsonVMDisks as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateDiskInput.FromJson(__p) )) ))() : null : VMDisk;} {_licenseType = If( json?.PropertyT("licenseType"), out var __jsonLicenseType) ? (string)__jsonLicenseType : (string)LicenseType;} {_sqlServerLicenseType = If( json?.PropertyT("sqlServerLicenseType"), out var __jsonSqlServerLicenseType) ? (string)__jsonSqlServerLicenseType : (string)SqlServerLicenseType;} {_performAutoResync = If( json?.PropertyT("performAutoResync"), out var __jsonPerformAutoResync) ? (string)__jsonPerformAutoResync : (string)PerformAutoResync;} - {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetVmtags.FromJson(__jsonTargetVMTags) : TargetVMTag;} - {_targetDiskTag = If( json?.PropertyT("targetDiskTags"), out var __jsonTargetDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetDiskTags.FromJson(__jsonTargetDiskTags) : TargetDiskTag;} - {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} + {_targetVMTag = If( json?.PropertyT("targetVmTags"), out var __jsonTargetVMTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetVmtags.FromJson(__jsonTargetVMTags) : TargetVMTag;} + {_targetDiskTag = If( json?.PropertyT("targetDiskTags"), out var __jsonTargetDiskTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetDiskTags.FromJson(__jsonTargetDiskTags) : TargetDiskTag;} + {_targetNicTag = If( json?.PropertyT("targetNicTags"), out var __jsonTargetNicTags) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetNicTags.FromJson(__jsonTargetNicTags) : TargetNicTag;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.PowerShell.cs index f509356ee6cf..201b5f80fe7d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VMwareCbtUpdateMigrationItemInputTargetDiskTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtUpdateMigrationItemInputTargetDiskTags(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.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtUpdateMigrationItemInputTargetDiskTags(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VMwareCbtUpdateMigrationItemInputTargetDiskTags(global::System.Collecti } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.TypeConverter.cs index e5d7c2c04cc1..3ff6dc9704af 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.cs index f2ccb3f97708..f522dd34c2f3 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target disks. public partial class VMwareCbtUpdateMigrationItemInputTargetDiskTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.dictionary.cs index 90a020fb7e08..d3e126222890 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetDiskTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetDiskTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.json.cs index 64d9da1cd414..ecb3b947a6bf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetDiskTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetDiskTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtUpdateMigrationItemInputTargetDiskTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetDiskTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtUpdateMigrationItemInputTargetDiskTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.PowerShell.cs index 97727355d01c..0e855fb1d4b9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VMwareCbtUpdateMigrationItemInputTargetNicTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtUpdateMigrationItemInputTargetNicTags(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.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtUpdateMigrationItemInputTargetNicTags(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VMwareCbtUpdateMigrationItemInputTargetNicTags(global::System.Collectio } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.TypeConverter.cs index 25d516ec7bd7..ca3eb82d9ec9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.cs index 35b6ff8441d1..498647589c06 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The tags for the target NICs. public partial class VMwareCbtUpdateMigrationItemInputTargetNicTags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.dictionary.cs index 0fe282fb31dd..53a22ef8d152 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetNicTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetNicTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.json.cs index b5a745a941e1..f03258cb33ea 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetNicTags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetNicTags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtUpdateMigrationItemInputTargetNicTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetNicTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtUpdateMigrationItemInputTargetNicTags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.PowerShell.cs similarity index 87% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.PowerShell.cs index d2bff82de3dd..f89e20938ca0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VMwareCbtUpdateMigrationItemInputTargetVmtags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VMwareCbtUpdateMigrationItemInputTargetVmtags(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.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VMwareCbtUpdateMigrationItemInputTargetVmtags(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMw public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VMwareCbtUpdateMigrationItemInputTargetVmtags(global::System.Collection } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.TypeConverter.cs index 8f3901789e89..4f47f6deffbf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.cs index f11fccfb2707..1ae047ab074d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// The target VM tags. public partial class VMwareCbtUpdateMigrationItemInputTargetVmtags : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtagsInternal { /// diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.dictionary.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.dictionary.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.dictionary.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.dictionary.cs index 042d1602d146..58b0dbe5c20b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.dictionary.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.dictionary.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtUpdateMigrationItemInputTargetVmtags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtUpdateMigrationItemInputTargetVmtags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.json.cs index 17a2bd7ffeee..cbbc4458b029 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareCbtUpdateMigrationItemInputTargetVmtags.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareCbtUpdateMigrationItemInputTargetVmtags.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareCbtUpdateMigrationItemInputTargetVmtags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateMigrationItemInputTargetVmtags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateMigrationItemInputTargetVmtags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareCbtUpdateMigrationItemInputTargetVmtags(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareDetails.PowerShell.cs new file mode 100644 index 000000000000..e9d8ead6b4e9 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareDetails.PowerShell.cs @@ -0,0 +1,432 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Store the fabric details specific to the VMware fabric. + [System.ComponentModel.TypeConverter(typeof(VMwareDetailsTypeConverter))] + public partial class VMwareDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareDetails(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.Migrate.Models.Api202301.IVMwareDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareDetails(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.Migrate.Models.Api202301.IVMwareDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentVersionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails) content.GetValueForProperty("AgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProcessServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServer[]) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ProcessServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerTypeConverter.ConvertFrom)); + } + if (content.Contains("MasterTargetServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).MasterTargetServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServer[]) content.GetValueForProperty("MasterTargetServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).MasterTargetServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MasterTargetServerTypeConverter.ConvertFrom)); + } + if (content.Contains("RunAsAccount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).RunAsAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount[]) content.GetValueForProperty("RunAsAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).RunAsAccount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RunAsAccountTypeConverter.ConvertFrom)); + } + if (content.Contains("ReplicationPairCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ReplicationPairCount = (string) content.GetValueForProperty("ReplicationPairCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ReplicationPairCount, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ProcessServerCount = (string) content.GetValueForProperty("ProcessServerCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ProcessServerCount, global::System.Convert.ToString); + } + if (content.Contains("AgentCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentCount = (string) content.GetValueForProperty("AgentCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentCount, global::System.Convert.ToString); + } + if (content.Contains("ProtectedServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ProtectedServer = (string) content.GetValueForProperty("ProtectedServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ProtectedServer, global::System.Convert.ToString); + } + if (content.Contains("SystemLoad")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SystemLoad = (string) content.GetValueForProperty("SystemLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SystemLoad, global::System.Convert.ToString); + } + if (content.Contains("SystemLoadStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SystemLoadStatus = (string) content.GetValueForProperty("SystemLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SystemLoadStatus, global::System.Convert.ToString); + } + if (content.Contains("CpuLoad")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).CpuLoad = (string) content.GetValueForProperty("CpuLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).CpuLoad, global::System.Convert.ToString); + } + if (content.Contains("CpuLoadStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).CpuLoadStatus = (string) content.GetValueForProperty("CpuLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).CpuLoadStatus, global::System.Convert.ToString); + } + if (content.Contains("TotalMemoryInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).TotalMemoryInByte = (long?) content.GetValueForProperty("TotalMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).TotalMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("AvailableMemoryInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AvailableMemoryInByte = (long?) content.GetValueForProperty("AvailableMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AvailableMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("MemoryUsageStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).MemoryUsageStatus = (string) content.GetValueForProperty("MemoryUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).MemoryUsageStatus, global::System.Convert.ToString); + } + if (content.Contains("TotalSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).TotalSpaceInByte = (long?) content.GetValueForProperty("TotalSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).TotalSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("AvailableSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AvailableSpaceInByte = (long?) content.GetValueForProperty("AvailableSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AvailableSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("SpaceUsageStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SpaceUsageStatus = (string) content.GetValueForProperty("SpaceUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SpaceUsageStatus, global::System.Convert.ToString); + } + if (content.Contains("WebLoad")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).WebLoad = (string) content.GetValueForProperty("WebLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).WebLoad, global::System.Convert.ToString); + } + if (content.Contains("WebLoadStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).WebLoadStatus = (string) content.GetValueForProperty("WebLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).WebLoadStatus, global::System.Convert.ToString); + } + if (content.Contains("DatabaseServerLoad")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).DatabaseServerLoad = (string) content.GetValueForProperty("DatabaseServerLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).DatabaseServerLoad, global::System.Convert.ToString); + } + if (content.Contains("DatabaseServerLoadStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).DatabaseServerLoadStatus = (string) content.GetValueForProperty("DatabaseServerLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).DatabaseServerLoadStatus, global::System.Convert.ToString); + } + if (content.Contains("CsServiceStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).CsServiceStatus = (string) content.GetValueForProperty("CsServiceStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).CsServiceStatus, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("AgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersion, global::System.Convert.ToString); + } + if (content.Contains("HostName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).HostName, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("VersionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).VersionStatus = (string) content.GetValueForProperty("VersionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).VersionStatus, global::System.Convert.ToString); + } + if (content.Contains("SslCertExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SslCertExpiryDate = (global::System.DateTime?) content.GetValueForProperty("SslCertExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SslCertExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SslCertExpiryRemainingDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SslCertExpiryRemainingDay = (int?) content.GetValueForProperty("SslCertExpiryRemainingDay",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SslCertExpiryRemainingDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("PsTemplateVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).PsTemplateVersion = (string) content.GetValueForProperty("PsTemplateVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).PsTemplateVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SwitchProviderBlockingErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SwitchProviderBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails[]) content.GetValueForProperty("SwitchProviderBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SwitchProviderBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("AgentVersionDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetailVersion = (string) content.GetValueForProperty("AgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentVersionDetailExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AgentVersionDetailStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("AgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal VMwareDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentVersionDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails) content.GetValueForProperty("AgentVersionDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ProcessServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServer[]) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ProcessServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerTypeConverter.ConvertFrom)); + } + if (content.Contains("MasterTargetServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).MasterTargetServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServer[]) content.GetValueForProperty("MasterTargetServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).MasterTargetServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MasterTargetServerTypeConverter.ConvertFrom)); + } + if (content.Contains("RunAsAccount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).RunAsAccount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount[]) content.GetValueForProperty("RunAsAccount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).RunAsAccount, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RunAsAccountTypeConverter.ConvertFrom)); + } + if (content.Contains("ReplicationPairCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ReplicationPairCount = (string) content.GetValueForProperty("ReplicationPairCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ReplicationPairCount, global::System.Convert.ToString); + } + if (content.Contains("ProcessServerCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ProcessServerCount = (string) content.GetValueForProperty("ProcessServerCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ProcessServerCount, global::System.Convert.ToString); + } + if (content.Contains("AgentCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentCount = (string) content.GetValueForProperty("AgentCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentCount, global::System.Convert.ToString); + } + if (content.Contains("ProtectedServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ProtectedServer = (string) content.GetValueForProperty("ProtectedServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).ProtectedServer, global::System.Convert.ToString); + } + if (content.Contains("SystemLoad")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SystemLoad = (string) content.GetValueForProperty("SystemLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SystemLoad, global::System.Convert.ToString); + } + if (content.Contains("SystemLoadStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SystemLoadStatus = (string) content.GetValueForProperty("SystemLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SystemLoadStatus, global::System.Convert.ToString); + } + if (content.Contains("CpuLoad")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).CpuLoad = (string) content.GetValueForProperty("CpuLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).CpuLoad, global::System.Convert.ToString); + } + if (content.Contains("CpuLoadStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).CpuLoadStatus = (string) content.GetValueForProperty("CpuLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).CpuLoadStatus, global::System.Convert.ToString); + } + if (content.Contains("TotalMemoryInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).TotalMemoryInByte = (long?) content.GetValueForProperty("TotalMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).TotalMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("AvailableMemoryInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AvailableMemoryInByte = (long?) content.GetValueForProperty("AvailableMemoryInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AvailableMemoryInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("MemoryUsageStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).MemoryUsageStatus = (string) content.GetValueForProperty("MemoryUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).MemoryUsageStatus, global::System.Convert.ToString); + } + if (content.Contains("TotalSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).TotalSpaceInByte = (long?) content.GetValueForProperty("TotalSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).TotalSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("AvailableSpaceInByte")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AvailableSpaceInByte = (long?) content.GetValueForProperty("AvailableSpaceInByte",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AvailableSpaceInByte, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("SpaceUsageStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SpaceUsageStatus = (string) content.GetValueForProperty("SpaceUsageStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SpaceUsageStatus, global::System.Convert.ToString); + } + if (content.Contains("WebLoad")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).WebLoad = (string) content.GetValueForProperty("WebLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).WebLoad, global::System.Convert.ToString); + } + if (content.Contains("WebLoadStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).WebLoadStatus = (string) content.GetValueForProperty("WebLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).WebLoadStatus, global::System.Convert.ToString); + } + if (content.Contains("DatabaseServerLoad")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).DatabaseServerLoad = (string) content.GetValueForProperty("DatabaseServerLoad",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).DatabaseServerLoad, global::System.Convert.ToString); + } + if (content.Contains("DatabaseServerLoadStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).DatabaseServerLoadStatus = (string) content.GetValueForProperty("DatabaseServerLoadStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).DatabaseServerLoadStatus, global::System.Convert.ToString); + } + if (content.Contains("CsServiceStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).CsServiceStatus = (string) content.GetValueForProperty("CsServiceStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).CsServiceStatus, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("AgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersion, global::System.Convert.ToString); + } + if (content.Contains("HostName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).HostName = (string) content.GetValueForProperty("HostName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).HostName, global::System.Convert.ToString); + } + if (content.Contains("LastHeartbeat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).LastHeartbeat = (global::System.DateTime?) content.GetValueForProperty("LastHeartbeat",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).LastHeartbeat, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("VersionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).VersionStatus = (string) content.GetValueForProperty("VersionStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).VersionStatus, global::System.Convert.ToString); + } + if (content.Contains("SslCertExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SslCertExpiryDate = (global::System.DateTime?) content.GetValueForProperty("SslCertExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SslCertExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SslCertExpiryRemainingDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SslCertExpiryRemainingDay = (int?) content.GetValueForProperty("SslCertExpiryRemainingDay",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SslCertExpiryRemainingDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("PsTemplateVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).PsTemplateVersion = (string) content.GetValueForProperty("PsTemplateVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).PsTemplateVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SwitchProviderBlockingErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SwitchProviderBlockingErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails[]) content.GetValueForProperty("SwitchProviderBlockingErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).SwitchProviderBlockingErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("AgentVersionDetailVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetailVersion = (string) content.GetValueForProperty("AgentVersionDetailVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetailVersion, global::System.Convert.ToString); + } + if (content.Contains("AgentVersionDetailExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetailExpiryDate = (global::System.DateTime?) content.GetValueForProperty("AgentVersionDetailExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetailExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("AgentVersionDetailStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetailStatus = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("AgentVersionDetailStatus",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal)this).AgentVersionDetailStatus, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); + } + AfterDeserializePSObject(content); + } + } + /// Store the fabric details specific to the VMware fabric. + [System.ComponentModel.TypeConverter(typeof(VMwareDetailsTypeConverter))] + public partial interface IVMwareDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/VMwareDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareDetails.TypeConverter.cs index 69cb3ed27f58..555cf6481944 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareDetails.cs b/src/Migrate/generated/api/Models/Api202301/VMwareDetails.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/VMwareDetails.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareDetails.cs index d76f208f8e75..be33eff18c8a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Store the fabric details specific to the VMware fabric. public partial class VMwareDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails(); /// Backing field for property. private string _agentCount; @@ -41,23 +41,23 @@ public partial class VMwareDetails : public string AgentVersion { get => this._agentVersion; set => this._agentVersion = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails _agentVersionDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails _agentVersionDetail; /// The agent version details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails AgentVersionDetail { get => (this._agentVersionDetail = this._agentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails()); set => this._agentVersionDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails AgentVersionDetail { get => (this._agentVersionDetail = this._agentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails()); set => this._agentVersionDetail = value; } /// Version expiry date. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public global::System.DateTime? AgentVersionDetailExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).ExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).ExpiryDate = value ?? default(global::System.DateTime); } + public global::System.DateTime? AgentVersionDetailExpiryDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).ExpiryDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).ExpiryDate = value ?? default(global::System.DateTime); } /// A value indicating whether security update required. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? AgentVersionDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus)""); } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus? AgentVersionDetailStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus)""); } /// The agent version. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] - public string AgentVersionDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal)AgentVersionDetail).Version = value ?? null; } + public string AgentVersionDetailVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)AgentVersionDetail).Version = value ?? null; } /// Backing field for property. private long? _availableMemoryInByte; @@ -124,7 +124,7 @@ public partial class VMwareDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType = value ; } /// Backing field for property. private global::System.DateTime? _lastHeartbeat; @@ -134,11 +134,11 @@ public partial class VMwareDetails : public global::System.DateTime? LastHeartbeat { get => this._lastHeartbeat; set => this._lastHeartbeat = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServer[] _masterTargetServer; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServer[] _masterTargetServer; /// The list of Master Target servers associated with the fabric. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServer[] MasterTargetServer { get => this._masterTargetServer; set => this._masterTargetServer = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServer[] MasterTargetServer { get => this._masterTargetServer; set => this._masterTargetServer = value; } /// Backing field for property. private string _memoryUsageStatus; @@ -148,14 +148,14 @@ public partial class VMwareDetails : public string MemoryUsageStatus { get => this._memoryUsageStatus; set => this._memoryUsageStatus = value; } /// Internal Acessors for AgentVersionDetail - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetailsInternal.AgentVersionDetail { get => (this._agentVersionDetail = this._agentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails()); set { {_agentVersionDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetailsInternal.AgentVersionDetail { get => (this._agentVersionDetail = this._agentVersionDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails()); set { {_agentVersionDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServer[] _processServer; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServer[] _processServer; /// The list of Process Servers associated with the fabric. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServer[] ProcessServer { get => this._processServer; set => this._processServer = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServer[] ProcessServer { get => this._processServer; set => this._processServer = value; } /// Backing field for property. private string _processServerCount; @@ -186,11 +186,11 @@ public partial class VMwareDetails : public string ReplicationPairCount { get => this._replicationPairCount; set => this._replicationPairCount = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccount[] _runAsAccount; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount[] _runAsAccount; /// The list of run as accounts created on the server. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccount[] RunAsAccount { get => this._runAsAccount; set => this._runAsAccount = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount[] RunAsAccount { get => this._runAsAccount; set => this._runAsAccount = value; } /// Backing field for property. private string _spaceUsageStatus; @@ -214,11 +214,11 @@ public partial class VMwareDetails : public int? SslCertExpiryRemainingDay { get => this._sslCertExpiryRemainingDay; set => this._sslCertExpiryRemainingDay = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails[] _switchProviderBlockingErrorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails[] _switchProviderBlockingErrorDetail; /// The switch provider blocking error information. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get => this._switchProviderBlockingErrorDetail; set => this._switchProviderBlockingErrorDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get => this._switchProviderBlockingErrorDetail; set => this._switchProviderBlockingErrorDetail = value; } /// Backing field for property. private string _systemLoad; @@ -290,7 +290,7 @@ public VMwareDetails() /// Store the fabric details specific to the VMware fabric. public partial interface IVMwareDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails { /// The number of source and target servers configured to talk to this CS. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -426,8 +426,8 @@ public partial interface IVMwareDetails : ReadOnly = false, Description = @"The list of Master Target servers associated with the fabric.", SerializedName = @"masterTargetServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServer) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServer[] MasterTargetServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServer) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServer[] MasterTargetServer { get; set; } /// The memory usage status. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -442,8 +442,8 @@ public partial interface IVMwareDetails : ReadOnly = false, Description = @"The list of Process Servers associated with the fabric.", SerializedName = @"processServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServer) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServer[] ProcessServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServer) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServer[] ProcessServer { get; set; } /// The number of process servers. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -482,8 +482,8 @@ public partial interface IVMwareDetails : ReadOnly = false, Description = @"The list of run as accounts created on the server.", SerializedName = @"runAsAccounts", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccount) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccount[] RunAsAccount { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount[] RunAsAccount { get; set; } /// The space usage status. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -514,8 +514,8 @@ public partial interface IVMwareDetails : ReadOnly = false, Description = @"The switch provider blocking error information.", SerializedName = @"switchProviderBlockingErrorDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get; set; } /// The percentage of the system load. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -576,7 +576,7 @@ public partial interface IVMwareDetails : } /// Store the fabric details specific to the VMware fabric. internal partial interface IVMwareDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal { /// The number of source and target servers configured to talk to this CS. string AgentCount { get; set; } @@ -585,7 +585,7 @@ internal partial interface IVMwareDetailsInternal : /// The agent Version. string AgentVersion { get; set; } /// The agent version details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails AgentVersionDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails AgentVersionDetail { get; set; } /// Version expiry date. global::System.DateTime? AgentVersionDetailExpiryDate { get; set; } /// A value indicating whether security update required. @@ -613,11 +613,11 @@ internal partial interface IVMwareDetailsInternal : /// The last heartbeat received from CS server. global::System.DateTime? LastHeartbeat { get; set; } /// The list of Master Target servers associated with the fabric. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServer[] MasterTargetServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServer[] MasterTargetServer { get; set; } /// The memory usage status. string MemoryUsageStatus { get; set; } /// The list of Process Servers associated with the fabric. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServer[] ProcessServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServer[] ProcessServer { get; set; } /// The number of process servers. string ProcessServerCount { get; set; } /// The number of protected servers. @@ -627,7 +627,7 @@ internal partial interface IVMwareDetailsInternal : /// The number of replication pairs configured in this CS. string ReplicationPairCount { get; set; } /// The list of run as accounts created on the server. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccount[] RunAsAccount { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount[] RunAsAccount { get; set; } /// The space usage status. string SpaceUsageStatus { get; set; } /// CS SSL cert expiry date. @@ -635,7 +635,7 @@ internal partial interface IVMwareDetailsInternal : /// CS SSL cert expiry date. int? SslCertExpiryRemainingDay { get; set; } /// The switch provider blocking error information. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails[] SwitchProviderBlockingErrorDetail { get; set; } /// The percentage of the system load. string SystemLoad { get; set; } /// The system load status. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareDetails.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/VMwareDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareDetails.json.cs index 9bf6787ef566..fa01fc3340f5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareDetails(json) : null; } @@ -166,11 +166,11 @@ internal VMwareDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.J { return; } - __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails(json); - {_agentVersionDetail = If( json?.PropertyT("agentVersionDetails"), out var __jsonAgentVersionDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VersionDetails.FromJson(__jsonAgentVersionDetails) : AgentVersionDetail;} - {_processServer = If( json?.PropertyT("processServers"), out var __jsonProcessServers) ? If( __jsonProcessServers as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProcessServer) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServer.FromJson(__u) )) ))() : null : ProcessServer;} - {_masterTargetServer = If( json?.PropertyT("masterTargetServers"), out var __jsonMasterTargetServers) ? If( __jsonMasterTargetServers as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMasterTargetServer) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MasterTargetServer.FromJson(__p) )) ))() : null : MasterTargetServer;} - {_runAsAccount = If( json?.PropertyT("runAsAccounts"), out var __jsonRunAsAccounts) ? If( __jsonRunAsAccounts as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRunAsAccount) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.RunAsAccount.FromJson(__k) )) ))() : null : RunAsAccount;} + __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails(json); + {_agentVersionDetail = If( json?.PropertyT("agentVersionDetails"), out var __jsonAgentVersionDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VersionDetails.FromJson(__jsonAgentVersionDetails) : AgentVersionDetail;} + {_processServer = If( json?.PropertyT("processServers"), out var __jsonProcessServers) ? If( __jsonProcessServers as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IProcessServer) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServer.FromJson(__u) )) ))() : null : ProcessServer;} + {_masterTargetServer = If( json?.PropertyT("masterTargetServers"), out var __jsonMasterTargetServers) ? If( __jsonMasterTargetServers as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMasterTargetServer) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MasterTargetServer.FromJson(__p) )) ))() : null : MasterTargetServer;} + {_runAsAccount = If( json?.PropertyT("runAsAccounts"), out var __jsonRunAsAccounts) ? If( __jsonRunAsAccounts as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRunAsAccount) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.RunAsAccount.FromJson(__k) )) ))() : null : RunAsAccount;} {_replicationPairCount = If( json?.PropertyT("replicationPairCount"), out var __jsonReplicationPairCount) ? (string)__jsonReplicationPairCount : (string)ReplicationPairCount;} {_processServerCount = If( json?.PropertyT("processServerCount"), out var __jsonProcessServerCount) ? (string)__jsonProcessServerCount : (string)ProcessServerCount;} {_agentCount = If( json?.PropertyT("agentCount"), out var __jsonAgentCount) ? (string)__jsonAgentCount : (string)AgentCount;} @@ -199,7 +199,7 @@ internal VMwareDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.J {_sslCertExpiryRemainingDay = If( json?.PropertyT("sslCertExpiryRemainingDays"), out var __jsonSslCertExpiryRemainingDays) ? (int?)__jsonSslCertExpiryRemainingDays : SslCertExpiryRemainingDay;} {_psTemplateVersion = If( json?.PropertyT("psTemplateVersion"), out var __jsonPsTemplateVersion) ? (string)__jsonPsTemplateVersion : (string)PsTemplateVersion;} {_agentExpiryDate = If( json?.PropertyT("agentExpiryDate"), out var __jsonAgentExpiryDate) ? global::System.DateTime.TryParse((string)__jsonAgentExpiryDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonAgentExpiryDateValue) ? __jsonAgentExpiryDateValue : AgentExpiryDate : AgentExpiryDate;} - {_switchProviderBlockingErrorDetail = If( json?.PropertyT("switchProviderBlockingErrorDetails"), out var __jsonSwitchProviderBlockingErrorDetails) ? If( __jsonSwitchProviderBlockingErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageFabricSwitchProviderBlockingErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageFabricSwitchProviderBlockingErrorDetails.FromJson(__f) )) ))() : null : SwitchProviderBlockingErrorDetail;} + {_switchProviderBlockingErrorDetail = If( json?.PropertyT("switchProviderBlockingErrorDetails"), out var __jsonSwitchProviderBlockingErrorDetails) ? If( __jsonSwitchProviderBlockingErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageFabricSwitchProviderBlockingErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageFabricSwitchProviderBlockingErrorDetails.FromJson(__f) )) ))() : null : SwitchProviderBlockingErrorDetail;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricCreationInput.PowerShell.cs new file mode 100644 index 000000000000..aeb7900fdc24 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricCreationInput.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMwareV2 fabric provider specific settings. + [System.ComponentModel.TypeConverter(typeof(VMwareV2FabricCreationInputTypeConverter))] + public partial class VMwareV2FabricCreationInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareV2FabricCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareV2FabricCreationInput(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.Migrate.Models.Api202301.IVMwareV2FabricCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareV2FabricCreationInput(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.Migrate.Models.Api202301.IVMwareV2FabricCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareV2FabricCreationInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VmwareSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInputInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInputInternal)this).VmwareSiteId, global::System.Convert.ToString); + } + if (content.Contains("PhysicalSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInputInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInputInternal)this).PhysicalSiteId, global::System.Convert.ToString); + } + if (content.Contains("MigrationSolutionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInputInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInputInternal)this).MigrationSolutionId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType, 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 VMwareV2FabricCreationInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VmwareSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInputInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInputInternal)this).VmwareSiteId, global::System.Convert.ToString); + } + if (content.Contains("PhysicalSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInputInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInputInternal)this).PhysicalSiteId, global::System.Convert.ToString); + } + if (content.Contains("MigrationSolutionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInputInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInputInternal)this).MigrationSolutionId, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMwareV2 fabric provider specific settings. + [System.ComponentModel.TypeConverter(typeof(VMwareV2FabricCreationInputTypeConverter))] + public partial interface IVMwareV2FabricCreationInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricCreationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareV2FabricCreationInput.TypeConverter.cs index 96118ff9169e..db31dd223971 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareV2FabricCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricCreationInput.cs similarity index 88% rename from src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricCreationInput.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareV2FabricCreationInput.cs index 59632d11d2bf..a2d93b1dc643 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricCreationInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMwareV2 fabric provider specific settings. public partial class VMwareV2FabricCreationInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput __fabricSpecificCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput __fabricSpecificCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInput(); /// Gets the class type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)__fabricSpecificCreationInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal)__fabricSpecificCreationInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)__fabricSpecificCreationInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal)__fabricSpecificCreationInput).InstanceType = value ; } /// Backing field for property. private string _migrationSolutionId; @@ -65,7 +65,7 @@ public VMwareV2FabricCreationInput() /// VMwareV2 fabric provider specific settings. public partial interface IVMwareV2FabricCreationInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInput { /// The ARM Id of the migration solution. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -95,7 +95,7 @@ public partial interface IVMwareV2FabricCreationInput : } /// VMwareV2 fabric provider specific settings. internal partial interface IVMwareV2FabricCreationInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreationInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreationInputInternal { /// The ARM Id of the migration solution. string MigrationSolutionId { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricCreationInput.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareV2FabricCreationInput.json.cs index e5ebe1ab9711..1bb1099cd968 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareV2FabricCreationInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareV2FabricCreationInput(json) : null; } @@ -104,7 +104,7 @@ internal VMwareV2FabricCreationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - __fabricSpecificCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreationInput(json); + __fabricSpecificCreationInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreationInput(json); {_vmwareSiteId = If( json?.PropertyT("vmwareSiteId"), out var __jsonVmwareSiteId) ? (string)__jsonVmwareSiteId : (string)VmwareSiteId;} {_physicalSiteId = If( json?.PropertyT("physicalSiteId"), out var __jsonPhysicalSiteId) ? (string)__jsonPhysicalSiteId : (string)PhysicalSiteId;} {_migrationSolutionId = If( json?.PropertyT("migrationSolutionId"), out var __jsonMigrationSolutionId) ? (string)__jsonMigrationSolutionId : (string)MigrationSolutionId;} diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricSpecificDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricSpecificDetails.PowerShell.cs new file mode 100644 index 000000000000..be7e5e508c5a --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricSpecificDetails.PowerShell.cs @@ -0,0 +1,202 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMwareV2 fabric specific details. + [System.ComponentModel.TypeConverter(typeof(VMwareV2FabricSpecificDetailsTypeConverter))] + public partial class VMwareV2FabricSpecificDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareV2FabricSpecificDetails(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.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareV2FabricSpecificDetails(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.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareV2FabricSpecificDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VmwareSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).VmwareSiteId, global::System.Convert.ToString); + } + if (content.Contains("PhysicalSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).PhysicalSiteId, global::System.Convert.ToString); + } + if (content.Contains("MigrationSolutionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).MigrationSolutionId, global::System.Convert.ToString); + } + if (content.Contains("ServiceEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ServiceEndpoint = (string) content.GetValueForProperty("ServiceEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ServiceEndpoint, global::System.Convert.ToString); + } + if (content.Contains("ServiceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ServiceResourceId = (string) content.GetValueForProperty("ServiceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ServiceResourceId, global::System.Convert.ToString); + } + if (content.Contains("ServiceContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ServiceContainerId = (string) content.GetValueForProperty("ServiceContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ServiceContainerId, global::System.Convert.ToString); + } + if (content.Contains("ProcessServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails[]) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ProcessServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType, 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 VMwareV2FabricSpecificDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VmwareSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).VmwareSiteId = (string) content.GetValueForProperty("VmwareSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).VmwareSiteId, global::System.Convert.ToString); + } + if (content.Contains("PhysicalSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).PhysicalSiteId = (string) content.GetValueForProperty("PhysicalSiteId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).PhysicalSiteId, global::System.Convert.ToString); + } + if (content.Contains("MigrationSolutionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).MigrationSolutionId, global::System.Convert.ToString); + } + if (content.Contains("ServiceEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ServiceEndpoint = (string) content.GetValueForProperty("ServiceEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ServiceEndpoint, global::System.Convert.ToString); + } + if (content.Contains("ServiceResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ServiceResourceId = (string) content.GetValueForProperty("ServiceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ServiceResourceId, global::System.Convert.ToString); + } + if (content.Contains("ServiceContainerId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ServiceContainerId = (string) content.GetValueForProperty("ServiceContainerId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ServiceContainerId, global::System.Convert.ToString); + } + if (content.Contains("ProcessServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ProcessServer = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails[]) content.GetValueForProperty("ProcessServer",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal)this).ProcessServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMwareV2 fabric specific details. + [System.ComponentModel.TypeConverter(typeof(VMwareV2FabricSpecificDetailsTypeConverter))] + public partial interface IVMwareV2FabricSpecificDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricSpecificDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricSpecificDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricSpecificDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareV2FabricSpecificDetails.TypeConverter.cs index 9b1ffe600ece..26c0194d8c76 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricSpecificDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricSpecificDetails.cs b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricSpecificDetails.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricSpecificDetails.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareV2FabricSpecificDetails.cs index 881d9208be24..1aab06bd44e5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricSpecificDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricSpecificDetails.cs @@ -3,46 +3,46 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMwareV2 fabric specific details. public partial class VMwareV2FabricSpecificDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails(); /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType = value ; } /// Internal Acessors for MigrationSolutionId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal.MigrationSolutionId { get => this._migrationSolutionId; set { {_migrationSolutionId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal.MigrationSolutionId { get => this._migrationSolutionId; set { {_migrationSolutionId = value;} } } /// Internal Acessors for PhysicalSiteId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal.PhysicalSiteId { get => this._physicalSiteId; set { {_physicalSiteId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal.PhysicalSiteId { get => this._physicalSiteId; set { {_physicalSiteId = value;} } } /// Internal Acessors for ProcessServer - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal.ProcessServer { get => this._processServer; set { {_processServer = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails[] Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal.ProcessServer { get => this._processServer; set { {_processServer = value;} } } /// Internal Acessors for ServiceContainerId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal.ServiceContainerId { get => this._serviceContainerId; set { {_serviceContainerId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal.ServiceContainerId { get => this._serviceContainerId; set { {_serviceContainerId = value;} } } /// Internal Acessors for ServiceEndpoint - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal.ServiceEndpoint { get => this._serviceEndpoint; set { {_serviceEndpoint = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal.ServiceEndpoint { get => this._serviceEndpoint; set { {_serviceEndpoint = value;} } } /// Internal Acessors for ServiceResourceId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal.ServiceResourceId { get => this._serviceResourceId; set { {_serviceResourceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal.ServiceResourceId { get => this._serviceResourceId; set { {_serviceResourceId = value;} } } /// Internal Acessors for VmwareSiteId - string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetailsInternal.VmwareSiteId { get => this._vmwareSiteId; set { {_vmwareSiteId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetailsInternal.VmwareSiteId { get => this._vmwareSiteId; set { {_vmwareSiteId = value;} } } /// Backing field for property. private string _migrationSolutionId; @@ -59,11 +59,11 @@ public partial class VMwareV2FabricSpecificDetails : public string PhysicalSiteId { get => this._physicalSiteId; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails[] _processServer; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails[] _processServer; /// The list of process servers. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails[] ProcessServer { get => this._processServer; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails[] ProcessServer { get => this._processServer; } /// Backing field for property. private string _serviceContainerId; @@ -114,7 +114,7 @@ public VMwareV2FabricSpecificDetails() /// VMwareV2 fabric specific details. public partial interface IVMwareV2FabricSpecificDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails { /// The Migration solution ARM Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -138,8 +138,8 @@ public partial interface IVMwareV2FabricSpecificDetails : ReadOnly = true, Description = @"The list of process servers.", SerializedName = @"processServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails[] ProcessServer { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails[] ProcessServer { get; } /// The service container Id. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -176,14 +176,14 @@ public partial interface IVMwareV2FabricSpecificDetails : } /// VMwareV2 fabric specific details. internal partial interface IVMwareV2FabricSpecificDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal { /// The Migration solution ARM Id. string MigrationSolutionId { get; set; } /// The ARM Id of the physical site. string PhysicalSiteId { get; set; } /// The list of process servers. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProcessServerDetails[] ProcessServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProcessServerDetails[] ProcessServer { get; set; } /// The service container Id. string ServiceContainerId { get; set; } /// The service endpoint. diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricSpecificDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricSpecificDetails.json.cs similarity index 93% rename from src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricSpecificDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareV2FabricSpecificDetails.json.cs index e66820fb6d4b..77cc131bcc59 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareV2FabricSpecificDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareV2FabricSpecificDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareV2FabricSpecificDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareV2FabricSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareV2FabricSpecificDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareV2FabricSpecificDetails(json) : null; } @@ -137,14 +137,14 @@ internal VMwareV2FabricSpecificDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrat { return; } - __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails(json); + __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails(json); {_vmwareSiteId = If( json?.PropertyT("vmwareSiteId"), out var __jsonVmwareSiteId) ? (string)__jsonVmwareSiteId : (string)VmwareSiteId;} {_physicalSiteId = If( json?.PropertyT("physicalSiteId"), out var __jsonPhysicalSiteId) ? (string)__jsonPhysicalSiteId : (string)PhysicalSiteId;} {_migrationSolutionId = If( json?.PropertyT("migrationSolutionId"), out var __jsonMigrationSolutionId) ? (string)__jsonMigrationSolutionId : (string)MigrationSolutionId;} {_serviceEndpoint = If( json?.PropertyT("serviceEndpoint"), out var __jsonServiceEndpoint) ? (string)__jsonServiceEndpoint : (string)ServiceEndpoint;} {_serviceResourceId = If( json?.PropertyT("serviceResourceId"), out var __jsonServiceResourceId) ? (string)__jsonServiceResourceId : (string)ServiceResourceId;} {_serviceContainerId = If( json?.PropertyT("serviceContainerId"), out var __jsonServiceContainerId) ? (string)__jsonServiceContainerId : (string)ServiceContainerId;} - {_processServer = If( json?.PropertyT("processServers"), out var __jsonProcessServers) ? If( __jsonProcessServers as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IProcessServerDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ProcessServerDetails.FromJson(__u) )) ))() : null : ProcessServer;} + {_processServer = If( json?.PropertyT("processServers"), out var __jsonProcessServers) ? If( __jsonProcessServers as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IProcessServerDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ProcessServerDetails.FromJson(__u) )) ))() : null : ProcessServer;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/VMwareVirtualMachineDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VMwareVirtualMachineDetails.PowerShell.cs new file mode 100644 index 000000000000..11bff882bc04 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VMwareVirtualMachineDetails.PowerShell.cs @@ -0,0 +1,224 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMware provider specific settings. + [System.ComponentModel.TypeConverter(typeof(VMwareVirtualMachineDetailsTypeConverter))] + public partial class VMwareVirtualMachineDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVMwareVirtualMachineDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VMwareVirtualMachineDetails(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.Migrate.Models.Api202301.IVMwareVirtualMachineDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VMwareVirtualMachineDetails(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.Migrate.Models.Api202301.IVMwareVirtualMachineDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VMwareVirtualMachineDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentGeneratedId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).AgentGeneratedId = (string) content.GetValueForProperty("AgentGeneratedId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).AgentGeneratedId, global::System.Convert.ToString); + } + if (content.Contains("AgentInstalled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).AgentInstalled = (string) content.GetValueForProperty("AgentInstalled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).AgentInstalled, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("AgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).AgentVersion, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("PoweredOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).PoweredOn = (string) content.GetValueForProperty("PoweredOn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).PoweredOn, global::System.Convert.ToString); + } + if (content.Contains("VCenterInfrastructureId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).VCenterInfrastructureId = (string) content.GetValueForProperty("VCenterInfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).VCenterInfrastructureId, global::System.Convert.ToString); + } + if (content.Contains("DiscoveryType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); + } + if (content.Contains("DiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).DiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetails[]) content.GetValueForProperty("DiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).DiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("ValidationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType, 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 VMwareVirtualMachineDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("AgentGeneratedId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).AgentGeneratedId = (string) content.GetValueForProperty("AgentGeneratedId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).AgentGeneratedId, global::System.Convert.ToString); + } + if (content.Contains("AgentInstalled")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).AgentInstalled = (string) content.GetValueForProperty("AgentInstalled",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).AgentInstalled, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).OSType = (string) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).OSType, global::System.Convert.ToString); + } + if (content.Contains("AgentVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).AgentVersion = (string) content.GetValueForProperty("AgentVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).AgentVersion, global::System.Convert.ToString); + } + if (content.Contains("IPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).IPAddress, global::System.Convert.ToString); + } + if (content.Contains("PoweredOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).PoweredOn = (string) content.GetValueForProperty("PoweredOn",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).PoweredOn, global::System.Convert.ToString); + } + if (content.Contains("VCenterInfrastructureId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).VCenterInfrastructureId = (string) content.GetValueForProperty("VCenterInfrastructureId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).VCenterInfrastructureId, global::System.Convert.ToString); + } + if (content.Contains("DiscoveryType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).DiscoveryType = (string) content.GetValueForProperty("DiscoveryType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).DiscoveryType, global::System.Convert.ToString); + } + if (content.Contains("DiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).DiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetails[]) content.GetValueForProperty("DiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).DiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("ValidationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).ValidationError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal)this).ValidationError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMware provider specific settings. + [System.ComponentModel.TypeConverter(typeof(VMwareVirtualMachineDetailsTypeConverter))] + public partial interface IVMwareVirtualMachineDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareVirtualMachineDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VMwareVirtualMachineDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VMwareVirtualMachineDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareVirtualMachineDetails.TypeConverter.cs index 3aae5bec068b..4cac2b00d13a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareVirtualMachineDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareVirtualMachineDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVMwareVirtualMachineDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareVirtualMachineDetails.cs b/src/Migrate/generated/api/Models/Api202301/VMwareVirtualMachineDetails.cs similarity index 90% rename from src/Migrate/generated/api/Models/Api20220501/VMwareVirtualMachineDetails.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareVirtualMachineDetails.cs index 0d6760470815..b7eae5671f2d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareVirtualMachineDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareVirtualMachineDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMware provider specific settings. public partial class VMwareVirtualMachineDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings __configurationSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings __configurationSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettings(); /// Backing field for property. private string _agentGeneratedId; @@ -52,11 +52,11 @@ public partial class VMwareVirtualMachineDetails : public string DiscoveryType { get => this._discoveryType; set => this._discoveryType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetails[] _diskDetail; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetails[] _diskDetail; /// The disk details. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetails[] DiskDetail { get => this._diskDetail; set => this._diskDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetails[] DiskDetail { get => this._diskDetail; set => this._diskDetail = value; } /// Backing field for property. private string _iPAddress; @@ -67,7 +67,7 @@ public partial class VMwareVirtualMachineDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)__configurationSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal)__configurationSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)__configurationSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)__configurationSettings).InstanceType = value ; } /// Backing field for property. private string _oSType; @@ -91,11 +91,11 @@ public partial class VMwareVirtualMachineDetails : public string VCenterInfrastructureId { get => this._vCenterInfrastructureId; set => this._vCenterInfrastructureId = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] _validationError; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _validationError; /// The validation errors. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ValidationError { get => this._validationError; set => this._validationError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ValidationError { get => this._validationError; set => this._validationError = value; } /// Creates an new instance. public VMwareVirtualMachineDetails() @@ -118,7 +118,7 @@ public VMwareVirtualMachineDetails() /// VMware provider specific settings. public partial interface IVMwareVirtualMachineDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettings { /// /// The ID generated by the InMage agent after it gets installed on guest. This is the ID to be used during InMage CreateProtection. @@ -162,8 +162,8 @@ public partial interface IVMwareVirtualMachineDetails : ReadOnly = false, Description = @"The disk details.", SerializedName = @"diskDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetails[] DiskDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetails[] DiskDetail { get; set; } /// The IP address. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -202,13 +202,13 @@ public partial interface IVMwareVirtualMachineDetails : ReadOnly = false, Description = @"The validation errors.", SerializedName = @"validationErrors", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ValidationError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ValidationError { get; set; } } /// VMware provider specific settings. internal partial interface IVMwareVirtualMachineDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IConfigurationSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal { /// /// The ID generated by the InMage agent after it gets installed on guest. This is the ID to be used during InMage CreateProtection. @@ -223,7 +223,7 @@ internal partial interface IVMwareVirtualMachineDetailsInternal : /// string DiscoveryType { get; set; } /// The disk details. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IInMageDiskDetails[] DiskDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IInMageDiskDetails[] DiskDetail { get; set; } /// The IP address. string IPAddress { get; set; } /// The OsType installed on VM. @@ -233,7 +233,7 @@ internal partial interface IVMwareVirtualMachineDetailsInternal : /// The VCenter infrastructure Id. string VCenterInfrastructureId { get; set; } /// The validation errors. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError[] ValidationError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] ValidationError { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VMwareVirtualMachineDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VMwareVirtualMachineDetails.json.cs similarity index 91% rename from src/Migrate/generated/api/Models/Api20220501/VMwareVirtualMachineDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VMwareVirtualMachineDetails.json.cs index 642f4725facc..2227d07f5333 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VMwareVirtualMachineDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VMwareVirtualMachineDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VMwareVirtualMachineDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareVirtualMachineDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareVirtualMachineDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VMwareVirtualMachineDetails(json) : null; } @@ -127,7 +127,7 @@ internal VMwareVirtualMachineDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate. { return; } - __configurationSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ConfigurationSettings(json); + __configurationSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ConfigurationSettings(json); {_agentGeneratedId = If( json?.PropertyT("agentGeneratedId"), out var __jsonAgentGeneratedId) ? (string)__jsonAgentGeneratedId : (string)AgentGeneratedId;} {_agentInstalled = If( json?.PropertyT("agentInstalled"), out var __jsonAgentInstalled) ? (string)__jsonAgentInstalled : (string)AgentInstalled;} {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType;} @@ -136,8 +136,8 @@ internal VMwareVirtualMachineDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate. {_poweredOn = If( json?.PropertyT("poweredOn"), out var __jsonPoweredOn) ? (string)__jsonPoweredOn : (string)PoweredOn;} {_vCenterInfrastructureId = If( json?.PropertyT("vCenterInfrastructureId"), out var __jsonVCenterInfrastructureId) ? (string)__jsonVCenterInfrastructureId : (string)VCenterInfrastructureId;} {_discoveryType = If( json?.PropertyT("discoveryType"), out var __jsonDiscoveryType) ? (string)__jsonDiscoveryType : (string)DiscoveryType;} - {_diskDetail = If( json?.PropertyT("diskDetails"), out var __jsonDiskDetails) ? If( __jsonDiskDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IInMageDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.InMageDiskDetails.FromJson(__u) )) ))() : null : DiskDetail;} - {_validationError = If( json?.PropertyT("validationErrors"), out var __jsonValidationErrors) ? If( __jsonValidationErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__p) )) ))() : null : ValidationError;} + {_diskDetail = If( json?.PropertyT("diskDetails"), out var __jsonDiskDetails) ? If( __jsonDiskDetails as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IInMageDiskDetails) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.InMageDiskDetails.FromJson(__u) )) ))() : null : DiskDetail;} + {_validationError = If( json?.PropertyT("validationErrors"), out var __jsonValidationErrors) ? If( __jsonValidationErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__p) )) ))() : null : ValidationError;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/VaultHealthDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VaultHealthDetails.PowerShell.cs new file mode 100644 index 000000000000..d7cddae2d95d --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VaultHealthDetails.PowerShell.cs @@ -0,0 +1,280 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Vault health details definition. + [System.ComponentModel.TypeConverter(typeof(VaultHealthDetailsTypeConverter))] + public partial class VaultHealthDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVaultHealthDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VaultHealthDetails(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.Migrate.Models.Api202301.IVaultHealthDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VaultHealthDetails(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.Migrate.Models.Api202301.IVaultHealthDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VaultHealthDetails(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.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultHealthPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemsHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary) content.GetValueForProperty("ProtectedItemsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryTypeConverter.ConvertFrom); + } + if (content.Contains("FabricsHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary) content.GetValueForProperty("FabricsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryTypeConverter.ConvertFrom); + } + if (content.Contains("ContainersHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainersHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary) content.GetValueForProperty("ContainersHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainersHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryTypeConverter.ConvertFrom); + } + if (content.Contains("VaultError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).VaultError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("VaultError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).VaultError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ProtectedItemHealthResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemHealthResourceCount = (int?) content.GetValueForProperty("ProtectedItemHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ProtectedItemHealthIssue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[]) content.GetValueForProperty("ProtectedItemHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummaryTypeConverter.ConvertFrom)); + } + if (content.Contains("ProtectedItemHealthCategorizedResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ProtectedItemHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); + } + if (content.Contains("FabricHealthResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricHealthResourceCount = (int?) content.GetValueForProperty("FabricHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("FabricHealthIssue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[]) content.GetValueForProperty("FabricHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummaryTypeConverter.ConvertFrom)); + } + if (content.Contains("FabricHealthCategorizedResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("FabricHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); + } + if (content.Contains("ContainerHealthResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainerHealthResourceCount = (int?) content.GetValueForProperty("ContainerHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainerHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ContainerHealthIssue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainerHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[]) content.GetValueForProperty("ContainerHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainerHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummaryTypeConverter.ConvertFrom)); + } + if (content.Contains("ContainerHealthCategorizedResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainerHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ContainerHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainerHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal VaultHealthDetails(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.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultHealthPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProtectedItemsHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary) content.GetValueForProperty("ProtectedItemsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryTypeConverter.ConvertFrom); + } + if (content.Contains("FabricsHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary) content.GetValueForProperty("FabricsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryTypeConverter.ConvertFrom); + } + if (content.Contains("ContainersHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainersHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary) content.GetValueForProperty("ContainersHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainersHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryTypeConverter.ConvertFrom); + } + if (content.Contains("VaultError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).VaultError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("VaultError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).VaultError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ProtectedItemHealthResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemHealthResourceCount = (int?) content.GetValueForProperty("ProtectedItemHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ProtectedItemHealthIssue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[]) content.GetValueForProperty("ProtectedItemHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummaryTypeConverter.ConvertFrom)); + } + if (content.Contains("ProtectedItemHealthCategorizedResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ProtectedItemHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ProtectedItemHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); + } + if (content.Contains("FabricHealthResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricHealthResourceCount = (int?) content.GetValueForProperty("FabricHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("FabricHealthIssue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[]) content.GetValueForProperty("FabricHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummaryTypeConverter.ConvertFrom)); + } + if (content.Contains("FabricHealthCategorizedResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("FabricHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).FabricHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); + } + if (content.Contains("ContainerHealthResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainerHealthResourceCount = (int?) content.GetValueForProperty("ContainerHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainerHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ContainerHealthIssue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainerHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[]) content.GetValueForProperty("ContainerHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainerHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummaryTypeConverter.ConvertFrom)); + } + if (content.Contains("ContainerHealthCategorizedResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainerHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ContainerHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal)this).ContainerHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + } + /// Vault health details definition. + [System.ComponentModel.TypeConverter(typeof(VaultHealthDetailsTypeConverter))] + public partial interface IVaultHealthDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultHealthDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VaultHealthDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/VaultHealthDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VaultHealthDetails.TypeConverter.cs index e35517be8dcd..8c162738f516 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultHealthDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultHealthDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVaultHealthDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/VaultHealthDetails.cs b/src/Migrate/generated/api/Models/Api202301/VaultHealthDetails.cs new file mode 100644 index 000000000000..08b2e5059184 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VaultHealthDetails.cs @@ -0,0 +1,244 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Vault health details definition. + public partial class VaultHealthDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// The categorized resource counts. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts ContainerHealthCategorizedResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ContainerHealthCategorizedResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ContainerHealthCategorizedResourceCount = value ?? null /* model class */; } + + /// The list of summary of health errors across the resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] ContainerHealthIssue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ContainerHealthIssue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ContainerHealthIssue = value ?? null /* arrayOf */; } + + /// The count of total resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public int? ContainerHealthResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ContainerHealthResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ContainerHealthResourceCount = value ?? default(int); } + + /// The categorized resource counts. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts FabricHealthCategorizedResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).FabricHealthCategorizedResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).FabricHealthCategorizedResourceCount = value ?? null /* model class */; } + + /// The list of summary of health errors across the resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] FabricHealthIssue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).FabricHealthIssue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).FabricHealthIssue = value ?? null /* arrayOf */; } + + /// The count of total resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public int? FabricHealthResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).FabricHealthResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).FabricHealthResourceCount = value ?? default(int); } + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Internal Acessors for ContainersHealth + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal.ContainersHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ContainersHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ContainersHealth = value; } + + /// Internal Acessors for FabricsHealth + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal.FabricsHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).FabricsHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).FabricsHealth = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultHealthProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProtectedItemsHealth + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetailsInternal.ProtectedItemsHealth { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ProtectedItemsHealth; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ProtectedItemsHealth = value; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthProperties _property; + + /// The vault health related data. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultHealthProperties()); set => this._property = value; } + + /// The categorized resource counts. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts ProtectedItemHealthCategorizedResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ProtectedItemHealthCategorizedResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ProtectedItemHealthCategorizedResourceCount = value ?? null /* model class */; } + + /// The list of summary of health errors across the resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] ProtectedItemHealthIssue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ProtectedItemHealthIssue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ProtectedItemHealthIssue = value ?? null /* arrayOf */; } + + /// The count of total resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public int? ProtectedItemHealthResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ProtectedItemHealthResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).ProtectedItemHealthResourceCount = value ?? default(int); } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// The list of errors on the vault. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] VaultError { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).VaultError; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)Property).VaultError = value ?? null /* arrayOf */; } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + + /// Creates an new instance. + public VaultHealthDetails() + { + + } + } + /// Vault health details definition. + public partial interface IVaultHealthDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// The categorized resource counts. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The categorized resource counts.", + SerializedName = @"categorizedResourceCounts", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts ContainerHealthCategorizedResourceCount { get; set; } + /// The list of summary of health errors across the resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of summary of health errors across the resources under the container.", + SerializedName = @"issues", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] ContainerHealthIssue { get; set; } + /// The count of total resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The count of total resources under the container.", + SerializedName = @"resourceCount", + PossibleTypes = new [] { typeof(int) })] + int? ContainerHealthResourceCount { get; set; } + /// The categorized resource counts. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The categorized resource counts.", + SerializedName = @"categorizedResourceCounts", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts FabricHealthCategorizedResourceCount { get; set; } + /// The list of summary of health errors across the resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of summary of health errors across the resources under the container.", + SerializedName = @"issues", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] FabricHealthIssue { get; set; } + /// The count of total resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The count of total resources under the container.", + SerializedName = @"resourceCount", + PossibleTypes = new [] { typeof(int) })] + int? FabricHealthResourceCount { get; set; } + /// The categorized resource counts. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The categorized resource counts.", + SerializedName = @"categorizedResourceCounts", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts ProtectedItemHealthCategorizedResourceCount { get; set; } + /// The list of summary of health errors across the resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of summary of health errors across the resources under the container.", + SerializedName = @"issues", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] ProtectedItemHealthIssue { get; set; } + /// The count of total resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The count of total resources under the container.", + SerializedName = @"resourceCount", + PossibleTypes = new [] { typeof(int) })] + int? ProtectedItemHealthResourceCount { get; set; } + /// The list of errors on the vault. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of errors on the vault.", + SerializedName = @"vaultErrors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] VaultError { get; set; } + + } + /// Vault health details definition. + internal partial interface IVaultHealthDetailsInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The categorized resource counts. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts ContainerHealthCategorizedResourceCount { get; set; } + /// The list of summary of health errors across the resources under the container. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] ContainerHealthIssue { get; set; } + /// The count of total resources under the container. + int? ContainerHealthResourceCount { get; set; } + /// The list of the health detail of the containers in the vault. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary ContainersHealth { get; set; } + /// The categorized resource counts. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts FabricHealthCategorizedResourceCount { get; set; } + /// The list of summary of health errors across the resources under the container. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] FabricHealthIssue { get; set; } + /// The count of total resources under the container. + int? FabricHealthResourceCount { get; set; } + /// The list of the health detail of the fabrics in the vault. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary FabricsHealth { get; set; } + /// The vault health related data. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthProperties Property { get; set; } + /// The categorized resource counts. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts ProtectedItemHealthCategorizedResourceCount { get; set; } + /// The list of summary of health errors across the resources under the container. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] ProtectedItemHealthIssue { get; set; } + /// The count of total resources under the container. + int? ProtectedItemHealthResourceCount { get; set; } + /// The list of the health detail of the protected items in the vault. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary ProtectedItemsHealth { get; set; } + /// The list of errors on the vault. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] VaultError { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultHealthDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VaultHealthDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/VaultHealthDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VaultHealthDetails.json.cs index 5aac94b21280..4c9b28d86110 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultHealthDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultHealthDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VaultHealthDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VaultHealthDetails(json) : null; } @@ -102,8 +102,8 @@ internal VaultHealthDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.J { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultHealthProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultHealthProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/VaultHealthProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VaultHealthProperties.PowerShell.cs new file mode 100644 index 000000000000..e85fcff7b94f --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VaultHealthProperties.PowerShell.cs @@ -0,0 +1,240 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// class to define the health summary of the Vault. + [System.ComponentModel.TypeConverter(typeof(VaultHealthPropertiesTypeConverter))] + public partial class VaultHealthProperties + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVaultHealthProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VaultHealthProperties(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.Migrate.Models.Api202301.IVaultHealthProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VaultHealthProperties(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.Migrate.Models.Api202301.IVaultHealthProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VaultHealthProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProtectedItemsHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary) content.GetValueForProperty("ProtectedItemsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryTypeConverter.ConvertFrom); + } + if (content.Contains("FabricsHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary) content.GetValueForProperty("FabricsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryTypeConverter.ConvertFrom); + } + if (content.Contains("ContainersHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainersHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary) content.GetValueForProperty("ContainersHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainersHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryTypeConverter.ConvertFrom); + } + if (content.Contains("VaultError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).VaultError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("VaultError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).VaultError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ProtectedItemHealthResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemHealthResourceCount = (int?) content.GetValueForProperty("ProtectedItemHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ProtectedItemHealthIssue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[]) content.GetValueForProperty("ProtectedItemHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummaryTypeConverter.ConvertFrom)); + } + if (content.Contains("ProtectedItemHealthCategorizedResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ProtectedItemHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); + } + if (content.Contains("FabricHealthResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricHealthResourceCount = (int?) content.GetValueForProperty("FabricHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("FabricHealthIssue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[]) content.GetValueForProperty("FabricHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummaryTypeConverter.ConvertFrom)); + } + if (content.Contains("FabricHealthCategorizedResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("FabricHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); + } + if (content.Contains("ContainerHealthResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainerHealthResourceCount = (int?) content.GetValueForProperty("ContainerHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainerHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ContainerHealthIssue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainerHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[]) content.GetValueForProperty("ContainerHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainerHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummaryTypeConverter.ConvertFrom)); + } + if (content.Contains("ContainerHealthCategorizedResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainerHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ContainerHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainerHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal VaultHealthProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProtectedItemsHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary) content.GetValueForProperty("ProtectedItemsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryTypeConverter.ConvertFrom); + } + if (content.Contains("FabricsHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricsHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary) content.GetValueForProperty("FabricsHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricsHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryTypeConverter.ConvertFrom); + } + if (content.Contains("ContainersHealth")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainersHealth = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary) content.GetValueForProperty("ContainersHealth",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainersHealth, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryTypeConverter.ConvertFrom); + } + if (content.Contains("VaultError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).VaultError = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[]) content.GetValueForProperty("VaultError",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).VaultError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("ProtectedItemHealthResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemHealthResourceCount = (int?) content.GetValueForProperty("ProtectedItemHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ProtectedItemHealthIssue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[]) content.GetValueForProperty("ProtectedItemHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummaryTypeConverter.ConvertFrom)); + } + if (content.Contains("ProtectedItemHealthCategorizedResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ProtectedItemHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ProtectedItemHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); + } + if (content.Contains("FabricHealthResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricHealthResourceCount = (int?) content.GetValueForProperty("FabricHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("FabricHealthIssue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[]) content.GetValueForProperty("FabricHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummaryTypeConverter.ConvertFrom)); + } + if (content.Contains("FabricHealthCategorizedResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("FabricHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).FabricHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); + } + if (content.Contains("ContainerHealthResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainerHealthResourceCount = (int?) content.GetValueForProperty("ContainerHealthResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainerHealthResourceCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ContainerHealthIssue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainerHealthIssue = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[]) content.GetValueForProperty("ContainerHealthIssue",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainerHealthIssue, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthErrorSummaryTypeConverter.ConvertFrom)); + } + if (content.Contains("ContainerHealthCategorizedResourceCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainerHealthCategorizedResourceCount = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) content.GetValueForProperty("ContainerHealthCategorizedResourceCount",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal)this).ContainerHealthCategorizedResourceCount, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummaryCategorizedResourceCountsTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + } + /// class to define the health summary of the Vault. + [System.ComponentModel.TypeConverter(typeof(VaultHealthPropertiesTypeConverter))] + public partial interface IVaultHealthProperties + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultHealthProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VaultHealthProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VaultHealthProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VaultHealthProperties.TypeConverter.cs index 7cc73b705b5c..448b3dcd25a4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultHealthProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultHealthProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVaultHealthProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/VaultHealthProperties.cs b/src/Migrate/generated/api/Models/Api202301/VaultHealthProperties.cs new file mode 100644 index 000000000000..f43b969d35cb --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VaultHealthProperties.cs @@ -0,0 +1,213 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// class to define the health summary of the Vault. + public partial class VaultHealthProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal + { + + /// The categorized resource counts. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts ContainerHealthCategorizedResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)ContainersHealth).CategorizedResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)ContainersHealth).CategorizedResourceCount = value ?? null /* model class */; } + + /// The list of summary of health errors across the resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] ContainerHealthIssue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)ContainersHealth).Issue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)ContainersHealth).Issue = value ?? null /* arrayOf */; } + + /// The count of total resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public int? ContainerHealthResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)ContainersHealth).ResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)ContainersHealth).ResourceCount = value ?? default(int); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary _containersHealth; + + /// The list of the health detail of the containers in the vault. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary ContainersHealth { get => (this._containersHealth = this._containersHealth ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummary()); set => this._containersHealth = value; } + + /// The categorized resource counts. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts FabricHealthCategorizedResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)FabricsHealth).CategorizedResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)FabricsHealth).CategorizedResourceCount = value ?? null /* model class */; } + + /// The list of summary of health errors across the resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] FabricHealthIssue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)FabricsHealth).Issue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)FabricsHealth).Issue = value ?? null /* arrayOf */; } + + /// The count of total resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public int? FabricHealthResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)FabricsHealth).ResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)FabricsHealth).ResourceCount = value ?? default(int); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary _fabricsHealth; + + /// The list of the health detail of the fabrics in the vault. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary FabricsHealth { get => (this._fabricsHealth = this._fabricsHealth ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummary()); set => this._fabricsHealth = value; } + + /// Internal Acessors for ContainersHealth + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal.ContainersHealth { get => (this._containersHealth = this._containersHealth ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummary()); set { {_containersHealth = value;} } } + + /// Internal Acessors for FabricsHealth + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal.FabricsHealth { get => (this._fabricsHealth = this._fabricsHealth ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummary()); set { {_fabricsHealth = value;} } } + + /// Internal Acessors for ProtectedItemsHealth + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthPropertiesInternal.ProtectedItemsHealth { get => (this._protectedItemsHealth = this._protectedItemsHealth ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummary()); set { {_protectedItemsHealth = value;} } } + + /// The categorized resource counts. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts ProtectedItemHealthCategorizedResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)ProtectedItemsHealth).CategorizedResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)ProtectedItemsHealth).CategorizedResourceCount = value ?? null /* model class */; } + + /// The list of summary of health errors across the resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] ProtectedItemHealthIssue { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)ProtectedItemsHealth).Issue; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)ProtectedItemsHealth).Issue = value ?? null /* arrayOf */; } + + /// The count of total resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public int? ProtectedItemHealthResourceCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)ProtectedItemsHealth).ResourceCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryInternal)ProtectedItemsHealth).ResourceCount = value ?? default(int); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary _protectedItemsHealth; + + /// The list of the health detail of the protected items in the vault. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary ProtectedItemsHealth { get => (this._protectedItemsHealth = this._protectedItemsHealth ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummary()); set => this._protectedItemsHealth = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] _vaultError; + + /// The list of errors on the vault. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] VaultError { get => this._vaultError; set => this._vaultError = value; } + + /// Creates an new instance. + public VaultHealthProperties() + { + + } + } + /// class to define the health summary of the Vault. + public partial interface IVaultHealthProperties : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The categorized resource counts. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The categorized resource counts.", + SerializedName = @"categorizedResourceCounts", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts ContainerHealthCategorizedResourceCount { get; set; } + /// The list of summary of health errors across the resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of summary of health errors across the resources under the container.", + SerializedName = @"issues", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] ContainerHealthIssue { get; set; } + /// The count of total resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The count of total resources under the container.", + SerializedName = @"resourceCount", + PossibleTypes = new [] { typeof(int) })] + int? ContainerHealthResourceCount { get; set; } + /// The categorized resource counts. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The categorized resource counts.", + SerializedName = @"categorizedResourceCounts", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts FabricHealthCategorizedResourceCount { get; set; } + /// The list of summary of health errors across the resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of summary of health errors across the resources under the container.", + SerializedName = @"issues", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] FabricHealthIssue { get; set; } + /// The count of total resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The count of total resources under the container.", + SerializedName = @"resourceCount", + PossibleTypes = new [] { typeof(int) })] + int? FabricHealthResourceCount { get; set; } + /// The categorized resource counts. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The categorized resource counts.", + SerializedName = @"categorizedResourceCounts", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts ProtectedItemHealthCategorizedResourceCount { get; set; } + /// The list of summary of health errors across the resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of summary of health errors across the resources under the container.", + SerializedName = @"issues", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] ProtectedItemHealthIssue { get; set; } + /// The count of total resources under the container. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The count of total resources under the container.", + SerializedName = @"resourceCount", + PossibleTypes = new [] { typeof(int) })] + int? ProtectedItemHealthResourceCount { get; set; } + /// The list of errors on the vault. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The list of errors on the vault.", + SerializedName = @"vaultErrors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] VaultError { get; set; } + + } + /// class to define the health summary of the Vault. + internal partial interface IVaultHealthPropertiesInternal + + { + /// The categorized resource counts. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts ContainerHealthCategorizedResourceCount { get; set; } + /// The list of summary of health errors across the resources under the container. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] ContainerHealthIssue { get; set; } + /// The count of total resources under the container. + int? ContainerHealthResourceCount { get; set; } + /// The list of the health detail of the containers in the vault. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary ContainersHealth { get; set; } + /// The categorized resource counts. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts FabricHealthCategorizedResourceCount { get; set; } + /// The list of summary of health errors across the resources under the container. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] FabricHealthIssue { get; set; } + /// The count of total resources under the container. + int? FabricHealthResourceCount { get; set; } + /// The list of the health detail of the fabrics in the vault. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary FabricsHealth { get; set; } + /// The categorized resource counts. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummaryCategorizedResourceCounts ProtectedItemHealthCategorizedResourceCount { get; set; } + /// The list of summary of health errors across the resources under the container. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthErrorSummary[] ProtectedItemHealthIssue { get; set; } + /// The count of total resources under the container. + int? ProtectedItemHealthResourceCount { get; set; } + /// The list of the health detail of the protected items in the vault. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceHealthSummary ProtectedItemsHealth { get; set; } + /// The list of errors on the vault. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHealthError[] VaultError { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultHealthProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/VaultHealthProperties.json.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/VaultHealthProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/VaultHealthProperties.json.cs index 4ea731d3c56a..8d287bc7f5e5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultHealthProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultHealthProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VaultHealthProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultHealthProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultHealthProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VaultHealthProperties(json) : null; } @@ -112,10 +112,10 @@ internal VaultHealthProperties(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtim { return; } - {_protectedItemsHealth = If( json?.PropertyT("protectedItemsHealth"), out var __jsonProtectedItemsHealth) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummary.FromJson(__jsonProtectedItemsHealth) : ProtectedItemsHealth;} - {_fabricsHealth = If( json?.PropertyT("fabricsHealth"), out var __jsonFabricsHealth) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummary.FromJson(__jsonFabricsHealth) : FabricsHealth;} - {_containersHealth = If( json?.PropertyT("containersHealth"), out var __jsonContainersHealth) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResourceHealthSummary.FromJson(__jsonContainersHealth) : ContainersHealth;} - {_vaultError = If( json?.PropertyT("vaultErrors"), out var __jsonVaultErrors) ? If( __jsonVaultErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HealthError.FromJson(__u) )) ))() : null : VaultError;} + {_protectedItemsHealth = If( json?.PropertyT("protectedItemsHealth"), out var __jsonProtectedItemsHealth) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummary.FromJson(__jsonProtectedItemsHealth) : ProtectedItemsHealth;} + {_fabricsHealth = If( json?.PropertyT("fabricsHealth"), out var __jsonFabricsHealth) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummary.FromJson(__jsonFabricsHealth) : FabricsHealth;} + {_containersHealth = If( json?.PropertyT("containersHealth"), out var __jsonContainersHealth) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResourceHealthSummary.FromJson(__jsonContainersHealth) : ContainersHealth;} + {_vaultError = If( json?.PropertyT("vaultErrors"), out var __jsonVaultErrors) ? If( __jsonVaultErrors as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IHealthError) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HealthError.FromJson(__u) )) ))() : null : VaultError;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/VaultSetting.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VaultSetting.PowerShell.cs new file mode 100644 index 000000000000..7bc252db304b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VaultSetting.PowerShell.cs @@ -0,0 +1,192 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Vault setting. + [System.ComponentModel.TypeConverter(typeof(VaultSettingTypeConverter))] + public partial class VaultSetting + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVaultSetting DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VaultSetting(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.Migrate.Models.Api202301.IVaultSetting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VaultSetting(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.Migrate.Models.Api202301.IVaultSetting FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VaultSetting(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.Migrate.Models.Api202301.IVaultSettingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("MigrationSolutionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingInternal)this).MigrationSolutionId, global::System.Convert.ToString); + } + if (content.Contains("VmwareToAzureProviderType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingInternal)this).VmwareToAzureProviderType, 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 VaultSetting(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.Migrate.Models.Api202301.IVaultSettingInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("MigrationSolutionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingInternal)this).MigrationSolutionId, global::System.Convert.ToString); + } + if (content.Contains("VmwareToAzureProviderType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingInternal)this).VmwareToAzureProviderType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Vault setting. + [System.ComponentModel.TypeConverter(typeof(VaultSettingTypeConverter))] + public partial interface IVaultSetting + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSetting.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VaultSetting.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/VaultSetting.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSetting.TypeConverter.cs index ba6eaeaf1a8e..d4f28d2a3480 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSetting.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSetting.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVaultSetting ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSetting ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSetting).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSetting).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/VaultSetting.cs b/src/Migrate/generated/api/Models/Api202301/VaultSetting.cs new file mode 100644 index 000000000000..7ebac49df46b --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VaultSetting.cs @@ -0,0 +1,117 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Vault setting. + public partial class VaultSetting : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSetting, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(); + + /// Resource Id + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; } + + /// Resource Location + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Location = value ?? null; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingProperties()); set { {_property = value;} } } + + /// The migration solution ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string MigrationSolutionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingPropertiesInternal)Property).MigrationSolutionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingPropertiesInternal)Property).MigrationSolutionId = value ?? null; } + + /// Resource Name + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties _property; + + /// The vault setting properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingProperties()); set => this._property = value; } + + /// Resource Type + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal)__resource).Type; } + + /// VMware to Azure provider type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string VmwareToAzureProviderType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingPropertiesInternal)Property).VmwareToAzureProviderType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingPropertiesInternal)Property).VmwareToAzureProviderType = value ?? null; } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + + /// Creates an new instance. + public VaultSetting() + { + + } + } + /// Vault setting. + public partial interface IVaultSetting : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResource + { + /// The migration solution ARM Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The migration solution ARM Id.", + SerializedName = @"migrationSolutionId", + PossibleTypes = new [] { typeof(string) })] + string MigrationSolutionId { get; set; } + /// VMware to Azure provider type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"VMware to Azure provider type.", + SerializedName = @"vmwareToAzureProviderType", + PossibleTypes = new [] { typeof(string) })] + string VmwareToAzureProviderType { get; set; } + + } + /// Vault setting. + internal partial interface IVaultSettingInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResourceInternal + { + /// The migration solution ARM Id. + string MigrationSolutionId { get; set; } + /// The vault setting properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties Property { get; set; } + /// VMware to Azure provider type. + string VmwareToAzureProviderType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSetting.json.cs b/src/Migrate/generated/api/Models/Api202301/VaultSetting.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/VaultSetting.json.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSetting.json.cs index 7df525e09693..6e3602bba39a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSetting.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSetting.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VaultSetting partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSetting. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSetting. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSetting. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSetting. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSetting FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSetting FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VaultSetting(json) : null; } @@ -102,8 +102,8 @@ internal VaultSetting(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.Js { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingProperties.FromJson(__jsonProperties) : Property;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCollection.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingCollection.PowerShell.cs similarity index 75% rename from src/Migrate/generated/api/Models/Api20220501/VaultSettingCollection.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSettingCollection.PowerShell.cs index d450142a48ab..e866df7da257 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCollection.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class VaultSettingCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVaultSettingCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VaultSettingCollection(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.Migrate.Models.Api20220501.IVaultSettingCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VaultSettingCollection(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVau /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVau public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// 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 VaultSettingCollection(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSetting[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSetting[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollectionInternal)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. @@ -133,11 +133,11 @@ internal VaultSettingCollection(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSetting[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSetting[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollectionInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollectionInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCollection.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingCollection.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VaultSettingCollection.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSettingCollection.TypeConverter.cs index b2820bc33818..f4b7e316a2bb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCollection.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVaultSettingCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCollection.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingCollection.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/VaultSettingCollection.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSettingCollection.cs index 31830aef23aa..39ebf4caf869 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCollection.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Vault setting collection. public partial class VaultSettingCollection : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollection, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollection, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollectionInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class VaultSettingCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSetting[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSetting[] _value; /// The list of vault setting. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSetting[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSetting[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public VaultSettingCollection() @@ -51,8 +51,8 @@ public partial interface IVaultSettingCollection : ReadOnly = false, Description = @"The list of vault setting.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSetting) })] - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSetting[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSetting) })] + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSetting[] Value { get; set; } } /// Vault setting collection. @@ -62,7 +62,7 @@ internal partial interface IVaultSettingCollectionInternal /// The value of next link. string NextLink { get; set; } /// The list of vault setting. - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSetting[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSetting[] Value { get; set; } } } \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCollection.json.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingCollection.json.cs similarity index 92% rename from src/Migrate/generated/api/Models/Api20220501/VaultSettingCollection.json.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSettingCollection.json.cs index 01f8b4685457..45322ce9f10a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCollection.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingCollection.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VaultSettingCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VaultSettingCollection(json) : null; } @@ -110,7 +110,7 @@ internal VaultSettingCollection(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVaultSetting) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSetting.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api202301.IVaultSetting) (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSetting.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInput.PowerShell.cs new file mode 100644 index 000000000000..59e5b80cdd4e --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInput.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Input to create vault setting. + [System.ComponentModel.TypeConverter(typeof(VaultSettingCreationInputTypeConverter))] + public partial class VaultSettingCreationInput + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVaultSettingCreationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VaultSettingCreationInput(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.Migrate.Models.Api202301.IVaultSettingCreationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VaultSettingCreationInput(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.Migrate.Models.Api202301.IVaultSettingCreationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VaultSettingCreationInput(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.Migrate.Models.Api202301.IVaultSettingCreationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingCreationInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationSolutionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputInternal)this).MigrationSolutionId, global::System.Convert.ToString); + } + if (content.Contains("VmwareToAzureProviderType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputInternal)this).VmwareToAzureProviderType, 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 VaultSettingCreationInput(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.Migrate.Models.Api202301.IVaultSettingCreationInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingCreationInputPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationSolutionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputInternal)this).MigrationSolutionId, global::System.Convert.ToString); + } + if (content.Contains("VmwareToAzureProviderType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputInternal)this).VmwareToAzureProviderType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Input to create vault setting. + [System.ComponentModel.TypeConverter(typeof(VaultSettingCreationInputTypeConverter))] + public partial interface IVaultSettingCreationInput + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInput.TypeConverter.cs index 8fe05bdeb9ce..56545e4b9c00 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVaultSettingCreationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInput.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInput.cs new file mode 100644 index 000000000000..27934031a311 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInput.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// Input to create vault setting. + public partial class VaultSettingCreationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputInternal + { + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingCreationInputProperties()); set { {_property = value;} } } + + /// The migration solution Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string MigrationSolutionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputPropertiesInternal)Property).MigrationSolutionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputPropertiesInternal)Property).MigrationSolutionId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties _property; + + /// Vault setting creation input properties. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingCreationInputProperties()); set => this._property = value; } + + /// VMware to Azure provider type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inlined)] + public string VmwareToAzureProviderType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputPropertiesInternal)Property).VmwareToAzureProviderType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputPropertiesInternal)Property).VmwareToAzureProviderType = value ?? null; } + + /// Creates an new instance. + public VaultSettingCreationInput() + { + + } + } + /// Input to create vault setting. + public partial interface IVaultSettingCreationInput : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable + { + /// The migration solution Id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The migration solution Id.", + SerializedName = @"migrationSolutionId", + PossibleTypes = new [] { typeof(string) })] + string MigrationSolutionId { get; set; } + /// VMware to Azure provider type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"VMware to Azure provider type.", + SerializedName = @"vmwareToAzureProviderType", + PossibleTypes = new [] { typeof(string) })] + string VmwareToAzureProviderType { get; set; } + + } + /// Input to create vault setting. + internal partial interface IVaultSettingCreationInputInternal + + { + /// The migration solution Id. + string MigrationSolutionId { get; set; } + /// Vault setting creation input properties. + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties Property { get; set; } + /// VMware to Azure provider type. + string VmwareToAzureProviderType { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInput.json.cs index 67bad47d5cc0..0e449ab7bafa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VaultSettingCreationInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VaultSettingCreationInput(json) : null; } @@ -101,7 +101,7 @@ internal VaultSettingCreationInput(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VaultSettingCreationInputProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VaultSettingCreationInputProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInputProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInputProperties.PowerShell.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInputProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInputProperties.PowerShell.cs index c01131479f55..4b21257ab963 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInputProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VaultSettingCreationInputProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VaultSettingCreationInputProperties(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.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VaultSettingCreationInputProperties(content); } @@ -89,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVau /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -97,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVau public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,17 +112,17 @@ internal VaultSettingCreationInputProperties(global::System.Collections.IDiction // actually deserialize if (content.Contains("MigrationSolutionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputPropertiesInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputPropertiesInternal)this).MigrationSolutionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputPropertiesInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputPropertiesInternal)this).MigrationSolutionId, global::System.Convert.ToString); } if (content.Contains("VmwareToAzureProviderType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputPropertiesInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputPropertiesInternal)this).VmwareToAzureProviderType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputPropertiesInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputPropertiesInternal)this).VmwareToAzureProviderType, 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. @@ -137,11 +137,11 @@ internal VaultSettingCreationInputProperties(global::System.Management.Automatio // actually deserialize if (content.Contains("MigrationSolutionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputPropertiesInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputPropertiesInternal)this).MigrationSolutionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputPropertiesInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputPropertiesInternal)this).MigrationSolutionId, global::System.Convert.ToString); } if (content.Contains("VmwareToAzureProviderType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputPropertiesInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputPropertiesInternal)this).VmwareToAzureProviderType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputPropertiesInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputPropertiesInternal)this).VmwareToAzureProviderType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInputProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInputProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInputProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInputProperties.TypeConverter.cs index e616a55e1337..43188eec1e48 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInputProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInputProperties.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInputProperties.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInputProperties.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInputProperties.cs index c5ae82a8e4a8..278d6fe955b5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInputProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Input to create vault setting. public partial class VaultSettingCreationInputProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInputProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInputProperties.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInputProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInputProperties.json.cs index 6220124c1c40..1f376f429bf0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingCreationInputProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingCreationInputProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VaultSettingCreationInputProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingCreationInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingCreationInputProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VaultSettingCreationInputProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingProperties.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingProperties.PowerShell.cs similarity index 78% rename from src/Migrate/generated/api/Models/Api20220501/VaultSettingProperties.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSettingProperties.PowerShell.cs index 8dfe7cd53041..35e353ce008c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingProperties.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class VaultSettingProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVaultSettingProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VaultSettingProperties(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.Migrate.Models.Api20220501.IVaultSettingProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VaultSettingProperties(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVau /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVau public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// 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 VaultSettingProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("MigrationSolutionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingPropertiesInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingPropertiesInternal)this).MigrationSolutionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingPropertiesInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingPropertiesInternal)this).MigrationSolutionId, global::System.Convert.ToString); } if (content.Contains("VmwareToAzureProviderType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingPropertiesInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingPropertiesInternal)this).VmwareToAzureProviderType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingPropertiesInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingPropertiesInternal)this).VmwareToAzureProviderType, 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. @@ -133,11 +133,11 @@ internal VaultSettingProperties(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("MigrationSolutionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingPropertiesInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingPropertiesInternal)this).MigrationSolutionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingPropertiesInternal)this).MigrationSolutionId = (string) content.GetValueForProperty("MigrationSolutionId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingPropertiesInternal)this).MigrationSolutionId, global::System.Convert.ToString); } if (content.Contains("VmwareToAzureProviderType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingPropertiesInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingPropertiesInternal)this).VmwareToAzureProviderType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingPropertiesInternal)this).VmwareToAzureProviderType = (string) content.GetValueForProperty("VmwareToAzureProviderType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingPropertiesInternal)this).VmwareToAzureProviderType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingProperties.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingProperties.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VaultSettingProperties.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSettingProperties.TypeConverter.cs index d8fa088f4bf9..fde09be54206 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingProperties.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVaultSettingProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingProperties.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingProperties.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VaultSettingProperties.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSettingProperties.cs index d1482c1500f5..7f6c75142a97 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingProperties.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Vault setting properties. public partial class VaultSettingProperties : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingProperties, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingPropertiesInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/VaultSettingProperties.json.cs b/src/Migrate/generated/api/Models/Api202301/VaultSettingProperties.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VaultSettingProperties.json.cs rename to src/Migrate/generated/api/Models/Api202301/VaultSettingProperties.json.cs index bffb6bb9f80e..fb17988595c4 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VaultSettingProperties.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VaultSettingProperties.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VaultSettingProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVaultSettingProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVaultSettingProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VaultSettingProperties(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/VersionDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VersionDetails.PowerShell.cs new file mode 100644 index 000000000000..d8d9066ba938 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VersionDetails.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// Version related details. + [System.ComponentModel.TypeConverter(typeof(VersionDetailsTypeConverter))] + public partial class VersionDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVersionDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VersionDetails(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.Migrate.Models.Api202301.IVersionDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VersionDetails(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.Migrate.Models.Api202301.IVersionDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VersionDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("ExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)this).ExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)this).ExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal VersionDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("ExpiryDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)this).ExpiryDate = (global::System.DateTime?) content.GetValueForProperty("ExpiryDate",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)this).ExpiryDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.AgentVersionStatus.CreateFrom); + } + AfterDeserializePSObject(content); + } + } + /// Version related details. + [System.ComponentModel.TypeConverter(typeof(VersionDetailsTypeConverter))] + public partial interface IVersionDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VersionDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VersionDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/VersionDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VersionDetails.TypeConverter.cs index 4164c7dd4e13..ddb6c3a614ea 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VersionDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VersionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVersionDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VersionDetails.cs b/src/Migrate/generated/api/Models/Api202301/VersionDetails.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/VersionDetails.cs rename to src/Migrate/generated/api/Models/Api202301/VersionDetails.cs index c80bd8ccc41a..4f0af4cbc77d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VersionDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/VersionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Version related details. public partial class VersionDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetailsInternal { /// Backing field for property. diff --git a/src/Migrate/generated/api/Models/Api20220501/VersionDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VersionDetails.json.cs similarity index 96% rename from src/Migrate/generated/api/Models/Api20220501/VersionDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VersionDetails.json.cs index 401f7bf246dd..c5691294a2fe 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VersionDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VersionDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VersionDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVersionDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVersionDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VersionDetails(json) : null; } diff --git a/src/Migrate/generated/api/Models/Api202301/VirtualMachineTaskDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VirtualMachineTaskDetails.PowerShell.cs new file mode 100644 index 000000000000..668ef6966977 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VirtualMachineTaskDetails.PowerShell.cs @@ -0,0 +1,216 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// This class represents the virtual machine task details. + [System.ComponentModel.TypeConverter(typeof(VirtualMachineTaskDetailsTypeConverter))] + public partial class VirtualMachineTaskDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVirtualMachineTaskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VirtualMachineTaskDetails(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.Migrate.Models.Api202301.IVirtualMachineTaskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VirtualMachineTaskDetails(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.Migrate.Models.Api202301.IVirtualMachineTaskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VirtualMachineTaskDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SkippedReason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetailsInternal)this).SkippedReason = (string) content.GetValueForProperty("SkippedReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetailsInternal)this).SkippedReason, global::System.Convert.ToString); + } + if (content.Contains("SkippedReasonString")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetailsInternal)this).SkippedReasonString = (string) content.GetValueForProperty("SkippedReasonString",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetailsInternal)this).SkippedReasonString, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobId = (string) content.GetValueForProperty("JobTaskJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobId, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName = (string) content.GetValueForProperty("JobTaskJobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectId = (string) content.GetValueForProperty("JobTaskTargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectId, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetObjectName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectName = (string) content.GetValueForProperty("JobTaskTargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectName, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType = (string) content.GetValueForProperty("JobTaskTargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobScenarioName = (string) content.GetValueForProperty("JobTaskJobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobScenarioName, global::System.Convert.ToString); + } + if (content.Contains("JobTask")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity) content.GetValueForProperty("JobTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTask, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobEntityTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal VirtualMachineTaskDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SkippedReason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetailsInternal)this).SkippedReason = (string) content.GetValueForProperty("SkippedReason",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetailsInternal)this).SkippedReason, global::System.Convert.ToString); + } + if (content.Contains("SkippedReasonString")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetailsInternal)this).SkippedReasonString = (string) content.GetValueForProperty("SkippedReasonString",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetailsInternal)this).SkippedReasonString, global::System.Convert.ToString); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobId = (string) content.GetValueForProperty("JobTaskJobId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobId, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobFriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName = (string) content.GetValueForProperty("JobTaskJobFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobFriendlyName, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectId = (string) content.GetValueForProperty("JobTaskTargetObjectId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectId, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetObjectName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectName = (string) content.GetValueForProperty("JobTaskTargetObjectName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetObjectName, global::System.Convert.ToString); + } + if (content.Contains("JobTaskTargetInstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType = (string) content.GetValueForProperty("JobTaskTargetInstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskTargetInstanceType, global::System.Convert.ToString); + } + if (content.Contains("JobTaskJobScenarioName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobScenarioName = (string) content.GetValueForProperty("JobTaskJobScenarioName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTaskJobScenarioName, global::System.Convert.ToString); + } + if (content.Contains("JobTask")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTask = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity) content.GetValueForProperty("JobTask",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)this).JobTask, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobEntityTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + } + /// This class represents the virtual machine task details. + [System.ComponentModel.TypeConverter(typeof(VirtualMachineTaskDetailsTypeConverter))] + public partial interface IVirtualMachineTaskDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VirtualMachineTaskDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VirtualMachineTaskDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VirtualMachineTaskDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VirtualMachineTaskDetails.TypeConverter.cs index ca56edb87f7a..0443df6610f5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VirtualMachineTaskDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VirtualMachineTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVirtualMachineTaskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVirtualMachineTaskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/VirtualMachineTaskDetails.cs b/src/Migrate/generated/api/Models/Api202301/VirtualMachineTaskDetails.cs new file mode 100644 index 000000000000..caebab336bf3 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VirtualMachineTaskDetails.cs @@ -0,0 +1,119 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// This class represents the virtual machine task details. + public partial class VirtualMachineTaskDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetails __jobTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobTaskDetails(); + + /// The type of task details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__jobTaskDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITaskTypeDetailsInternal)__jobTaskDetails).InstanceType = value ; } + + /// The job entity. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobEntity JobTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTask = value ?? null /* model class */; } + + /// The job display name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string JobTaskJobFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobFriendlyName = value ?? null; } + + /// The job id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string JobTaskJobId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobId = value ?? null; } + + /// The job name. Enum type ScenarioName. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string JobTaskJobScenarioName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobScenarioName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskJobScenarioName = value ?? null; } + + /// The workflow affected object type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string JobTaskTargetInstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetInstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetInstanceType = value ?? null; } + + /// The object id. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string JobTaskTargetObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectId = value ?? null; } + + /// The object name. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string JobTaskTargetObjectName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal)__jobTaskDetails).JobTaskTargetObjectName = value ?? null; } + + /// Backing field for property. + private string _skippedReason; + + /// The skipped reason. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string SkippedReason { get => this._skippedReason; set => this._skippedReason = value; } + + /// Backing field for property. + private string _skippedReasonString; + + /// The skipped reason string. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string SkippedReasonString { get => this._skippedReasonString; set => this._skippedReasonString = value; } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__jobTaskDetails), __jobTaskDetails); + await eventListener.AssertObjectIsValid(nameof(__jobTaskDetails), __jobTaskDetails); + } + + /// Creates an new instance. + public VirtualMachineTaskDetails() + { + + } + } + /// This class represents the virtual machine task details. + public partial interface IVirtualMachineTaskDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetails + { + /// The skipped reason. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The skipped reason.", + SerializedName = @"skippedReason", + PossibleTypes = new [] { typeof(string) })] + string SkippedReason { get; set; } + /// The skipped reason string. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The skipped reason string.", + SerializedName = @"skippedReasonString", + PossibleTypes = new [] { typeof(string) })] + string SkippedReasonString { get; set; } + + } + /// This class represents the virtual machine task details. + internal partial interface IVirtualMachineTaskDetailsInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobTaskDetailsInternal + { + /// The skipped reason. + string SkippedReason { get; set; } + /// The skipped reason string. + string SkippedReasonString { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VirtualMachineTaskDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VirtualMachineTaskDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VirtualMachineTaskDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VirtualMachineTaskDetails.json.cs index 158874ed6fdd..713f85d62d8b 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VirtualMachineTaskDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VirtualMachineTaskDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualMachineTaskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVirtualMachineTaskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVirtualMachineTaskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVirtualMachineTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVirtualMachineTaskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VirtualMachineTaskDetails(json) : null; } @@ -103,7 +103,7 @@ internal VirtualMachineTaskDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Ru { return; } - __jobTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobTaskDetails(json); + __jobTaskDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobTaskDetails(json); {_skippedReason = If( json?.PropertyT("skippedReason"), out var __jsonSkippedReason) ? (string)__jsonSkippedReason : (string)SkippedReason;} {_skippedReasonString = If( json?.PropertyT("skippedReasonString"), out var __jsonSkippedReasonString) ? (string)__jsonSkippedReasonString : (string)SkippedReasonString;} AfterFromJson(json); diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VmmDetails.PowerShell.cs similarity index 84% rename from src/Migrate/generated/api/Models/Api20220501/VmmDetails.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VmmDetails.PowerShell.cs index 545d4edf6cd6..25efbf293029 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmDetails.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class VmmDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVmmDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VmmDetails(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.Migrate.Models.Api20220501.IVmmDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VmmDetails(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmm /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmm public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,13 +108,13 @@ internal VmmDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType, 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. @@ -129,7 +129,7 @@ internal VmmDetails(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VmmDetails.TypeConverter.cs similarity index 98% rename from src/Migrate/generated/api/Models/Api20220501/VmmDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VmmDetails.TypeConverter.cs index d3a6737d5ef8..b3140842e697 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVmmDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmDetails.cs b/src/Migrate/generated/api/Models/Api202301/VmmDetails.cs similarity index 80% rename from src/Migrate/generated/api/Models/Api20220501/VmmDetails.cs rename to src/Migrate/generated/api/Models/Api202301/VmmDetails.cs index f9b0883f3112..0d8069357bf5 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMM fabric specific details. public partial class VmmDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails(); /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal)__fabricSpecificDetails).InstanceType = value ; } /// Validates that this object meets the validation criteria. /// an instance that will receive validation @@ -44,13 +44,13 @@ public VmmDetails() /// VMM fabric specific details. public partial interface IVmmDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetails { } /// VMM fabric specific details. internal partial interface IVmmDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificDetailsInternal { } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VmmDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VmmDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VmmDetails.json.cs index 4c342ceae330..6872d4799ecf 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VmmDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VmmDetails(json) : null; } @@ -101,7 +101,7 @@ internal VmmDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.Json { return; } - __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificDetails(json); + __fabricSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificDetails(json); AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureCreateNetworkMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VmmToAzureCreateNetworkMappingInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/VmmToAzureCreateNetworkMappingInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToAzureCreateNetworkMappingInput.PowerShell.cs index 7a3c779b7d36..fdf2128cd416 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureCreateNetworkMappingInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToAzureCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -57,29 +57,29 @@ public partial class VmmToAzureCreateNetworkMappingInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVmmToAzureCreateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureCreateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VmmToAzureCreateNetworkMappingInput(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.Migrate.Models.Api20220501.IVmmToAzureCreateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureCreateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VmmToAzureCreateNetworkMappingInput(content); } @@ -91,7 +91,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmm /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureCreateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureCreateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -99,7 +99,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmm public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -114,13 +114,13 @@ internal VmmToAzureCreateNetworkMappingInput(global::System.Collections.IDiction // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, 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. @@ -135,7 +135,7 @@ internal VmmToAzureCreateNetworkMappingInput(global::System.Management.Automatio // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureCreateNetworkMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VmmToAzureCreateNetworkMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VmmToAzureCreateNetworkMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToAzureCreateNetworkMappingInput.TypeConverter.cs index 12320cd89bb5..56bf9244f91e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureCreateNetworkMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToAzureCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVmmToAzureCreateNetworkMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureCreateNetworkMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureCreateNetworkMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureCreateNetworkMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureCreateNetworkMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/VmmToAzureCreateNetworkMappingInput.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/VmmToAzureCreateNetworkMappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToAzureCreateNetworkMappingInput.cs index 37686412b144..7ec4ef2d0fd8 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureCreateNetworkMappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToAzureCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,19 +11,19 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// Create network mappings input properties/behavior specific to Vmm to Azure Network mapping. /// public partial class VmmToAzureCreateNetworkMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureCreateNetworkMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureCreateNetworkMappingInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureCreateNetworkMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureCreateNetworkMappingInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput __fabricSpecificCreateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput __fabricSpecificCreateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInput(); /// The instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)__fabricSpecificCreateNetworkMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)__fabricSpecificCreateNetworkMappingInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)__fabricSpecificCreateNetworkMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)__fabricSpecificCreateNetworkMappingInput).InstanceType = value ; } /// Validates that this object meets the validation criteria. /// an instance that will receive validation @@ -46,13 +46,13 @@ public VmmToAzureCreateNetworkMappingInput() /// Create network mappings input properties/behavior specific to Vmm to Azure Network mapping. public partial interface IVmmToAzureCreateNetworkMappingInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput { } /// Create network mappings input properties/behavior specific to Vmm to Azure Network mapping. internal partial interface IVmmToAzureCreateNetworkMappingInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal { } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureCreateNetworkMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VmmToAzureCreateNetworkMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/VmmToAzureCreateNetworkMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToAzureCreateNetworkMappingInput.json.cs index 395eaeef4f37..7490de66ac78 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureCreateNetworkMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToAzureCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class VmmToAzureCreateNetworkMappingInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureCreateNetworkMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureCreateNetworkMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureCreateNetworkMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureCreateNetworkMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureCreateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureCreateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VmmToAzureCreateNetworkMappingInput(json) : null; } @@ -104,7 +104,7 @@ internal VmmToAzureCreateNetworkMappingInput(Microsoft.Azure.PowerShell.Cmdlets. { return; } - __fabricSpecificCreateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInput(json); + __fabricSpecificCreateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInput(json); AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureNetworkMappingSettings.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VmmToAzureNetworkMappingSettings.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/VmmToAzureNetworkMappingSettings.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToAzureNetworkMappingSettings.PowerShell.cs index 95bfbe9029fa..9b2ee7f1735a 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureNetworkMappingSettings.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToAzureNetworkMappingSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VmmToAzureNetworkMappingSettings partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVmmToAzureNetworkMappingSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureNetworkMappingSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VmmToAzureNetworkMappingSettings(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.Migrate.Models.Api20220501.IVmmToAzureNetworkMappingSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureNetworkMappingSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VmmToAzureNetworkMappingSettings(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmm /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureNetworkMappingSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureNetworkMappingSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmm public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,13 +110,13 @@ internal VmmToAzureNetworkMappingSettings(global::System.Collections.IDictionary // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, 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. @@ -131,7 +131,7 @@ internal VmmToAzureNetworkMappingSettings(global::System.Management.Automation.P // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureNetworkMappingSettings.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VmmToAzureNetworkMappingSettings.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VmmToAzureNetworkMappingSettings.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToAzureNetworkMappingSettings.TypeConverter.cs index 5453b4fff3f0..b0042c544e5f 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureNetworkMappingSettings.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToAzureNetworkMappingSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVmmToAzureNetworkMappingSettings ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureNetworkMappingSettings ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureNetworkMappingSettings).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureNetworkMappingSettings).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureNetworkMappingSettings.cs b/src/Migrate/generated/api/Models/Api202301/VmmToAzureNetworkMappingSettings.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/VmmToAzureNetworkMappingSettings.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToAzureNetworkMappingSettings.cs index 5ae154e1e69b..82b7f9c12ace 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureNetworkMappingSettings.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToAzureNetworkMappingSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// E2A Network Mapping fabric specific settings. public partial class VmmToAzureNetworkMappingSettings : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureNetworkMappingSettings, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureNetworkMappingSettingsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureNetworkMappingSettings, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureNetworkMappingSettingsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings __networkMappingFabricSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings __networkMappingFabricSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettings(); /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)__networkMappingFabricSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)__networkMappingFabricSpecificSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)__networkMappingFabricSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)__networkMappingFabricSpecificSettings).InstanceType = value ; } /// Validates that this object meets the validation criteria. /// an instance that will receive validation @@ -44,13 +44,13 @@ public VmmToAzureNetworkMappingSettings() /// E2A Network Mapping fabric specific settings. public partial interface IVmmToAzureNetworkMappingSettings : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings { } /// E2A Network Mapping fabric specific settings. internal partial interface IVmmToAzureNetworkMappingSettingsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal { } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureNetworkMappingSettings.json.cs b/src/Migrate/generated/api/Models/Api202301/VmmToAzureNetworkMappingSettings.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/VmmToAzureNetworkMappingSettings.json.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToAzureNetworkMappingSettings.json.cs index 55b149a30848..eaa1cfd2ed05 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureNetworkMappingSettings.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToAzureNetworkMappingSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VmmToAzureNetworkMappingSettings partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureNetworkMappingSettings. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureNetworkMappingSettings. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureNetworkMappingSettings. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureNetworkMappingSettings. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureNetworkMappingSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureNetworkMappingSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VmmToAzureNetworkMappingSettings(json) : null; } @@ -101,7 +101,7 @@ internal VmmToAzureNetworkMappingSettings(Microsoft.Azure.PowerShell.Cmdlets.Mig { return; } - __networkMappingFabricSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettings(json); + __networkMappingFabricSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettings(json); AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureUpdateNetworkMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VmmToAzureUpdateNetworkMappingInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/VmmToAzureUpdateNetworkMappingInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToAzureUpdateNetworkMappingInput.PowerShell.cs index 631acf722011..644692fa42ba 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureUpdateNetworkMappingInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToAzureUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VmmToAzureUpdateNetworkMappingInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVmmToAzureUpdateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureUpdateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VmmToAzureUpdateNetworkMappingInput(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.Migrate.Models.Api20220501.IVmmToAzureUpdateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureUpdateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VmmToAzureUpdateNetworkMappingInput(content); } @@ -89,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmm /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureUpdateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureUpdateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -97,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmm public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,13 +112,13 @@ internal VmmToAzureUpdateNetworkMappingInput(global::System.Collections.IDiction // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, 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. @@ -133,7 +133,7 @@ internal VmmToAzureUpdateNetworkMappingInput(global::System.Management.Automatio // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureUpdateNetworkMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VmmToAzureUpdateNetworkMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VmmToAzureUpdateNetworkMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToAzureUpdateNetworkMappingInput.TypeConverter.cs index 4af32160da27..378202bfc3ce 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureUpdateNetworkMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToAzureUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVmmToAzureUpdateNetworkMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureUpdateNetworkMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureUpdateNetworkMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureUpdateNetworkMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureUpdateNetworkMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/VmmToAzureUpdateNetworkMappingInput.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/VmmToAzureUpdateNetworkMappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToAzureUpdateNetworkMappingInput.cs index e55407d03e07..38a6a471124c 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureUpdateNetworkMappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToAzureUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Update network mappings input properties/behavior specific to vmm to azure. public partial class VmmToAzureUpdateNetworkMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureUpdateNetworkMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureUpdateNetworkMappingInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureUpdateNetworkMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureUpdateNetworkMappingInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput __fabricSpecificUpdateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput __fabricSpecificUpdateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInput(); /// The instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)__fabricSpecificUpdateNetworkMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)__fabricSpecificUpdateNetworkMappingInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)__fabricSpecificUpdateNetworkMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)__fabricSpecificUpdateNetworkMappingInput).InstanceType = value ; } /// Validates that this object meets the validation criteria. /// an instance that will receive validation @@ -44,13 +44,13 @@ public VmmToAzureUpdateNetworkMappingInput() /// Update network mappings input properties/behavior specific to vmm to azure. public partial interface IVmmToAzureUpdateNetworkMappingInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput { } /// Update network mappings input properties/behavior specific to vmm to azure. internal partial interface IVmmToAzureUpdateNetworkMappingInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal { } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureUpdateNetworkMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VmmToAzureUpdateNetworkMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/VmmToAzureUpdateNetworkMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToAzureUpdateNetworkMappingInput.json.cs index 8fc710a1a92a..1a37824b7ffb 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToAzureUpdateNetworkMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToAzureUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VmmToAzureUpdateNetworkMappingInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureUpdateNetworkMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureUpdateNetworkMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureUpdateNetworkMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureUpdateNetworkMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToAzureUpdateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToAzureUpdateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VmmToAzureUpdateNetworkMappingInput(json) : null; } @@ -102,7 +102,7 @@ internal VmmToAzureUpdateNetworkMappingInput(Microsoft.Azure.PowerShell.Cmdlets. { return; } - __fabricSpecificUpdateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInput(json); + __fabricSpecificUpdateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInput(json); AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmCreateNetworkMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VmmToVmmCreateNetworkMappingInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/VmmToVmmCreateNetworkMappingInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToVmmCreateNetworkMappingInput.PowerShell.cs index ced4d6562cb2..86bcdaa855d9 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmCreateNetworkMappingInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToVmmCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -57,29 +57,29 @@ public partial class VmmToVmmCreateNetworkMappingInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVmmToVmmCreateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmCreateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VmmToVmmCreateNetworkMappingInput(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.Migrate.Models.Api20220501.IVmmToVmmCreateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmCreateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VmmToVmmCreateNetworkMappingInput(content); } @@ -91,7 +91,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmm /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmCreateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmCreateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -99,7 +99,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmm public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -114,13 +114,13 @@ internal VmmToVmmCreateNetworkMappingInput(global::System.Collections.IDictionar // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, 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. @@ -135,7 +135,7 @@ internal VmmToVmmCreateNetworkMappingInput(global::System.Management.Automation. // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmCreateNetworkMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VmmToVmmCreateNetworkMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VmmToVmmCreateNetworkMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToVmmCreateNetworkMappingInput.TypeConverter.cs index 78906622e751..e5a455c1c620 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmCreateNetworkMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToVmmCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVmmToVmmCreateNetworkMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmCreateNetworkMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmCreateNetworkMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmCreateNetworkMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmCreateNetworkMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/VmmToVmmCreateNetworkMappingInput.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/VmmToVmmCreateNetworkMappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToVmmCreateNetworkMappingInput.cs index 58d3d7229787..a3531947f1b1 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmCreateNetworkMappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToVmmCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -11,19 +11,19 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501 /// Create network mappings input properties/behavior specific to vmm to vmm Network mapping. /// public partial class VmmToVmmCreateNetworkMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmCreateNetworkMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmCreateNetworkMappingInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmCreateNetworkMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmCreateNetworkMappingInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput __fabricSpecificCreateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput __fabricSpecificCreateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInput(); /// The instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)__fabricSpecificCreateNetworkMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal)__fabricSpecificCreateNetworkMappingInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)__fabricSpecificCreateNetworkMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal)__fabricSpecificCreateNetworkMappingInput).InstanceType = value ; } /// Validates that this object meets the validation criteria. /// an instance that will receive validation @@ -46,13 +46,13 @@ public VmmToVmmCreateNetworkMappingInput() /// Create network mappings input properties/behavior specific to vmm to vmm Network mapping. public partial interface IVmmToVmmCreateNetworkMappingInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInput { } /// Create network mappings input properties/behavior specific to vmm to vmm Network mapping. internal partial interface IVmmToVmmCreateNetworkMappingInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificCreateNetworkMappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificCreateNetworkMappingInputInternal { } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmCreateNetworkMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VmmToVmmCreateNetworkMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/VmmToVmmCreateNetworkMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToVmmCreateNetworkMappingInput.json.cs index 0614975a075e..aa649f2fe1aa 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmCreateNetworkMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToVmmCreateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class VmmToVmmCreateNetworkMappingInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmCreateNetworkMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmCreateNetworkMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmCreateNetworkMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmCreateNetworkMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmCreateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmCreateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VmmToVmmCreateNetworkMappingInput(json) : null; } @@ -103,7 +103,7 @@ internal VmmToVmmCreateNetworkMappingInput(Microsoft.Azure.PowerShell.Cmdlets.Mi { return; } - __fabricSpecificCreateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificCreateNetworkMappingInput(json); + __fabricSpecificCreateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificCreateNetworkMappingInput(json); AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmNetworkMappingSettings.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VmmToVmmNetworkMappingSettings.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/VmmToVmmNetworkMappingSettings.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToVmmNetworkMappingSettings.PowerShell.cs index f2411cd9fe3a..57facb2afccc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmNetworkMappingSettings.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToVmmNetworkMappingSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VmmToVmmNetworkMappingSettings partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVmmToVmmNetworkMappingSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmNetworkMappingSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VmmToVmmNetworkMappingSettings(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.Migrate.Models.Api20220501.IVmmToVmmNetworkMappingSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmNetworkMappingSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VmmToVmmNetworkMappingSettings(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmm /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmNetworkMappingSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmNetworkMappingSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmm public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,13 +110,13 @@ internal VmmToVmmNetworkMappingSettings(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, 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. @@ -131,7 +131,7 @@ internal VmmToVmmNetworkMappingSettings(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmNetworkMappingSettings.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VmmToVmmNetworkMappingSettings.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VmmToVmmNetworkMappingSettings.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToVmmNetworkMappingSettings.TypeConverter.cs index b3e095e8459c..9d6f1f94c67e 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmNetworkMappingSettings.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToVmmNetworkMappingSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVmmToVmmNetworkMappingSettings ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmNetworkMappingSettings ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmNetworkMappingSettings).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmNetworkMappingSettings).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmNetworkMappingSettings.cs b/src/Migrate/generated/api/Models/Api202301/VmmToVmmNetworkMappingSettings.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/VmmToVmmNetworkMappingSettings.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToVmmNetworkMappingSettings.cs index 75d924c23137..29a39faea0a7 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmNetworkMappingSettings.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToVmmNetworkMappingSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// E2E Network Mapping fabric specific settings. public partial class VmmToVmmNetworkMappingSettings : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmNetworkMappingSettings, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmNetworkMappingSettingsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmNetworkMappingSettings, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmNetworkMappingSettingsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings __networkMappingFabricSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettings(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings __networkMappingFabricSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettings(); /// Gets the Instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)__networkMappingFabricSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal)__networkMappingFabricSpecificSettings).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)__networkMappingFabricSpecificSettings).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal)__networkMappingFabricSpecificSettings).InstanceType = value ; } /// Validates that this object meets the validation criteria. /// an instance that will receive validation @@ -44,13 +44,13 @@ public VmmToVmmNetworkMappingSettings() /// E2E Network Mapping fabric specific settings. public partial interface IVmmToVmmNetworkMappingSettings : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettings + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettings { } /// E2E Network Mapping fabric specific settings. internal partial interface IVmmToVmmNetworkMappingSettingsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.INetworkMappingFabricSpecificSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.INetworkMappingFabricSpecificSettingsInternal { } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmNetworkMappingSettings.json.cs b/src/Migrate/generated/api/Models/Api202301/VmmToVmmNetworkMappingSettings.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/VmmToVmmNetworkMappingSettings.json.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToVmmNetworkMappingSettings.json.cs index 7232c0420dce..19f582154ca0 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmNetworkMappingSettings.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToVmmNetworkMappingSettings.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VmmToVmmNetworkMappingSettings partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmNetworkMappingSettings. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmNetworkMappingSettings. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmNetworkMappingSettings. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmNetworkMappingSettings. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmNetworkMappingSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmNetworkMappingSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VmmToVmmNetworkMappingSettings(json) : null; } @@ -101,7 +101,7 @@ internal VmmToVmmNetworkMappingSettings(Microsoft.Azure.PowerShell.Cmdlets.Migra { return; } - __networkMappingFabricSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.NetworkMappingFabricSpecificSettings(json); + __networkMappingFabricSpecificSettings = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.NetworkMappingFabricSpecificSettings(json); AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmUpdateNetworkMappingInput.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VmmToVmmUpdateNetworkMappingInput.PowerShell.cs similarity index 82% rename from src/Migrate/generated/api/Models/Api20220501/VmmToVmmUpdateNetworkMappingInput.PowerShell.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToVmmUpdateNetworkMappingInput.PowerShell.cs index 5f9cef7b741d..699db9d3d785 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmUpdateNetworkMappingInput.PowerShell.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToVmmUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VmmToVmmUpdateNetworkMappingInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.Migrate.Models.Api20220501.IVmmToVmmUpdateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmUpdateNetworkMappingInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VmmToVmmUpdateNetworkMappingInput(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.Migrate.Models.Api20220501.IVmmToVmmUpdateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmUpdateNetworkMappingInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VmmToVmmUpdateNetworkMappingInput(content); } @@ -89,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmm /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmUpdateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmUpdateNetworkMappingInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -97,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmm public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,13 +112,13 @@ internal VmmToVmmUpdateNetworkMappingInput(global::System.Collections.IDictionar // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, 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. @@ -133,7 +133,7 @@ internal VmmToVmmUpdateNetworkMappingInput(global::System.Management.Automation. // actually deserialize if (content.Contains("InstanceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)this).InstanceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmUpdateNetworkMappingInput.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VmmToVmmUpdateNetworkMappingInput.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VmmToVmmUpdateNetworkMappingInput.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToVmmUpdateNetworkMappingInput.TypeConverter.cs index abc35e4014ca..9844a9645831 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmUpdateNetworkMappingInput.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToVmmUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVmmToVmmUpdateNetworkMappingInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmUpdateNetworkMappingInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmUpdateNetworkMappingInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmUpdateNetworkMappingInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmUpdateNetworkMappingInput.cs b/src/Migrate/generated/api/Models/Api202301/VmmToVmmUpdateNetworkMappingInput.cs similarity index 77% rename from src/Migrate/generated/api/Models/Api20220501/VmmToVmmUpdateNetworkMappingInput.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToVmmUpdateNetworkMappingInput.cs index f68987bb8123..d4f835203e4d 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmUpdateNetworkMappingInput.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToVmmUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// Update network mappings input properties/behavior specific to vmm to vmm. public partial class VmmToVmmUpdateNetworkMappingInput : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmUpdateNetworkMappingInput, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmUpdateNetworkMappingInputInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmUpdateNetworkMappingInput, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmUpdateNetworkMappingInputInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput __fabricSpecificUpdateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput __fabricSpecificUpdateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInput(); /// The instance type. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)__fabricSpecificUpdateNetworkMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal)__fabricSpecificUpdateNetworkMappingInput).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)__fabricSpecificUpdateNetworkMappingInput).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal)__fabricSpecificUpdateNetworkMappingInput).InstanceType = value ; } /// Validates that this object meets the validation criteria. /// an instance that will receive validation @@ -44,13 +44,13 @@ public VmmToVmmUpdateNetworkMappingInput() /// Update network mappings input properties/behavior specific to vmm to vmm. public partial interface IVmmToVmmUpdateNetworkMappingInput : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInput + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInput { } /// Update network mappings input properties/behavior specific to vmm to vmm. internal partial interface IVmmToVmmUpdateNetworkMappingInputInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabricSpecificUpdateNetworkMappingInputInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricSpecificUpdateNetworkMappingInputInternal { } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmUpdateNetworkMappingInput.json.cs b/src/Migrate/generated/api/Models/Api202301/VmmToVmmUpdateNetworkMappingInput.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/VmmToVmmUpdateNetworkMappingInput.json.cs rename to src/Migrate/generated/api/Models/Api202301/VmmToVmmUpdateNetworkMappingInput.json.cs index 0622ec5f823f..df30c28b0f90 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmToVmmUpdateNetworkMappingInput.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmToVmmUpdateNetworkMappingInput.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VmmToVmmUpdateNetworkMappingInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmUpdateNetworkMappingInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmUpdateNetworkMappingInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmUpdateNetworkMappingInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmUpdateNetworkMappingInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmToVmmUpdateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmToVmmUpdateNetworkMappingInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VmmToVmmUpdateNetworkMappingInput(json) : null; } @@ -101,7 +101,7 @@ internal VmmToVmmUpdateNetworkMappingInput(Microsoft.Azure.PowerShell.Cmdlets.Mi { return; } - __fabricSpecificUpdateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.FabricSpecificUpdateNetworkMappingInput(json); + __fabricSpecificUpdateNetworkMappingInput = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.FabricSpecificUpdateNetworkMappingInput(json); AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/VmmVirtualMachineDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VmmVirtualMachineDetails.PowerShell.cs new file mode 100644 index 000000000000..13e17861fef2 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VmmVirtualMachineDetails.PowerShell.cs @@ -0,0 +1,256 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMM fabric provider specific VM settings. + [System.ComponentModel.TypeConverter(typeof(VmmVirtualMachineDetailsTypeConverter))] + public partial class VmmVirtualMachineDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVmmVirtualMachineDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VmmVirtualMachineDetails(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.Migrate.Models.Api202301.IVmmVirtualMachineDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VmmVirtualMachineDetails(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.Migrate.Models.Api202301.IVmmVirtualMachineDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VmmVirtualMachineDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOstype")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); + } + if (content.Contains("OSDetailProductType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType = (string) content.GetValueForProperty("OSDetailProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsedition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition = (string) content.GetValueForProperty("OSDetailOsedition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsversion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion = (string) content.GetValueForProperty("OSDetailOsversion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsmajorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion = (string) content.GetValueForProperty("OSDetailOsmajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsminorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion = (string) content.GetValueForProperty("OSDetailOsminorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion, global::System.Convert.ToString); + } + if (content.Contains("OSDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("SourceItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).SourceItemId = (string) content.GetValueForProperty("SourceItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).SourceItemId, global::System.Convert.ToString); + } + if (content.Contains("Generation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).Generation = (string) content.GetValueForProperty("Generation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).Generation, global::System.Convert.ToString); + } + if (content.Contains("DiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).DiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[]) content.GetValueForProperty("DiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).DiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("HasPhysicalDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasPhysicalDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); + } + if (content.Contains("HasFibreChannelAdapter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasFibreChannelAdapter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); + } + if (content.Contains("HasSharedVhd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasSharedVhd",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); + } + if (content.Contains("HyperVHostId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId = (string) content.GetValueForProperty("HyperVHostId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId, 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 VmmVirtualMachineDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)this).InstanceType, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOstype")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype = (string) content.GetValueForProperty("OSDetailOstype",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOstype, global::System.Convert.ToString); + } + if (content.Contains("OSDetailProductType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType = (string) content.GetValueForProperty("OSDetailProductType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailProductType, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsedition")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition = (string) content.GetValueForProperty("OSDetailOsedition",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsedition, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsversion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion = (string) content.GetValueForProperty("OSDetailOsversion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsversion, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsmajorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion = (string) content.GetValueForProperty("OSDetailOsmajorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsmajorVersion, global::System.Convert.ToString); + } + if (content.Contains("OSDetailOsminorVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion = (string) content.GetValueForProperty("OSDetailOsminorVersion",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetailOsminorVersion, global::System.Convert.ToString); + } + if (content.Contains("OSDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails) content.GetValueForProperty("OSDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).OSDetail, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.OSDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("SourceItemId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).SourceItemId = (string) content.GetValueForProperty("SourceItemId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).SourceItemId, global::System.Convert.ToString); + } + if (content.Contains("Generation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).Generation = (string) content.GetValueForProperty("Generation",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).Generation, global::System.Convert.ToString); + } + if (content.Contains("DiskDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).DiskDetail = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[]) content.GetValueForProperty("DiskDetail",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).DiskDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.DiskDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("HasPhysicalDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasPhysicalDisk",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasPhysicalDisk, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); + } + if (content.Contains("HasFibreChannelAdapter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasFibreChannelAdapter",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasFibreChannelAdapter, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); + } + if (content.Contains("HasSharedVhd")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd = (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus?) content.GetValueForProperty("HasSharedVhd",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HasSharedVhd, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus.CreateFrom); + } + if (content.Contains("HyperVHostId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId = (string) content.GetValueForProperty("HyperVHostId",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)this).HyperVHostId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMM fabric provider specific VM settings. + [System.ComponentModel.TypeConverter(typeof(VmmVirtualMachineDetailsTypeConverter))] + public partial interface IVmmVirtualMachineDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmVirtualMachineDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VmmVirtualMachineDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VmmVirtualMachineDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VmmVirtualMachineDetails.TypeConverter.cs index 90e114c1859c..12e9398c84df 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmVirtualMachineDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmVirtualMachineDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVmmVirtualMachineDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmVirtualMachineDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmVirtualMachineDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmVirtualMachineDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api202301/VmmVirtualMachineDetails.cs b/src/Migrate/generated/api/Models/Api202301/VmmVirtualMachineDetails.cs new file mode 100644 index 000000000000..7ccd44cd2ecb --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VmmVirtualMachineDetails.cs @@ -0,0 +1,120 @@ +// 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.Migrate.Models.Api202301 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + /// VMM fabric provider specific VM settings. + public partial class VmmVirtualMachineDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmVirtualMachineDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmVirtualMachineDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetails __hyperVVirtualMachineDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVVirtualMachineDetails(); + + /// The Last successful failover time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IDiskDetails[] DiskDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).DiskDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).DiskDetail = value ?? null /* arrayOf */; } + + /// The id of the object in fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string Generation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).Generation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).Generation = value ?? null; } + + /// + /// A value indicating whether the VM has a fibre channel adapter attached. String value of SrsDataContract.PresenceStatus + /// enum. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus? HasFibreChannelAdapter { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HasFibreChannelAdapter; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HasFibreChannelAdapter = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus)""); } + + /// + /// A value indicating whether the VM has a physical disk attached. String value of SrsDataContract.PresenceStatus enum. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus? HasPhysicalDisk { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HasPhysicalDisk; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HasPhysicalDisk = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus)""); } + + /// + /// A value indicating whether the VM has a shared VHD attached. String value of SrsDataContract.PresenceStatus enum. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus? HasSharedVhd { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HasSharedVhd; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HasSharedVhd = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.PresenceStatus)""); } + + /// The Id of the hyper-v host in fabric. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string HyperVHostId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HyperVHostId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).HyperVHostId = value ?? null; } + + /// Gets the class type. Overridden in derived classes. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)__hyperVVirtualMachineDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IConfigurationSettingsInternal)__hyperVVirtualMachineDetails).InstanceType = value ; } + + /// The Last replication time. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOSDetails OSDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetail = value ?? null /* model class */; } + + /// The OSEdition. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string OSDetailOsedition { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsedition; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsedition = value ?? null; } + + /// The OS Major Version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string OSDetailOsmajorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsmajorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsmajorVersion = value ?? null; } + + /// The OS Minor Version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string OSDetailOsminorVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsminorVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsminorVersion = value ?? null; } + + /// VM Disk details. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string OSDetailOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOstype; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOstype = value ?? null; } + + /// The OS Version. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string OSDetailOsversion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsversion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailOsversion = value ?? null; } + + /// Product type. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string OSDetailProductType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailProductType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).OSDetailProductType = value ?? null; } + + /// The source id of the object. + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] + public string SourceItemId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).SourceItemId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal)__hyperVVirtualMachineDetails).SourceItemId = value ?? null; } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__hyperVVirtualMachineDetails), __hyperVVirtualMachineDetails); + await eventListener.AssertObjectIsValid(nameof(__hyperVVirtualMachineDetails), __hyperVVirtualMachineDetails); + } + + /// Creates an new instance. + public VmmVirtualMachineDetails() + { + + } + } + /// VMM fabric provider specific VM settings. + public partial interface IVmmVirtualMachineDetails : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetails + { + + } + /// VMM fabric provider specific VM settings. + internal partial interface IVmmVirtualMachineDetailsInternal : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IHyperVVirtualMachineDetailsInternal + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VmmVirtualMachineDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VmmVirtualMachineDetails.json.cs similarity index 94% rename from src/Migrate/generated/api/Models/Api20220501/VmmVirtualMachineDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VmmVirtualMachineDetails.json.cs index 7373c77775a1..604aa21a5376 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmmVirtualMachineDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmmVirtualMachineDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VmmVirtualMachineDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmVirtualMachineDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmVirtualMachineDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmVirtualMachineDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmVirtualMachineDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmmVirtualMachineDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmmVirtualMachineDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VmmVirtualMachineDetails(json) : null; } @@ -101,7 +101,7 @@ internal VmmVirtualMachineDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Run { return; } - __hyperVVirtualMachineDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.HyperVVirtualMachineDetails(json); + __hyperVVirtualMachineDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.HyperVVirtualMachineDetails(json); AfterFromJson(json); } } diff --git a/src/Migrate/generated/api/Models/Api202301/VmwareCbtPolicyDetails.PowerShell.cs b/src/Migrate/generated/api/Models/Api202301/VmwareCbtPolicyDetails.PowerShell.cs new file mode 100644 index 000000000000..2e3bd4e94c41 --- /dev/null +++ b/src/Migrate/generated/api/Models/Api202301/VmwareCbtPolicyDetails.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.Migrate.Models.Api202301 +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// VMware Cbt specific policy details. + [System.ComponentModel.TypeConverter(typeof(VmwareCbtPolicyDetailsTypeConverter))] + public partial class VmwareCbtPolicyDetails + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.Api202301.IVmwareCbtPolicyDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new VmwareCbtPolicyDetails(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.Migrate.Models.Api202301.IVmwareCbtPolicyDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new VmwareCbtPolicyDetails(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.Migrate.Models.Api202301.IVmwareCbtPolicyDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal VmwareCbtPolicyDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointHistoryInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetailsInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetailsInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, 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 VmwareCbtPolicyDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecoveryPointHistoryInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetailsInternal)this).RecoveryPointHistoryInMinute = (int?) content.GetValueForProperty("RecoveryPointHistoryInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetailsInternal)this).RecoveryPointHistoryInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("AppConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetailsInternal)this).AppConsistentFrequencyInMinute = (int?) content.GetValueForProperty("AppConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetailsInternal)this).AppConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CrashConsistentFrequencyInMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute = (int?) content.GetValueForProperty("CrashConsistentFrequencyInMinute",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetailsInternal)this).CrashConsistentFrequencyInMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("InstanceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType = (string) content.GetValueForProperty("InstanceType",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)this).InstanceType, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// VMware Cbt specific policy details. + [System.ComponentModel.TypeConverter(typeof(VmwareCbtPolicyDetailsTypeConverter))] + public partial interface IVmwareCbtPolicyDetails + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/Api20220501/VmwareCbtPolicyDetails.TypeConverter.cs b/src/Migrate/generated/api/Models/Api202301/VmwareCbtPolicyDetails.TypeConverter.cs similarity index 97% rename from src/Migrate/generated/api/Models/Api20220501/VmwareCbtPolicyDetails.TypeConverter.cs rename to src/Migrate/generated/api/Models/Api202301/VmwareCbtPolicyDetails.TypeConverter.cs index 36e989ebc306..c1402fbb4fe2 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmwareCbtPolicyDetails.TypeConverter.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmwareCbtPolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.Api20220501.IVmwareCbtPolicyDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmwareCbtPolicyDetails.cs b/src/Migrate/generated/api/Models/Api202301/VmwareCbtPolicyDetails.cs similarity index 89% rename from src/Migrate/generated/api/Models/Api20220501/VmwareCbtPolicyDetails.cs rename to src/Migrate/generated/api/Models/Api202301/VmwareCbtPolicyDetails.cs index 332a515ef6b0..d58c70ccb1fc 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmwareCbtPolicyDetails.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmwareCbtPolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// VMware Cbt specific policy details. public partial class VmwareCbtPolicyDetails : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetails, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetails, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(); /// Backing field for property. private int? _appConsistentFrequencyInMinute; @@ -35,7 +35,7 @@ public partial class VmwareCbtPolicyDetails : /// Gets the class type. Overridden in derived classes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Inherited)] - public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } + public string InstanceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal)__policyProviderSpecificDetails).InstanceType = value ; } /// Backing field for property. private int? _recoveryPointHistoryInMinute; @@ -65,7 +65,7 @@ public VmwareCbtPolicyDetails() /// VMware Cbt specific policy details. public partial interface IVmwareCbtPolicyDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetails + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetails { /// The app consistent snapshot frequency in minutes. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( @@ -95,7 +95,7 @@ public partial interface IVmwareCbtPolicyDetails : } /// VMware Cbt specific policy details. internal partial interface IVmwareCbtPolicyDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificDetailsInternal { /// The app consistent snapshot frequency in minutes. int? AppConsistentFrequencyInMinute { get; set; } diff --git a/src/Migrate/generated/api/Models/Api20220501/VmwareCbtPolicyDetails.json.cs b/src/Migrate/generated/api/Models/Api202301/VmwareCbtPolicyDetails.json.cs similarity index 95% rename from src/Migrate/generated/api/Models/Api20220501/VmwareCbtPolicyDetails.json.cs rename to src/Migrate/generated/api/Models/Api202301/VmwareCbtPolicyDetails.json.cs index 049faa6bb922..d6572ab7cd37 100644 --- a/src/Migrate/generated/api/Models/Api20220501/VmwareCbtPolicyDetails.json.cs +++ b/src/Migrate/generated/api/Models/Api202301/VmwareCbtPolicyDetails.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.Migrate.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VmwareCbtPolicyDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVmwareCbtPolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVmwareCbtPolicyDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new VmwareCbtPolicyDetails(json) : null; } @@ -104,7 +104,7 @@ internal VmwareCbtPolicyDetails(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runti { return; } - __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PolicyProviderSpecificDetails(json); + __policyProviderSpecificDetails = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PolicyProviderSpecificDetails(json); {_recoveryPointHistoryInMinute = If( json?.PropertyT("recoveryPointHistoryInMinutes"), out var __jsonRecoveryPointHistoryInMinutes) ? (int?)__jsonRecoveryPointHistoryInMinutes : RecoveryPointHistoryInMinute;} {_appConsistentFrequencyInMinute = If( json?.PropertyT("appConsistentFrequencyInMinutes"), out var __jsonAppConsistentFrequencyInMinutes) ? (int?)__jsonAppConsistentFrequencyInMinutes : AppConsistentFrequencyInMinute;} {_crashConsistentFrequencyInMinute = If( json?.PropertyT("crashConsistentFrequencyInMinutes"), out var __jsonCrashConsistentFrequencyInMinutes) ? (int?)__jsonCrashConsistentFrequencyInMinutes : CrashConsistentFrequencyInMinute;} diff --git a/src/Migrate/generated/api/Models/MigrateIdentity.PowerShell.cs b/src/Migrate/generated/api/Models/MigrateIdentity.PowerShell.cs index c62f5fdecc60..7edf21b59f6c 100644 --- a/src/Migrate/generated/api/Models/MigrateIdentity.PowerShell.cs +++ b/src/Migrate/generated/api/Models/MigrateIdentity.PowerShell.cs @@ -208,10 +208,6 @@ internal MigrateIdentity(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).ReplicatedProtectedItemName = (string) content.GetValueForProperty("ReplicatedProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).ReplicatedProtectedItemName, global::System.Convert.ToString); } - if (content.Contains("ReplicationProtectedItemName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).ReplicationProtectedItemName = (string) content.GetValueForProperty("ReplicationProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).ReplicationProtectedItemName, global::System.Convert.ToString); - } if (content.Contains("RecoveryPointName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).RecoveryPointName = (string) content.GetValueForProperty("RecoveryPointName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).RecoveryPointName, global::System.Convert.ToString); @@ -377,10 +373,6 @@ internal MigrateIdentity(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).ReplicatedProtectedItemName = (string) content.GetValueForProperty("ReplicatedProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).ReplicatedProtectedItemName, global::System.Convert.ToString); } - if (content.Contains("ReplicationProtectedItemName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).ReplicationProtectedItemName = (string) content.GetValueForProperty("ReplicationProtectedItemName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).ReplicationProtectedItemName, global::System.Convert.ToString); - } if (content.Contains("RecoveryPointName")) { ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).RecoveryPointName = (string) content.GetValueForProperty("RecoveryPointName",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IMigrateIdentityInternal)this).RecoveryPointName, global::System.Convert.ToString); diff --git a/src/Migrate/generated/api/Models/MigrateIdentity.cs b/src/Migrate/generated/api/Models/MigrateIdentity.cs index cb17ce47e265..a8bbd22eea62 100644 --- a/src/Migrate/generated/api/Models/MigrateIdentity.cs +++ b/src/Migrate/generated/api/Models/MigrateIdentity.cs @@ -201,13 +201,6 @@ public partial class MigrateIdentity : [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] public string ReplicatedProtectedItemName { get => this._replicatedProtectedItemName; set => this._replicatedProtectedItemName = value; } - /// Backing field for property. - private string _replicationProtectedItemName; - - /// The name of the protected item on which the agent is to be updated. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] - public string ReplicationProtectedItemName { get => this._replicationProtectedItemName; set => this._replicationProtectedItemName = value; } - /// Backing field for property. private string _resourceGroupName; @@ -503,14 +496,6 @@ public partial interface IMigrateIdentity : SerializedName = @"replicatedProtectedItemName", PossibleTypes = new [] { typeof(string) })] string ReplicatedProtectedItemName { get; set; } - /// The name of the protected item on which the agent is to be updated. - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name of the protected item on which the agent is to be updated.", - SerializedName = @"replicationProtectedItemName", - PossibleTypes = new [] { typeof(string) })] - string ReplicationProtectedItemName { get; set; } /// The name of the resource group. The name is case insensitive. [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( Required = false, @@ -650,8 +635,6 @@ internal partial interface IMigrateIdentityInternal string RecoveryPointName { get; set; } /// Replication protected item name. string ReplicatedProtectedItemName { get; set; } - /// The name of the protected item on which the agent is to be updated. - string ReplicationProtectedItemName { get; set; } /// The name of the resource group. The name is case insensitive. string ResourceGroupName { get; set; } /// The name of the recovery services vault. diff --git a/src/Migrate/generated/api/Models/MigrateIdentity.json.cs b/src/Migrate/generated/api/Models/MigrateIdentity.json.cs index 6fede6aabf4c..a2da5235e62a 100644 --- a/src/Migrate/generated/api/Models/MigrateIdentity.json.cs +++ b/src/Migrate/generated/api/Models/MigrateIdentity.json.cs @@ -103,7 +103,6 @@ internal MigrateIdentity(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json {_migrationRecoveryPointName = If( json?.PropertyT("migrationRecoveryPointName"), out var __jsonMigrationRecoveryPointName) ? (string)__jsonMigrationRecoveryPointName : (string)MigrationRecoveryPointName;} {_protectableItemName = If( json?.PropertyT("protectableItemName"), out var __jsonProtectableItemName) ? (string)__jsonProtectableItemName : (string)ProtectableItemName;} {_replicatedProtectedItemName = If( json?.PropertyT("replicatedProtectedItemName"), out var __jsonReplicatedProtectedItemName) ? (string)__jsonReplicatedProtectedItemName : (string)ReplicatedProtectedItemName;} - {_replicationProtectedItemName = If( json?.PropertyT("replicationProtectedItemName"), out var __jsonReplicationProtectedItemName) ? (string)__jsonReplicationProtectedItemName : (string)ReplicationProtectedItemName;} {_recoveryPointName = If( json?.PropertyT("recoveryPointName"), out var __jsonRecoveryPointName) ? (string)__jsonRecoveryPointName : (string)RecoveryPointName;} {_mappingName = If( json?.PropertyT("mappingName"), out var __jsonMappingName) ? (string)__jsonMappingName : (string)MappingName;} {_providerName = If( json?.PropertyT("providerName"), out var __jsonProviderName) ? (string)__jsonProviderName : (string)ProviderName;} @@ -163,7 +162,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(M AddIf( null != (((object)this._migrationRecoveryPointName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._migrationRecoveryPointName.ToString()) : null, "migrationRecoveryPointName" ,container.Add ); AddIf( null != (((object)this._protectableItemName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._protectableItemName.ToString()) : null, "protectableItemName" ,container.Add ); AddIf( null != (((object)this._replicatedProtectedItemName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._replicatedProtectedItemName.ToString()) : null, "replicatedProtectedItemName" ,container.Add ); - AddIf( null != (((object)this._replicationProtectedItemName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._replicationProtectedItemName.ToString()) : null, "replicationProtectedItemName" ,container.Add ); AddIf( null != (((object)this._recoveryPointName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._recoveryPointName.ToString()) : null, "recoveryPointName" ,container.Add ); AddIf( null != (((object)this._mappingName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._mappingName.ToString()) : null, "mappingName" ,container.Add ); AddIf( null != (((object)this._providerName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonString(this._providerName.ToString()) : null, "providerName" ,container.Add ); diff --git a/src/Migrate/generated/api/Models/ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.PowerShell.cs b/src/Migrate/generated/api/Models/ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..8df5d66ade12 --- /dev/null +++ b/src/Migrate/generated/api/Models/ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeadersTypeConverter))] + public partial class ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders + { + + /// + /// 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); + + /// + /// 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.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders(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.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders(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.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeadersInternal)this).Location, 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 ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeadersInternal)this).Location, 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.Migrate.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeadersTypeConverter))] + public partial interface IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.TypeConverter.cs b/src/Migrate/generated/api/Models/ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..fb71be89e79e --- /dev/null +++ b/src/Migrate/generated/api/Models/ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,153 @@ +// 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.Migrate.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeadersTypeConverter : 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.Migrate.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Migrate.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.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.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/Migrate/generated/api/Models/ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.cs b/src/Migrate/generated/api/Models/ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..8cdef0781a8d --- /dev/null +++ b/src/Migrate/generated/api/Models/ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.cs @@ -0,0 +1,57 @@ +// 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.Migrate.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + public partial class ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Origin(Microsoft.Azure.PowerShell.Cmdlets.Migrate.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + } + + /// + /// Creates an new instance. + /// + public ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders() + { + + } + } + public partial interface IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + } + internal partial interface IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeadersInternal + + { + string Location { get; set; } + + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Models/ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.json.cs b/src/Migrate/generated/api/Models/ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..c8508903f18e --- /dev/null +++ b/src/Migrate/generated/api/Models/ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; + + public partial class ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders + { + + /// + /// 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.Migrate.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.Migrate.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.Migrate.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.Migrate.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.IReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json ? new ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject instance to deserialize from. + internal ReplicationProtectedItemsUpdateMobilityServiceAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Serializes this instance of into + /// a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Support/SecurityType.Completer.cs b/src/Migrate/generated/api/Support/SecurityType.Completer.cs new file mode 100644 index 000000000000..4241d72c50a8 --- /dev/null +++ b/src/Migrate/generated/api/Support/SecurityType.Completer.cs @@ -0,0 +1,43 @@ +// 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.Migrate.Support +{ + + /// The target VM security type. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityTypeTypeConverter))] + public partial struct SecurityType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "None".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'None'", "None", global::System.Management.Automation.CompletionResultType.ParameterValue, "None"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "TrustedLaunch".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'TrustedLaunch'", "TrustedLaunch", global::System.Management.Automation.CompletionResultType.ParameterValue, "TrustedLaunch"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "ConfidentialVM".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'ConfidentialVM'", "ConfidentialVM", global::System.Management.Automation.CompletionResultType.ParameterValue, "ConfidentialVM"); + } + } + } +} \ No newline at end of file diff --git a/src/Migrate/generated/api/Support/SecurityType.TypeConverter.cs b/src/Migrate/generated/api/Support/SecurityType.TypeConverter.cs new file mode 100644 index 000000000000..94afe7d9e327 --- /dev/null +++ b/src/Migrate/generated/api/Support/SecurityType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support +{ + + /// The target VM security type. + public partial class SecurityTypeTypeConverter : + 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) => true; + + /// + /// 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 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) => SecurityType.CreateFrom(sourceValue); + + /// 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/Migrate/generated/api/Support/SecurityType.cs b/src/Migrate/generated/api/Support/SecurityType.cs new file mode 100644 index 000000000000..9876aa7fbef9 --- /dev/null +++ b/src/Migrate/generated/api/Support/SecurityType.cs @@ -0,0 +1,100 @@ +// 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.Migrate.Support +{ + + /// The target VM security type. + public partial struct SecurityType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType ConfidentialVM = @"ConfidentialVM"; + + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType None = @"None"; + + public static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType TrustedLaunch = @"TrustedLaunch"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to SecurityType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new SecurityType(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type SecurityType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type SecurityType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is SecurityType && Equals((SecurityType)obj); + } + + /// Returns hashCode for enum SecurityType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private SecurityType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for SecurityType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to SecurityType + /// the value to convert to an instance of . + + public static implicit operator SecurityType(string value) + { + return new SecurityType(value); + } + + /// Implicit operator to convert SecurityType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType e) + { + return e._value; + } + + /// Overriding != operator for enum SecurityType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType e1, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum SecurityType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType e1, Microsoft.Azure.PowerShell.Cmdlets.Migrate.Support.SecurityType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateMachine_Get.cs b/src/Migrate/generated/cmdlets/GetAzMigrateMachine_Get.cs index 6c7dfdc7abfb..3b998695e978 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateMachine_Get.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateMachine_Get.cs @@ -43,9 +43,10 @@ public partial class GetAzMigrateMachine_Get : global::System.Management.Automat public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateMachine_List.cs b/src/Migrate/generated/cmdlets/GetAzMigrateMachine_List.cs index 870571863be7..eacd3c3960c6 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateMachine_List.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateMachine_List.cs @@ -63,9 +63,10 @@ public partial class GetAzMigrateMachine_List : global::System.Management.Automa public string ContinuationToken { get => this._continuationToken; set => this._continuationToken = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateOperation_List.cs b/src/Migrate/generated/cmdlets/GetAzMigrateOperation_List.cs index 916a70f11181..05aebc6def80 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateOperation_List.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateOperation_List.cs @@ -49,9 +49,10 @@ public partial class GetAzMigrateOperation_List : global::System.Management.Auto public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateOperation_List1.cs b/src/Migrate/generated/cmdlets/GetAzMigrateOperation_List1.cs index 856b9cba0b8c..7b9c7da09d86 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateOperation_List1.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateOperation_List1.cs @@ -43,9 +43,10 @@ public partial class GetAzMigrateOperation_List1 : global::System.Management.Aut public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateOperation_List2.cs b/src/Migrate/generated/cmdlets/GetAzMigrateOperation_List2.cs index a66419764f29..e8c1beae8c21 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateOperation_List2.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateOperation_List2.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateOperation_List2")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Operation to return the list of available operations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateOperation_List2 : global::System.Management.Automation.PSCmdlet, @@ -49,9 +49,10 @@ public partial class GetAzMigrateOperation_List2 : global::System.Management.Aut public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -138,12 +139,12 @@ public partial class GetAzMigrateOperation_List2 : global::System.Management.Aut /// 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.Migrate.Models.Api20220501.IOperationsDiscoveryCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollection /// 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) @@ -317,12 +318,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.Migrate.Models.Api20220501.IOperationsDiscoveryCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscoveryCollection /// 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 ) { diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateProject_Get.cs b/src/Migrate/generated/cmdlets/GetAzMigrateProject_Get.cs index e00823a5aa98..d3ec0c7f1010 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateProject_Get.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateProject_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMigrateProject_Get : global::System.Management.Automat public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationFabric_Get.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationFabric_Get.cs index 9530e483a5c0..9537d11af1db 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationFabric_Get.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationFabric_Get.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationFabric_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of an Azure Site Recovery fabric.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationFabric_Get : global::System.Management.Automation.PSCmdlet, @@ -42,9 +42,10 @@ public partial class GetAzMigrateReplicationFabric_Get : global::System.Manageme public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -173,12 +174,12 @@ public partial class GetAzMigrateReplicationFabric_Get : global::System.Manageme /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric /// 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) @@ -352,12 +353,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.Migrate.Models.Api20220501.IFabric + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric /// 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 ) { @@ -369,7 +370,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationFabric_List.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationFabric_List.cs index ea38094b76ae..815f3b5370fb 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationFabric_List.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationFabric_List.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationFabric_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets a list of the Azure Site Recovery fabrics in the vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationFabric_List : global::System.Management.Automation.PSCmdlet, @@ -48,9 +48,10 @@ public partial class GetAzMigrateReplicationFabric_List : global::System.Managem public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -151,12 +152,12 @@ public partial class GetAzMigrateReplicationFabric_List : global::System.Managem /// 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.Migrate.Models.Api20220501.IFabricCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollection /// 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) @@ -330,12 +331,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.Migrate.Models.Api20220501.IFabricCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabricCollection /// 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 ) { diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationJob_Get.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationJob_Get.cs index 0d9140002852..e6bdd443bc87 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationJob_Get.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationJob_Get.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationJob_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Get the details of an Azure Site Recovery job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationJob_Get : global::System.Management.Automation.PSCmdlet, @@ -43,9 +43,10 @@ public partial class GetAzMigrateReplicationJob_Get : global::System.Management. public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -160,12 +161,12 @@ public partial class GetAzMigrateReplicationJob_Get : global::System.Management. /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob /// 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) @@ -339,12 +340,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.Migrate.Models.Api20220501.IJob + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob /// 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 ) { @@ -356,7 +357,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationJob_List.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationJob_List.cs index 9704982175c9..5e2c2f63af07 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationJob_List.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationJob_List.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationJob_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the list of Azure Site Recovery Jobs for the vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationJob_List : global::System.Management.Automation.PSCmdlet, @@ -49,9 +49,10 @@ public partial class GetAzMigrateReplicationJob_List : global::System.Management public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -166,12 +167,12 @@ public partial class GetAzMigrateReplicationJob_List : global::System.Management /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJobCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollection /// 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) @@ -345,12 +346,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.Migrate.Models.Api20220501.IJobCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJobCollection /// 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 ) { diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationMigrationItem_Get.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationMigrationItem_Get.cs index 094ecfb85700..c9f4572c29dc 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationMigrationItem_Get.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationMigrationItem_Get.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationMigrationItem_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of a migration item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationMigrationItem_Get : global::System.Management.Automation.PSCmdlet, @@ -43,9 +43,10 @@ public partial class GetAzMigrateReplicationMigrationItem_Get : global::System.M public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -188,12 +189,12 @@ public partial class GetAzMigrateReplicationMigrationItem_Get : global::System.M /// 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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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) @@ -367,12 +368,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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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 ) { @@ -384,7 +385,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List.cs index cefadc2b9998..32f76167074c 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationMigrationItem_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the list of ASR migration items in the protection container.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationMigrationItem_List : global::System.Management.Automation.PSCmdlet, @@ -49,9 +49,10 @@ public partial class GetAzMigrateReplicationMigrationItem_List : global::System. public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -222,12 +223,12 @@ public partial class GetAzMigrateReplicationMigrationItem_List : global::System. /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollection /// 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) @@ -401,12 +402,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.Migrate.Models.Api20220501.IMigrationItemCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollection /// 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 ) { diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List1.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List1.cs index 893c3fc34379..70f5a24401ea 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List1.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationMigrationItem_List1.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationMigrationItem_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the list of migration items in the vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationMigrationItem_List1 : global::System.Management.Automation.PSCmdlet, @@ -49,9 +49,10 @@ public partial class GetAzMigrateReplicationMigrationItem_List1 : global::System public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -194,12 +195,12 @@ public partial class GetAzMigrateReplicationMigrationItem_List1 : global::System /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItemCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollection /// 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) @@ -373,12 +374,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.Migrate.Models.Api20220501.IMigrationItemCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItemCollection /// 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 ) { diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationPolicy_Get.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationPolicy_Get.cs index 5229dd2627b0..7ecde1e28dd2 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationPolicy_Get.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationPolicy_Get.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationPolicy_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of a replication policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationPolicy_Get : global::System.Management.Automation.PSCmdlet, @@ -42,9 +42,10 @@ public partial class GetAzMigrateReplicationPolicy_Get : global::System.Manageme public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -159,12 +160,12 @@ public partial class GetAzMigrateReplicationPolicy_Get : global::System.Manageme /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy /// 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) @@ -338,12 +339,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.Migrate.Models.Api20220501.IPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy /// 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 ) { @@ -355,7 +356,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationPolicy_List.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationPolicy_List.cs index 96941d81bce6..08035055c2d3 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationPolicy_List.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationPolicy_List.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationPolicy_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Lists the replication policies for a vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationPolicy_List : global::System.Management.Automation.PSCmdlet, @@ -48,9 +48,10 @@ public partial class GetAzMigrateReplicationPolicy_List : global::System.Managem public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -151,12 +152,12 @@ public partial class GetAzMigrateReplicationPolicy_List : global::System.Managem /// 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.Migrate.Models.Api20220501.IPolicyCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollection /// 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) @@ -330,12 +331,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.Migrate.Models.Api20220501.IPolicyCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyCollection /// 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 ) { diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_Get.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_Get.cs index 25df6d2dc2e8..b109c93ce6b3 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_Get.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_Get.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationProtectionContainerMapping_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of a protection container mapping.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationProtectionContainerMapping_Get : global::System.Management.Automation.PSCmdlet, @@ -42,9 +42,10 @@ public partial class GetAzMigrateReplicationProtectionContainerMapping_Get : glo public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -187,12 +188,12 @@ public partial class GetAzMigrateReplicationProtectionContainerMapping_Get : 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.Migrate.Models.Api20220501.IProtectionContainerMapping + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping /// 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) @@ -366,12 +367,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.Migrate.Models.Api20220501.IProtectionContainerMapping + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping /// 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 ) { @@ -383,7 +384,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List.cs index 06f72391416f..e8fae6b324b6 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [OpenAPI] ListByReplicationProtectionContainers=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationProtectionContainerMapping_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Lists the protection container mappings for a protection container.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationProtectionContainerMapping_List : global::System.Management.Automation.PSCmdlet, @@ -48,9 +48,10 @@ public partial class GetAzMigrateReplicationProtectionContainerMapping_List : gl public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -179,12 +180,12 @@ public partial class GetAzMigrateReplicationProtectionContainerMapping_List : gl /// 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.Migrate.Models.Api20220501.IProtectionContainerMappingCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollection /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -358,12 +359,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.Migrate.Models.Api20220501.IProtectionContainerMappingCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollection /// 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 ) { diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List1.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List1.cs index f38eeccf303a..6b830782c7e2 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List1.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainerMapping_List1.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionContainerMappings" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationProtectionContainerMapping_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Lists the protection container mappings in the vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationProtectionContainerMapping_List1 : global::System.Management.Automation.PSCmdlet, @@ -48,9 +48,10 @@ public partial class GetAzMigrateReplicationProtectionContainerMapping_List1 : g public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -151,12 +152,12 @@ public partial class GetAzMigrateReplicationProtectionContainerMapping_List1 : g /// 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.Migrate.Models.Api20220501.IProtectionContainerMappingCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollection /// 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) @@ -330,12 +331,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.Migrate.Models.Api20220501.IProtectionContainerMappingCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMappingCollection /// 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 ) { diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_Get.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_Get.cs index db49f66b4276..92c7103e402f 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_Get.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_Get.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationProtectionContainer_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of a protection container.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationProtectionContainer_Get : global::System.Management.Automation.PSCmdlet, @@ -42,9 +42,10 @@ public partial class GetAzMigrateReplicationProtectionContainer_Get : global::Sy public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -173,12 +174,12 @@ public partial class GetAzMigrateReplicationProtectionContainer_Get : global::Sy /// 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.Migrate.Models.Api20220501.IProtectionContainer + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer /// 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) @@ -352,12 +353,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.Migrate.Models.Api20220501.IProtectionContainer + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer /// 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 ) { @@ -369,7 +370,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List.cs index b55d0ee2a529..86b6b5b7d472 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [OpenAPI] ListByReplicationFabrics=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationProtectionContainer_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Lists the protection containers in the specified fabric.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationProtectionContainer_List : global::System.Management.Automation.PSCmdlet, @@ -48,9 +48,10 @@ public partial class GetAzMigrateReplicationProtectionContainer_List : global::S public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -165,12 +166,12 @@ public partial class GetAzMigrateReplicationProtectionContainer_List : global::S /// 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.Migrate.Models.Api20220501.IProtectionContainerCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollection /// 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) @@ -344,12 +345,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.Migrate.Models.Api20220501.IProtectionContainerCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollection /// 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 ) { diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List1.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List1.cs index 00f14656d7f6..7fbc8ad30a6f 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List1.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationProtectionContainer_List1.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionContainers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationProtectionContainer_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Lists the protection containers in a vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationProtectionContainer_List1 : global::System.Management.Automation.PSCmdlet, @@ -48,9 +48,10 @@ public partial class GetAzMigrateReplicationProtectionContainer_List1 : global:: public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -151,12 +152,12 @@ public partial class GetAzMigrateReplicationProtectionContainer_List1 : global:: /// 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.Migrate.Models.Api20220501.IProtectionContainerCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollection /// 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) @@ -330,12 +331,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.Migrate.Models.Api20220501.IProtectionContainerCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerCollection /// 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 ) { diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_Get.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_Get.cs index e5a7fc7466bd..89e35fdf6be7 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_Get.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_Get.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationRecoveryServicesProviders/{providerName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationRecoveryServicesProvider_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Gets the details of registered recovery services provider.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationRecoveryServicesProvider_Get : global::System.Management.Automation.PSCmdlet, @@ -42,9 +42,10 @@ public partial class GetAzMigrateReplicationRecoveryServicesProvider_Get : globa public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -173,12 +174,12 @@ public partial class GetAzMigrateReplicationRecoveryServicesProvider_Get : globa /// 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.Migrate.Models.Api20220501.IRecoveryServicesProvider + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider /// 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) @@ -352,12 +353,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.Migrate.Models.Api20220501.IRecoveryServicesProvider + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider /// 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 ) { @@ -369,7 +370,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_List.cs b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_List.cs index 9e33129b3f64..0b81ef92b45e 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_List.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateReplicationRecoveryServicesProvider_List.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationRecoveryServicesProviders" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzMigrateReplicationRecoveryServicesProvider_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"Lists the registered recovery services providers in the vault.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class GetAzMigrateReplicationRecoveryServicesProvider_List : global::System.Management.Automation.PSCmdlet, @@ -48,9 +48,10 @@ public partial class GetAzMigrateReplicationRecoveryServicesProvider_List : glob public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -151,12 +152,12 @@ public partial class GetAzMigrateReplicationRecoveryServicesProvider_List : glob /// 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.Migrate.Models.Api20220501.IRecoveryServicesProviderCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollection /// 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) @@ -330,12 +331,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.Migrate.Models.Api20220501.IRecoveryServicesProviderCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProviderCollection /// 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 ) { diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateRunAsAccount_Get.cs b/src/Migrate/generated/cmdlets/GetAzMigrateRunAsAccount_Get.cs index be6351a7592b..603c0750ceb5 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateRunAsAccount_Get.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateRunAsAccount_Get.cs @@ -56,9 +56,10 @@ public partial class GetAzMigrateRunAsAccount_Get : global::System.Management.Au public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateRunAsAccount_List.cs b/src/Migrate/generated/cmdlets/GetAzMigrateRunAsAccount_List.cs index 4d468ec745c0..ed8eae3781ab 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateRunAsAccount_List.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateRunAsAccount_List.cs @@ -48,9 +48,10 @@ public partial class GetAzMigrateRunAsAccount_List : global::System.Management.A public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateSite_Get.cs b/src/Migrate/generated/cmdlets/GetAzMigrateSite_Get.cs index 3ae4bdb161e3..a7896b1d800d 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateSite_Get.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateSite_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMigrateSite_Get : global::System.Management.Automation public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateSolution_Get.cs b/src/Migrate/generated/cmdlets/GetAzMigrateSolution_Get.cs index adb5b17a903d..16c2d2798675 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateSolution_Get.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateSolution_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMigrateSolution_Get : global::System.Management.Automa public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateVCenter_Get.cs b/src/Migrate/generated/cmdlets/GetAzMigrateVCenter_Get.cs index ca007308f68f..176a751d0206 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateVCenter_Get.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateVCenter_Get.cs @@ -43,9 +43,10 @@ public partial class GetAzMigrateVCenter_Get : global::System.Management.Automat public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateVCenter_GetViaIdentity.cs b/src/Migrate/generated/cmdlets/GetAzMigrateVCenter_GetViaIdentity.cs index f4393b8270dc..d052d66f2a9b 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateVCenter_GetViaIdentity.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateVCenter_GetViaIdentity.cs @@ -43,9 +43,10 @@ public partial class GetAzMigrateVCenter_GetViaIdentity : global::System.Managem public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/GetAzMigrateVCenter_List.cs b/src/Migrate/generated/cmdlets/GetAzMigrateVCenter_List.cs index 868d6a4218ef..4d7853414883 100644 --- a/src/Migrate/generated/cmdlets/GetAzMigrateVCenter_List.cs +++ b/src/Migrate/generated/cmdlets/GetAzMigrateVCenter_List.cs @@ -49,9 +49,10 @@ public partial class GetAzMigrateVCenter_List : global::System.Management.Automa public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpanded.cs b/src/Migrate/generated/cmdlets/InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpanded.cs index d9cc82ecd1ce..eb7f6eeb3a5b 100644 --- a/src/Migrate/generated/cmdlets/InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpanded.cs +++ b/src/Migrate/generated/cmdlets/InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzMigrateResyncReplicationMigrationItem_ResyncExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"The operation to resynchronize replication of an ASR migration item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpanded : global::System.Management.Automation.PSCmdlet, @@ -35,7 +35,7 @@ public partial class InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpande private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Resync input. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncInput _inputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResyncInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncInput _inputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResyncInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -51,9 +51,10 @@ public partial class InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpande public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -145,8 +146,8 @@ public partial class InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpande ReadOnly = false, Description = @"The provider specific details.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput) })] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput ProviderSpecificDetail { get => _inputBody.ProviderSpecificDetail ?? null /* object */; set => _inputBody.ProviderSpecificDetail = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput) })] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput ProviderSpecificDetail { get => _inputBody.ProviderSpecificDetail ?? null /* object */; set => _inputBody.ProviderSpecificDetail = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -215,12 +216,12 @@ public partial class InvokeAzMigrateResyncReplicationMigrationItem_ResyncExpande /// 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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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) @@ -453,12 +454,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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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 ) { @@ -470,7 +471,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateExpanded.cs b/src/Migrate/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateExpanded.cs index 537b426b7932..6552f732bfb2 100644 --- a/src/Migrate/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateExpanded.cs +++ b/src/Migrate/generated/cmdlets/MoveAzMigrateReplicationMigrationItem_MigrateExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Move, @"AzMigrateReplicationMigrationItem_MigrateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"The operation to initiate migration of the item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class MoveAzMigrateReplicationMigrationItem_MigrateExpanded : global::System.Management.Automation.PSCmdlet, @@ -35,7 +35,7 @@ public partial class MoveAzMigrateReplicationMigrationItem_MigrateExpanded : glo private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Input for migrate. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateInput _migrateInputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.MigrateInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateInput _migrateInputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.MigrateInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -51,9 +51,10 @@ public partial class MoveAzMigrateReplicationMigrationItem_MigrateExpanded : glo public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -145,8 +146,8 @@ public partial class MoveAzMigrateReplicationMigrationItem_MigrateExpanded : glo ReadOnly = false, Description = @"The provider specific details.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput) })] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput ProviderSpecificDetail { get => _migrateInputBody.ProviderSpecificDetail ?? null /* object */; set => _migrateInputBody.ProviderSpecificDetail = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput) })] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput ProviderSpecificDetail { get => _migrateInputBody.ProviderSpecificDetail ?? null /* object */; set => _migrateInputBody.ProviderSpecificDetail = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -215,12 +216,12 @@ public partial class MoveAzMigrateReplicationMigrationItem_MigrateExpanded : 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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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) @@ -451,12 +452,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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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 ) { @@ -468,7 +469,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateExpanded.cs b/src/Migrate/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateExpanded.cs index 4acb3d38e701..b8c41f19193b 100644 --- a/src/Migrate/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateExpanded.cs +++ b/src/Migrate/generated/cmdlets/NewAzMigrateReplicationMigrationItem_CreateExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMigrateReplicationMigrationItem_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"The operation to create an ASR migration item (enable migration).")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class NewAzMigrateReplicationMigrationItem_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -35,7 +35,7 @@ public partial class NewAzMigrateReplicationMigrationItem_CreateExpanded : globa private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Enable migration input. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationInput _inputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.EnableMigrationInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationInput _inputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.EnableMigrationInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -51,9 +51,10 @@ public partial class NewAzMigrateReplicationMigrationItem_CreateExpanded : globa public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -156,8 +157,8 @@ public partial class NewAzMigrateReplicationMigrationItem_CreateExpanded : globa ReadOnly = false, Description = @"The provider specific details.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput) })] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput ProviderSpecificDetail { get => _inputBody.ProviderSpecificDetail ?? null /* object */; set => _inputBody.ProviderSpecificDetail = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput) })] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput ProviderSpecificDetail { get => _inputBody.ProviderSpecificDetail ?? null /* object */; set => _inputBody.ProviderSpecificDetail = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -226,12 +227,12 @@ public partial class NewAzMigrateReplicationMigrationItem_CreateExpanded : globa /// 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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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 +463,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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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 +480,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateExpanded.cs b/src/Migrate/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateExpanded.cs index 99091261b38f..57248ecf9c03 100644 --- a/src/Migrate/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateExpanded.cs +++ b/src/Migrate/generated/cmdlets/NewAzMigrateReplicationPolicy_CreateExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMigrateReplicationPolicy_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"The operation to create a replication policy.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class NewAzMigrateReplicationPolicy_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -34,7 +34,7 @@ public partial class NewAzMigrateReplicationPolicy_CreateExpanded : global::Syst private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Protection Policy input. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreatePolicyInput _inputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreatePolicyInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreatePolicyInput _inputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreatePolicyInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -50,9 +50,10 @@ public partial class NewAzMigrateReplicationPolicy_CreateExpanded : global::Syst public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -116,8 +117,8 @@ public partial class NewAzMigrateReplicationPolicy_CreateExpanded : global::Syst ReadOnly = false, Description = @"The ReplicationProviderSettings.", SerializedName = @"providerSpecificInput", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput) })] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput ProviderSpecificInput { get => _inputBody.ProviderSpecificInput ?? null /* object */; set => _inputBody.ProviderSpecificInput = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput) })] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput ProviderSpecificInput { get => _inputBody.ProviderSpecificInput ?? null /* object */; set => _inputBody.ProviderSpecificInput = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -186,12 +187,12 @@ public partial class NewAzMigrateReplicationPolicy_CreateExpanded : global::Syst /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy /// 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) @@ -420,12 +421,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy /// 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 ) { @@ -437,7 +438,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateExpanded.cs b/src/Migrate/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateExpanded.cs index b2d509da811d..765ae790190d 100644 --- a/src/Migrate/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateExpanded.cs +++ b/src/Migrate/generated/cmdlets/NewAzMigrateReplicationProtectionContainerMapping_CreateExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMigrateReplicationProtectionContainerMapping_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"The operation to create a protection container mapping.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class NewAzMigrateReplicationProtectionContainerMapping_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -34,7 +34,7 @@ public partial class NewAzMigrateReplicationProtectionContainerMapping_CreateExp private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Configure pairing input. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ICreateProtectionContainerMappingInput _creationInputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.CreateProtectionContainerMappingInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ICreateProtectionContainerMappingInput _creationInputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.CreateProtectionContainerMappingInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -50,9 +50,10 @@ public partial class NewAzMigrateReplicationProtectionContainerMapping_CreateExp public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -155,8 +156,8 @@ public partial class NewAzMigrateReplicationProtectionContainerMapping_CreateExp ReadOnly = false, Description = @"Provider specific input for pairing.", SerializedName = @"providerSpecificInput", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput) })] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput ProviderSpecificInput { get => _creationInputBody.ProviderSpecificInput ?? null /* object */; set => _creationInputBody.ProviderSpecificInput = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput) })] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput ProviderSpecificInput { get => _creationInputBody.ProviderSpecificInput ?? null /* object */; set => _creationInputBody.ProviderSpecificInput = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -236,12 +237,12 @@ public partial class NewAzMigrateReplicationProtectionContainerMapping_CreateExp /// 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.Migrate.Models.Api20220501.IProtectionContainerMapping + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping /// 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) @@ -475,12 +476,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.Migrate.Models.Api20220501.IProtectionContainerMapping + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping /// 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 ) { @@ -492,7 +493,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/RegisterAzMigrateProjectTool_RegisterExpanded.cs b/src/Migrate/generated/cmdlets/RegisterAzMigrateProjectTool_RegisterExpanded.cs index 5cc3bd5113a2..30f17ed38f44 100644 --- a/src/Migrate/generated/cmdlets/RegisterAzMigrateProjectTool_RegisterExpanded.cs +++ b/src/Migrate/generated/cmdlets/RegisterAzMigrateProjectTool_RegisterExpanded.cs @@ -61,9 +61,10 @@ public partial class RegisterAzMigrateProjectTool_RegisterExpanded : global::Sys public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/RemoveAzMigrateProject_Delete.cs b/src/Migrate/generated/cmdlets/RemoveAzMigrateProject_Delete.cs index 1cb541322e2d..ec2ef48dabda 100644 --- a/src/Migrate/generated/cmdlets/RemoveAzMigrateProject_Delete.cs +++ b/src/Migrate/generated/cmdlets/RemoveAzMigrateProject_Delete.cs @@ -58,9 +58,10 @@ public partial class RemoveAzMigrateProject_Delete : global::System.Management.A public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/RemoveAzMigrateReplicationMigrationItem_Delete.cs b/src/Migrate/generated/cmdlets/RemoveAzMigrateReplicationMigrationItem_Delete.cs index c45ddde6f880..e2f9de9230a4 100644 --- a/src/Migrate/generated/cmdlets/RemoveAzMigrateReplicationMigrationItem_Delete.cs +++ b/src/Migrate/generated/cmdlets/RemoveAzMigrateReplicationMigrationItem_Delete.cs @@ -48,9 +48,10 @@ public partial class RemoveAzMigrateReplicationMigrationItem_Delete : global::Sy public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeExpanded.cs b/src/Migrate/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeExpanded.cs index f540b5273e36..5cf83564fe95 100644 --- a/src/Migrate/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeExpanded.cs +++ b/src/Migrate/generated/cmdlets/ResumeAzMigrateReplicationMigrationItemReplication_ResumeExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Resume, @"AzMigrateReplicationMigrationItemReplication_ResumeExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"The operation to initiate resume replication of the item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class ResumeAzMigrateReplicationMigrationItemReplication_ResumeExpanded : global::System.Management.Automation.PSCmdlet, @@ -35,7 +35,7 @@ public partial class ResumeAzMigrateReplicationMigrationItemReplication_ResumeEx private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Resume replication input. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationInput _resumeReplicationInputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ResumeReplicationInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationInput _resumeReplicationInputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ResumeReplicationInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -51,9 +51,10 @@ public partial class ResumeAzMigrateReplicationMigrationItemReplication_ResumeEx public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -145,8 +146,8 @@ public partial class ResumeAzMigrateReplicationMigrationItemReplication_ResumeEx ReadOnly = false, Description = @"The provider specific input for resume replication.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput) })] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput ProviderSpecificDetail { get => _resumeReplicationInputBody.ProviderSpecificDetail ?? null /* object */; set => _resumeReplicationInputBody.ProviderSpecificDetail = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput) })] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput ProviderSpecificDetail { get => _resumeReplicationInputBody.ProviderSpecificDetail ?? null /* object */; set => _resumeReplicationInputBody.ProviderSpecificDetail = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -215,12 +216,12 @@ public partial class ResumeAzMigrateReplicationMigrationItemReplication_ResumeEx /// 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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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) @@ -454,12 +455,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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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 ) { @@ -471,7 +472,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/SetAzMigrateProject_PutExpanded.cs b/src/Migrate/generated/cmdlets/SetAzMigrateProject_PutExpanded.cs index b5575ea9b32c..35136879a12e 100644 --- a/src/Migrate/generated/cmdlets/SetAzMigrateProject_PutExpanded.cs +++ b/src/Migrate/generated/cmdlets/SetAzMigrateProject_PutExpanded.cs @@ -62,9 +62,10 @@ public partial class SetAzMigrateProject_PutExpanded : global::System.Management public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/SetAzMigrateSite_Update.cs b/src/Migrate/generated/cmdlets/SetAzMigrateSite_Update.cs index c7fd6d65bc10..e149d3c9c228 100644 --- a/src/Migrate/generated/cmdlets/SetAzMigrateSite_Update.cs +++ b/src/Migrate/generated/cmdlets/SetAzMigrateSite_Update.cs @@ -56,9 +56,10 @@ public partial class SetAzMigrateSite_Update : global::System.Management.Automat public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/SetAzMigrateSite_UpdateExpanded.cs b/src/Migrate/generated/cmdlets/SetAzMigrateSite_UpdateExpanded.cs index 37fc9b1470db..9b90f60acc77 100644 --- a/src/Migrate/generated/cmdlets/SetAzMigrateSite_UpdateExpanded.cs +++ b/src/Migrate/generated/cmdlets/SetAzMigrateSite_UpdateExpanded.cs @@ -79,9 +79,10 @@ public partial class SetAzMigrateSite_UpdateExpanded : global::System.Management public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] diff --git a/src/Migrate/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseExpanded.cs b/src/Migrate/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseExpanded.cs index ff495ee70f96..bb9e56c1afd5 100644 --- a/src/Migrate/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseExpanded.cs +++ b/src/Migrate/generated/cmdlets/SuspendAzMigrateReplicationMigrationItemReplication_PauseExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Suspend, @"AzMigrateReplicationMigrationItemReplication_PauseExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"The operation to initiate pause replication of the item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class SuspendAzMigrateReplicationMigrationItemReplication_PauseExpanded : global::System.Management.Automation.PSCmdlet, @@ -35,7 +35,7 @@ public partial class SuspendAzMigrateReplicationMigrationItemReplication_PauseEx private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Pause replication input. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPauseReplicationInput _pauseReplicationInputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.PauseReplicationInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPauseReplicationInput _pauseReplicationInputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.PauseReplicationInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -51,9 +51,10 @@ public partial class SuspendAzMigrateReplicationMigrationItemReplication_PauseEx public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -215,12 +216,12 @@ public partial class SuspendAzMigrateReplicationMigrationItemReplication_PauseEx /// 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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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) @@ -454,12 +455,12 @@ public SuspendAzMigrateReplicationMigrationItemReplication_PauseExpanded() /// 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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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 ) { @@ -471,7 +472,7 @@ public SuspendAzMigrateReplicationMigrationItemReplication_PauseExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExpanded.cs b/src/Migrate/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExpanded.cs index 9d4e6aa0547b..ed709c9a9e2c 100644 --- a/src/Migrate/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExpanded.cs +++ b/src/Migrate/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzMigrateReplicationMigrationItemMigrateCleanup_TestExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"The operation to initiate test migrate cleanup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExpanded : global::System.Management.Automation.PSCmdlet, @@ -35,7 +35,7 @@ public partial class TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExp private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Input for test migrate cleanup. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateCleanupInput _testMigrateCleanupInputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateCleanupInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateCleanupInput _testMigrateCleanupInputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateCleanupInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -62,9 +62,10 @@ public partial class TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExp public string Comment { get => _testMigrateCleanupInputBody.Comment ?? null; set => _testMigrateCleanupInputBody.Comment = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -215,12 +216,12 @@ public partial class TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExp /// 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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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) @@ -454,12 +455,12 @@ public TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExpanded() /// 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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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 ) { @@ -471,7 +472,7 @@ public TestAzMigrateReplicationMigrationItemMigrateCleanup_TestExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestExpanded.cs b/src/Migrate/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestExpanded.cs index c71449217d4b..268d9e086f6b 100644 --- a/src/Migrate/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestExpanded.cs +++ b/src/Migrate/generated/cmdlets/TestAzMigrateReplicationMigrationItemMigrate_TestExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzMigrateReplicationMigrationItemMigrate_TestExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"The operation to initiate test migration of the item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class TestAzMigrateReplicationMigrationItemMigrate_TestExpanded : global::System.Management.Automation.PSCmdlet, @@ -35,7 +35,7 @@ public partial class TestAzMigrateReplicationMigrationItemMigrate_TestExpanded : private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Input for test migrate. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateInput _testMigrateInputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.TestMigrateInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateInput _testMigrateInputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.TestMigrateInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -51,9 +51,10 @@ public partial class TestAzMigrateReplicationMigrationItemMigrate_TestExpanded : public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -145,8 +146,8 @@ public partial class TestAzMigrateReplicationMigrationItemMigrate_TestExpanded : ReadOnly = false, Description = @"The provider specific details.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput) })] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput ProviderSpecificDetail { get => _testMigrateInputBody.ProviderSpecificDetail ?? null /* object */; set => _testMigrateInputBody.ProviderSpecificDetail = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput) })] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput ProviderSpecificDetail { get => _testMigrateInputBody.ProviderSpecificDetail ?? null /* object */; set => _testMigrateInputBody.ProviderSpecificDetail = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -215,12 +216,12 @@ public partial class TestAzMigrateReplicationMigrationItemMigrate_TestExpanded : /// 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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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) @@ -453,12 +454,12 @@ public TestAzMigrateReplicationMigrationItemMigrate_TestExpanded() /// 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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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 ) { @@ -470,7 +471,7 @@ public TestAzMigrateReplicationMigrationItemMigrate_TestExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem WriteObject((await response)); } } diff --git a/src/Migrate/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateExpanded.cs b/src/Migrate/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateExpanded.cs index 2345f96c926a..d4b3d5467864 100644 --- a/src/Migrate/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateExpanded.cs +++ b/src/Migrate/generated/cmdlets/UpdateAzMigrateReplicationMigrationItem_UpdateExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMigrateReplicationMigrationItem_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem))] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Description(@"The operation to update the recovery settings of an ASR migration item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Generated] public partial class UpdateAzMigrateReplicationMigrationItem_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -35,7 +35,7 @@ public partial class UpdateAzMigrateReplicationMigrationItem_UpdateExpanded : gl private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Update migration item input. - private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemInput _inputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.UpdateMigrationItemInput(); + private Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemInput _inputBody = new Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.UpdateMigrationItemInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -51,9 +51,10 @@ public partial class UpdateAzMigrateReplicationMigrationItem_UpdateExpanded : gl public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Migrate Client => Microsoft.Azure.PowerShell.Cmdlets.Migrate.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Migrate.ParameterCategory.Azure)] @@ -145,8 +146,8 @@ public partial class UpdateAzMigrateReplicationMigrationItem_UpdateExpanded : gl ReadOnly = false, Description = @"The provider specific input to update migration item.", SerializedName = @"providerSpecificDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput) })] - public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput ProviderSpecificDetail { get => _inputBody.ProviderSpecificDetail ?? null /* object */; set => _inputBody.ProviderSpecificDetail = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput) })] + public Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput ProviderSpecificDetail { get => _inputBody.ProviderSpecificDetail ?? null /* object */; set => _inputBody.ProviderSpecificDetail = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -215,12 +216,12 @@ public partial class UpdateAzMigrateReplicationMigrationItem_UpdateExpanded : gl /// 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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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) @@ -451,12 +452,12 @@ public UpdateAzMigrateReplicationMigrationItem_UpdateExpanded() /// 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.Migrate.Models.Api20220501.IMigrationItem + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem /// 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 ) { @@ -468,7 +469,7 @@ public UpdateAzMigrateReplicationMigrationItem_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem WriteObject((await response)); } } diff --git a/src/Migrate/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/Migrate/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index df87d03e3f6e..2f9a70ef6ab4 100644 --- a/src/Migrate/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/Migrate/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -199,7 +199,7 @@ private string GetTelemetry() { return $@" {Indent}{Indent}if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {{ -{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() {Indent}{Indent}}} {Indent}{Indent}$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId {Indent}{Indent}if ($preTelemetryId -eq '') {{ diff --git a/src/Migrate/generated/runtime/MessageAttributeHelper.cs b/src/Migrate/generated/runtime/MessageAttributeHelper.cs index b27d9da6ab81..d81a0e58ebc2 100644 --- a/src/Migrate/generated/runtime/MessageAttributeHelper.cs +++ b/src/Migrate/generated/runtime/MessageAttributeHelper.cs @@ -23,6 +23,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime using System.Threading.Tasks; public class MessageAttributeHelper { + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); public const string BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK = "https://aka.ms/azps-changewarnings"; public const string SUPPRESS_ERROR_OR_WARNING_MESSAGE_ENV_VARIABLE_NAME = "SuppressAzurePowerShellBreakingChangeWarnings"; @@ -52,7 +53,10 @@ public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, Inv //Do not process the attributes at runtime... The env variable to override the warning messages is set return; } - + if (IsAzure && invocationInfo.BoundParameters.ContainsKey("DefaultProfile")) + { + psCmdlet.WriteWarning("The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription."); + } List attributes = new List(GetAllBreakingChangeAttributesInType(commandInfo, invocationInfo, parameterSet)); StringBuilder sb = new StringBuilder(); Action appendBreakingChangeInfo = (string s) => sb.Append(s); diff --git a/src/Migrate/help/Get-AzMigrateJob.md b/src/Migrate/help/Get-AzMigrateJob.md index 624a09353631..2fc62cb4d429 100644 --- a/src/Migrate/help/Get-AzMigrateJob.md +++ b/src/Migrate/help/Get-AzMigrateJob.md @@ -173,7 +173,7 @@ Specifies the job object of the replicating server. To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob Parameter Sets: GetByInputObject Aliases: @@ -296,7 +296,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob ## NOTES diff --git a/src/Migrate/help/Get-AzMigrateProject.md b/src/Migrate/help/Get-AzMigrateProject.md index 523456157a23..2ebe29c426c9 100644 --- a/src/Migrate/help/Get-AzMigrateProject.md +++ b/src/Migrate/help/Get-AzMigrateProject.md @@ -38,7 +38,8 @@ Method to get a migrate project. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/Migrate/help/Get-AzMigrateReplicationFabric.md b/src/Migrate/help/Get-AzMigrateReplicationFabric.md index 201d21629fc5..70cc1712f6c0 100644 --- a/src/Migrate/help/Get-AzMigrateReplicationFabric.md +++ b/src/Migrate/help/Get-AzMigrateReplicationFabric.md @@ -88,7 +88,8 @@ Get a specific fabric ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -184,7 +185,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IFabric ## NOTES diff --git a/src/Migrate/help/Get-AzMigrateReplicationPolicy.md b/src/Migrate/help/Get-AzMigrateReplicationPolicy.md index 0512630fcea4..3f1cbeb300e0 100644 --- a/src/Migrate/help/Get-AzMigrateReplicationPolicy.md +++ b/src/Migrate/help/Get-AzMigrateReplicationPolicy.md @@ -61,7 +61,8 @@ Get a specific one. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -142,7 +143,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy ## NOTES diff --git a/src/Migrate/help/Get-AzMigrateReplicationProtectionContainer.md b/src/Migrate/help/Get-AzMigrateReplicationProtectionContainer.md index 6b44b146c3b5..5de5893871cd 100644 --- a/src/Migrate/help/Get-AzMigrateReplicationProtectionContainer.md +++ b/src/Migrate/help/Get-AzMigrateReplicationProtectionContainer.md @@ -65,7 +65,8 @@ Gets a specific one. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -161,7 +162,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainer ## NOTES diff --git a/src/Migrate/help/Get-AzMigrateReplicationProtectionContainerMapping.md b/src/Migrate/help/Get-AzMigrateReplicationProtectionContainerMapping.md index 5593bf7d33aa..014134790d83 100644 --- a/src/Migrate/help/Get-AzMigrateReplicationProtectionContainerMapping.md +++ b/src/Migrate/help/Get-AzMigrateReplicationProtectionContainerMapping.md @@ -53,7 +53,8 @@ Get a mapping detail. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -164,7 +165,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping ## NOTES diff --git a/src/Migrate/help/Get-AzMigrateReplicationRecoveryServicesProvider.md b/src/Migrate/help/Get-AzMigrateReplicationRecoveryServicesProvider.md index d6726547c86c..d4d1181355a0 100644 --- a/src/Migrate/help/Get-AzMigrateReplicationRecoveryServicesProvider.md +++ b/src/Migrate/help/Get-AzMigrateReplicationRecoveryServicesProvider.md @@ -46,7 +46,8 @@ List all. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -142,7 +143,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IRecoveryServicesProvider ## NOTES diff --git a/src/Migrate/help/Get-AzMigrateRunAsAccount.md b/src/Migrate/help/Get-AzMigrateRunAsAccount.md index 351cfd3615d8..e4738cd5aaeb 100644 --- a/src/Migrate/help/Get-AzMigrateRunAsAccount.md +++ b/src/Migrate/help/Get-AzMigrateRunAsAccount.md @@ -73,7 +73,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/Migrate/help/Get-AzMigrateServerReplication.md b/src/Migrate/help/Get-AzMigrateServerReplication.md index af1c895f9ee7..58c86d874ce4 100644 --- a/src/Migrate/help/Get-AzMigrateServerReplication.md +++ b/src/Migrate/help/Get-AzMigrateServerReplication.md @@ -267,7 +267,7 @@ Specifies the machine object of the replicating server. To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem Parameter Sets: GetByInputObject Aliases: @@ -405,7 +405,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem ## NOTES diff --git a/src/Migrate/help/Get-AzMigrateSite.md b/src/Migrate/help/Get-AzMigrateSite.md index ba5f153e0f21..be4c7512d304 100644 --- a/src/Migrate/help/Get-AzMigrateSite.md +++ b/src/Migrate/help/Get-AzMigrateSite.md @@ -39,7 +39,8 @@ Get site by name ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/Migrate/help/Get-AzMigrateSolution.md b/src/Migrate/help/Get-AzMigrateSolution.md index 59b37da8daf0..a81abfa8b9d6 100644 --- a/src/Migrate/help/Get-AzMigrateSolution.md +++ b/src/Migrate/help/Get-AzMigrateSolution.md @@ -38,7 +38,8 @@ Get Migrate project solution by name. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/Migrate/help/New-AzMigrateDiskMapping.md b/src/Migrate/help/New-AzMigrateDiskMapping.md index 748ad0d44e17..17a1669f5cfd 100644 --- a/src/Migrate/help/New-AzMigrateDiskMapping.md +++ b/src/Migrate/help/New-AzMigrateDiskMapping.md @@ -104,7 +104,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput ## NOTES diff --git a/src/Migrate/help/New-AzMigrateNicMapping.md b/src/Migrate/help/New-AzMigrateNicMapping.md index 2490f3310917..e782159a3e95 100644 --- a/src/Migrate/help/New-AzMigrateNicMapping.md +++ b/src/Migrate/help/New-AzMigrateNicMapping.md @@ -151,7 +151,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput ## NOTES diff --git a/src/Migrate/help/New-AzMigrateReplicationPolicy.md b/src/Migrate/help/New-AzMigrateReplicationPolicy.md index cd2c5c1e2f2c..6ce0136e748c 100644 --- a/src/Migrate/help/New-AzMigrateReplicationPolicy.md +++ b/src/Migrate/help/New-AzMigrateReplicationPolicy.md @@ -60,7 +60,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -109,7 +110,7 @@ The ReplicationProviderSettings. To construct, see NOTES section for PROVIDERSPECIFICINPUT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicyProviderSpecificInput +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicyProviderSpecificInput Parameter Sets: (All) Aliases: @@ -203,7 +204,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IPolicy ## NOTES diff --git a/src/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md b/src/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md index ea816171780e..b5d9223250ff 100644 --- a/src/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md +++ b/src/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md @@ -66,7 +66,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -160,7 +161,7 @@ Provider specific input for pairing. To construct, see NOTES section for PROVIDERSPECIFICINPUT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IReplicationProviderSpecificContainerMappingInput +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IReplicationProviderSpecificContainerMappingInput Parameter Sets: (All) Aliases: @@ -269,7 +270,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IProtectionContainerMapping ## NOTES diff --git a/src/Migrate/help/New-AzMigrateServerReplication.md b/src/Migrate/help/New-AzMigrateServerReplication.md index 84e6ac6b40fb..8841ad621738 100644 --- a/src/Migrate/help/New-AzMigrateServerReplication.md +++ b/src/Migrate/help/New-AzMigrateServerReplication.md @@ -171,7 +171,7 @@ Specifies the tag to be used for disk creation. To construct, see NOTES section for DISKTAG properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags Parameter Sets: (All) Aliases: @@ -187,7 +187,7 @@ Specifies the disks on the source server to be included for replication. To construct, see NOTES section for DISKTOINCLUDE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtDiskInput[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtDiskInput[] Parameter Sets: ByIdPowerUser, ByInputObjectPowerUser Aliases: @@ -265,7 +265,7 @@ Specifies the tag to be used for NIC creation. To construct, see NOTES section for NICTAG properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags Parameter Sets: (All) Aliases: @@ -506,7 +506,7 @@ Specifies the tag to be used for VM creation. To construct, see NOTES section for VMTAG properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags Parameter Sets: (All) Aliases: @@ -539,7 +539,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob ## NOTES diff --git a/src/Migrate/help/New-AzMigrateTestNicMapping.md b/src/Migrate/help/New-AzMigrateTestNicMapping.md index 45e5859407d9..c4d1003d0904 100644 --- a/src/Migrate/help/New-AzMigrateTestNicMapping.md +++ b/src/Migrate/help/New-AzMigrateTestNicMapping.md @@ -105,7 +105,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput ## NOTES diff --git a/src/Migrate/help/Register-AzMigrateProjectTool.md b/src/Migrate/help/Register-AzMigrateProjectTool.md index 6820626eb423..718e91b6a66e 100644 --- a/src/Migrate/help/Register-AzMigrateProjectTool.md +++ b/src/Migrate/help/Register-AzMigrateProjectTool.md @@ -53,7 +53,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/Migrate/help/Remove-AzMigrateProject.md b/src/Migrate/help/Remove-AzMigrateProject.md index 789326c77ed3..0360a8e9e339 100644 --- a/src/Migrate/help/Remove-AzMigrateProject.md +++ b/src/Migrate/help/Remove-AzMigrateProject.md @@ -51,7 +51,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/Migrate/help/Remove-AzMigrateServerReplication.md b/src/Migrate/help/Remove-AzMigrateServerReplication.md index ab11340f4c50..73dcb1f100b6 100644 --- a/src/Migrate/help/Remove-AzMigrateServerReplication.md +++ b/src/Migrate/help/Remove-AzMigrateServerReplication.md @@ -128,7 +128,7 @@ Specifies the machine object of the replicating server. To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem Parameter Sets: ByInputObjectVMwareCbt Aliases: @@ -177,7 +177,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob ## NOTES diff --git a/src/Migrate/help/Restart-AzMigrateServerReplication.md b/src/Migrate/help/Restart-AzMigrateServerReplication.md index efa570061b52..8a9747ef9d82 100644 --- a/src/Migrate/help/Restart-AzMigrateServerReplication.md +++ b/src/Migrate/help/Restart-AzMigrateServerReplication.md @@ -112,7 +112,7 @@ Specifies the machine object of the replicating server. To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem Parameter Sets: ByInputObjectVMwareCbt Aliases: @@ -161,7 +161,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob ## NOTES diff --git a/src/Migrate/help/Resume-AzMigrateServerReplication.md b/src/Migrate/help/Resume-AzMigrateServerReplication.md index 235c172a6fb7..ef857f4653ba 100644 --- a/src/Migrate/help/Resume-AzMigrateServerReplication.md +++ b/src/Migrate/help/Resume-AzMigrateServerReplication.md @@ -37,7 +37,7 @@ Resume-AzMigrateServerReplication -TargetObjectID "/Subscriptions/xxx-xxx-xxxxxx ```output ActivityId : 0b810233-b0aa-4a4c-a44e-bea4589c0513 ActivityId: ccb4889b-b9ec-4a76-af4d-4eb59c76ebac AllowedAction : {} -CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetails +CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails CustomDetailInstanceType : AsrJobDetails EndTime : Error : {} @@ -68,7 +68,7 @@ Resume-AzMigrateServerReplication -InputObject $obj ```output ActivityId : 0b810233-b0aa-4a4c-a44e-bea4589c0513 ActivityId: ccb4889b-b9ec-4a76-af4d-4eb59c76ebac AllowedAction : {} -CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetails +CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails CustomDetailInstanceType : AsrJobDetails EndTime : Error : {} @@ -128,7 +128,7 @@ The server object can be retrieved using the Get-AzMigrateServerReplication cmdl To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem Parameter Sets: ByInputObjectVMwareCbt Aliases: @@ -208,7 +208,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob ## NOTES diff --git a/src/Migrate/help/Set-AzMigrateDiskMapping.md b/src/Migrate/help/Set-AzMigrateDiskMapping.md index c46d8e122bc1..28affde7dad2 100644 --- a/src/Migrate/help/Set-AzMigrateDiskMapping.md +++ b/src/Migrate/help/Set-AzMigrateDiskMapping.md @@ -88,7 +88,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput ## NOTES diff --git a/src/Migrate/help/Set-AzMigrateServerReplication.md b/src/Migrate/help/Set-AzMigrateServerReplication.md index f71493005c1b..96c17f52af02 100644 --- a/src/Migrate/help/Set-AzMigrateServerReplication.md +++ b/src/Migrate/help/Set-AzMigrateServerReplication.md @@ -132,7 +132,7 @@ Updates the disk for the Azure VM to be created. To construct, see NOTES section for DISKTOUPDATE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtUpdateDiskInput[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtUpdateDiskInput[] Parameter Sets: (All) Aliases: @@ -149,7 +149,7 @@ The server object can be retrieved using the Get-AzMigrateServerReplication cmdl To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem Parameter Sets: ByInputObjectVMwareCbt Aliases: @@ -165,7 +165,7 @@ Updates the NIC for the Azure VM to be created. To construct, see NOTES section for NICTOUPDATE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[] Parameter Sets: (All) Aliases: @@ -363,7 +363,7 @@ Specifies the tag to be used for disk creation. To construct, see NOTES section for UPDATEDISKTAG properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetDiskTags +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetDiskTags Parameter Sets: (All) Aliases: @@ -394,7 +394,7 @@ Specifies the tag to be used for NIC creation. To construct, see NOTES section for UPDATENICTAG properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetNicTags +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetNicTags Parameter Sets: (All) Aliases: @@ -455,7 +455,7 @@ Specifies the tag to be used for VM creation. To construct, see NOTES section for UPDATEVMTAG properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtEnableMigrationInputTargetVmtags +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtEnableMigrationInputTargetVmtags Parameter Sets: (All) Aliases: @@ -488,7 +488,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob ## NOTES diff --git a/src/Migrate/help/Start-AzMigrateServerMigration.md b/src/Migrate/help/Start-AzMigrateServerMigration.md index 150cc97ebe69..75c29ae2bad6 100644 --- a/src/Migrate/help/Start-AzMigrateServerMigration.md +++ b/src/Migrate/help/Start-AzMigrateServerMigration.md @@ -14,14 +14,14 @@ Starts the migration for the replicating server. ### ByIDVMwareCbt (Default) ``` -Start-AzMigrateServerMigration -TargetObjectID [-SubscriptionId ] [-TurnOffSourceServer] - [-DefaultProfile ] [] +Start-AzMigrateServerMigration -TargetObjectID [-OsUpgradeVersion ] + [-SubscriptionId ] [-TurnOffSourceServer] [-DefaultProfile ] [] ``` ### ByInputObjectVMwareCbt ``` -Start-AzMigrateServerMigration -InputObject [-SubscriptionId ] [-TurnOffSourceServer] - [-DefaultProfile ] [] +Start-AzMigrateServerMigration -InputObject [-OsUpgradeVersion ] + [-SubscriptionId ] [-TurnOffSourceServer] [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -82,7 +82,7 @@ The server object can be retrieved using the Get-AzMigrateServerReplication cmdl To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem Parameter Sets: ByInputObjectVMwareCbt Aliases: @@ -93,6 +93,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -OsUpgradeVersion +Specifies the target version to which the Os has to be upgraded to. +The valid values can be selected from SupportedOSVersions retrieved using Get-AzMigrateServerReplication cmdlet. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Azure Subscription ID. @@ -146,7 +162,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob ## NOTES diff --git a/src/Migrate/help/Start-AzMigrateTestMigration.md b/src/Migrate/help/Start-AzMigrateTestMigration.md index 086635296176..c1f43066f6dc 100644 --- a/src/Migrate/help/Start-AzMigrateTestMigration.md +++ b/src/Migrate/help/Start-AzMigrateTestMigration.md @@ -15,15 +15,15 @@ Starts the test migration for the replicating server. ### ByIDVMwareCbt (Default) ``` Start-AzMigrateTestMigration -TargetObjectID -TestNetworkID - [-NicToUpdate ] [-SubscriptionId ] [-DefaultProfile ] - [] + [-NicToUpdate ] [-OsUpgradeVersion ] [-SubscriptionId ] + [-DefaultProfile ] [] ``` ### ByInputObjectVMwareCbt ``` Start-AzMigrateTestMigration -InputObject -TestNetworkID - [-NicToUpdate ] [-SubscriptionId ] [-DefaultProfile ] - [] + [-NicToUpdate ] [-OsUpgradeVersion ] [-SubscriptionId ] + [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -117,7 +117,7 @@ The server object can be retrieved using the Get-AzMigrateServerReplication cmdl To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem Parameter Sets: ByInputObjectVMwareCbt Aliases: @@ -133,7 +133,23 @@ Updates the NIC for the Azure VM to be created. To construct, see NOTES section for NICTOUPDATE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IVMwareCbtNicInput[] +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IVMwareCbtNicInput[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OsUpgradeVersion +Specifies the target version to which the Os has to be upgraded to. +The valid values can be selected from SupportedOSVersions retrieved using Get-AzMigrateServerReplication cmdlet. + +```yaml +Type: System.String Parameter Sets: (All) Aliases: @@ -197,7 +213,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob ## NOTES diff --git a/src/Migrate/help/Start-AzMigrateTestMigrationCleanup.md b/src/Migrate/help/Start-AzMigrateTestMigrationCleanup.md index d64e19a4d017..d8588039af10 100644 --- a/src/Migrate/help/Start-AzMigrateTestMigrationCleanup.md +++ b/src/Migrate/help/Start-AzMigrateTestMigrationCleanup.md @@ -117,7 +117,7 @@ The server object can be retrieved using the Get-AzMigrateServerReplication cmdl To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem Parameter Sets: ByInputObjectVMwareCbt Aliases: @@ -166,7 +166,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob ## NOTES diff --git a/src/Migrate/help/Suspend-AzMigrateServerReplication.md b/src/Migrate/help/Suspend-AzMigrateServerReplication.md index b75449b20a8f..c23e4f982a6e 100644 --- a/src/Migrate/help/Suspend-AzMigrateServerReplication.md +++ b/src/Migrate/help/Suspend-AzMigrateServerReplication.md @@ -37,7 +37,7 @@ Suspend-AzMigrateServerReplication -TargetObjectID "/Subscriptions/xxx-xxx-xxxxx ```output ActivityId : da61a495-48b7-40df-a251-f23f491b2566 ActivityId: e16e0301-be13-4c35-8242-1451cb057994 AllowedAction : {} -CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetails +CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails CustomDetailInstanceType : AsrJobDetails EndTime : Error : {} @@ -68,7 +68,7 @@ Suspend-AzMigrateServerReplication -InputObject $obj ```output ActivityId : da61a495-48b7-40df-a251-f23f491b2566 ActivityId: e16e0301-be13-4c35-8242-1451cb057994 AllowedAction : {} -CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.JobDetailsAffectedObjectDetails +CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails CustomDetailInstanceType : AsrJobDetails EndTime : Error : {} @@ -113,7 +113,7 @@ The server object can be retrieved using the Get-AzMigrateServerReplication cmdl To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Type: Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem Parameter Sets: ByInputObjectVMwareCbt Aliases: @@ -193,7 +193,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +### Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob ## NOTES diff --git a/src/Migrate/internal/Get-AzMigrateMachine.ps1 b/src/Migrate/internal/Get-AzMigrateMachine.ps1 index 7e4c68cae295..a12a294fd5f1 100644 --- a/src/Migrate/internal/Get-AzMigrateMachine.ps1 +++ b/src/Migrate/internal/Get-AzMigrateMachine.ps1 @@ -89,7 +89,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/Migrate/internal/Get-AzMigrateOperation.ps1 b/src/Migrate/internal/Get-AzMigrateOperation.ps1 index f165600e1f4b..184ef1c8012c 100644 --- a/src/Migrate/internal/Get-AzMigrateOperation.ps1 +++ b/src/Migrate/internal/Get-AzMigrateOperation.ps1 @@ -27,12 +27,12 @@ Get list of operations supported in the API. .Outputs Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IOperation .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigrateoperation #> function Get-AzMigrateOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IOperation], [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IOperation], [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List2', Mandatory)] @@ -53,7 +53,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/Migrate/internal/Get-AzMigrateReplicationJob.ps1 b/src/Migrate/internal/Get-AzMigrateReplicationJob.ps1 index ceb30722302b..f639fee87b3a 100644 --- a/src/Migrate/internal/Get-AzMigrateReplicationJob.ps1 +++ b/src/Migrate/internal/Get-AzMigrateReplicationJob.ps1 @@ -25,12 +25,12 @@ Get the details of an Azure Site Recovery job. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationjob #> function Get-AzMigrateReplicationJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -69,7 +69,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/Migrate/internal/Get-AzMigrateReplicationMigrationItem.ps1 b/src/Migrate/internal/Get-AzMigrateReplicationMigrationItem.ps1 index bc07eca44c83..440bff75256d 100644 --- a/src/Migrate/internal/Get-AzMigrateReplicationMigrationItem.ps1 +++ b/src/Migrate/internal/Get-AzMigrateReplicationMigrationItem.ps1 @@ -25,12 +25,12 @@ Gets the details of a migration item. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationmigrationitem #> function Get-AzMigrateReplicationMigrationItem { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -98,7 +98,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/Migrate/internal/Get-AzMigrateVCenter.ps1 b/src/Migrate/internal/Get-AzMigrateVCenter.ps1 index 02d776e99e59..dc5039405ef0 100644 --- a/src/Migrate/internal/Get-AzMigrateVCenter.ps1 +++ b/src/Migrate/internal/Get-AzMigrateVCenter.ps1 @@ -61,7 +61,6 @@ INPUTOBJECT : Identity Parameter [RecoveryPlanName ]: Name of the recovery plan. [RecoveryPointName ]: The recovery point name. [ReplicatedProtectedItemName ]: Replication protected item name. - [ReplicationProtectedItemName ]: The name of the protected item on which the agent is to be updated. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceName ]: The name of the recovery services vault. [SiteName ]: Site name. @@ -127,7 +126,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/Migrate/internal/Invoke-AzMigrateResyncReplicationMigrationItem.ps1 b/src/Migrate/internal/Invoke-AzMigrateResyncReplicationMigrationItem.ps1 index 859432aef8fa..200939e64267 100644 --- a/src/Migrate/internal/Invoke-AzMigrateResyncReplicationMigrationItem.ps1 +++ b/src/Migrate/internal/Invoke-AzMigrateResyncReplicationMigrationItem.ps1 @@ -25,7 +25,7 @@ The operation to resynchronize replication of an ASR migration item. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Notes COMPLEX PARAMETER PROPERTIES @@ -37,7 +37,7 @@ PROVIDERSPECIFICDETAIL : The provider specific det https://learn.microsoft.com/powershell/module/az.migrate/invoke-azmigrateresyncreplicationmigrationitem #> function Invoke-AzMigrateResyncReplicationMigrationItem { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='ResyncExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -79,7 +79,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput] # The provider specific details. # To construct, see NOTES section for PROVIDERSPECIFICDETAIL properties and create a hash table. ${ProviderSpecificDetail}, @@ -89,7 +89,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/Migrate/internal/Move-AzMigrateReplicationMigrationItem.ps1 b/src/Migrate/internal/Move-AzMigrateReplicationMigrationItem.ps1 index 3d311944a700..0ebbd2423b2c 100644 --- a/src/Migrate/internal/Move-AzMigrateReplicationMigrationItem.ps1 +++ b/src/Migrate/internal/Move-AzMigrateReplicationMigrationItem.ps1 @@ -25,7 +25,7 @@ The operation to initiate migration of the item. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Notes COMPLEX PARAMETER PROPERTIES @@ -37,7 +37,7 @@ PROVIDERSPECIFICDETAIL : The provider specific de https://learn.microsoft.com/powershell/module/az.migrate/move-azmigratereplicationmigrationitem #> function Move-AzMigrateReplicationMigrationItem { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='MigrateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -79,7 +79,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput] # The provider specific details. # To construct, see NOTES section for PROVIDERSPECIFICDETAIL properties and create a hash table. ${ProviderSpecificDetail}, @@ -89,7 +89,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/Migrate/internal/New-AzMigrateReplicationMigrationItem.ps1 b/src/Migrate/internal/New-AzMigrateReplicationMigrationItem.ps1 index bd257590ed6c..c7f69628aa71 100644 --- a/src/Migrate/internal/New-AzMigrateReplicationMigrationItem.ps1 +++ b/src/Migrate/internal/New-AzMigrateReplicationMigrationItem.ps1 @@ -25,7 +25,7 @@ The operation to create an ASR migration item (enable migration). {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Notes COMPLEX PARAMETER PROPERTIES @@ -37,7 +37,7 @@ PROVIDERSPECIFICDETAIL : The provider spe https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratereplicationmigrationitem #> function New-AzMigrateReplicationMigrationItem { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -85,7 +85,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput] # The provider specific details. # To construct, see NOTES section for PROVIDERSPECIFICDETAIL properties and create a hash table. ${ProviderSpecificDetail}, @@ -95,7 +95,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/Migrate/internal/ProxyCmdletDefinitions.ps1 b/src/Migrate/internal/ProxyCmdletDefinitions.ps1 index 36380306c9c0..22f2c5a40dda 100644 --- a/src/Migrate/internal/ProxyCmdletDefinitions.ps1 +++ b/src/Migrate/internal/ProxyCmdletDefinitions.ps1 @@ -89,7 +89,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -191,12 +192,12 @@ Get list of operations supported in the API. .Outputs Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IOperation .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigrateoperation #> function Get-AzMigrateOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IOperation], [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IOperationsDiscovery])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IOperation], [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IOperationsDiscovery])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List2', Mandatory)] @@ -217,7 +218,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -318,12 +320,12 @@ Get the details of an Azure Site Recovery job. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationjob #> function Get-AzMigrateReplicationJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IJob])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IJob])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -362,7 +364,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -462,12 +465,12 @@ Gets the details of a migration item. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Link https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationmigrationitem #> function Get-AzMigrateReplicationMigrationItem { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -535,7 +538,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -672,7 +676,6 @@ INPUTOBJECT : Identity Parameter [RecoveryPlanName ]: Name of the recovery plan. [RecoveryPointName ]: The recovery point name. [ReplicatedProtectedItemName ]: Replication protected item name. - [ReplicationProtectedItemName ]: The name of the protected item on which the agent is to be updated. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceName ]: The name of the recovery services vault. [SiteName ]: Site name. @@ -738,7 +741,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -839,7 +843,7 @@ The operation to resynchronize replication of an ASR migration item. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Notes COMPLEX PARAMETER PROPERTIES @@ -851,7 +855,7 @@ PROVIDERSPECIFICDETAIL : The provider specific det https://learn.microsoft.com/powershell/module/az.migrate/invoke-azmigrateresyncreplicationmigrationitem #> function Invoke-AzMigrateResyncReplicationMigrationItem { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='ResyncExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -893,7 +897,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResyncProviderSpecificInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResyncProviderSpecificInput] # The provider specific details. # To construct, see NOTES section for PROVIDERSPECIFICDETAIL properties and create a hash table. ${ProviderSpecificDetail}, @@ -903,7 +907,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1014,7 +1019,7 @@ The operation to initiate migration of the item. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Notes COMPLEX PARAMETER PROPERTIES @@ -1026,7 +1031,7 @@ PROVIDERSPECIFICDETAIL : The provider specific de https://learn.microsoft.com/powershell/module/az.migrate/move-azmigratereplicationmigrationitem #> function Move-AzMigrateReplicationMigrationItem { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='MigrateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1068,7 +1073,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrateProviderSpecificInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrateProviderSpecificInput] # The provider specific details. # To construct, see NOTES section for PROVIDERSPECIFICDETAIL properties and create a hash table. ${ProviderSpecificDetail}, @@ -1078,7 +1083,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1189,7 +1195,7 @@ The operation to create an ASR migration item (enable migration). {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Notes COMPLEX PARAMETER PROPERTIES @@ -1201,7 +1207,7 @@ PROVIDERSPECIFICDETAIL : The provider spe https://learn.microsoft.com/powershell/module/az.migrate/new-azmigratereplicationmigrationitem #> function New-AzMigrateReplicationMigrationItem { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1249,7 +1255,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IEnableMigrationProviderSpecificInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IEnableMigrationProviderSpecificInput] # The provider specific details. # To construct, see NOTES section for PROVIDERSPECIFICDETAIL properties and create a hash table. ${ProviderSpecificDetail}, @@ -1259,7 +1265,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1426,7 +1433,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1543,7 +1551,7 @@ The operation to initiate resume replication of the item. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Notes COMPLEX PARAMETER PROPERTIES @@ -1555,7 +1563,7 @@ PROVIDERSPECIFICDETAIL : The provider s https://learn.microsoft.com/powershell/module/az.migrate/resume-azmigratereplicationmigrationitemreplication #> function Resume-AzMigrateReplicationMigrationItemReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='ResumeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1597,7 +1605,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput] # The provider specific input for resume replication. # To construct, see NOTES section for PROVIDERSPECIFICDETAIL properties and create a hash table. ${ProviderSpecificDetail}, @@ -1607,7 +1615,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1791,7 +1800,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2038,7 +2048,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2138,12 +2149,12 @@ The operation to initiate pause replication of the item. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Link https://learn.microsoft.com/powershell/module/az.migrate/suspend-azmigratereplicationmigrationitemreplication #> function Suspend-AzMigrateReplicationMigrationItemReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='PauseExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -2194,7 +2205,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -2305,12 +2317,12 @@ The operation to initiate test migrate cleanup. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Link https://learn.microsoft.com/powershell/module/az.migrate/test-azmigratereplicationmigrationitemmigratecleanup #> function Test-AzMigrateReplicationMigrationItemMigrateCleanup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='TestExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -2361,7 +2373,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -2472,7 +2485,7 @@ The operation to initiate test migration of the item. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Notes COMPLEX PARAMETER PROPERTIES @@ -2484,7 +2497,7 @@ PROVIDERSPECIFICDETAIL : The provider specifi https://learn.microsoft.com/powershell/module/az.migrate/test-azmigratereplicationmigrationitemmigrate #> function Test-AzMigrateReplicationMigrationItemMigrate { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='TestExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -2526,7 +2539,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput] # The provider specific details. # To construct, see NOTES section for PROVIDERSPECIFICDETAIL properties and create a hash table. ${ProviderSpecificDetail}, @@ -2536,7 +2549,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -2647,7 +2661,7 @@ The operation to update the recovery settings of an ASR migration item. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Notes COMPLEX PARAMETER PROPERTIES @@ -2659,7 +2673,7 @@ PROVIDERSPECIFICDETAIL : The provider https://learn.microsoft.com/powershell/module/az.migrate/update-azmigratereplicationmigrationitem #> function Update-AzMigrateReplicationMigrationItem { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -2701,7 +2715,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput] # The provider specific input to update migration item. # To construct, see NOTES section for PROVIDERSPECIFICDETAIL properties and create a hash table. ${ProviderSpecificDetail}, @@ -2711,7 +2725,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/Migrate/internal/Remove-AzMigrateReplicationMigrationItem.ps1 b/src/Migrate/internal/Remove-AzMigrateReplicationMigrationItem.ps1 index e9a4c5705303..e584fcba63ad 100644 --- a/src/Migrate/internal/Remove-AzMigrateReplicationMigrationItem.ps1 +++ b/src/Migrate/internal/Remove-AzMigrateReplicationMigrationItem.ps1 @@ -81,7 +81,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/Migrate/internal/Resume-AzMigrateReplicationMigrationItemReplication.ps1 b/src/Migrate/internal/Resume-AzMigrateReplicationMigrationItemReplication.ps1 index 6df7b3f1253d..643c6b62333e 100644 --- a/src/Migrate/internal/Resume-AzMigrateReplicationMigrationItemReplication.ps1 +++ b/src/Migrate/internal/Resume-AzMigrateReplicationMigrationItemReplication.ps1 @@ -25,7 +25,7 @@ The operation to initiate resume replication of the item. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Notes COMPLEX PARAMETER PROPERTIES @@ -37,7 +37,7 @@ PROVIDERSPECIFICDETAIL : The provider s https://learn.microsoft.com/powershell/module/az.migrate/resume-azmigratereplicationmigrationitemreplication #> function Resume-AzMigrateReplicationMigrationItemReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='ResumeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -79,7 +79,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IResumeReplicationProviderSpecificInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IResumeReplicationProviderSpecificInput] # The provider specific input for resume replication. # To construct, see NOTES section for PROVIDERSPECIFICDETAIL properties and create a hash table. ${ProviderSpecificDetail}, @@ -89,7 +89,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/Migrate/internal/Set-AzMigrateProject.ps1 b/src/Migrate/internal/Set-AzMigrateProject.ps1 index 134a458e0d9d..0b992f7fbd30 100644 --- a/src/Migrate/internal/Set-AzMigrateProject.ps1 +++ b/src/Migrate/internal/Set-AzMigrateProject.ps1 @@ -98,7 +98,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/Migrate/internal/Set-AzMigrateSite.ps1 b/src/Migrate/internal/Set-AzMigrateSite.ps1 index c112d8954a17..abd0cbe121e1 100644 --- a/src/Migrate/internal/Set-AzMigrateSite.ps1 +++ b/src/Migrate/internal/Set-AzMigrateSite.ps1 @@ -173,7 +173,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/Migrate/internal/Suspend-AzMigrateReplicationMigrationItemReplication.ps1 b/src/Migrate/internal/Suspend-AzMigrateReplicationMigrationItemReplication.ps1 index f8c35a77fa25..4dca7c0e1d08 100644 --- a/src/Migrate/internal/Suspend-AzMigrateReplicationMigrationItemReplication.ps1 +++ b/src/Migrate/internal/Suspend-AzMigrateReplicationMigrationItemReplication.ps1 @@ -25,12 +25,12 @@ The operation to initiate pause replication of the item. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Link https://learn.microsoft.com/powershell/module/az.migrate/suspend-azmigratereplicationmigrationitemreplication #> function Suspend-AzMigrateReplicationMigrationItemReplication { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='PauseExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -81,7 +81,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/Migrate/internal/Test-AzMigrateReplicationMigrationItemMigrate.ps1 b/src/Migrate/internal/Test-AzMigrateReplicationMigrationItemMigrate.ps1 index 5c11732fad7f..5166fe404eb5 100644 --- a/src/Migrate/internal/Test-AzMigrateReplicationMigrationItemMigrate.ps1 +++ b/src/Migrate/internal/Test-AzMigrateReplicationMigrationItemMigrate.ps1 @@ -25,7 +25,7 @@ The operation to initiate test migration of the item. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Notes COMPLEX PARAMETER PROPERTIES @@ -37,7 +37,7 @@ PROVIDERSPECIFICDETAIL : The provider specifi https://learn.microsoft.com/powershell/module/az.migrate/test-azmigratereplicationmigrationitemmigrate #> function Test-AzMigrateReplicationMigrationItemMigrate { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='TestExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -79,7 +79,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.ITestMigrateProviderSpecificInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.ITestMigrateProviderSpecificInput] # The provider specific details. # To construct, see NOTES section for PROVIDERSPECIFICDETAIL properties and create a hash table. ${ProviderSpecificDetail}, @@ -89,7 +89,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/Migrate/internal/Test-AzMigrateReplicationMigrationItemMigrateCleanup.ps1 b/src/Migrate/internal/Test-AzMigrateReplicationMigrationItemMigrateCleanup.ps1 index 47b58c3d740b..8a8a5fd8ee91 100644 --- a/src/Migrate/internal/Test-AzMigrateReplicationMigrationItemMigrateCleanup.ps1 +++ b/src/Migrate/internal/Test-AzMigrateReplicationMigrationItemMigrateCleanup.ps1 @@ -25,12 +25,12 @@ The operation to initiate test migrate cleanup. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Link https://learn.microsoft.com/powershell/module/az.migrate/test-azmigratereplicationmigrationitemmigratecleanup #> function Test-AzMigrateReplicationMigrationItemMigrateCleanup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='TestExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -81,7 +81,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/Migrate/internal/Update-AzMigrateReplicationMigrationItem.ps1 b/src/Migrate/internal/Update-AzMigrateReplicationMigrationItem.ps1 index 2bcf3a8fb154..bd4ae4a52f51 100644 --- a/src/Migrate/internal/Update-AzMigrateReplicationMigrationItem.ps1 +++ b/src/Migrate/internal/Update-AzMigrateReplicationMigrationItem.ps1 @@ -25,7 +25,7 @@ The operation to update the recovery settings of an ASR migration item. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem +Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem .Notes COMPLEX PARAMETER PROPERTIES @@ -37,7 +37,7 @@ PROVIDERSPECIFICDETAIL : The provider https://learn.microsoft.com/powershell/module/az.migrate/update-azmigratereplicationmigrationitem #> function Update-AzMigrateReplicationMigrationItem { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IMigrationItem])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IMigrationItem])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -79,7 +79,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IUpdateMigrationItemProviderSpecificInput] + [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.IUpdateMigrationItemProviderSpecificInput] # The provider specific input to update migration item. # To construct, see NOTES section for PROVIDERSPECIFICDETAIL properties and create a hash table. ${ProviderSpecificDetail}, @@ -89,7 +89,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] diff --git a/src/Migrate/test/Get-AzMigrateJob.Recording.json b/src/Migrate/test/Get-AzMigrateJob.Recording.json index fcbab5e26d41..11df93d2e1a9 100644 --- a/src/Migrate/test/Get-AzMigrateJob.Recording.json +++ b/src/Migrate/test/Get-AzMigrateJob.Recording.json @@ -37,10 +37,10 @@ "Content": "{\"id\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Migrate/MigrateProjects/signoffccyproj/Solutions/Servers-Migration-ServerMigration\",\"name\":\"Servers-Migration-ServerMigration\",\"type\":\"Microsoft.Migrate/MigrateProjects/Solutions\",\"etag\":\"\\\"0400a1d3-0000-3300-0000-62dd866f0000\\\"\",\"properties\":{\"tool\":\"ServerMigration\",\"purpose\":\"Migration\",\"goal\":\"Servers\",\"status\":\"Active\",\"cleanupState\":\"None\",\"summary\":{\"instanceType\":\"Servers\",\"discoveredCount\":0,\"assessedCount\":0,\"replicatingCount\":7,\"testMigratedCount\":0,\"migratedCount\":0},\"details\":{\"groupCount\":0,\"assessmentCount\":0,\"extendedDetails\":{\"serversOnWindows\":\"0\",\"serversOnLinux\":\"0\",\"serversOnOther\":\"0\",\"dependencyEnabledMachines\":\"0\",\"machinesHavingSqlServers\":\"0\",\"machinesHavingWebServers\":\"0\",\"vaultId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault\"}}}}" } }, - "Get-AzMigrateJob+[NoContext]+ListByName+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs?api-version=2022-05-01+2": { + "Get-AzMigrateJob+[NoContext]+ListByName+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "12" ], @@ -115,10 +115,10 @@ "Content": "{\"id\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Migrate/MigrateProjects/signoffccyproj/Solutions/Servers-Migration-ServerMigration\",\"name\":\"Servers-Migration-ServerMigration\",\"type\":\"Microsoft.Migrate/MigrateProjects/Solutions\",\"etag\":\"\\\"0400a1d3-0000-3300-0000-62dd866f0000\\\"\",\"properties\":{\"tool\":\"ServerMigration\",\"purpose\":\"Migration\",\"goal\":\"Servers\",\"status\":\"Active\",\"cleanupState\":\"None\",\"summary\":{\"instanceType\":\"Servers\",\"discoveredCount\":0,\"assessedCount\":0,\"replicatingCount\":7,\"testMigratedCount\":0,\"migratedCount\":0},\"details\":{\"groupCount\":0,\"assessmentCount\":0,\"extendedDetails\":{\"serversOnWindows\":\"0\",\"serversOnLinux\":\"0\",\"serversOnOther\":\"0\",\"dependencyEnabledMachines\":\"0\",\"machinesHavingSqlServers\":\"0\",\"machinesHavingWebServers\":\"0\",\"vaultId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault\"}}}}" } }, - "Get-AzMigrateJob+[NoContext]+GetByName+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2022-05-01+2": { + "Get-AzMigrateJob+[NoContext]+GetByName+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "14" ], @@ -155,10 +155,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee\",\"name\":\"6c92fea4-5041-4b2c-8378-ab110ba7bcee\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationJobs\",\"properties\":{\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\",\"scenarioName\":\"UpdateVmProperties\",\"friendlyName\":\"Update the virtual machine\",\"state\":\"CompletedWithInformation\",\"stateDescription\":\"CompletedWithInformation\",\"tasks\":[{\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\",\"name\":\"UpdateVmPropertiesTask\",\"startTime\":\"2022-09-19T05:09:07.5246349Z\",\"endTime\":\"2022-09-19T05:09:12.9890202Z\",\"allowedActions\":[],\"friendlyName\":\"Update the virtual machine properties\",\"state\":\"Succeeded\",\"stateDescription\":\"Completed\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[{\"serviceErrorDetails\":{\"code\":\"110133\",\"message\":\"The network interface name \u0027nic-win2k12-01-00\u0027 is unavailable.\",\"possibleCauses\":\"A network interface of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two network interfaces with the same name in a resource group. Choose a different name for the network interface. If you go ahead with the same name, a unique identifier will be appended to network interface’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"0cb0c34e-7b59-433b-aca0-b522908899c3\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.8483147Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"},{\"serviceErrorDetails\":{\"code\":\"110135\",\"message\":\"The managed disk name \u0027win2k12-01-OSdisk-00\u0027 is unavailable.\",\"possibleCauses\":\"A managed disk of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two managed disks with the same name in a resource group. Choose a different name for the managed disk. If you go ahead with the same name, a unique identifier will be appended to disk’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"3977a6a7-cdfd-429e-aaa8-ca4b76f05b1b\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.8796245Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"},{\"serviceErrorDetails\":{\"code\":\"110070\",\"message\":\"The virtual machine name \u0027win2k12-01\u0027 is unavailable.\",\"possibleCauses\":\"A virtual machine of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two virtual machines with the same name in a resource group. Choose a different name for the virtual machine. If you go ahead with the same name, a unique identifier will be appended to machine’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"e6716c7e-50b9-426a-97ec-f146d856d6fe\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.7858135Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"}]}],\"errors\":[{\"serviceErrorDetails\":{\"code\":\"110133\",\"message\":\"The network interface name \u0027nic-win2k12-01-00\u0027 is unavailable.\",\"possibleCauses\":\"A network interface of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two network interfaces with the same name in a resource group. Choose a different name for the network interface. If you go ahead with the same name, a unique identifier will be appended to network interface’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"0cb0c34e-7b59-433b-aca0-b522908899c3\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.8483147Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"},{\"serviceErrorDetails\":{\"code\":\"110135\",\"message\":\"The managed disk name \u0027win2k12-01-OSdisk-00\u0027 is unavailable.\",\"possibleCauses\":\"A managed disk of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two managed disks with the same name in a resource group. Choose a different name for the managed disk. If you go ahead with the same name, a unique identifier will be appended to disk’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"3977a6a7-cdfd-429e-aaa8-ca4b76f05b1b\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.8796245Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"},{\"serviceErrorDetails\":{\"code\":\"110070\",\"message\":\"The virtual machine name \u0027win2k12-01\u0027 is unavailable.\",\"possibleCauses\":\"A virtual machine of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two virtual machines with the same name in a resource group. Choose a different name for the virtual machine. If you go ahead with the same name, a unique identifier will be appended to machine’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"e6716c7e-50b9-426a-97ec-f146d856d6fe\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.7858135Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"}],\"startTime\":\"2022-09-19T05:09:06.5411058Z\",\"endTime\":\"2022-09-19T05:09:12Z\",\"allowedActions\":[],\"targetObjectId\":\"7a910bd8-5ab1-58d5-9f98-493d53dd9fae\",\"targetObjectName\":\"win2k12-01\",\"targetInstanceType\":\"ProtectionEntity\",\"customDetails\":{\"instanceType\":\"AsrJobDetails\",\"affectedObjectDetails\":{\"primaryVmId\":\"7a910bd8-5ab1-58d5-9f98-493d53dd9fae\",\"primaryVmName\":\"win2k12-01\",\"recoveryVmId\":\"\",\"recoveryVmName\":\"win2k12-01\",\"protectionProfileId\":\"4af409af-0d07-5e52-95dc-1e472a625f17\",\"primaryCloudId\":\"cloud_e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryCloudName\":\"signoffccyappae52replicationcontainer\",\"recoveryCloudId\":\"d38048d4-b460-4791-8ece-108395ee8478\",\"recoveryCloudName\":\"Microsoft Azure\",\"primaryVmmId\":\"e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryVmmName\":\"signoffccyappae52replicationfabric\",\"recoveryVmmId\":\"21a9403c-6ec1-44f2-b744-b4e50b792387\",\"recoveryVmmName\":\"Microsoft Azure\",\"primaryFabricProviderId\":\"VMwareV2\",\"recoveryFabricProviderId\":\"Azure\"}}}}" } }, - "Get-AzMigrateJob+[NoContext]+GetByID+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2022-05-01+1": { + "Get-AzMigrateJob+[NoContext]+GetByID+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "15" ], @@ -195,10 +195,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee\",\"name\":\"6c92fea4-5041-4b2c-8378-ab110ba7bcee\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationJobs\",\"properties\":{\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\",\"scenarioName\":\"UpdateVmProperties\",\"friendlyName\":\"Update the virtual machine\",\"state\":\"CompletedWithInformation\",\"stateDescription\":\"CompletedWithInformation\",\"tasks\":[{\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\",\"name\":\"UpdateVmPropertiesTask\",\"startTime\":\"2022-09-19T05:09:07.5246349Z\",\"endTime\":\"2022-09-19T05:09:12.9890202Z\",\"allowedActions\":[],\"friendlyName\":\"Update the virtual machine properties\",\"state\":\"Succeeded\",\"stateDescription\":\"Completed\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[{\"serviceErrorDetails\":{\"code\":\"110133\",\"message\":\"The network interface name \u0027nic-win2k12-01-00\u0027 is unavailable.\",\"possibleCauses\":\"A network interface of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two network interfaces with the same name in a resource group. Choose a different name for the network interface. If you go ahead with the same name, a unique identifier will be appended to network interface’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"0cb0c34e-7b59-433b-aca0-b522908899c3\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.8483147Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"},{\"serviceErrorDetails\":{\"code\":\"110135\",\"message\":\"The managed disk name \u0027win2k12-01-OSdisk-00\u0027 is unavailable.\",\"possibleCauses\":\"A managed disk of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two managed disks with the same name in a resource group. Choose a different name for the managed disk. If you go ahead with the same name, a unique identifier will be appended to disk’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"3977a6a7-cdfd-429e-aaa8-ca4b76f05b1b\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.8796245Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"},{\"serviceErrorDetails\":{\"code\":\"110070\",\"message\":\"The virtual machine name \u0027win2k12-01\u0027 is unavailable.\",\"possibleCauses\":\"A virtual machine of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two virtual machines with the same name in a resource group. Choose a different name for the virtual machine. If you go ahead with the same name, a unique identifier will be appended to machine’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"e6716c7e-50b9-426a-97ec-f146d856d6fe\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.7858135Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"}]}],\"errors\":[{\"serviceErrorDetails\":{\"code\":\"110133\",\"message\":\"The network interface name \u0027nic-win2k12-01-00\u0027 is unavailable.\",\"possibleCauses\":\"A network interface of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two network interfaces with the same name in a resource group. Choose a different name for the network interface. If you go ahead with the same name, a unique identifier will be appended to network interface’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"0cb0c34e-7b59-433b-aca0-b522908899c3\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.8483147Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"},{\"serviceErrorDetails\":{\"code\":\"110135\",\"message\":\"The managed disk name \u0027win2k12-01-OSdisk-00\u0027 is unavailable.\",\"possibleCauses\":\"A managed disk of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two managed disks with the same name in a resource group. Choose a different name for the managed disk. If you go ahead with the same name, a unique identifier will be appended to disk’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"3977a6a7-cdfd-429e-aaa8-ca4b76f05b1b\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.8796245Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"},{\"serviceErrorDetails\":{\"code\":\"110070\",\"message\":\"The virtual machine name \u0027win2k12-01\u0027 is unavailable.\",\"possibleCauses\":\"A virtual machine of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two virtual machines with the same name in a resource group. Choose a different name for the virtual machine. If you go ahead with the same name, a unique identifier will be appended to machine’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"e6716c7e-50b9-426a-97ec-f146d856d6fe\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.7858135Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"}],\"startTime\":\"2022-09-19T05:09:06.5411058Z\",\"endTime\":\"2022-09-19T05:09:12Z\",\"allowedActions\":[],\"targetObjectId\":\"7a910bd8-5ab1-58d5-9f98-493d53dd9fae\",\"targetObjectName\":\"win2k12-01\",\"targetInstanceType\":\"ProtectionEntity\",\"customDetails\":{\"instanceType\":\"AsrJobDetails\",\"affectedObjectDetails\":{\"primaryVmId\":\"7a910bd8-5ab1-58d5-9f98-493d53dd9fae\",\"primaryVmName\":\"win2k12-01\",\"recoveryVmId\":\"\",\"recoveryVmName\":\"win2k12-01\",\"protectionProfileId\":\"4af409af-0d07-5e52-95dc-1e472a625f17\",\"primaryCloudId\":\"cloud_e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryCloudName\":\"signoffccyappae52replicationcontainer\",\"recoveryCloudId\":\"d38048d4-b460-4791-8ece-108395ee8478\",\"recoveryCloudName\":\"Microsoft Azure\",\"primaryVmmId\":\"e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryVmmName\":\"signoffccyappae52replicationfabric\",\"recoveryVmmId\":\"21a9403c-6ec1-44f2-b744-b4e50b792387\",\"recoveryVmmName\":\"Microsoft Azure\",\"primaryFabricProviderId\":\"VMwareV2\",\"recoveryFabricProviderId\":\"Azure\"}}}}" } }, - "Get-AzMigrateJob+[NoContext]+GetByInputObject+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2022-05-01+1": { + "Get-AzMigrateJob+[NoContext]+GetByInputObject+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "16" ], @@ -235,10 +235,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee\",\"name\":\"6c92fea4-5041-4b2c-8378-ab110ba7bcee\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationJobs\",\"properties\":{\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\",\"scenarioName\":\"UpdateVmProperties\",\"friendlyName\":\"Update the virtual machine\",\"state\":\"CompletedWithInformation\",\"stateDescription\":\"CompletedWithInformation\",\"tasks\":[{\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\",\"name\":\"UpdateVmPropertiesTask\",\"startTime\":\"2022-09-19T05:09:07.5246349Z\",\"endTime\":\"2022-09-19T05:09:12.9890202Z\",\"allowedActions\":[],\"friendlyName\":\"Update the virtual machine properties\",\"state\":\"Succeeded\",\"stateDescription\":\"Completed\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[{\"serviceErrorDetails\":{\"code\":\"110133\",\"message\":\"The network interface name \u0027nic-win2k12-01-00\u0027 is unavailable.\",\"possibleCauses\":\"A network interface of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two network interfaces with the same name in a resource group. Choose a different name for the network interface. If you go ahead with the same name, a unique identifier will be appended to network interface’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"0cb0c34e-7b59-433b-aca0-b522908899c3\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.8483147Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"},{\"serviceErrorDetails\":{\"code\":\"110135\",\"message\":\"The managed disk name \u0027win2k12-01-OSdisk-00\u0027 is unavailable.\",\"possibleCauses\":\"A managed disk of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two managed disks with the same name in a resource group. Choose a different name for the managed disk. If you go ahead with the same name, a unique identifier will be appended to disk’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"3977a6a7-cdfd-429e-aaa8-ca4b76f05b1b\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.8796245Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"},{\"serviceErrorDetails\":{\"code\":\"110070\",\"message\":\"The virtual machine name \u0027win2k12-01\u0027 is unavailable.\",\"possibleCauses\":\"A virtual machine of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two virtual machines with the same name in a resource group. Choose a different name for the virtual machine. If you go ahead with the same name, a unique identifier will be appended to machine’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"e6716c7e-50b9-426a-97ec-f146d856d6fe\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.7858135Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"}]}],\"errors\":[{\"serviceErrorDetails\":{\"code\":\"110133\",\"message\":\"The network interface name \u0027nic-win2k12-01-00\u0027 is unavailable.\",\"possibleCauses\":\"A network interface of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two network interfaces with the same name in a resource group. Choose a different name for the network interface. If you go ahead with the same name, a unique identifier will be appended to network interface’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"0cb0c34e-7b59-433b-aca0-b522908899c3\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.8483147Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"},{\"serviceErrorDetails\":{\"code\":\"110135\",\"message\":\"The managed disk name \u0027win2k12-01-OSdisk-00\u0027 is unavailable.\",\"possibleCauses\":\"A managed disk of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two managed disks with the same name in a resource group. Choose a different name for the managed disk. If you go ahead with the same name, a unique identifier will be appended to disk’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"3977a6a7-cdfd-429e-aaa8-ca4b76f05b1b\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.8796245Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"},{\"serviceErrorDetails\":{\"code\":\"110070\",\"message\":\"The virtual machine name \u0027win2k12-01\u0027 is unavailable.\",\"possibleCauses\":\"A virtual machine of the same name already exists in the resource group \u0027fancy(migrate)\u0027.\",\"recommendedAction\":\"Microsoft Azure doesn’t allow two virtual machines with the same name in a resource group. Choose a different name for the virtual machine. If you go ahead with the same name, a unique identifier will be appended to machine’s name when it is migrated.\",\"activityId\":\"98fd5484-c3f6-4f28-a0e6-9988a8d2f02d ActivityId: cdf2fd70-5bc6-4448-8647-eea6dbf96072\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"e6716c7e-50b9-426a-97ec-f146d856d6fe\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Info\",\"creationTime\":\"2022-09-19T05:09:12.7858135Z\",\"taskId\":\"b66eb3b0-3828-4599-8b26-102bda067a53\"}],\"startTime\":\"2022-09-19T05:09:06.5411058Z\",\"endTime\":\"2022-09-19T05:09:12Z\",\"allowedActions\":[],\"targetObjectId\":\"7a910bd8-5ab1-58d5-9f98-493d53dd9fae\",\"targetObjectName\":\"win2k12-01\",\"targetInstanceType\":\"ProtectionEntity\",\"customDetails\":{\"instanceType\":\"AsrJobDetails\",\"affectedObjectDetails\":{\"primaryVmId\":\"7a910bd8-5ab1-58d5-9f98-493d53dd9fae\",\"primaryVmName\":\"win2k12-01\",\"recoveryVmId\":\"\",\"recoveryVmName\":\"win2k12-01\",\"protectionProfileId\":\"4af409af-0d07-5e52-95dc-1e472a625f17\",\"primaryCloudId\":\"cloud_e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryCloudName\":\"signoffccyappae52replicationcontainer\",\"recoveryCloudId\":\"d38048d4-b460-4791-8ece-108395ee8478\",\"recoveryCloudName\":\"Microsoft Azure\",\"primaryVmmId\":\"e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryVmmName\":\"signoffccyappae52replicationfabric\",\"recoveryVmmId\":\"21a9403c-6ec1-44f2-b744-b4e50b792387\",\"recoveryVmmName\":\"Microsoft Azure\",\"primaryFabricProviderId\":\"VMwareV2\",\"recoveryFabricProviderId\":\"Azure\"}}}}" } }, - "Get-AzMigrateJob+[NoContext]+GetByInputObject+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2022-05-01+2": { + "Get-AzMigrateJob+[NoContext]+GetByInputObject+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6c92fea4-5041-4b2c-8378-ab110ba7bcee?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "17" ], @@ -313,10 +313,10 @@ "Content": "{\"id\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Migrate/MigrateProjects/signoffccyproj/Solutions/Servers-Migration-ServerMigration\",\"name\":\"Servers-Migration-ServerMigration\",\"type\":\"Microsoft.Migrate/MigrateProjects/Solutions\",\"etag\":\"\\\"0400a1d3-0000-3300-0000-62dd866f0000\\\"\",\"properties\":{\"tool\":\"ServerMigration\",\"purpose\":\"Migration\",\"goal\":\"Servers\",\"status\":\"Active\",\"cleanupState\":\"None\",\"summary\":{\"instanceType\":\"Servers\",\"discoveredCount\":0,\"assessedCount\":0,\"replicatingCount\":7,\"testMigratedCount\":0,\"migratedCount\":0},\"details\":{\"groupCount\":0,\"assessmentCount\":0,\"extendedDetails\":{\"serversOnWindows\":\"0\",\"serversOnLinux\":\"0\",\"serversOnOther\":\"0\",\"dependencyEnabledMachines\":\"0\",\"machinesHavingSqlServers\":\"0\",\"machinesHavingWebServers\":\"0\",\"vaultId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault\"}}}}" } }, - "Get-AzMigrateJob+[NoContext]+ListById+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs?api-version=2022-05-01+2": { + "Get-AzMigrateJob+[NoContext]+ListById+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "19" ], diff --git a/src/Migrate/test/Get-AzMigrateReplicationFabric.Recording.json b/src/Migrate/test/Get-AzMigrateReplicationFabric.Recording.json index 23c24e6b8d8c..07c7fb919a7d 100644 --- a/src/Migrate/test/Get-AzMigrateReplicationFabric.Recording.json +++ b/src/Migrate/test/Get-AzMigrateReplicationFabric.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzMigrateReplicationFabric+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics?api-version=2022-05-01+1": { + "Get-AzMigrateReplicationFabric+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "21" ], @@ -39,10 +39,10 @@ "Content": "{\"value\":[{\"name\":\"signoffccyappae52replicationfabric\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics\",\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric\",\"properties\":{\"friendlyName\":\"signoffccyappae52replicationfabric\",\"encryptionDetails\":{\"kekState\":\"None\",\"kekCertThumbprint\":null},\"rolloverEncryptionDetails\":{\"kekState\":\"None\",\"kekCertThumbprint\":null},\"internalIdentifier\":\"e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"bcdrState\":\"Valid\",\"customDetails\":{\"instanceType\":\"VMwareV2\",\"vmwareSiteId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site\",\"physicalSiteId\":null,\"migrationSolutionId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Migrate/MigrateProjects/signoffccyproj/Solutions/Servers-Migration-ServerMigration\",\"serviceEndpoint\":\"https://pod01-srs1.ccy.hypervrecoverymanager.windowsazure.com\",\"serviceResourceId\":\"2966956768769697278\",\"serviceContainerId\":\"10186957526572\",\"processServers\":[]},\"healthErrorDetails\":[],\"health\":\"Normal\"}}],\"nextLink\":null}" } }, - "Get-AzMigrateReplicationFabric+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric?api-version=2022-05-01+1": { + "Get-AzMigrateReplicationFabric+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "22" ], diff --git a/src/Migrate/test/Get-AzMigrateReplicationPolicy.Recording.json b/src/Migrate/test/Get-AzMigrateReplicationPolicy.Recording.json index 450b82867689..8acaf2946059 100644 --- a/src/Migrate/test/Get-AzMigrateReplicationPolicy.Recording.json +++ b/src/Migrate/test/Get-AzMigrateReplicationPolicy.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzMigrateReplicationPolicy+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies?api-version=2022-05-01+1": { + "Get-AzMigrateReplicationPolicy+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "23" ], @@ -39,10 +39,10 @@ "Content": "{\"value\":[{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"name\":\"migratesignoffccyapp3352sitepolicy\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationPolicies\",\"properties\":{\"friendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"recoveryPointHistoryInMinutes\":4320,\"appConsistentFrequencyInMinutes\":240,\"crashConsistentFrequencyInMinutes\":60}}}],\"nextLink\":null}" } }, - "Get-AzMigrateReplicationPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy?api-version=2022-05-01+1": { + "Get-AzMigrateReplicationPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "24" ], diff --git a/src/Migrate/test/Get-AzMigrateReplicationProtectionContainer.Recording.json b/src/Migrate/test/Get-AzMigrateReplicationProtectionContainer.Recording.json index faddd2bf91bf..f2db9749382e 100644 --- a/src/Migrate/test/Get-AzMigrateReplicationProtectionContainer.Recording.json +++ b/src/Migrate/test/Get-AzMigrateReplicationProtectionContainer.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzMigrateReplicationProtectionContainer+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationProtectionContainers?api-version=2022-05-01+1": { + "Get-AzMigrateReplicationProtectionContainer+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationProtectionContainers?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationProtectionContainers?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationProtectionContainers?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "25" ], @@ -39,10 +39,10 @@ "Content": "{\"value\":[{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer\",\"name\":\"signoffccyappae52replicationcontainer\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers\",\"properties\":{\"fabricFriendlyName\":\"signoffccyappae52replicationfabric\",\"friendlyName\":\"signoffccyappae52replicationcontainer\",\"fabricType\":\"VMwareV2\",\"protectedItemCount\":7,\"pairingStatus\":\"Paired\",\"role\":\"Primary\",\"fabricSpecificDetails\":null}}],\"nextLink\":null}" } }, - "Get-AzMigrateReplicationProtectionContainer+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers?api-version=2022-05-01+1": { + "Get-AzMigrateReplicationProtectionContainer+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26" ], @@ -79,10 +79,10 @@ "Content": "{\"value\":[{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer\",\"name\":\"signoffccyappae52replicationcontainer\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers\",\"properties\":{\"fabricFriendlyName\":\"signoffccyappae52replicationfabric\",\"friendlyName\":\"signoffccyappae52replicationcontainer\",\"fabricType\":\"VMwareV2\",\"protectedItemCount\":7,\"pairingStatus\":\"Paired\",\"role\":\"Primary\",\"fabricSpecificDetails\":null}}],\"nextLink\":null}" } }, - "Get-AzMigrateReplicationProtectionContainer+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer?api-version=2022-05-01+1": { + "Get-AzMigrateReplicationProtectionContainer+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "27" ], diff --git a/src/Migrate/test/Get-AzMigrateReplicationProtectionContainerMapping.Recording.json b/src/Migrate/test/Get-AzMigrateReplicationProtectionContainerMapping.Recording.json index 05e5689822fd..37c758d85fd2 100644 --- a/src/Migrate/test/Get-AzMigrateReplicationProtectionContainerMapping.Recording.json +++ b/src/Migrate/test/Get-AzMigrateReplicationProtectionContainerMapping.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzMigrateReplicationProtectionContainerMapping+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationProtectionContainerMappings?api-version=2022-05-01+1": { + "Get-AzMigrateReplicationProtectionContainerMapping+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationProtectionContainerMappings?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationProtectionContainerMappings?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationProtectionContainerMappings?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "28" ], @@ -39,10 +39,10 @@ "Content": "{\"value\":[{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping\",\"name\":\"containermapping\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings\",\"properties\":{\"targetProtectionContainerId\":\"Microsoft Azure\",\"targetProtectionContainerFriendlyName\":\"Microsoft Azure\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"keyVaultId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.KeyVault/vaults/migratekv1612849844\",\"keyVaultUri\":\"https://migratekv1612849844.vault.azure.net\",\"storageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migrategwsa1612849844\",\"storageAccountSasSecretName\":\"migrategwsa1612849844-gwySas\",\"serviceBusConnectionStringSecretName\":\"ServiceBusConnectionString\",\"targetLocation\":\"centraluseuap\",\"roleSizeToNicCountMap\":{\"default\":1,\"extraSmall\":2,\"small\":2,\"medium\":2,\"large\":2,\"a6\":2,\"a7\":4,\"a8\":2,\"a9\":4,\"a10\":2,\"a11\":4,\"standard_NV6\":2,\"standard_NV12\":2,\"standard_NV24\":4,\"standard_NV6_Promo\":2,\"standard_NV12_Promo\":2,\"standard_NV24_Promo\":4,\"standard_NV6s_v2\":4,\"standard_NV12s_v2\":8,\"standard_NV24s_v2\":8,\"standard_NV12s_v3\":4,\"standard_NV24s_v3\":8,\"standard_NV48s_v3\":8,\"standard_NV4as_v4\":2,\"standard_NV8as_v4\":4,\"standard_NV16as_v4\":8,\"standard_NV32as_v4\":8,\"standard_NC6\":2,\"standard_NC12\":2,\"standard_NC24\":4,\"standard_NC24r\":4,\"standard_NC6_Promo\":2,\"standard_NC12_Promo\":2,\"standard_NC24_Promo\":4,\"standard_NC24r_Promo\":4,\"standard_NC6s_v3\":4,\"standard_NC12s_v3\":8,\"standard_NC24rs_v3\":8,\"standard_NC24s_v3\":8,\"standard_NC6s_v2\":4,\"standard_NC12s_v2\":8,\"standard_NC24rs_v2\":8,\"standard_NC24s_v2\":8,\"standard_ND6s\":4,\"standard_ND12s\":8,\"standard_ND24s\":8,\"standard_ND24rs\":8,\"standard_ND40s_v2\":8,\"standard_ND40rs_v2\":8,\"standard_ND40s_v3\":1,\"standard_M208ms_v2\":8,\"standard_M208s_v2\":8,\"standard_M416-208s_v2\":8,\"standard_M416s_v2\":8,\"standard_M416-208ms_v2\":8,\"standard_M416ms_v2\":8,\"standard_M8ms\":4,\"standard_M16ms\":8,\"standard_M32ts\":8,\"standard_M32ls\":8,\"standard_M32ms\":8,\"standard_M64s\":8,\"standard_M64ls\":8,\"standard_M64ms\":8,\"standard_M128s\":8,\"standard_M128ms\":8,\"standard_M64\":8,\"standard_M64m\":8,\"standard_M128\":8,\"standard_M128m\":8,\"standard_M8-2ms\":2,\"standard_M8-4ms\":2,\"standard_M16-4ms\":2,\"standard_M16-8ms\":2,\"standard_M32-8ms\":8,\"standard_M32-16ms\":8,\"standard_M64-16ms\":8,\"standard_M64-32ms\":8,\"standard_M128-32ms\":8,\"standard_M128-64ms\":8,\"standard_L4s\":2,\"standard_L8s\":4,\"standard_L16s\":8,\"standard_L32s\":8,\"standard_L8s_v2\":2,\"standard_L16s_v2\":4,\"standard_L32s_v2\":8,\"standard_L48s_v2\":8,\"standard_L64s_v2\":8,\"standard_L80s_v2\":8,\"standard_H8\":2,\"standard_H16\":4,\"standard_H8m\":2,\"standard_H16m\":4,\"standard_H16r\":4,\"standard_H16mr\":4,\"standard_H8_Promo\":2,\"standard_H16_Promo\":4,\"standard_H8m_Promo\":2,\"standard_H16m_Promo\":4,\"standard_H16r_Promo\":4,\"standard_H16mr_Promo\":4,\"standard_HB60rs\":2,\"standard_HB120rs_v2\":2,\"standard_HC44rs\":2,\"standard_G1\":2,\"standard_G2\":2,\"standard_G3\":4,\"standard_G4\":8,\"standard_G5\":8,\"standard_GS1\":2,\"standard_GS2\":2,\"standard_GS3\":4,\"standard_GS4\":8,\"standard_GS4-4\":8,\"standard_GS4-8\":8,\"standard_GS5\":8,\"standard_GS5-8\":8,\"standard_GS5-16\":8,\"standard_F1\":2,\"standard_F2\":2,\"standard_F4\":4,\"standard_F8\":8,\"standard_F16\":8,\"standard_F1s\":2,\"standard_F2s\":2,\"standard_F4s\":4,\"standard_F8s\":8,\"standard_F16s\":8,\"standard_F2s_v2\":2,\"standard_F4s_v2\":2,\"standard_F8s_v2\":4,\"standard_F16s_v2\":4,\"standard_F32s_v2\":8,\"standard_F48s_v2\":8,\"standard_F64s_v2\":8,\"standard_F72s_v2\":8,\"standard_E2_v3\":2,\"standard_E4_v3\":2,\"standard_E8_v3\":4,\"standard_E16_v3\":8,\"standard_E20_v3\":8,\"standard_E32_v3\":8,\"standard_E48_v3\":8,\"standard_E64_v3\":8,\"standard_E64i_v3\":8,\"standard_E64is_v3\":8,\"standard_E2_v4\":2,\"standard_E4_v4\":2,\"standard_E8_v4\":4,\"standard_E16_v4\":8,\"standard_E20_v4\":8,\"standard_E32_v4\":8,\"standard_E48_v4\":8,\"standard_E64_v4\":8,\"standard_E2s_v3\":2,\"standard_E4s_v3\":2,\"standard_E4-2s_v3\":2,\"standard_E8s_v3\":4,\"standard_E8-2s_v3\":4,\"standard_E8-4s_v3\":4,\"standard_E16s_v3\":8,\"standard_E16-4s_v3\":8,\"standard_E16-8s_v3\":8,\"standard_E20s_v3\":8,\"standard_E32s_v3\":8,\"standard_E32-8s_v3\":8,\"standard_E32-16s_v3\":8,\"standard_E48s_v3\":8,\"standard_E64s_v3\":8,\"standard_E64-16s_v3\":8,\"standard_E64-32s_v3\":8,\"standard_E2a_v4\":2,\"standard_E4a_v4\":2,\"standard_E8a_v4\":4,\"standard_E16a_v4\":8,\"standard_E20a_v4\":8,\"standard_E32a_v4\":8,\"standard_E48a_v4\":8,\"standard_E64a_v4\":8,\"standard_E96a_v4\":8,\"standard_E2as_v4\":2,\"standard_E4as_v4\":2,\"standard_E8as_v4\":4,\"standard_E16as_v4\":8,\"standard_E20as_v4\":8,\"standard_E32as_v4\":8,\"standard_E48as_v4\":8,\"standard_E64as_v4\":8,\"standard_E96as_v4\":8,\"standard_E2d_v4\":2,\"standard_E4d_v4\":2,\"standard_E8d_v4\":4,\"standard_E16d_v4\":8,\"standard_E20d_v4\":8,\"standard_E32d_v4\":8,\"standard_E48d_v4\":8,\"standard_E64d_v4\":8,\"standard_E2s_v4\":2,\"standard_E4-2s_v4\":2,\"standard_E4s_v4\":2,\"standard_E8-2s_v4\":2,\"standard_E8-4s_v4\":4,\"standard_E8s_v4\":4,\"standard_E16-4s_v4\":8,\"standard_E16-8s_v4\":8,\"standard_E16s_v4\":8,\"standard_E20s_v4\":8,\"standard_E32-8s_v4\":8,\"standard_E32-16s_v4\":8,\"standard_E32s_v4\":8,\"standard_E48s_v4\":8,\"standard_E64-16s_v4\":8,\"standard_E64-32s_v4\":8,\"standard_E64s_v4\":8,\"standard_E2ds_v4\":2,\"standard_E4-2ds_v4\":2,\"standard_E4ds_v4\":2,\"standard_E8-2ds_v4\":4,\"standard_E8-4ds_v4\":4,\"standard_E8ds_v4\":4,\"standard_E16-4ds_v4\":8,\"standard_E16-8ds_v4\":8,\"standard_E16ds_v4\":8,\"standard_E20ds_v4\":8,\"standard_E32-8ds_v4\":8,\"standard_E32-16ds_v4\":8,\"standard_E32ds_v4\":8,\"standard_E48ds_v4\":8,\"standard_E64-16ds_v4\":8,\"standard_E64-32ds_v4\":8,\"standard_E64ds_v4\":8,\"standard_D1\":2,\"standard_D2\":2,\"standard_D3\":4,\"standard_D4\":8,\"standard_D11\":2,\"standard_D12\":4,\"standard_D13\":8,\"standard_D14\":8,\"standard_D1_v2\":2,\"standard_D2_v2\":2,\"standard_D3_v2\":4,\"standard_D4_v2\":8,\"standard_D5_v2\":8,\"standard_D11_v2\":2,\"standard_D12_v2\":4,\"standard_D13_v2\":8,\"standard_D14_v2\":8,\"standard_D15_v2\":8,\"standard_D2_v2_Promo\":2,\"standard_D3_v2_Promo\":4,\"standard_D4_v2_Promo\":8,\"standard_D5_v2_Promo\":8,\"standard_D11_v2_Promo\":2,\"standard_D12_v2_Promo\":4,\"standard_D13_v2_Promo\":8,\"standard_D14_v2_Promo\":8,\"standard_D2_v3\":2,\"standard_D4_v3\":2,\"standard_D8_v3\":4,\"standard_D16_v3\":8,\"standard_D32_v3\":8,\"standard_D48_v3\":8,\"standard_D64_v3\":8,\"standard_D2_v4\":2,\"standard_D4_v4\":2,\"standard_D8_v4\":4,\"standard_D16_v4\":8,\"standard_D32_v4\":8,\"standard_D48_v4\":8,\"standard_D64_v4\":8,\"standard_D2a_v4\":2,\"standard_D4a_v4\":2,\"standard_D8a_v4\":4,\"standard_D16a_v4\":8,\"standard_D32a_v4\":8,\"standard_D48a_v4\":8,\"standard_D64a_v4\":8,\"standard_D96a_v4\":8,\"standard_D2as_v4\":2,\"standard_D4as_v4\":2,\"standard_D8as_v4\":4,\"standard_D16as_v4\":8,\"standard_D32as_v4\":8,\"standard_D48as_v4\":8,\"standard_D64as_v4\":8,\"standard_D96as_v4\":8,\"standard_D2d_v4\":2,\"standard_D4d_v4\":2,\"standard_D8d_v4\":4,\"standard_D16d_v4\":8,\"standard_D32d_v4\":8,\"standard_D48d_v4\":8,\"standard_D64d_v4\":8,\"standard_D2ds_v4\":2,\"standard_D4ds_v4\":2,\"standard_D8ds_v4\":4,\"standard_D16ds_v4\":8,\"standard_D32ds_v4\":8,\"standard_D48ds_v4\":8,\"standard_D64ds_v4\":8,\"standard_DS1\":2,\"standard_DS2\":2,\"standard_DS3\":4,\"standard_DS4\":8,\"standard_DS11\":2,\"standard_DS12\":4,\"standard_DS13\":8,\"standard_DS14\":8,\"standard_DS1_v2\":2,\"standard_DS2_v2\":2,\"standard_DS3_v2\":4,\"standard_DS4_v2\":8,\"standard_DS5_v2\":8,\"standard_DS11_v2\":2,\"standard_DS11-1_v2\":2,\"standard_DS12_v2\":4,\"standard_DS12_v2_Promo\":4,\"standard_DS12-1_v2\":4,\"standard_DS12-2_v2\":4,\"standard_DS13_v2\":8,\"standard_DS13-2_v2\":8,\"standard_DS13-4_v2\":8,\"standard_DS14_v2\":8,\"standard_DS14-4_v2\":8,\"standard_DS14-8_v2\":8,\"standard_DS15_v2\":8,\"standard_DS2_v2_Promo\":2,\"standard_DS3_v2_Promo\":4,\"standard_DS4_v2_Promo\":8,\"standard_DS5_v2_Promo\":8,\"standard_DS11_v2_Promo\":2,\"standard_DS13_v2_Promo\":8,\"standard_DS14_v2_Promo\":8,\"standard_D2s_v3\":2,\"standard_D4s_v3\":2,\"standard_D8s_v3\":4,\"standard_D16s_v3\":8,\"standard_D32s_v3\":8,\"standard_D48s_v3\":8,\"standard_D64s_v3\":8,\"standard_D2s_v4\":2,\"standard_D4s_v4\":2,\"standard_D8s_v4\":4,\"standard_D16s_v4\":8,\"standard_D32s_v4\":8,\"standard_D48s_v4\":8,\"standard_D64s_v4\":8,\"standard_DC2s\":2,\"standard_DC4s\":2,\"standard_DC8_v2\":1,\"standard_DC1s_v2\":1,\"standard_DC2s_v2\":1,\"standard_DC4s_v2\":1,\"standard_B1ls\":2,\"standard_B1s\":2,\"standard_B1ms\":2,\"standard_B2s\":3,\"standard_B2ms\":3,\"standard_B4ms\":4,\"standard_B8ms\":4,\"standard_B12ms\":6,\"standard_B16ms\":8,\"standard_B20ms\":8,\"standard_A0\":2,\"standard_A1\":2,\"standard_A2\":2,\"standard_A3\":2,\"standard_A4\":4,\"standard_A5\":2,\"standard_A6\":2,\"standard_A7\":4,\"standard_A8\":2,\"standard_A9\":4,\"standard_A10\":2,\"standard_A11\":4,\"standard_A1_v2\":2,\"standard_A2_v2\":2,\"standard_A4_v2\":4,\"standard_A8_v2\":8,\"standard_A2m_v2\":2,\"standard_A4m_v2\":4,\"standard_A8m_v2\":8,\"basic_A0\":2,\"basic_A1\":2,\"basic_A2\":2,\"basic_A3\":2,\"basic_A4\":2,\"standard_M32ms_v2\":8,\"standard_M64ms_v2\":8,\"standard_M64s_v2\":8,\"standard_M128ms_v2\":8,\"standard_M128s_v2\":8,\"standard_HB60-15rs\":8,\"standard_HB60-30rs\":8,\"standard_HB60-45rs\":8,\"standard_E2_v5\":2,\"standard_E4_v5\":2,\"standard_E8_v5\":4,\"standard_E16_v5\":8,\"standard_E20_v5\":8,\"standard_E32_v5\":8,\"standard_E48_v5\":8,\"standard_E64_v5\":8,\"standard_E96_v5\":8,\"standard_L8as_v3\":4,\"standard_L16as_v3\":8,\"standard_L32as_v3\":8,\"standard_L48as_v3\":8,\"standard_L64as_v3\":8,\"standard_L80as_v3\":8,\"standard_NC4as_T4_v3\":4,\"standard_NC8as_T4_v3\":8,\"standard_NC16as_T4_v3\":8,\"standard_NC64as_T4_v3\":8,\"standard_D2d_v5\":2,\"standard_D4d_v5\":2,\"standard_D8d_v5\":4,\"standard_D16d_v5\":8,\"standard_D32d_v5\":8,\"standard_D48d_v5\":8,\"standard_D64d_v5\":8,\"standard_D96d_v5\":8,\"standard_NC8ads_A10_v4\":2,\"standard_NC16ads_A10_v4\":4,\"standard_NC32ads_A10_v4\":8,\"standard_ND96asr_v4\":8,\"standard_D2as_v5\":2,\"standard_D4as_v5\":2,\"standard_D8as_v5\":4,\"standard_D16as_v5\":8,\"standard_D32as_v5\":8,\"standard_D48as_v5\":8,\"standard_D64as_v5\":8,\"standard_D96as_v5\":8,\"standard_M32dms_v2\":8,\"standard_M64ds_v2\":8,\"standard_M64dms_v2\":8,\"standard_M128ds_v2\":8,\"standard_M128dms_v2\":8,\"standard_EC2ads_v5\":2,\"standard_EC4ads_v5\":2,\"standard_EC8ads_v5\":4,\"standard_EC16ads_v5\":4,\"standard_EC20ads_v5\":8,\"standard_EC32ads_v5\":8,\"standard_EC48ads_v5\":8,\"standard_EC64ads_v5\":8,\"standard_EC96ads_v5\":8,\"standard_HB120rs_v3\":8,\"standard_HB120-16rs_v3\":8,\"standard_HB120-32rs_v3\":8,\"standard_HB120-64rs_v3\":8,\"standard_HB120-96rs_v3\":8,\"standard_M192is_v2\":8,\"standard_M192ims_v2\":8,\"standard_E104id_v5\":8,\"standard_DC1s_v3\":2,\"standard_DC2s_v3\":2,\"standard_DC4s_v3\":4,\"standard_DC8s_v3\":8,\"standard_DC16s_v3\":8,\"standard_DC24s_v3\":8,\"standard_DC32s_v3\":8,\"standard_DC48s_v3\":8,\"standard_E2d_v5\":2,\"standard_E4d_v5\":2,\"standard_E8d_v5\":4,\"standard_E16d_v5\":8,\"standard_E20d_v5\":8,\"standard_E32d_v5\":8,\"standard_E48d_v5\":8,\"standard_E64d_v5\":8,\"standard_E96d_v5\":8,\"standard_E2ds_v5\":2,\"standard_E4ds_v5\":2,\"standard_E4-2ds_v5\":2,\"standard_E8ds_v5\":4,\"standard_E8-2ds_v5\":4,\"standard_E8-4ds_v5\":4,\"standard_E16ds_v5\":8,\"standard_E16-4ds_v5\":8,\"standard_E16-8ds_v5\":8,\"standard_E20ds_v5\":8,\"standard_E32ds_v5\":8,\"standard_E32-8ds_v5\":8,\"standard_E32-16ds_v5\":8,\"standard_E48ds_v5\":8,\"standard_E64ds_v5\":8,\"standard_E64-16ds_v5\":8,\"standard_E64-32ds_v5\":8,\"standard_E96ds_v5\":8,\"standard_E96-24ds_v5\":8,\"standard_E96-48ds_v5\":8,\"standard_E80ids_v4\":8,\"standard_D2s_v5\":2,\"standard_D4s_v5\":2,\"standard_D8s_v5\":4,\"standard_D16s_v5\":8,\"standard_D32s_v5\":8,\"standard_D48s_v5\":8,\"standard_D64s_v5\":8,\"standard_D96s_v5\":8,\"standard_E2s_v5\":2,\"standard_E4s_v5\":2,\"standard_E4-2s_v5\":2,\"standard_E8s_v5\":4,\"standard_E8-2s_v5\":4,\"standard_E8-4s_v5\":4,\"standard_E16s_v5\":8,\"standard_E16-4s_v5\":8,\"standard_E16-8s_v5\":8,\"standard_E20s_v5\":8,\"standard_E32s_v5\":8,\"standard_E32-8s_v5\":8,\"standard_E32-16s_v5\":8,\"standard_E48s_v5\":8,\"standard_E64s_v5\":8,\"standard_E64-16s_v5\":8,\"standard_E64-32s_v5\":8,\"standard_E96s_v5\":8,\"standard_E96-24s_v5\":8,\"standard_E96-48s_v5\":8,\"standard_E2as_v5\":2,\"standard_E4as_v5\":2,\"standard_E4-2as_v5\":2,\"standard_E8as_v5\":4,\"standard_E8-2as_v5\":4,\"standard_E8-4as_v5\":4,\"standard_E16as_v5\":8,\"standard_E16-4as_v5\":8,\"standard_E16-8as_v5\":8,\"standard_E20as_v5\":8,\"standard_E32as_v5\":8,\"standard_E32-8as_v5\":8,\"standard_E32-16as_v5\":8,\"standard_E48as_v5\":8,\"standard_E64as_v5\":8,\"standard_E64-16as_v5\":8,\"standard_E64-32as_v5\":8,\"standard_E96as_v5\":8,\"standard_E96-24as_v5\":8,\"standard_E96-48as_v5\":8,\"standard_E80is_v4\":8,\"standard_E96ias_v4\":8,\"standard_E104ids_v5\":8,\"standard_M192idms_v2\":8,\"standard_M192ids_v2\":8,\"standard_D2ds_v5\":2,\"standard_D4ds_v5\":2,\"standard_D8ds_v5\":4,\"standard_D16ds_v5\":8,\"standard_D32ds_v5\":8,\"standard_D64ds_v5\":8,\"standard_D48ds_v5\":8,\"standard_D96ds_v5\":8,\"standard_FX4mds\":2,\"standard_FX12mds\":4,\"standard_FX36mds\":8,\"standard_FX24mds\":4,\"standard_FX48mds\":8,\"standard_D2ads_v5\":2,\"standard_D4ads_v5\":2,\"standard_D8ads_v5\":4,\"standard_D16ads_v5\":8,\"standard_D32ads_v5\":8,\"standard_D48ads_v5\":8,\"standard_D64ads_v5\":8,\"standard_D96ads_v5\":8,\"standard_E2ads_v5\":2,\"standard_E4ads_v5\":2,\"standard_E4-2ads_v5\":2,\"standard_E8ads_v5\":4,\"standard_E8-2ads_v5\":4,\"standard_E8-4ads_v5\":4,\"standard_E16ads_v5\":8,\"standard_E16-4ads_v5\":8,\"standard_E16-8ads_v5\":8,\"standard_E20ads_v5\":8,\"standard_E32ads_v5\":8,\"standard_E32-8ads_v5\":8,\"standard_E32-16ads_v5\":8,\"standard_E48ads_v5\":8,\"standard_E64ads_v5\":8,\"standard_E64-16ads_v5\":8,\"standard_E64-32ads_v5\":8,\"standard_E96ads_v5\":8,\"standard_E96-24ads_v5\":8,\"standard_E96-48ads_v5\":8,\"standard_E112iads_v5\":8,\"standard_DC1ds_v3\":2,\"standard_DC2ds_v3\":2,\"standard_DC4ds_v3\":4,\"standard_DC8ds_v3\":8,\"standard_DC16ds_v3\":8,\"standard_DC24ds_v3\":8,\"standard_DC32ds_v3\":8,\"standard_DC48ds_v3\":8,\"standard_E2bs_v5\":2,\"standard_E4bs_v5\":2,\"standard_E8bs_v5\":4,\"standard_E16bs_v5\":4,\"standard_E32bs_v5\":8,\"standard_E48bs_v5\":8,\"standard_E64bs_v5\":8,\"standard_EC96ias_v5\":8,\"standard_NV6ads_A10_v5\":2,\"standard_NV12ads_A10_v5\":4,\"standard_NV18ads_A10_v5\":6,\"standard_NV36ads_A10_v5\":8,\"standard_NV36adms_A10_v5\":8,\"standard_NV72ads_A10_v5\":8,\"standard_NC24ads_A100_v4\":2,\"standard_NC48ads_A100_v4\":4,\"standard_NC96ads_A100_v4\":8,\"standard_DC2as_v5\":2,\"standard_DC4as_v5\":2,\"standard_DC8as_v5\":4,\"standard_DC16as_v5\":4,\"standard_DC32as_v5\":8,\"standard_DC48as_v5\":8,\"standard_DC64as_v5\":8,\"standard_DC96as_v5\":8,\"standard_E104is_v5\":8,\"standard_E112ias_v5\":8,\"standard_E2ps_v5\":2,\"standard_E4ps_v5\":2,\"standard_E8ps_v5\":4,\"standard_E16ps_v5\":4,\"standard_E20ps_v5\":8,\"standard_E32ps_v5\":8,\"standard_E104i_v5\":8,\"standard_NP10s\":4,\"standard_NP20s\":8,\"standard_NP40s\":8,\"standard_L8s_v3\":4,\"standard_L16s_v3\":8,\"standard_L32s_v3\":8,\"standard_L48s_v3\":8,\"standard_L64s_v3\":8,\"standard_L80s_v3\":8,\"standard_DC2ads_v5\":2,\"standard_DC4ads_v5\":2,\"standard_DC8ads_v5\":4,\"standard_DC16ads_v5\":4,\"standard_DC32ads_v5\":8,\"standard_DC48ads_v5\":8,\"standard_DC64ads_v5\":8,\"standard_DC96ads_v5\":8,\"standard_D2ps_v5\":2,\"standard_D4ps_v5\":2,\"standard_D8ps_v5\":4,\"standard_D16ps_v5\":4,\"standard_D32ps_v5\":8,\"standard_D48ps_v5\":8,\"standard_D64ps_v5\":8,\"standard_D2pds_v5\":2,\"standard_D4pds_v5\":2,\"standard_D8pds_v5\":4,\"standard_D16pds_v5\":4,\"standard_D32pds_v5\":8,\"standard_D48pds_v5\":8,\"standard_D64pds_v5\":8,\"standard_D2plds_v5\":2,\"standard_D4plds_v5\":2,\"standard_D8plds_v5\":4,\"standard_D16plds_v5\":4,\"standard_D32plds_v5\":8,\"standard_D48plds_v5\":8,\"standard_D64plds_v5\":8,\"standard_E2bds_v5\":2,\"standard_E4bds_v5\":2,\"standard_E8bds_v5\":4,\"standard_E16bds_v5\":4,\"standard_E32bds_v5\":8,\"standard_E48bds_v5\":8,\"standard_E64bds_v5\":8,\"standard_D2_v5\":2,\"standard_D4_v5\":2,\"standard_D8_v5\":4,\"standard_D16_v5\":8,\"standard_D32_v5\":8,\"standard_D48_v5\":8,\"standard_D64_v5\":8,\"standard_D96_v5\":8,\"standard_E2pds_v5\":2,\"standard_E4pds_v5\":2,\"standard_E8pds_v5\":4,\"standard_E16pds_v5\":4,\"standard_E20pds_v5\":8,\"standard_E32pds_v5\":8,\"standard_EC96iads_v5\":8,\"standard_ND96amsr_A100_v4\":8,\"standard_D2pls_v5\":2,\"standard_D4pls_v5\":2,\"standard_D8pls_v5\":4,\"standard_D16pls_v5\":4,\"standard_D32pls_v5\":8,\"standard_D48pls_v5\":8,\"standard_D64pls_v5\":8,\"standard_EC2as_v5\":2,\"standard_EC4as_v5\":2,\"standard_EC8as_v5\":4,\"standard_EC16as_v5\":4,\"standard_EC20as_v5\":8,\"standard_EC32as_v5\":8,\"standard_EC48as_v5\":8,\"standard_EC64as_v5\":8,\"standard_EC96as_v5\":8,\"standard_PB6s\":1},\"excludedSkus\":[\"Standard_DC2s\",\"Standard_DC4s\",\"Standard_DC8s\"]},\"health\":\"Normal\",\"healthErrorDetails\":[],\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"state\":\"Paired\",\"sourceProtectionContainerFriendlyName\":\"signoffccyappae52replicationcontainer\",\"sourceFabricFriendlyName\":\"signoffccyappae52replicationfabric\",\"targetFabricFriendlyName\":\"Microsoft Azure\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\"}}],\"nextLink\":null}" } }, - "Get-AzMigrateReplicationProtectionContainerMapping+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings?api-version=2022-05-01+1": { + "Get-AzMigrateReplicationProtectionContainerMapping+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "29" ], @@ -79,10 +79,10 @@ "Content": "{\"value\":[{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping\",\"name\":\"containermapping\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionContainerMappings\",\"properties\":{\"targetProtectionContainerId\":\"Microsoft Azure\",\"targetProtectionContainerFriendlyName\":\"Microsoft Azure\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"keyVaultId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.KeyVault/vaults/migratekv1612849844\",\"keyVaultUri\":\"https://migratekv1612849844.vault.azure.net\",\"storageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migrategwsa1612849844\",\"storageAccountSasSecretName\":\"migrategwsa1612849844-gwySas\",\"serviceBusConnectionStringSecretName\":\"ServiceBusConnectionString\",\"targetLocation\":\"centraluseuap\",\"roleSizeToNicCountMap\":{\"default\":1,\"extraSmall\":2,\"small\":2,\"medium\":2,\"large\":2,\"a6\":2,\"a7\":4,\"a8\":2,\"a9\":4,\"a10\":2,\"a11\":4,\"standard_NV6\":2,\"standard_NV12\":2,\"standard_NV24\":4,\"standard_NV6_Promo\":2,\"standard_NV12_Promo\":2,\"standard_NV24_Promo\":4,\"standard_NV6s_v2\":4,\"standard_NV12s_v2\":8,\"standard_NV24s_v2\":8,\"standard_NV12s_v3\":4,\"standard_NV24s_v3\":8,\"standard_NV48s_v3\":8,\"standard_NV4as_v4\":2,\"standard_NV8as_v4\":4,\"standard_NV16as_v4\":8,\"standard_NV32as_v4\":8,\"standard_NC6\":2,\"standard_NC12\":2,\"standard_NC24\":4,\"standard_NC24r\":4,\"standard_NC6_Promo\":2,\"standard_NC12_Promo\":2,\"standard_NC24_Promo\":4,\"standard_NC24r_Promo\":4,\"standard_NC6s_v3\":4,\"standard_NC12s_v3\":8,\"standard_NC24rs_v3\":8,\"standard_NC24s_v3\":8,\"standard_NC6s_v2\":4,\"standard_NC12s_v2\":8,\"standard_NC24rs_v2\":8,\"standard_NC24s_v2\":8,\"standard_ND6s\":4,\"standard_ND12s\":8,\"standard_ND24s\":8,\"standard_ND24rs\":8,\"standard_ND40s_v2\":8,\"standard_ND40rs_v2\":8,\"standard_ND40s_v3\":1,\"standard_M208ms_v2\":8,\"standard_M208s_v2\":8,\"standard_M416-208s_v2\":8,\"standard_M416s_v2\":8,\"standard_M416-208ms_v2\":8,\"standard_M416ms_v2\":8,\"standard_M8ms\":4,\"standard_M16ms\":8,\"standard_M32ts\":8,\"standard_M32ls\":8,\"standard_M32ms\":8,\"standard_M64s\":8,\"standard_M64ls\":8,\"standard_M64ms\":8,\"standard_M128s\":8,\"standard_M128ms\":8,\"standard_M64\":8,\"standard_M64m\":8,\"standard_M128\":8,\"standard_M128m\":8,\"standard_M8-2ms\":2,\"standard_M8-4ms\":2,\"standard_M16-4ms\":2,\"standard_M16-8ms\":2,\"standard_M32-8ms\":8,\"standard_M32-16ms\":8,\"standard_M64-16ms\":8,\"standard_M64-32ms\":8,\"standard_M128-32ms\":8,\"standard_M128-64ms\":8,\"standard_L4s\":2,\"standard_L8s\":4,\"standard_L16s\":8,\"standard_L32s\":8,\"standard_L8s_v2\":2,\"standard_L16s_v2\":4,\"standard_L32s_v2\":8,\"standard_L48s_v2\":8,\"standard_L64s_v2\":8,\"standard_L80s_v2\":8,\"standard_H8\":2,\"standard_H16\":4,\"standard_H8m\":2,\"standard_H16m\":4,\"standard_H16r\":4,\"standard_H16mr\":4,\"standard_H8_Promo\":2,\"standard_H16_Promo\":4,\"standard_H8m_Promo\":2,\"standard_H16m_Promo\":4,\"standard_H16r_Promo\":4,\"standard_H16mr_Promo\":4,\"standard_HB60rs\":2,\"standard_HB120rs_v2\":2,\"standard_HC44rs\":2,\"standard_G1\":2,\"standard_G2\":2,\"standard_G3\":4,\"standard_G4\":8,\"standard_G5\":8,\"standard_GS1\":2,\"standard_GS2\":2,\"standard_GS3\":4,\"standard_GS4\":8,\"standard_GS4-4\":8,\"standard_GS4-8\":8,\"standard_GS5\":8,\"standard_GS5-8\":8,\"standard_GS5-16\":8,\"standard_F1\":2,\"standard_F2\":2,\"standard_F4\":4,\"standard_F8\":8,\"standard_F16\":8,\"standard_F1s\":2,\"standard_F2s\":2,\"standard_F4s\":4,\"standard_F8s\":8,\"standard_F16s\":8,\"standard_F2s_v2\":2,\"standard_F4s_v2\":2,\"standard_F8s_v2\":4,\"standard_F16s_v2\":4,\"standard_F32s_v2\":8,\"standard_F48s_v2\":8,\"standard_F64s_v2\":8,\"standard_F72s_v2\":8,\"standard_E2_v3\":2,\"standard_E4_v3\":2,\"standard_E8_v3\":4,\"standard_E16_v3\":8,\"standard_E20_v3\":8,\"standard_E32_v3\":8,\"standard_E48_v3\":8,\"standard_E64_v3\":8,\"standard_E64i_v3\":8,\"standard_E64is_v3\":8,\"standard_E2_v4\":2,\"standard_E4_v4\":2,\"standard_E8_v4\":4,\"standard_E16_v4\":8,\"standard_E20_v4\":8,\"standard_E32_v4\":8,\"standard_E48_v4\":8,\"standard_E64_v4\":8,\"standard_E2s_v3\":2,\"standard_E4s_v3\":2,\"standard_E4-2s_v3\":2,\"standard_E8s_v3\":4,\"standard_E8-2s_v3\":4,\"standard_E8-4s_v3\":4,\"standard_E16s_v3\":8,\"standard_E16-4s_v3\":8,\"standard_E16-8s_v3\":8,\"standard_E20s_v3\":8,\"standard_E32s_v3\":8,\"standard_E32-8s_v3\":8,\"standard_E32-16s_v3\":8,\"standard_E48s_v3\":8,\"standard_E64s_v3\":8,\"standard_E64-16s_v3\":8,\"standard_E64-32s_v3\":8,\"standard_E2a_v4\":2,\"standard_E4a_v4\":2,\"standard_E8a_v4\":4,\"standard_E16a_v4\":8,\"standard_E20a_v4\":8,\"standard_E32a_v4\":8,\"standard_E48a_v4\":8,\"standard_E64a_v4\":8,\"standard_E96a_v4\":8,\"standard_E2as_v4\":2,\"standard_E4as_v4\":2,\"standard_E8as_v4\":4,\"standard_E16as_v4\":8,\"standard_E20as_v4\":8,\"standard_E32as_v4\":8,\"standard_E48as_v4\":8,\"standard_E64as_v4\":8,\"standard_E96as_v4\":8,\"standard_E2d_v4\":2,\"standard_E4d_v4\":2,\"standard_E8d_v4\":4,\"standard_E16d_v4\":8,\"standard_E20d_v4\":8,\"standard_E32d_v4\":8,\"standard_E48d_v4\":8,\"standard_E64d_v4\":8,\"standard_E2s_v4\":2,\"standard_E4-2s_v4\":2,\"standard_E4s_v4\":2,\"standard_E8-2s_v4\":2,\"standard_E8-4s_v4\":4,\"standard_E8s_v4\":4,\"standard_E16-4s_v4\":8,\"standard_E16-8s_v4\":8,\"standard_E16s_v4\":8,\"standard_E20s_v4\":8,\"standard_E32-8s_v4\":8,\"standard_E32-16s_v4\":8,\"standard_E32s_v4\":8,\"standard_E48s_v4\":8,\"standard_E64-16s_v4\":8,\"standard_E64-32s_v4\":8,\"standard_E64s_v4\":8,\"standard_E2ds_v4\":2,\"standard_E4-2ds_v4\":2,\"standard_E4ds_v4\":2,\"standard_E8-2ds_v4\":4,\"standard_E8-4ds_v4\":4,\"standard_E8ds_v4\":4,\"standard_E16-4ds_v4\":8,\"standard_E16-8ds_v4\":8,\"standard_E16ds_v4\":8,\"standard_E20ds_v4\":8,\"standard_E32-8ds_v4\":8,\"standard_E32-16ds_v4\":8,\"standard_E32ds_v4\":8,\"standard_E48ds_v4\":8,\"standard_E64-16ds_v4\":8,\"standard_E64-32ds_v4\":8,\"standard_E64ds_v4\":8,\"standard_D1\":2,\"standard_D2\":2,\"standard_D3\":4,\"standard_D4\":8,\"standard_D11\":2,\"standard_D12\":4,\"standard_D13\":8,\"standard_D14\":8,\"standard_D1_v2\":2,\"standard_D2_v2\":2,\"standard_D3_v2\":4,\"standard_D4_v2\":8,\"standard_D5_v2\":8,\"standard_D11_v2\":2,\"standard_D12_v2\":4,\"standard_D13_v2\":8,\"standard_D14_v2\":8,\"standard_D15_v2\":8,\"standard_D2_v2_Promo\":2,\"standard_D3_v2_Promo\":4,\"standard_D4_v2_Promo\":8,\"standard_D5_v2_Promo\":8,\"standard_D11_v2_Promo\":2,\"standard_D12_v2_Promo\":4,\"standard_D13_v2_Promo\":8,\"standard_D14_v2_Promo\":8,\"standard_D2_v3\":2,\"standard_D4_v3\":2,\"standard_D8_v3\":4,\"standard_D16_v3\":8,\"standard_D32_v3\":8,\"standard_D48_v3\":8,\"standard_D64_v3\":8,\"standard_D2_v4\":2,\"standard_D4_v4\":2,\"standard_D8_v4\":4,\"standard_D16_v4\":8,\"standard_D32_v4\":8,\"standard_D48_v4\":8,\"standard_D64_v4\":8,\"standard_D2a_v4\":2,\"standard_D4a_v4\":2,\"standard_D8a_v4\":4,\"standard_D16a_v4\":8,\"standard_D32a_v4\":8,\"standard_D48a_v4\":8,\"standard_D64a_v4\":8,\"standard_D96a_v4\":8,\"standard_D2as_v4\":2,\"standard_D4as_v4\":2,\"standard_D8as_v4\":4,\"standard_D16as_v4\":8,\"standard_D32as_v4\":8,\"standard_D48as_v4\":8,\"standard_D64as_v4\":8,\"standard_D96as_v4\":8,\"standard_D2d_v4\":2,\"standard_D4d_v4\":2,\"standard_D8d_v4\":4,\"standard_D16d_v4\":8,\"standard_D32d_v4\":8,\"standard_D48d_v4\":8,\"standard_D64d_v4\":8,\"standard_D2ds_v4\":2,\"standard_D4ds_v4\":2,\"standard_D8ds_v4\":4,\"standard_D16ds_v4\":8,\"standard_D32ds_v4\":8,\"standard_D48ds_v4\":8,\"standard_D64ds_v4\":8,\"standard_DS1\":2,\"standard_DS2\":2,\"standard_DS3\":4,\"standard_DS4\":8,\"standard_DS11\":2,\"standard_DS12\":4,\"standard_DS13\":8,\"standard_DS14\":8,\"standard_DS1_v2\":2,\"standard_DS2_v2\":2,\"standard_DS3_v2\":4,\"standard_DS4_v2\":8,\"standard_DS5_v2\":8,\"standard_DS11_v2\":2,\"standard_DS11-1_v2\":2,\"standard_DS12_v2\":4,\"standard_DS12_v2_Promo\":4,\"standard_DS12-1_v2\":4,\"standard_DS12-2_v2\":4,\"standard_DS13_v2\":8,\"standard_DS13-2_v2\":8,\"standard_DS13-4_v2\":8,\"standard_DS14_v2\":8,\"standard_DS14-4_v2\":8,\"standard_DS14-8_v2\":8,\"standard_DS15_v2\":8,\"standard_DS2_v2_Promo\":2,\"standard_DS3_v2_Promo\":4,\"standard_DS4_v2_Promo\":8,\"standard_DS5_v2_Promo\":8,\"standard_DS11_v2_Promo\":2,\"standard_DS13_v2_Promo\":8,\"standard_DS14_v2_Promo\":8,\"standard_D2s_v3\":2,\"standard_D4s_v3\":2,\"standard_D8s_v3\":4,\"standard_D16s_v3\":8,\"standard_D32s_v3\":8,\"standard_D48s_v3\":8,\"standard_D64s_v3\":8,\"standard_D2s_v4\":2,\"standard_D4s_v4\":2,\"standard_D8s_v4\":4,\"standard_D16s_v4\":8,\"standard_D32s_v4\":8,\"standard_D48s_v4\":8,\"standard_D64s_v4\":8,\"standard_DC2s\":2,\"standard_DC4s\":2,\"standard_DC8_v2\":1,\"standard_DC1s_v2\":1,\"standard_DC2s_v2\":1,\"standard_DC4s_v2\":1,\"standard_B1ls\":2,\"standard_B1s\":2,\"standard_B1ms\":2,\"standard_B2s\":3,\"standard_B2ms\":3,\"standard_B4ms\":4,\"standard_B8ms\":4,\"standard_B12ms\":6,\"standard_B16ms\":8,\"standard_B20ms\":8,\"standard_A0\":2,\"standard_A1\":2,\"standard_A2\":2,\"standard_A3\":2,\"standard_A4\":4,\"standard_A5\":2,\"standard_A6\":2,\"standard_A7\":4,\"standard_A8\":2,\"standard_A9\":4,\"standard_A10\":2,\"standard_A11\":4,\"standard_A1_v2\":2,\"standard_A2_v2\":2,\"standard_A4_v2\":4,\"standard_A8_v2\":8,\"standard_A2m_v2\":2,\"standard_A4m_v2\":4,\"standard_A8m_v2\":8,\"basic_A0\":2,\"basic_A1\":2,\"basic_A2\":2,\"basic_A3\":2,\"basic_A4\":2,\"standard_M32ms_v2\":8,\"standard_M64ms_v2\":8,\"standard_M64s_v2\":8,\"standard_M128ms_v2\":8,\"standard_M128s_v2\":8,\"standard_HB60-15rs\":8,\"standard_HB60-30rs\":8,\"standard_HB60-45rs\":8,\"standard_E2_v5\":2,\"standard_E4_v5\":2,\"standard_E8_v5\":4,\"standard_E16_v5\":8,\"standard_E20_v5\":8,\"standard_E32_v5\":8,\"standard_E48_v5\":8,\"standard_E64_v5\":8,\"standard_E96_v5\":8,\"standard_L8as_v3\":4,\"standard_L16as_v3\":8,\"standard_L32as_v3\":8,\"standard_L48as_v3\":8,\"standard_L64as_v3\":8,\"standard_L80as_v3\":8,\"standard_NC4as_T4_v3\":4,\"standard_NC8as_T4_v3\":8,\"standard_NC16as_T4_v3\":8,\"standard_NC64as_T4_v3\":8,\"standard_D2d_v5\":2,\"standard_D4d_v5\":2,\"standard_D8d_v5\":4,\"standard_D16d_v5\":8,\"standard_D32d_v5\":8,\"standard_D48d_v5\":8,\"standard_D64d_v5\":8,\"standard_D96d_v5\":8,\"standard_NC8ads_A10_v4\":2,\"standard_NC16ads_A10_v4\":4,\"standard_NC32ads_A10_v4\":8,\"standard_ND96asr_v4\":8,\"standard_D2as_v5\":2,\"standard_D4as_v5\":2,\"standard_D8as_v5\":4,\"standard_D16as_v5\":8,\"standard_D32as_v5\":8,\"standard_D48as_v5\":8,\"standard_D64as_v5\":8,\"standard_D96as_v5\":8,\"standard_M32dms_v2\":8,\"standard_M64ds_v2\":8,\"standard_M64dms_v2\":8,\"standard_M128ds_v2\":8,\"standard_M128dms_v2\":8,\"standard_EC2ads_v5\":2,\"standard_EC4ads_v5\":2,\"standard_EC8ads_v5\":4,\"standard_EC16ads_v5\":4,\"standard_EC20ads_v5\":8,\"standard_EC32ads_v5\":8,\"standard_EC48ads_v5\":8,\"standard_EC64ads_v5\":8,\"standard_EC96ads_v5\":8,\"standard_HB120rs_v3\":8,\"standard_HB120-16rs_v3\":8,\"standard_HB120-32rs_v3\":8,\"standard_HB120-64rs_v3\":8,\"standard_HB120-96rs_v3\":8,\"standard_M192is_v2\":8,\"standard_M192ims_v2\":8,\"standard_E104id_v5\":8,\"standard_DC1s_v3\":2,\"standard_DC2s_v3\":2,\"standard_DC4s_v3\":4,\"standard_DC8s_v3\":8,\"standard_DC16s_v3\":8,\"standard_DC24s_v3\":8,\"standard_DC32s_v3\":8,\"standard_DC48s_v3\":8,\"standard_E2d_v5\":2,\"standard_E4d_v5\":2,\"standard_E8d_v5\":4,\"standard_E16d_v5\":8,\"standard_E20d_v5\":8,\"standard_E32d_v5\":8,\"standard_E48d_v5\":8,\"standard_E64d_v5\":8,\"standard_E96d_v5\":8,\"standard_E2ds_v5\":2,\"standard_E4ds_v5\":2,\"standard_E4-2ds_v5\":2,\"standard_E8ds_v5\":4,\"standard_E8-2ds_v5\":4,\"standard_E8-4ds_v5\":4,\"standard_E16ds_v5\":8,\"standard_E16-4ds_v5\":8,\"standard_E16-8ds_v5\":8,\"standard_E20ds_v5\":8,\"standard_E32ds_v5\":8,\"standard_E32-8ds_v5\":8,\"standard_E32-16ds_v5\":8,\"standard_E48ds_v5\":8,\"standard_E64ds_v5\":8,\"standard_E64-16ds_v5\":8,\"standard_E64-32ds_v5\":8,\"standard_E96ds_v5\":8,\"standard_E96-24ds_v5\":8,\"standard_E96-48ds_v5\":8,\"standard_E80ids_v4\":8,\"standard_D2s_v5\":2,\"standard_D4s_v5\":2,\"standard_D8s_v5\":4,\"standard_D16s_v5\":8,\"standard_D32s_v5\":8,\"standard_D48s_v5\":8,\"standard_D64s_v5\":8,\"standard_D96s_v5\":8,\"standard_E2s_v5\":2,\"standard_E4s_v5\":2,\"standard_E4-2s_v5\":2,\"standard_E8s_v5\":4,\"standard_E8-2s_v5\":4,\"standard_E8-4s_v5\":4,\"standard_E16s_v5\":8,\"standard_E16-4s_v5\":8,\"standard_E16-8s_v5\":8,\"standard_E20s_v5\":8,\"standard_E32s_v5\":8,\"standard_E32-8s_v5\":8,\"standard_E32-16s_v5\":8,\"standard_E48s_v5\":8,\"standard_E64s_v5\":8,\"standard_E64-16s_v5\":8,\"standard_E64-32s_v5\":8,\"standard_E96s_v5\":8,\"standard_E96-24s_v5\":8,\"standard_E96-48s_v5\":8,\"standard_E2as_v5\":2,\"standard_E4as_v5\":2,\"standard_E4-2as_v5\":2,\"standard_E8as_v5\":4,\"standard_E8-2as_v5\":4,\"standard_E8-4as_v5\":4,\"standard_E16as_v5\":8,\"standard_E16-4as_v5\":8,\"standard_E16-8as_v5\":8,\"standard_E20as_v5\":8,\"standard_E32as_v5\":8,\"standard_E32-8as_v5\":8,\"standard_E32-16as_v5\":8,\"standard_E48as_v5\":8,\"standard_E64as_v5\":8,\"standard_E64-16as_v5\":8,\"standard_E64-32as_v5\":8,\"standard_E96as_v5\":8,\"standard_E96-24as_v5\":8,\"standard_E96-48as_v5\":8,\"standard_E80is_v4\":8,\"standard_E96ias_v4\":8,\"standard_E104ids_v5\":8,\"standard_M192idms_v2\":8,\"standard_M192ids_v2\":8,\"standard_D2ds_v5\":2,\"standard_D4ds_v5\":2,\"standard_D8ds_v5\":4,\"standard_D16ds_v5\":8,\"standard_D32ds_v5\":8,\"standard_D64ds_v5\":8,\"standard_D48ds_v5\":8,\"standard_D96ds_v5\":8,\"standard_FX4mds\":2,\"standard_FX12mds\":4,\"standard_FX36mds\":8,\"standard_FX24mds\":4,\"standard_FX48mds\":8,\"standard_D2ads_v5\":2,\"standard_D4ads_v5\":2,\"standard_D8ads_v5\":4,\"standard_D16ads_v5\":8,\"standard_D32ads_v5\":8,\"standard_D48ads_v5\":8,\"standard_D64ads_v5\":8,\"standard_D96ads_v5\":8,\"standard_E2ads_v5\":2,\"standard_E4ads_v5\":2,\"standard_E4-2ads_v5\":2,\"standard_E8ads_v5\":4,\"standard_E8-2ads_v5\":4,\"standard_E8-4ads_v5\":4,\"standard_E16ads_v5\":8,\"standard_E16-4ads_v5\":8,\"standard_E16-8ads_v5\":8,\"standard_E20ads_v5\":8,\"standard_E32ads_v5\":8,\"standard_E32-8ads_v5\":8,\"standard_E32-16ads_v5\":8,\"standard_E48ads_v5\":8,\"standard_E64ads_v5\":8,\"standard_E64-16ads_v5\":8,\"standard_E64-32ads_v5\":8,\"standard_E96ads_v5\":8,\"standard_E96-24ads_v5\":8,\"standard_E96-48ads_v5\":8,\"standard_E112iads_v5\":8,\"standard_DC1ds_v3\":2,\"standard_DC2ds_v3\":2,\"standard_DC4ds_v3\":4,\"standard_DC8ds_v3\":8,\"standard_DC16ds_v3\":8,\"standard_DC24ds_v3\":8,\"standard_DC32ds_v3\":8,\"standard_DC48ds_v3\":8,\"standard_E2bs_v5\":2,\"standard_E4bs_v5\":2,\"standard_E8bs_v5\":4,\"standard_E16bs_v5\":4,\"standard_E32bs_v5\":8,\"standard_E48bs_v5\":8,\"standard_E64bs_v5\":8,\"standard_EC96ias_v5\":8,\"standard_NV6ads_A10_v5\":2,\"standard_NV12ads_A10_v5\":4,\"standard_NV18ads_A10_v5\":6,\"standard_NV36ads_A10_v5\":8,\"standard_NV36adms_A10_v5\":8,\"standard_NV72ads_A10_v5\":8,\"standard_NC24ads_A100_v4\":2,\"standard_NC48ads_A100_v4\":4,\"standard_NC96ads_A100_v4\":8,\"standard_DC2as_v5\":2,\"standard_DC4as_v5\":2,\"standard_DC8as_v5\":4,\"standard_DC16as_v5\":4,\"standard_DC32as_v5\":8,\"standard_DC48as_v5\":8,\"standard_DC64as_v5\":8,\"standard_DC96as_v5\":8,\"standard_E104is_v5\":8,\"standard_E112ias_v5\":8,\"standard_E2ps_v5\":2,\"standard_E4ps_v5\":2,\"standard_E8ps_v5\":4,\"standard_E16ps_v5\":4,\"standard_E20ps_v5\":8,\"standard_E32ps_v5\":8,\"standard_E104i_v5\":8,\"standard_NP10s\":4,\"standard_NP20s\":8,\"standard_NP40s\":8,\"standard_L8s_v3\":4,\"standard_L16s_v3\":8,\"standard_L32s_v3\":8,\"standard_L48s_v3\":8,\"standard_L64s_v3\":8,\"standard_L80s_v3\":8,\"standard_DC2ads_v5\":2,\"standard_DC4ads_v5\":2,\"standard_DC8ads_v5\":4,\"standard_DC16ads_v5\":4,\"standard_DC32ads_v5\":8,\"standard_DC48ads_v5\":8,\"standard_DC64ads_v5\":8,\"standard_DC96ads_v5\":8,\"standard_D2ps_v5\":2,\"standard_D4ps_v5\":2,\"standard_D8ps_v5\":4,\"standard_D16ps_v5\":4,\"standard_D32ps_v5\":8,\"standard_D48ps_v5\":8,\"standard_D64ps_v5\":8,\"standard_D2pds_v5\":2,\"standard_D4pds_v5\":2,\"standard_D8pds_v5\":4,\"standard_D16pds_v5\":4,\"standard_D32pds_v5\":8,\"standard_D48pds_v5\":8,\"standard_D64pds_v5\":8,\"standard_D2plds_v5\":2,\"standard_D4plds_v5\":2,\"standard_D8plds_v5\":4,\"standard_D16plds_v5\":4,\"standard_D32plds_v5\":8,\"standard_D48plds_v5\":8,\"standard_D64plds_v5\":8,\"standard_E2bds_v5\":2,\"standard_E4bds_v5\":2,\"standard_E8bds_v5\":4,\"standard_E16bds_v5\":4,\"standard_E32bds_v5\":8,\"standard_E48bds_v5\":8,\"standard_E64bds_v5\":8,\"standard_D2_v5\":2,\"standard_D4_v5\":2,\"standard_D8_v5\":4,\"standard_D16_v5\":8,\"standard_D32_v5\":8,\"standard_D48_v5\":8,\"standard_D64_v5\":8,\"standard_D96_v5\":8,\"standard_E2pds_v5\":2,\"standard_E4pds_v5\":2,\"standard_E8pds_v5\":4,\"standard_E16pds_v5\":4,\"standard_E20pds_v5\":8,\"standard_E32pds_v5\":8,\"standard_EC96iads_v5\":8,\"standard_ND96amsr_A100_v4\":8,\"standard_D2pls_v5\":2,\"standard_D4pls_v5\":2,\"standard_D8pls_v5\":4,\"standard_D16pls_v5\":4,\"standard_D32pls_v5\":8,\"standard_D48pls_v5\":8,\"standard_D64pls_v5\":8,\"standard_EC2as_v5\":2,\"standard_EC4as_v5\":2,\"standard_EC8as_v5\":4,\"standard_EC16as_v5\":4,\"standard_EC20as_v5\":8,\"standard_EC32as_v5\":8,\"standard_EC48as_v5\":8,\"standard_EC64as_v5\":8,\"standard_EC96as_v5\":8,\"standard_PB6s\":1},\"excludedSkus\":[\"Standard_DC2s\",\"Standard_DC4s\",\"Standard_DC8s\"]},\"health\":\"Normal\",\"healthErrorDetails\":[],\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"state\":\"Paired\",\"sourceProtectionContainerFriendlyName\":\"signoffccyappae52replicationcontainer\",\"sourceFabricFriendlyName\":\"signoffccyappae52replicationfabric\",\"targetFabricFriendlyName\":\"Microsoft Azure\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\"}}],\"nextLink\":null}" } }, - "Get-AzMigrateReplicationProtectionContainerMapping+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping?api-version=2022-05-01+1": { + "Get-AzMigrateReplicationProtectionContainerMapping+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "30" ], diff --git a/src/Migrate/test/Get-AzMigrateReplicationRecoveryServicesProvider.Recording.json b/src/Migrate/test/Get-AzMigrateReplicationRecoveryServicesProvider.Recording.json index 46a6d61403c5..4c9df8de20f1 100644 --- a/src/Migrate/test/Get-AzMigrateReplicationRecoveryServicesProvider.Recording.json +++ b/src/Migrate/test/Get-AzMigrateReplicationRecoveryServicesProvider.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzMigrateReplicationRecoveryServicesProvider+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationRecoveryServicesProviders?api-version=2022-05-01+1": { + "Get-AzMigrateReplicationRecoveryServicesProvider+[NoContext]+List+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationRecoveryServicesProviders?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationRecoveryServicesProviders?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationRecoveryServicesProviders?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "31" ], @@ -39,10 +39,10 @@ "Content": "{\"value\":[{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/signoffccyappae52dra\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationRecoveryServicesProviders\",\"name\":\"signoffccyappae52dra\",\"properties\":{\"fabricType\":\"VMwareV2\",\"friendlyName\":\"signoffccyappae52dra\",\"providerVersion\":\"5.1.7636.0\",\"serverVersion\":\"0.0\",\"providerVersionState\":\"Latest\",\"providerVersionExpiryDate\":\"9999-12-31T23:59:59.9999999\",\"fabricFriendlyName\":\"signoffccyappae52replicationfabric\",\"lastHeartBeat\":\"2022-09-26T11:22:31.9317498Z\",\"connectionStatus\":\"Connected\",\"protectedItemCount\":7,\"allowedScenarios\":[\"Refresh\"],\"healthErrorDetails\":[],\"draIdentifier\":\"25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"machineId\":null,\"machineName\":\"WIN-DGSM4IF4RMF\",\"biosId\":null,\"authenticationIdentityDetails\":{\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"applicationId\":\"d759dafa-25b0-412b-b5bc-78e0307b5596\",\"objectId\":\"0cdd5aed-eadc-45ed-8b0b-3819d175955e\",\"audience\":\"d759dafa-25b0-412b-b5bc-78e0307b5596\",\"aadAuthority\":\"https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"resourceAccessIdentityDetails\":{\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\",\"applicationId\":\"d759dafa-25b0-412b-b5bc-78e0307b5596\",\"objectId\":\"0cdd5aed-eadc-45ed-8b0b-3819d175955e\",\"audience\":\"d759dafa-25b0-412b-b5bc-78e0307b5596\",\"aadAuthority\":\"https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"dataPlaneAuthenticationIdentityDetails\":null,\"providerVersionDetails\":{\"version\":\"5.1.7636.0\",\"expiryDate\":\"9999-12-31T23:59:59.9999999\",\"status\":\"Supported\"}}}],\"nextLink\":null}" } }, - "Get-AzMigrateReplicationRecoveryServicesProvider+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/signoffccyappae52dra?api-version=2022-05-01+1": { + "Get-AzMigrateReplicationRecoveryServicesProvider+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/signoffccyappae52dra?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/signoffccyappae52dra?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/signoffccyappae52dra?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "32" ], diff --git a/src/Migrate/test/Get-AzMigrateServerReplication.Recording.json b/src/Migrate/test/Get-AzMigrateServerReplication.Recording.json index c4a8832b7562..b89adda4a379 100644 --- a/src/Migrate/test/Get-AzMigrateServerReplication.Recording.json +++ b/src/Migrate/test/Get-AzMigrateServerReplication.Recording.json @@ -37,10 +37,10 @@ "Content": "{\"id\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Migrate/MigrateProjects/signoffccyproj/Solutions/Servers-Migration-ServerMigration\",\"name\":\"Servers-Migration-ServerMigration\",\"type\":\"Microsoft.Migrate/MigrateProjects/Solutions\",\"etag\":\"\\\"0400a1d3-0000-3300-0000-62dd866f0000\\\"\",\"properties\":{\"tool\":\"ServerMigration\",\"purpose\":\"Migration\",\"goal\":\"Servers\",\"status\":\"Active\",\"cleanupState\":\"None\",\"summary\":{\"instanceType\":\"Servers\",\"discoveredCount\":0,\"assessedCount\":0,\"replicatingCount\":7,\"testMigratedCount\":0,\"migratedCount\":0},\"details\":{\"groupCount\":0,\"assessmentCount\":0,\"extendedDetails\":{\"serversOnWindows\":\"0\",\"serversOnLinux\":\"0\",\"serversOnOther\":\"0\",\"dependencyEnabledMachines\":\"0\",\"machinesHavingSqlServers\":\"0\",\"machinesHavingWebServers\":\"0\",\"vaultId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault\"}}}}" } }, - "Get-AzMigrateServerReplication+[NoContext]+ListByName+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationMigrationItems?api-version=2022-05-01+2": { + "Get-AzMigrateServerReplication+[NoContext]+ListByName+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationMigrationItems?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationMigrationItems?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationMigrationItems?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "36" ], @@ -77,10 +77,10 @@ "Content": "{\"value\":[{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Win2k16\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationTime\":\"2022-09-23T17:47:01.5486966Z\",\"lastMigrationStatus\":\"Succeeded\",\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"847d99b2-057d-4f3b-8389-358a5a5a34e4\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"osType\":\"Windows\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"PAYG\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Win2k16\",\"targetVmSize\":\"Standard_A4_v2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrationRecoveryPoints/83563c3a-e189-4703-a965-0f96fc91fa52\",\"lastRecoveryPointReceived\":\"2022-09-26T15:15:56.79Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrationRecoveryPoints/7d78a16d-f016-4c0e-b144-94e7d5387764\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"true\",\"seedDiskTags\":{},\"targetDiskTags\":{}}}},{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Scale-Rhel8-03\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationStatus\":null,\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[{\"innerHealthErrors\":[],\"errorSource\":\"ReplicationUnitFailoverValidatorError\",\"errorType\":\"8010\",\"errorLevel\":\"Error\",\"errorCategory\":\"TestFailover\",\"errorCode\":\"110084\",\"summaryMessage\":\"\",\"errorMessage\":\"No successful test migration has been done on the virtual machine \u0027Scale-Rhel8-03\u0027.\",\"possibleCauses\":\"No successful test migration has been done on the virtual machine after it was replicated.\",\"recommendedAction\":\"Do a test migration on the virtual machine.\",\"creationTimeUtc\":\"2022-09-26T05:16:22.8871285Z\",\"recoveryProviderErrorMessage\":null,\"entityId\":\"5914e571-f3f4-56c7-b3e6-83adaf53c5c4\",\"errorId\":\"6:8010\",\"customerResolvability\":\"NotAllowed\"}],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"7a0a8c1c-1f32-4120-87a1-77e4b114cc7a\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9\",\"osType\":\"Linux\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Scale-Rhel8-03\",\"targetVmSize\":\"Basic_A2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[],\"targetNicTags\":{},\"migrationRecoveryPointId\":null,\"lastRecoveryPointReceived\":\"2022-09-26T09:43:07.645Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9/migrationRecoveryPoints/4ec41578-8f9b-4927-99e7-efd9a590bfb0\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":{},\"targetDiskTags\":{}}}},{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"win2k10-02-c\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationStatus\":null,\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[{\"innerHealthErrors\":[],\"errorSource\":\"ReplicationUnitFailoverValidatorError\",\"errorType\":\"8010\",\"errorLevel\":\"Error\",\"errorCategory\":\"TestFailover\",\"errorCode\":\"110084\",\"summaryMessage\":\"\",\"errorMessage\":\"No successful test migration has been done on the virtual machine \u0027win2k10-02-c\u0027.\",\"possibleCauses\":\"No successful test migration has been done on the virtual machine after it was replicated.\",\"recommendedAction\":\"Do a test migration on the virtual machine.\",\"creationTimeUtc\":\"2022-09-26T05:38:22.8280991Z\",\"recoveryProviderErrorMessage\":null,\"entityId\":\"6b407141-5a2e-56f9-b42b-03b7b69def43\",\"errorId\":\"6:8010\",\"customerResolvability\":\"NotAllowed\"}],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"2caaff14-d284-42dd-ac59-fe202fb62fd8\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6\",\"osType\":\"Windows\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"win2k10-02-c\",\"targetVmSize\":\"Basic_A3\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[],\"targetNicTags\":{},\"migrationRecoveryPointId\":null,\"lastRecoveryPointReceived\":\"2022-09-26T14:53:04.257Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6/migrationRecoveryPoints/be95c679-d3d7-49ca-b92f-34bda39eb529\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":{},\"targetDiskTags\":{}}}},{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Scale-Win-UEFI-03\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationTime\":\"2022-09-23T17:47:15.2771522Z\",\"lastMigrationStatus\":\"CompletedWithInformation\",\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[{\"innerHealthErrors\":[],\"errorSource\":\"ReplicationUnitFailoverValidatorError\",\"errorType\":\"8010\",\"errorLevel\":\"Error\",\"errorCategory\":\"TestFailover\",\"errorCode\":\"110084\",\"summaryMessage\":\"\",\"errorMessage\":\"No successful test migration has been done on the virtual machine \u0027Scale-Win-UEFI-03\u0027.\",\"possibleCauses\":\"No successful test migration has been done on the virtual machine after it was replicated.\",\"recommendedAction\":\"Do a test migration on the virtual machine.\",\"creationTimeUtc\":\"2022-09-25T16:55:08.3023561Z\",\"recoveryProviderErrorMessage\":null,\"entityId\":\"72eab4fb-f77b-56f1-b2d4-c21166aedcc3\",\"errorId\":\"6:8010\",\"customerResolvability\":\"NotAllowed\"}],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[{\"jobName\":\"PlannedFailover\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/11af33d5-128a-45dd-88f6-ab382d21828f\",\"startTime\":\"2022-09-23T17:47:15.2771522Z\",\"jobStatus\":\"CompletedWithInformation\"}],\"eventCorrelationId\":\"711e3761-e500-4601-a6e9-559baef2282b\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"osType\":\"Windows\",\"firmwareType\":\"EFI\",\"targetGeneration\":\"V2\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"PAYG\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Scale-Win-UEFI-03\",\"targetVmSize\":\"Standard_B12ms\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"vmNics\":[],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/migrationRecoveryPoints/5ec876b6-89ae-4681-bd03-9dadad61351e\",\"lastRecoveryPointReceived\":\"2022-09-26T09:44:07.644Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/migrationRecoveryPoints/84173b51-3e4f-46fb-be3a-3aa3334e6955\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"true\",\"seedDiskTags\":{},\"targetDiskTags\":{}}}},{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"win2k12-01\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Paused\",\"migrationState\":\"ProtectionSuspended\",\"migrationStateDescription\":\"Paused\",\"lastTestMigrationStatus\":null,\"lastMigrationStatus\":null,\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"None\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"ResumeReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"70bf2a6c-e930-4a08-9203-9fe67a66b5a4\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0\",\"osType\":\"Windows\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"win2k12-01\",\"targetVmSize\":\"Basic_A3\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[],\"targetNicTags\":{},\"migrationRecoveryPointId\":null,\"lastRecoveryPointReceived\":\"1999-01-22T06:48:15.062Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0/migrationRecoveryPoints/51f977f2-f497-4dcc-96ae-916d4149f471\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":{},\"targetDiskTags\":{}}}},{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"FT-Win10-Cloned\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationStatus\":null,\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[{\"innerHealthErrors\":[],\"errorSource\":\"ReplicationUnitFailoverValidatorError\",\"errorType\":\"8010\",\"errorLevel\":\"Error\",\"errorCategory\":\"TestFailover\",\"errorCode\":\"110084\",\"summaryMessage\":\"\",\"errorMessage\":\"No successful test migration has been done on the virtual machine \u0027FT-Win10-Cloned\u0027.\",\"possibleCauses\":\"No successful test migration has been done on the virtual machine after it was replicated.\",\"recommendedAction\":\"Do a test migration on the virtual machine.\",\"creationTimeUtc\":\"2022-09-26T05:45:03.2570479Z\",\"recoveryProviderErrorMessage\":null,\"entityId\":\"96b6c033-7c77-5543-888d-c6fecbb1aacb\",\"errorId\":\"6:8010\",\"customerResolvability\":\"NotAllowed\"}],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"85a68ea4-513b-48af-8502-238c13e9024c\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980\",\"osType\":\"Windows\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"FT-Win10-Cloned\",\"targetVmSize\":\"Basic_A3\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[],\"targetNicTags\":{},\"migrationRecoveryPointId\":null,\"lastRecoveryPointReceived\":\"2022-09-26T14:53:04.258Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980/migrationRecoveryPoints/63870fa0-e5b4-4b6b-b92b-7f3d6e9211a2\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":{},\"targetDiskTags\":{}}}},{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Scale-Rhel7\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Paused\",\"migrationState\":\"ProtectionSuspended\",\"migrationStateDescription\":\"Paused\",\"lastTestMigrationStatus\":null,\"lastMigrationStatus\":null,\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"None\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"ResumeReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"b151ff38-919c-4e10-aab5-caedb08ebc06\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"osType\":\"Linux\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Scale-Rhel7\",\"targetVmSize\":\"Standard_A1_v2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[],\"targetNicTags\":{},\"migrationRecoveryPointId\":null,\"lastRecoveryPointReceived\":\"2022-09-26T09:43:07.658Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/migrationRecoveryPoints/95923d0c-d822-4367-9038-8e715e9480fa\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":{},\"targetDiskTags\":{}}}}],\"nextLink\":null}" } }, - "Get-AzMigrateServerReplication+[NoContext]+GetBySRSID+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2022-05-01+1": { + "Get-AzMigrateServerReplication+[NoContext]+GetBySRSID+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "37" ], @@ -194,10 +194,10 @@ "Content": "{\"id\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Migrate/MigrateProjects/signoffccyproj/Solutions/Servers-Migration-ServerMigration\",\"name\":\"Servers-Migration-ServerMigration\",\"type\":\"Microsoft.Migrate/MigrateProjects/Solutions\",\"etag\":\"\\\"0400a1d3-0000-3300-0000-62dd866f0000\\\"\",\"properties\":{\"tool\":\"ServerMigration\",\"purpose\":\"Migration\",\"goal\":\"Servers\",\"status\":\"Active\",\"cleanupState\":\"None\",\"summary\":{\"instanceType\":\"Servers\",\"discoveredCount\":0,\"assessedCount\":0,\"replicatingCount\":7,\"testMigratedCount\":0,\"migratedCount\":0},\"details\":{\"groupCount\":0,\"assessmentCount\":0,\"extendedDetails\":{\"serversOnWindows\":\"0\",\"serversOnLinux\":\"0\",\"serversOnOther\":\"0\",\"dependencyEnabledMachines\":\"0\",\"machinesHavingSqlServers\":\"0\",\"machinesHavingWebServers\":\"0\",\"vaultId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault\"}}}}" } }, - "Get-AzMigrateServerReplication+[NoContext]+GetBySDSID+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics?api-version=2022-05-01+3": { + "Get-AzMigrateServerReplication+[NoContext]+GetBySDSID+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics?api-version=2023-01-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "40" ], @@ -234,10 +234,10 @@ "Content": "{\"value\":[{\"name\":\"signoffccyappae52replicationfabric\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics\",\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric\",\"properties\":{\"friendlyName\":\"signoffccyappae52replicationfabric\",\"encryptionDetails\":{\"kekState\":\"None\",\"kekCertThumbprint\":null},\"rolloverEncryptionDetails\":{\"kekState\":\"None\",\"kekCertThumbprint\":null},\"internalIdentifier\":\"e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"bcdrState\":\"Valid\",\"customDetails\":{\"instanceType\":\"VMwareV2\",\"vmwareSiteId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site\",\"physicalSiteId\":null,\"migrationSolutionId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Migrate/MigrateProjects/signoffccyproj/Solutions/Servers-Migration-ServerMigration\",\"serviceEndpoint\":\"https://pod01-srs1.ccy.hypervrecoverymanager.windowsazure.com\",\"serviceResourceId\":\"2966956768769697278\",\"serviceContainerId\":\"10186957526572\",\"processServers\":[]},\"healthErrorDetails\":[],\"health\":\"Normal\"}}],\"nextLink\":null}" } }, - "Get-AzMigrateServerReplication+[NoContext]+GetBySDSID+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers?api-version=2022-05-01+4": { + "Get-AzMigrateServerReplication+[NoContext]+GetBySDSID+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers?api-version=2023-01-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "41" ], @@ -274,10 +274,10 @@ "Content": "{\"value\":[{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer\",\"name\":\"signoffccyappae52replicationcontainer\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers\",\"properties\":{\"fabricFriendlyName\":\"signoffccyappae52replicationfabric\",\"friendlyName\":\"signoffccyappae52replicationcontainer\",\"fabricType\":\"VMwareV2\",\"protectedItemCount\":7,\"pairingStatus\":\"Paired\",\"role\":\"Primary\",\"fabricSpecificDetails\":null}}],\"nextLink\":null}" } }, - "Get-AzMigrateServerReplication+[NoContext]+GetBySDSID+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2022-05-01+5": { + "Get-AzMigrateServerReplication+[NoContext]+GetBySDSID+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2023-01-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "42" ], @@ -314,10 +314,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Win2k16\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationTime\":\"2022-09-23T17:47:01.5486966Z\",\"lastMigrationStatus\":\"Succeeded\",\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"847d99b2-057d-4f3b-8389-358a5a5a34e4\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"osType\":\"Windows\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"PAYG\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Win2k16\",\"targetVmSize\":\"Standard_A4_v2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C294-1217-dec3-bc18-81f117220424\",\"diskName\":\"Win2k16\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[T55_10TB] Win2k16/Win2k16.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":32212254720,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/asrseeddisk-Win2k16-Win2k16-d685e563-f5b4-4ff3-9e9a-4aa5416c96f4\",\"seedBlobUri\":null,\"targetManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/Win2k16-OSdisk-00\",\"targetBlobUri\":null,\"targetDiskName\":\"Win2k16-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"04a40eba-f0c4-4181-b53d-b91946aadc1f\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-00\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"6775c68f-1330-4c3d-9e04-94adf413bee0\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-01\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"ba36099f-9c7d-4cfa-89cf-6da63319a2fe\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-02\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"cd6cf44a-510f-44a8-b06a-99942d017632\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-03\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrationRecoveryPoints/83563c3a-e189-4703-a965-0f96fc91fa52\",\"lastRecoveryPointReceived\":\"2022-09-26T15:15:56.79Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrationRecoveryPoints/7d78a16d-f016-4c0e-b144-94e7d5387764\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"true\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Get-AzMigrateServerReplication+[NoContext]+GetByInputObject+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2022-05-01+1": { + "Get-AzMigrateServerReplication+[NoContext]+GetByInputObject+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "43" ], @@ -354,10 +354,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Win2k16\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationTime\":\"2022-09-23T17:47:01.5486966Z\",\"lastMigrationStatus\":\"Succeeded\",\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"847d99b2-057d-4f3b-8389-358a5a5a34e4\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"osType\":\"Windows\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"PAYG\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Win2k16\",\"targetVmSize\":\"Standard_A4_v2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C294-1217-dec3-bc18-81f117220424\",\"diskName\":\"Win2k16\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[T55_10TB] Win2k16/Win2k16.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":32212254720,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/asrseeddisk-Win2k16-Win2k16-d685e563-f5b4-4ff3-9e9a-4aa5416c96f4\",\"seedBlobUri\":null,\"targetManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/Win2k16-OSdisk-00\",\"targetBlobUri\":null,\"targetDiskName\":\"Win2k16-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"04a40eba-f0c4-4181-b53d-b91946aadc1f\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-00\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"6775c68f-1330-4c3d-9e04-94adf413bee0\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-01\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"ba36099f-9c7d-4cfa-89cf-6da63319a2fe\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-02\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"cd6cf44a-510f-44a8-b06a-99942d017632\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-03\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrationRecoveryPoints/83563c3a-e189-4703-a965-0f96fc91fa52\",\"lastRecoveryPointReceived\":\"2022-09-26T15:15:56.79Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrationRecoveryPoints/7d78a16d-f016-4c0e-b144-94e7d5387764\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"true\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Get-AzMigrateServerReplication+[NoContext]+GetByInputObject+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2022-05-01+2": { + "Get-AzMigrateServerReplication+[NoContext]+GetByInputObject+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "44" ], @@ -432,10 +432,10 @@ "Content": "{\"id\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Migrate/MigrateProjects/signoffccyproj/Solutions/Servers-Migration-ServerMigration\",\"name\":\"Servers-Migration-ServerMigration\",\"type\":\"Microsoft.Migrate/MigrateProjects/Solutions\",\"etag\":\"\\\"0400a1d3-0000-3300-0000-62dd866f0000\\\"\",\"properties\":{\"tool\":\"ServerMigration\",\"purpose\":\"Migration\",\"goal\":\"Servers\",\"status\":\"Active\",\"cleanupState\":\"None\",\"summary\":{\"instanceType\":\"Servers\",\"discoveredCount\":0,\"assessedCount\":0,\"replicatingCount\":7,\"testMigratedCount\":0,\"migratedCount\":0},\"details\":{\"groupCount\":0,\"assessmentCount\":0,\"extendedDetails\":{\"serversOnWindows\":\"0\",\"serversOnLinux\":\"0\",\"serversOnOther\":\"0\",\"dependencyEnabledMachines\":\"0\",\"machinesHavingSqlServers\":\"0\",\"machinesHavingWebServers\":\"0\",\"vaultId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault\"}}}}" } }, - "Get-AzMigrateServerReplication+[NoContext]+ListById+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationMigrationItems?api-version=2022-05-01+2": { + "Get-AzMigrateServerReplication+[NoContext]+ListById+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationMigrationItems?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationMigrationItems?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationMigrationItems?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "46" ], diff --git a/src/Migrate/test/New-AzMigrateReplicationPolicy.Recording.json b/src/Migrate/test/New-AzMigrateReplicationPolicy.Recording.json index e94df8b31223..129c52a44400 100644 --- a/src/Migrate/test/New-AzMigrateReplicationPolicy.Recording.json +++ b/src/Migrate/test/New-AzMigrateReplicationPolicy.Recording.json @@ -1,8 +1,8 @@ { - "New-AzMigrateReplicationPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoff2105app1452sitepolicy?api-version=2022-05-01+1": { + "New-AzMigrateReplicationPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoff2105app1452sitepolicy?api-version=2023-01-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoff2105app1452sitepolicy?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoff2105app1452sitepolicy?api-version=2023-01-01", "Content": "{\n \"properties\": {\n \"providerSpecificInput\": {\n \"instanceType\": \"VMwareCbt\",\n \"recoveryPointHistoryInMinutes\": 4320,\n \"crashConsistentFrequencyInMinutes\": 60,\n \"appConsistentFrequencyInMinutes\": 240\n }\n }\n}", "Headers": { }, @@ -16,11 +16,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoff2105app1452sitepolicy/operationresults/d257053b-b34f-4303-ab6d-45ce8e393a11?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoff2105app1452sitepolicy/operationresults/d257053b-b34f-4303-ab6d-45ce8e393a11?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "d85bb2cd-a4bc-4e19-a4f1-99f335e86fdb 9/26/2022 11:59:49 AM" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/d257053b-b34f-4303-ab6d-45ce8e393a11?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/d257053b-b34f-4303-ab6d-45ce8e393a11?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "d85bb2cd-a4bc-4e19-a4f1-99f335e86fdb" ], "Server": [ "Kestrel" ], @@ -36,10 +36,10 @@ "Content": null } }, - "New-AzMigrateReplicationPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/d257053b-b34f-4303-ab6d-45ce8e393a11?api-version=2022-05-01+2": { + "New-AzMigrateReplicationPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/d257053b-b34f-4303-ab6d-45ce8e393a11?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/d257053b-b34f-4303-ab6d-45ce8e393a11?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/d257053b-b34f-4303-ab6d-45ce8e393a11?api-version=2023-01-01", "Content": null, "Headers": { "Authorization": [ "[Filtered]" ], @@ -76,10 +76,10 @@ "Content": "{\"error\":null,\"id\":null,\"name\":\"d257053b-b34f-4303-ab6d-45ce8e393a11\",\"properties\":null,\"status\":\"Succeeded\",\"startTime\":\"2022-09-26T11:59:48.8359163Z\",\"endTime\":\"2022-09-26T11:59:49.0000000Z\",\"percentComplete\":null}" } }, - "New-AzMigrateReplicationPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoff2105app1452sitepolicy?api-version=2022-05-01+3": { + "New-AzMigrateReplicationPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoff2105app1452sitepolicy?api-version=2023-01-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoff2105app1452sitepolicy?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoff2105app1452sitepolicy?api-version=2023-01-01", "Content": null, "Headers": { "Authorization": [ "[Filtered]" ], diff --git a/src/Migrate/test/New-AzMigrateReplicationPolicy.Tests.ps1 b/src/Migrate/test/New-AzMigrateReplicationPolicy.Tests.ps1 index aa1fba5bcf09..38a3faacebc3 100644 --- a/src/Migrate/test/New-AzMigrateReplicationPolicy.Tests.ps1 +++ b/src/Migrate/test/New-AzMigrateReplicationPolicy.Tests.ps1 @@ -13,7 +13,7 @@ while(-not $mockingPath) { Describe 'New-AzMigrateReplicationPolicy' { It 'CreateExpanded' { - $providerSpecificPolicy = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtPolicyCreationInput]::new() + $providerSpecificPolicy = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtPolicyCreationInput]::new() $providerSpecificPolicy.AppConsistentFrequencyInMinute = 240 $providerSpecificPolicy.InstanceType = "VMwareCbt" $providerSpecificPolicy.RecoveryPointHistoryInMinute = 4320 diff --git a/src/Migrate/test/New-AzMigrateReplicationProtectionContainerMapping.Recording.json b/src/Migrate/test/New-AzMigrateReplicationProtectionContainerMapping.Recording.json index bfdaa7cbec12..e298a85ab616 100644 --- a/src/Migrate/test/New-AzMigrateReplicationProtectionContainerMapping.Recording.json +++ b/src/Migrate/test/New-AzMigrateReplicationProtectionContainerMapping.Recording.json @@ -1,8 +1,8 @@ { - "New-AzMigrateReplicationProtectionContainerMapping+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping?api-version=2022-05-01+1": { + "New-AzMigrateReplicationProtectionContainerMapping+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping?api-version=2023-01-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping?api-version=2023-01-01", "Content": "{\n \"properties\": {\n \"targetProtectionContainerId\": \"Microsoft Azure\",\n \"policyId\": \"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\n \"providerSpecificInput\": {\n \"instanceType\": \"VMwareCbt\",\n \"keyVaultId\": \"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.KeyVault/vaults/migratekv1612849844\",\n \"keyVaultUri\": \"https://migratekv1612849844.vault.azure.net\",\n \"storageAccountId\": \"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migrategwsa1612849844\",\n \"storageAccountSasSecretName\": \"migrategwsa1612849844-gwySas\",\n \"serviceBusConnectionStringSecretName\": \"ServiceBusConnectionString\",\n \"targetLocation\": \"centraluseuap\"\n }\n }\n}", "Headers": { }, @@ -16,11 +16,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping/operationresults/8405f59a-1678-4a45-85cd-802c84fb058b?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping/operationresults/8405f59a-1678-4a45-85cd-802c84fb058b?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/8405f59a-1678-4a45-85cd-802c84fb058b", "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/8405f59a-1678-4a45-85cd-802c84fb058b" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/8405f59a-1678-4a45-85cd-802c84fb058b?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/8405f59a-1678-4a45-85cd-802c84fb058b?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "3706812b-9f35-4cb8-bec6-36b1f16f5f7c" ], "Server": [ "Kestrel" ], @@ -36,10 +36,10 @@ "Content": null } }, - "New-AzMigrateReplicationProtectionContainerMapping+[NoContext]+CreateExpanded+$GET+https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/8405f59a-1678-4a45-85cd-802c84fb058b?api-version=2022-05-01+2": { + "New-AzMigrateReplicationProtectionContainerMapping+[NoContext]+CreateExpanded+$GET+https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/8405f59a-1678-4a45-85cd-802c84fb058b?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/8405f59a-1678-4a45-85cd-802c84fb058b?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/8405f59a-1678-4a45-85cd-802c84fb058b?api-version=2023-01-01", "Content": null, "Headers": { "Authorization": [ "[Filtered]" ], @@ -76,10 +76,10 @@ "Content": "{\"error\":null,\"id\":null,\"name\":\"8405f59a-1678-4a45-85cd-802c84fb058b\",\"properties\":null,\"status\":\"Succeeded\",\"startTime\":\"2022-09-26T12:00:47.8637245Z\",\"endTime\":\"2022-09-26T12:00:48.0000000Z\",\"percentComplete\":null}" } }, - "New-AzMigrateReplicationProtectionContainerMapping+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping?api-version=2022-05-01+3": { + "New-AzMigrateReplicationProtectionContainerMapping+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping?api-version=2023-01-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationProtectionContainerMappings/containermapping?api-version=2023-01-01", "Content": null, "Headers": { "Authorization": [ "[Filtered]" ], diff --git a/src/Migrate/test/New-AzMigrateReplicationProtectionContainerMapping.Tests.ps1 b/src/Migrate/test/New-AzMigrateReplicationProtectionContainerMapping.Tests.ps1 index b2b5736547c7..410b5f2a12a3 100644 --- a/src/Migrate/test/New-AzMigrateReplicationProtectionContainerMapping.Tests.ps1 +++ b/src/Migrate/test/New-AzMigrateReplicationProtectionContainerMapping.Tests.ps1 @@ -13,7 +13,7 @@ while(-not $mockingPath) { Describe 'New-AzMigrateReplicationProtectionContainerMapping' { It 'CreateExpanded' { - $providerSpecificInput = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.VMwareCbtContainerMappingInput]::new() + $providerSpecificInput = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.VMwareCbtContainerMappingInput]::new() $providerSpecificInput.InstanceType = "VMwareCbt" $providerSpecificInput.KeyVaultId = "/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.KeyVault/vaults/migratekv942102443" $providerSpecificInput.KeyVaultUri = "https://migratekv942102443.vault.azure.net/" diff --git a/src/Migrate/test/Remove-AzMigrateServerReplication.Recording.json b/src/Migrate/test/Remove-AzMigrateServerReplication.Recording.json index 26a7e584d738..5a5a23bc6be7 100644 --- a/src/Migrate/test/Remove-AzMigrateServerReplication.Recording.json +++ b/src/Migrate/test/Remove-AzMigrateServerReplication.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$DELETE+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980?api-version=2022-05-01+1": { + "Remove-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$DELETE+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980?api-version=2023-01-01+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "1" ], @@ -21,11 +21,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980/operationresults/4e0da3b6-19f0-43bc-a357-50ad668b9486?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980/operationresults/4e0da3b6-19f0-43bc-a357-50ad668b9486?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "3a4f4861-c45d-40ec-bfd6-ae99b954cbfc 9/26/2022 3:48:15 PM" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/4e0da3b6-19f0-43bc-a357-50ad668b9486?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/4e0da3b6-19f0-43bc-a357-50ad668b9486?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "3a4f4861-c45d-40ec-bfd6-ae99b954cbfc" ], "Server": [ "Kestrel" ], @@ -41,10 +41,10 @@ "Content": null } }, - "Remove-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/4e0da3b6-19f0-43bc-a357-50ad668b9486?api-version=2022-05-01+2": { + "Remove-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/4e0da3b6-19f0-43bc-a357-50ad668b9486?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/4e0da3b6-19f0-43bc-a357-50ad668b9486?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/4e0da3b6-19f0-43bc-a357-50ad668b9486?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "2" ], diff --git a/src/Migrate/test/Restart-AzMigrateServerReplication.Recording.json b/src/Migrate/test/Restart-AzMigrateServerReplication.Recording.json index 999c4f949cbb..c0af9cc08088 100644 --- a/src/Migrate/test/Restart-AzMigrateServerReplication.Recording.json +++ b/src/Migrate/test/Restart-AzMigrateServerReplication.Recording.json @@ -1,8 +1,8 @@ { - "Restart-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2022-05-01+1": { + "Restart-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "9" ], @@ -39,10 +39,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Scale-Rhel7\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationTime\":\"2022-09-26T13:07:06.2426648Z\",\"lastTestMigrationStatus\":\"Succeeded\",\"lastMigrationStatus\":null,\"testMigrateState\":\"TestMigrationSucceeded\",\"testMigrateStateDescription\":\"Test clean up pending\",\"health\":\"Normal\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"TestMigrateCleanup\"],\"currentJob\":{\"jobName\":\"TestFailover\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/0caa1c59-de25-4999-9e0c-208130f22551\",\"startTime\":\"2022-09-26T13:07:06.2426648Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"b151ff38-919c-4e10-aab5-caedb08ebc06\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"osType\":\"Linux\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Scale-Rhel7\",\"targetVmSize\":\"Standard_A1_v2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C29a-e551-281f-56c2-45d9524f0b6a\",\"diskName\":\"Scale-Rhel7\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[SCSI_5TB] Scale-Rhel7/Scale-Rhel7.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-Scale_Rh-Scale_Rh-a4ffca03-27c9-41e9-bbf4-2c2538855534\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"Scale-Rhel7-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"bf00d29d-df79-4406-bacb-ee4a5bb65fe6\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testSubnetName\":\"default\",\"testIPAddress\":null,\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Scale-Rhel7-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/migrationRecoveryPoints/ce9d97d1-cbf6-4554-bd99-7a3c1ebc36ef\",\"lastRecoveryPointReceived\":\"2022-09-26T11:56:31.012Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/migrationRecoveryPoints/ce9d97d1-cbf6-4554-bd99-7a3c1ebc36ef\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Restart-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/resync?api-version=2022-05-01+2": { + "Restart-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/resync?api-version=2023-01-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/resync?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/resync?api-version=2023-01-01", "Content": "{\n \"properties\": {\n \"providerSpecificDetails\": {\n \"instanceType\": \"VMwareCbt\",\n \"skipCbtReset\": \"true\"\n }\n }\n}", "Headers": { }, @@ -56,11 +56,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/operationresults/17ce92b9-b582-4546-ae9a-456d3bdbd597?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/operationresults/17ce92b9-b582-4546-ae9a-456d3bdbd597?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/17ce92b9-b582-4546-ae9a-456d3bdbd597", "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/17ce92b9-b582-4546-ae9a-456d3bdbd597" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/17ce92b9-b582-4546-ae9a-456d3bdbd597?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/17ce92b9-b582-4546-ae9a-456d3bdbd597?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "89561588-2d3b-40d8-ac7b-742be6dd4344" ], "Server": [ "Kestrel" ], @@ -76,10 +76,10 @@ "Content": null } }, - "Restart-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/17ce92b9-b582-4546-ae9a-456d3bdbd597?api-version=2022-05-01+3": { + "Restart-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/17ce92b9-b582-4546-ae9a-456d3bdbd597?api-version=2023-01-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/17ce92b9-b582-4546-ae9a-456d3bdbd597?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/17ce92b9-b582-4546-ae9a-456d3bdbd597?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "11" ], @@ -116,10 +116,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/17ce92b9-b582-4546-ae9a-456d3bdbd597\",\"name\":\"17ce92b9-b582-4546-ae9a-456d3bdbd597\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationJobs\",\"properties\":{\"activityId\":\"89561588-2d3b-40d8-ac7b-742be6dd4344 ActivityId: cfbdb8c1-5e19-4839-a976-82471ba9fcc5\",\"scenarioName\":\"MigrationStartResync\",\"friendlyName\":\"Resynchronize replication\",\"state\":\"InProgress\",\"stateDescription\":\"InProgress\",\"tasks\":[{\"taskId\":\"StartResyncPreflightChecksTask\",\"name\":\"StartResyncPreflightChecksTask\",\"startTime\":\"2022-09-26T13:40:39.2290745Z\",\"endTime\":\"2022-09-26T13:40:39.32288Z\",\"allowedActions\":[],\"friendlyName\":\"Prerequisites check for starting resynchronization\",\"state\":\"Failed\",\"stateDescription\":\"Failed\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[{\"serviceErrorDetails\":{\"code\":\"110112\",\"message\":\"The virtual machine cannot be resynchronized.\",\"possibleCauses\":\"Resynchronization is not allowed on the machine.\",\"recommendedAction\":\"Resolve the issue and retry the operation. If the problem persists, contact support.\",\"activityId\":\"89561588-2d3b-40d8-ac7b-742be6dd4344 ActivityId: cfbdb8c1-5e19-4839-a976-82471ba9fcc5\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"0815afe2-8874-4ed2-bc9a-e7e5635dbf80\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Error\",\"creationTime\":\"2022-09-26T13:40:39.1196882Z\",\"taskId\":\"StartResyncPreflightChecksTask\"}]},{\"taskId\":\"PrepareForResynchronizationTask\",\"name\":\"PrepareForResynchronizationTask\",\"startTime\":\"0001-01-01T00:00:00\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Prepare for resynchronization\",\"state\":\"NotStarted\",\"stateDescription\":\"NotStarted\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]},{\"taskId\":\"StartResynchronizationTask\",\"name\":\"StartResynchronizationTask\",\"startTime\":\"0001-01-01T00:00:00\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Start resynchronization\",\"state\":\"NotStarted\",\"stateDescription\":\"NotStarted\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]}],\"errors\":[{\"serviceErrorDetails\":{\"code\":\"110112\",\"message\":\"The virtual machine cannot be resynchronized.\",\"possibleCauses\":\"Resynchronization is not allowed on the machine.\",\"recommendedAction\":\"Resolve the issue and retry the operation. If the problem persists, contact support.\",\"activityId\":\"89561588-2d3b-40d8-ac7b-742be6dd4344 ActivityId: cfbdb8c1-5e19-4839-a976-82471ba9fcc5\"},\"providerErrorDetails\":{\"errorCode\":0,\"errorMessage\":null,\"errorId\":\"0815afe2-8874-4ed2-bc9a-e7e5635dbf80\",\"possibleCauses\":\"\",\"recommendedAction\":\"\"},\"errorLevel\":\"Error\",\"creationTime\":\"2022-09-26T13:40:39.1196882Z\",\"taskId\":\"StartResyncPreflightChecksTask\"}],\"startTime\":\"2022-09-26T13:40:38.7348747Z\",\"allowedActions\":[\"Cancel\"],\"targetObjectId\":\"ae1d360a-4bae-5989-b82a-ed31b2ccc6b4\",\"targetObjectName\":\"Scale-Rhel7\",\"targetInstanceType\":\"ProtectionEntity\",\"customDetails\":{\"instanceType\":\"AsrJobDetails\",\"affectedObjectDetails\":{\"primaryVmId\":\"ae1d360a-4bae-5989-b82a-ed31b2ccc6b4\",\"primaryVmName\":\"Scale-Rhel7\",\"recoveryVmId\":\"\",\"recoveryVmName\":\"Scale-Rhel7\",\"protectionProfileId\":\"4af409af-0d07-5e52-95dc-1e472a625f17\",\"primaryCloudId\":\"cloud_e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryCloudName\":\"signoffccyappae52replicationcontainer\",\"recoveryCloudId\":\"d38048d4-b460-4791-8ece-108395ee8478\",\"recoveryCloudName\":\"Microsoft Azure\",\"primaryVmmId\":\"e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryVmmName\":\"signoffccyappae52replicationfabric\",\"recoveryVmmId\":\"21a9403c-6ec1-44f2-b744-b4e50b792387\",\"recoveryVmmName\":\"Microsoft Azure\",\"primaryFabricProviderId\":\"VMwareV2\",\"recoveryFabricProviderId\":\"Azure\"}}}}" } }, - "Restart-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2022-05-01+1": { + "Restart-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "12" ], @@ -156,10 +156,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Scale-Rhel7\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationTime\":\"2022-09-26T13:07:06.2426648Z\",\"lastTestMigrationStatus\":\"Succeeded\",\"lastMigrationStatus\":null,\"testMigrateState\":\"TestMigrationSucceeded\",\"testMigrateStateDescription\":\"Test clean up pending\",\"health\":\"Normal\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"TestMigrateCleanup\"],\"currentJob\":{\"jobName\":\"TestFailover\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/0caa1c59-de25-4999-9e0c-208130f22551\",\"startTime\":\"2022-09-26T13:07:06.2426648Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"b151ff38-919c-4e10-aab5-caedb08ebc06\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"osType\":\"Linux\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Scale-Rhel7\",\"targetVmSize\":\"Standard_A1_v2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C29a-e551-281f-56c2-45d9524f0b6a\",\"diskName\":\"Scale-Rhel7\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[SCSI_5TB] Scale-Rhel7/Scale-Rhel7.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-Scale_Rh-Scale_Rh-a4ffca03-27c9-41e9-bbf4-2c2538855534\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"Scale-Rhel7-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"bf00d29d-df79-4406-bacb-ee4a5bb65fe6\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testSubnetName\":\"default\",\"testIPAddress\":null,\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Scale-Rhel7-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/migrationRecoveryPoints/ce9d97d1-cbf6-4554-bd99-7a3c1ebc36ef\",\"lastRecoveryPointReceived\":\"2022-09-26T11:56:31.012Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/migrationRecoveryPoints/ce9d97d1-cbf6-4554-bd99-7a3c1ebc36ef\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Restart-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2022-05-01+2": { + "Restart-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "13" ], @@ -196,10 +196,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Scale-Rhel7\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationTime\":\"2022-09-26T13:07:06.2426648Z\",\"lastTestMigrationStatus\":\"Succeeded\",\"lastMigrationStatus\":null,\"testMigrateState\":\"TestMigrationSucceeded\",\"testMigrateStateDescription\":\"Test clean up pending\",\"health\":\"Normal\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"TestMigrateCleanup\"],\"currentJob\":{\"jobName\":\"TestFailover\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/0caa1c59-de25-4999-9e0c-208130f22551\",\"startTime\":\"2022-09-26T13:07:06.2426648Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"b151ff38-919c-4e10-aab5-caedb08ebc06\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"osType\":\"Linux\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Scale-Rhel7\",\"targetVmSize\":\"Standard_A1_v2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C29a-e551-281f-56c2-45d9524f0b6a\",\"diskName\":\"Scale-Rhel7\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[SCSI_5TB] Scale-Rhel7/Scale-Rhel7.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-Scale_Rh-Scale_Rh-a4ffca03-27c9-41e9-bbf4-2c2538855534\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"Scale-Rhel7-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"bf00d29d-df79-4406-bacb-ee4a5bb65fe6\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testSubnetName\":\"default\",\"testIPAddress\":null,\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Scale-Rhel7-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/migrationRecoveryPoints/ce9d97d1-cbf6-4554-bd99-7a3c1ebc36ef\",\"lastRecoveryPointReceived\":\"2022-09-26T11:56:31.012Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/migrationRecoveryPoints/ce9d97d1-cbf6-4554-bd99-7a3c1ebc36ef\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Restart-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/resync?api-version=2022-05-01+3": { + "Restart-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/resync?api-version=2023-01-01+3": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/resync?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/resync?api-version=2023-01-01", "Content": "{\n \"properties\": {\n \"providerSpecificDetails\": {\n \"instanceType\": \"VMwareCbt\",\n \"skipCbtReset\": \"true\"\n }\n }\n}", "Headers": { }, @@ -213,11 +213,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/operationresults/fdbb12fc-5124-4aee-94d6-b3b5021a42d6?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/operationresults/fdbb12fc-5124-4aee-94d6-b3b5021a42d6?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/fdbb12fc-5124-4aee-94d6-b3b5021a42d6", "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/fdbb12fc-5124-4aee-94d6-b3b5021a42d6" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/fdbb12fc-5124-4aee-94d6-b3b5021a42d6?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/fdbb12fc-5124-4aee-94d6-b3b5021a42d6?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "15b5984e-b783-4b49-b4c9-5bd2582523f6" ], "Server": [ "Kestrel" ], @@ -233,10 +233,10 @@ "Content": null } }, - "Restart-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/fdbb12fc-5124-4aee-94d6-b3b5021a42d6?api-version=2022-05-01+4": { + "Restart-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/fdbb12fc-5124-4aee-94d6-b3b5021a42d6?api-version=2023-01-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/fdbb12fc-5124-4aee-94d6-b3b5021a42d6?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/fdbb12fc-5124-4aee-94d6-b3b5021a42d6?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "15" ], diff --git a/src/Migrate/test/Resume-AzMigrateServerReplication.Recording.json b/src/Migrate/test/Resume-AzMigrateServerReplication.Recording.json index 1b167825e66e..c910b9ed6e27 100644 --- a/src/Migrate/test/Resume-AzMigrateServerReplication.Recording.json +++ b/src/Migrate/test/Resume-AzMigrateServerReplication.Recording.json @@ -1,8 +1,8 @@ { - "Resume-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2022-05-01+1": { + "Resume-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "4" ], @@ -39,10 +39,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Win2k16\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Paused\",\"migrationState\":\"ProtectionSuspended\",\"migrationStateDescription\":\"Paused\",\"lastTestMigrationStatus\":null,\"lastMigrationTime\":\"2022-09-23T17:47:01.5486966Z\",\"lastMigrationStatus\":\"Succeeded\",\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"None\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"ResumeReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"847d99b2-057d-4f3b-8389-358a5a5a34e4\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"osType\":\"Windows\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"PAYG\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Win2k16\",\"targetVmSize\":\"Standard_A4_v2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C294-1217-dec3-bc18-81f117220424\",\"diskName\":\"Win2k16\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[T55_10TB] Win2k16/Win2k16.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":32212254720,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/asrseeddisk-Win2k16-Win2k16-d685e563-f5b4-4ff3-9e9a-4aa5416c96f4\",\"seedBlobUri\":null,\"targetManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/Win2k16-OSdisk-00\",\"targetBlobUri\":null,\"targetDiskName\":\"Win2k16-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"04a40eba-f0c4-4181-b53d-b91946aadc1f\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-00\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"6775c68f-1330-4c3d-9e04-94adf413bee0\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-01\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"ba36099f-9c7d-4cfa-89cf-6da63319a2fe\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-02\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"cd6cf44a-510f-44a8-b06a-99942d017632\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-03\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrationRecoveryPoints/83563c3a-e189-4703-a965-0f96fc91fa52\",\"lastRecoveryPointReceived\":\"2022-09-26T07:59:04.937Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrationRecoveryPoints/763bd17f-ddb6-4a1d-b3ae-7803edab3d18\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"true\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Resume-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/resumeReplication?api-version=2022-05-01+2": { + "Resume-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/resumeReplication?api-version=2023-01-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/resumeReplication?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/resumeReplication?api-version=2023-01-01", "Content": "{\n \"properties\": {\n \"providerSpecificDetails\": {\n \"instanceType\": \"VMwareCbt\",\n \"deleteMigrationResources\": \"false\"\n }\n }\n}", "Headers": { }, @@ -56,11 +56,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/operationresults/1887f9c5-d8f5-492c-bf4a-fcb3d4147e21?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/operationresults/1887f9c5-d8f5-492c-bf4a-fcb3d4147e21?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/1887f9c5-d8f5-492c-bf4a-fcb3d4147e21", "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/1887f9c5-d8f5-492c-bf4a-fcb3d4147e21" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/1887f9c5-d8f5-492c-bf4a-fcb3d4147e21?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/1887f9c5-d8f5-492c-bf4a-fcb3d4147e21?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "734b31bb-1ca9-41e6-a238-fc879fabff99" ], "Server": [ "Kestrel" ], @@ -76,10 +76,10 @@ "Content": null } }, - "Resume-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/1887f9c5-d8f5-492c-bf4a-fcb3d4147e21?api-version=2022-05-01+3": { + "Resume-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/1887f9c5-d8f5-492c-bf4a-fcb3d4147e21?api-version=2023-01-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/1887f9c5-d8f5-492c-bf4a-fcb3d4147e21?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/1887f9c5-d8f5-492c-bf4a-fcb3d4147e21?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "6" ], @@ -116,10 +116,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/1887f9c5-d8f5-492c-bf4a-fcb3d4147e21\",\"name\":\"1887f9c5-d8f5-492c-bf4a-fcb3d4147e21\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationJobs\",\"properties\":{\"activityId\":\"734b31bb-1ca9-41e6-a238-fc879fabff99 ActivityId: 5b268780-8969-4434-8516-3644f067d609\",\"scenarioName\":\"ResumeReplication\",\"friendlyName\":\"Resume replication\",\"state\":\"InProgress\",\"stateDescription\":\"InProgress\",\"tasks\":[{\"taskId\":\"ResumeReplicationPreflightChecksTask\",\"name\":\"ResumeReplicationPreflightChecksTask\",\"startTime\":\"2022-09-26T10:48:31.4408179Z\",\"endTime\":\"2022-09-26T10:48:31.2219874Z\",\"allowedActions\":[],\"friendlyName\":\"Prerequisites check for resume replication\",\"state\":\"Succeeded\",\"stateDescription\":\"Completed\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]},{\"taskId\":\"CancelFailoverRecovery\",\"name\":\"DeleteMigrationResources\",\"startTime\":\"0001-01-01T00:00:00\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Clean up previously migrated resources\",\"state\":\"NotStarted\",\"stateDescription\":\"NotStarted\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]},{\"taskId\":\"ResumeReplicationTask\",\"name\":\"ResumeReplicationTask\",\"startTime\":\"2022-09-26T10:48:31.2219874Z\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Starting resume replication\",\"state\":\"InProgress\",\"stateDescription\":\"InProgress\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]}],\"errors\":[],\"startTime\":\"2022-09-26T10:48:30.7894455Z\",\"allowedActions\":[],\"targetObjectId\":\"52896ea4-214d-5825-bc32-24169dfcc44c\",\"targetObjectName\":\"Win2k16\",\"targetInstanceType\":\"ProtectionEntity\",\"customDetails\":{\"instanceType\":\"AsrJobDetails\",\"affectedObjectDetails\":{\"primaryVmId\":\"52896ea4-214d-5825-bc32-24169dfcc44c\",\"primaryVmName\":\"Win2k16\",\"recoveryVmId\":\"\",\"recoveryVmName\":\"Win2k16\",\"protectionProfileId\":\"4af409af-0d07-5e52-95dc-1e472a625f17\",\"primaryCloudId\":\"cloud_e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryCloudName\":\"signoffccyappae52replicationcontainer\",\"recoveryCloudId\":\"d38048d4-b460-4791-8ece-108395ee8478\",\"recoveryCloudName\":\"Microsoft Azure\",\"primaryVmmId\":\"e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryVmmName\":\"signoffccyappae52replicationfabric\",\"recoveryVmmId\":\"21a9403c-6ec1-44f2-b744-b4e50b792387\",\"recoveryVmmName\":\"Microsoft Azure\",\"primaryFabricProviderId\":\"VMwareV2\",\"recoveryFabricProviderId\":\"Azure\"}}}}" } }, - "Resume-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2022-05-01+1": { + "Resume-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "7" ], @@ -156,10 +156,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Scale-Win-UEFI-03\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Paused\",\"migrationState\":\"ProtectionSuspended\",\"migrationStateDescription\":\"Paused\",\"lastTestMigrationStatus\":null,\"lastMigrationTime\":\"2022-09-23T17:47:15.2771522Z\",\"lastMigrationStatus\":\"CompletedWithInformation\",\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"None\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"ResumeReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[{\"jobName\":\"PlannedFailover\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/11af33d5-128a-45dd-88f6-ab382d21828f\",\"startTime\":\"2022-09-23T17:47:15.2771522Z\",\"jobStatus\":\"CompletedWithInformation\"}],\"eventCorrelationId\":\"711e3761-e500-4601-a6e9-559baef2282b\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"osType\":\"Windows\",\"firmwareType\":\"EFI\",\"targetGeneration\":\"V2\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"PAYG\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Scale-Win-UEFI-03\",\"targetVmSize\":\"Standard_B12ms\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C296-b4dd-8745-0474-2826c3aae7bd\",\"diskName\":\"Scale-WinUEFI02\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[SCSI_5TB] Scale-WinUEFI02/Scale-WinUEFI02.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/asrseeddisk-Scale_Wi-Scale_Wi-fb308118-b390-453d-ae8c-bd7ea3c25ea1\",\"seedBlobUri\":null,\"targetManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/Scale-Win-UEFI-03-OSdisk-00\",\"targetBlobUri\":null,\"targetDiskName\":\"Scale-Win-UEFI-03-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"vmNics\":[{\"nicId\":\"388dde09-4052-434d-99e9-71f477a6f375\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":\"10.150.103.69\",\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"RouteServerSubnet\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testSubnetName\":\"default\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Scale-Win-UEFI-03-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/migrationRecoveryPoints/5ec876b6-89ae-4681-bd03-9dadad61351e\",\"lastRecoveryPointReceived\":\"2022-09-26T02:17:58.114Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/migrationRecoveryPoints/a382dc5c-9719-4d2f-aba0-d2853e8781f7\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"true\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Resume-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2022-05-01+2": { + "Resume-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "8" ], @@ -196,10 +196,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Scale-Win-UEFI-03\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Paused\",\"migrationState\":\"ProtectionSuspended\",\"migrationStateDescription\":\"Paused\",\"lastTestMigrationStatus\":null,\"lastMigrationTime\":\"2022-09-23T17:47:15.2771522Z\",\"lastMigrationStatus\":\"CompletedWithInformation\",\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"None\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"ResumeReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[{\"jobName\":\"PlannedFailover\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/11af33d5-128a-45dd-88f6-ab382d21828f\",\"startTime\":\"2022-09-23T17:47:15.2771522Z\",\"jobStatus\":\"CompletedWithInformation\"}],\"eventCorrelationId\":\"711e3761-e500-4601-a6e9-559baef2282b\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"osType\":\"Windows\",\"firmwareType\":\"EFI\",\"targetGeneration\":\"V2\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"PAYG\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Scale-Win-UEFI-03\",\"targetVmSize\":\"Standard_B12ms\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C296-b4dd-8745-0474-2826c3aae7bd\",\"diskName\":\"Scale-WinUEFI02\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[SCSI_5TB] Scale-WinUEFI02/Scale-WinUEFI02.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/asrseeddisk-Scale_Wi-Scale_Wi-fb308118-b390-453d-ae8c-bd7ea3c25ea1\",\"seedBlobUri\":null,\"targetManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/Scale-Win-UEFI-03-OSdisk-00\",\"targetBlobUri\":null,\"targetDiskName\":\"Scale-Win-UEFI-03-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"vmNics\":[{\"nicId\":\"388dde09-4052-434d-99e9-71f477a6f375\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":\"10.150.103.69\",\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"RouteServerSubnet\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testSubnetName\":\"default\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Scale-Win-UEFI-03-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/migrationRecoveryPoints/5ec876b6-89ae-4681-bd03-9dadad61351e\",\"lastRecoveryPointReceived\":\"2022-09-26T02:17:58.114Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/migrationRecoveryPoints/a382dc5c-9719-4d2f-aba0-d2853e8781f7\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"true\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Resume-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/resumeReplication?api-version=2022-05-01+3": { + "Resume-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/resumeReplication?api-version=2023-01-01+3": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/resumeReplication?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/resumeReplication?api-version=2023-01-01", "Content": "{\n \"properties\": {\n \"providerSpecificDetails\": {\n \"instanceType\": \"VMwareCbt\",\n \"deleteMigrationResources\": \"false\"\n }\n }\n}", "Headers": { }, @@ -213,11 +213,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/operationresults/6d25f058-ba62-4797-be65-01cfff4d4d46?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/operationresults/6d25f058-ba62-4797-be65-01cfff4d4d46?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6d25f058-ba62-4797-be65-01cfff4d4d46", "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6d25f058-ba62-4797-be65-01cfff4d4d46" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/6d25f058-ba62-4797-be65-01cfff4d4d46?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/6d25f058-ba62-4797-be65-01cfff4d4d46?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "4849f573-ad81-4b7b-b5ea-7b0234066ad2" ], "Server": [ "Kestrel" ], @@ -233,10 +233,10 @@ "Content": null } }, - "Resume-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6d25f058-ba62-4797-be65-01cfff4d4d46?api-version=2022-05-01+4": { + "Resume-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6d25f058-ba62-4797-be65-01cfff4d4d46?api-version=2023-01-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6d25f058-ba62-4797-be65-01cfff4d4d46?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/6d25f058-ba62-4797-be65-01cfff4d4d46?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "10" ], diff --git a/src/Migrate/test/Set-AzMigrateServerReplication.Recording.json b/src/Migrate/test/Set-AzMigrateServerReplication.Recording.json index 33737089d7b1..629b204864d8 100644 --- a/src/Migrate/test/Set-AzMigrateServerReplication.Recording.json +++ b/src/Migrate/test/Set-AzMigrateServerReplication.Recording.json @@ -1,8 +1,8 @@ { - "Set-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2022-05-01+1": { + "Set-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "19" ], @@ -39,10 +39,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Win2k16\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationTime\":\"2022-09-23T17:47:01.5486966Z\",\"lastMigrationStatus\":\"Succeeded\",\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"847d99b2-057d-4f3b-8389-358a5a5a34e4\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"osType\":\"Windows\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"PAYG\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Win2k16\",\"targetVmSize\":\"Standard_A4_v2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C294-1217-dec3-bc18-81f117220424\",\"diskName\":\"Win2k16\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[T55_10TB] Win2k16/Win2k16.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":32212254720,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/asrseeddisk-Win2k16-Win2k16-d685e563-f5b4-4ff3-9e9a-4aa5416c96f4\",\"seedBlobUri\":null,\"targetManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/Win2k16-OSdisk-00\",\"targetBlobUri\":null,\"targetDiskName\":\"Win2k16-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"04a40eba-f0c4-4181-b53d-b91946aadc1f\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-00\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"6775c68f-1330-4c3d-9e04-94adf413bee0\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-01\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"ba36099f-9c7d-4cfa-89cf-6da63319a2fe\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-02\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"cd6cf44a-510f-44a8-b06a-99942d017632\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-03\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrationRecoveryPoints/83563c3a-e189-4703-a965-0f96fc91fa52\",\"lastRecoveryPointReceived\":\"2022-09-26T16:23:04.268Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrationRecoveryPoints/573ba598-0c75-4a86-8cd2-94020e76422b\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"true\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Set-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2105srcrg/providers/Microsoft.RecoveryServices/vaults/signoff2105app1452vault/replicationFabrics/signoff2105app1c36replicationfabric/replicationProtectionContainers/signoff2105app1c36replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-6f5e3b29-29ad-4e62-abbd-6cd33c4183ef_5015a79d-1383-b5f6-b434-029793d367ea?api-version=2022-05-01+1": { + "Set-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2105srcrg/providers/Microsoft.RecoveryServices/vaults/signoff2105app1452vault/replicationFabrics/signoff2105app1c36replicationfabric/replicationProtectionContainers/signoff2105app1c36replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-6f5e3b29-29ad-4e62-abbd-6cd33c4183ef_5015a79d-1383-b5f6-b434-029793d367ea?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2105srcrg/providers/Microsoft.RecoveryServices/vaults/signoff2105app1452vault/replicationFabrics/signoff2105app1c36replicationfabric/replicationProtectionContainers/signoff2105app1c36replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-6f5e3b29-29ad-4e62-abbd-6cd33c4183ef_5015a79d-1383-b5f6-b434-029793d367ea?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2105srcrg/providers/Microsoft.RecoveryServices/vaults/signoff2105app1452vault/replicationFabrics/signoff2105app1c36replicationfabric/replicationProtectionContainers/signoff2105app1c36replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-6f5e3b29-29ad-4e62-abbd-6cd33c4183ef_5015a79d-1383-b5f6-b434-029793d367ea?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "20" ], diff --git a/src/Migrate/test/Start-AzMigrateServerMigration.Recording.json b/src/Migrate/test/Start-AzMigrateServerMigration.Recording.json index 81b5916dfa31..0b9b8139af0c 100644 --- a/src/Migrate/test/Start-AzMigrateServerMigration.Recording.json +++ b/src/Migrate/test/Start-AzMigrateServerMigration.Recording.json @@ -1,8 +1,8 @@ { - "Start-AzMigrateServerMigration+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2022-05-01+1": { + "Start-AzMigrateServerMigration+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "16" ], @@ -39,10 +39,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Win2k16\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationTime\":\"2022-09-23T17:47:01.5486966Z\",\"lastMigrationStatus\":\"Succeeded\",\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"847d99b2-057d-4f3b-8389-358a5a5a34e4\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00\",\"osType\":\"Windows\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"PAYG\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Win2k16\",\"targetVmSize\":\"Standard_A4_v2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C294-1217-dec3-bc18-81f117220424\",\"diskName\":\"Win2k16\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[T55_10TB] Win2k16/Win2k16.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":32212254720,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/asrseeddisk-Win2k16-Win2k16-d685e563-f5b4-4ff3-9e9a-4aa5416c96f4\",\"seedBlobUri\":null,\"targetManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/Win2k16-OSdisk-00\",\"targetBlobUri\":null,\"targetDiskName\":\"Win2k16-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"04a40eba-f0c4-4181-b53d-b91946aadc1f\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-00\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"6775c68f-1330-4c3d-9e04-94adf413bee0\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-01\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"ba36099f-9c7d-4cfa-89cf-6da63319a2fe\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-02\",\"isSelectedForMigration\":\"true\"},{\"nicId\":\"cd6cf44a-510f-44a8-b06a-99942d017632\",\"isPrimaryNic\":\"false\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":\"\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Win2k16-03\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrationRecoveryPoints/83563c3a-e189-4703-a965-0f96fc91fa52\",\"lastRecoveryPointReceived\":\"2022-09-26T17:26:15.474Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrationRecoveryPoints/64c35093-3e93-45bc-91cc-3ada55baf145\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"true\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Start-AzMigrateServerMigration+[NoContext]+ByIDVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrate?api-version=2022-05-01+2": { + "Start-AzMigrateServerMigration+[NoContext]+ByIDVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrate?api-version=2023-01-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrate?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/migrate?api-version=2023-01-01", "Content": "{\n \"properties\": {\n \"providerSpecificDetails\": {\n \"instanceType\": \"VMwareCbt\",\n \"performShutdown\": \"false\"\n }\n }\n}", "Headers": { }, @@ -56,11 +56,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/operationresults/1c902855-a756-46c8-9058-28ed2e32dda6?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00/operationresults/1c902855-a756-46c8-9058-28ed2e32dda6?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/1c902855-a756-46c8-9058-28ed2e32dda6", "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/1c902855-a756-46c8-9058-28ed2e32dda6" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/1c902855-a756-46c8-9058-28ed2e32dda6?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/1c902855-a756-46c8-9058-28ed2e32dda6?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "f02f7892-36e6-4dad-9972-f2067635ba6a" ], "Server": [ "Kestrel" ], @@ -76,10 +76,10 @@ "Content": null } }, - "Start-AzMigrateServerMigration+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/1c902855-a756-46c8-9058-28ed2e32dda6?api-version=2022-05-01+3": { + "Start-AzMigrateServerMigration+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/1c902855-a756-46c8-9058-28ed2e32dda6?api-version=2023-01-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/1c902855-a756-46c8-9058-28ed2e32dda6?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/1c902855-a756-46c8-9058-28ed2e32dda6?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "18" ], @@ -116,10 +116,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/1c902855-a756-46c8-9058-28ed2e32dda6\",\"name\":\"1c902855-a756-46c8-9058-28ed2e32dda6\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationJobs\",\"properties\":{\"activityId\":\"f02f7892-36e6-4dad-9972-f2067635ba6a ActivityId: 874006ac-7fbc-43be-bb83-4e4604057c3f\",\"scenarioName\":\"Migrate\",\"friendlyName\":\"Migrate\",\"state\":\"InProgress\",\"stateDescription\":\"InProgress\",\"tasks\":[{\"taskId\":\"PlannedFailoverPreflightChecksTask\",\"name\":\"VmPfoPrerequisitesCheck\",\"startTime\":\"0001-01-01T00:00:00\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Prerequisites check for migration\",\"state\":\"NotStarted\",\"stateDescription\":\"NotStarted\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]},{\"taskId\":\"ShutdownVmOnPrimary\",\"name\":\"VmShutdownVmOnPrimary\",\"startTime\":\"0001-01-01T00:00:00\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Shut down the virtual machine\",\"state\":\"NotStarted\",\"stateDescription\":\"NotStarted\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]},{\"taskId\":\"PrepareForFailoverTask\",\"name\":\"VmPrepareForFailover\",\"startTime\":\"0001-01-01T00:00:00\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Preparing for migration\",\"state\":\"NotStarted\",\"stateDescription\":\"NotStarted\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]},{\"taskId\":\"PrepareProtectedEntitiesTask\",\"name\":\"VmPrepareProtectedEntitiesTask\",\"startTime\":\"0001-01-01T00:00:00\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Creating Azure virtual machine\",\"state\":\"NotStarted\",\"stateDescription\":\"NotStarted\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]},{\"taskId\":\"StartVmOnSecondary\",\"name\":\"VmFoStartVmOnSecondary\",\"startTime\":\"0001-01-01T00:00:00\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Starting Azure virtual machine\",\"state\":\"NotStarted\",\"stateDescription\":\"NotStarted\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]}],\"errors\":[],\"startTime\":\"2022-09-26T13:42:56.1834077Z\",\"allowedActions\":[\"Cancel\"],\"targetObjectId\":\"52896ea4-214d-5825-bc32-24169dfcc44c\",\"targetObjectName\":\"Win2k16\",\"targetInstanceType\":\"ProtectionEntity\",\"customDetails\":{\"instanceType\":\"AsrJobDetails\",\"affectedObjectDetails\":{\"primaryVmId\":\"52896ea4-214d-5825-bc32-24169dfcc44c\",\"primaryVmName\":\"Win2k16\",\"recoveryVmId\":\"\",\"recoveryVmName\":\"Win2k16\",\"protectionProfileId\":\"4af409af-0d07-5e52-95dc-1e472a625f17\",\"primaryCloudId\":\"cloud_e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryCloudName\":\"signoffccyappae52replicationcontainer\",\"recoveryCloudId\":\"d38048d4-b460-4791-8ece-108395ee8478\",\"recoveryCloudName\":\"Microsoft Azure\",\"primaryVmmId\":\"e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryVmmName\":\"signoffccyappae52replicationfabric\",\"recoveryVmmId\":\"21a9403c-6ec1-44f2-b744-b4e50b792387\",\"recoveryVmmName\":\"Microsoft Azure\",\"primaryFabricProviderId\":\"VMwareV2\",\"recoveryFabricProviderId\":\"Azure\"}}}}" } }, - "Start-AzMigrateServerMigration+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2022-05-01+1": { + "Start-AzMigrateServerMigration+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "19" ], @@ -156,10 +156,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Scale-Win-UEFI-03\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationTime\":\"2022-09-23T17:47:15.2771522Z\",\"lastMigrationStatus\":\"CompletedWithInformation\",\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[{\"innerHealthErrors\":[],\"errorSource\":\"ReplicationUnitFailoverValidatorError\",\"errorType\":\"8010\",\"errorLevel\":\"Error\",\"errorCategory\":\"TestFailover\",\"errorCode\":\"110084\",\"summaryMessage\":\"\",\"errorMessage\":\"No successful test migration has been done on the virtual machine \u0027Scale-Win-UEFI-03\u0027.\",\"possibleCauses\":\"No successful test migration has been done on the virtual machine after it was replicated.\",\"recommendedAction\":\"Do a test migration on the virtual machine.\",\"creationTimeUtc\":\"2022-09-25T16:55:08.3023561Z\",\"recoveryProviderErrorMessage\":null,\"entityId\":\"72eab4fb-f77b-56f1-b2d4-c21166aedcc3\",\"errorId\":\"6:8010\",\"customerResolvability\":\"NotAllowed\"}],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[{\"jobName\":\"PlannedFailover\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/11af33d5-128a-45dd-88f6-ab382d21828f\",\"startTime\":\"2022-09-23T17:47:15.2771522Z\",\"jobStatus\":\"CompletedWithInformation\"}],\"eventCorrelationId\":\"711e3761-e500-4601-a6e9-559baef2282b\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"osType\":\"Windows\",\"firmwareType\":\"EFI\",\"targetGeneration\":\"V2\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"PAYG\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Scale-Win-UEFI-03\",\"targetVmSize\":\"Standard_B12ms\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C296-b4dd-8745-0474-2826c3aae7bd\",\"diskName\":\"Scale-WinUEFI02\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[SCSI_5TB] Scale-WinUEFI02/Scale-WinUEFI02.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/asrseeddisk-Scale_Wi-Scale_Wi-fb308118-b390-453d-ae8c-bd7ea3c25ea1\",\"seedBlobUri\":null,\"targetManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/Scale-Win-UEFI-03-OSdisk-00\",\"targetBlobUri\":null,\"targetDiskName\":\"Scale-Win-UEFI-03-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"vmNics\":[{\"nicId\":\"388dde09-4052-434d-99e9-71f477a6f375\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":\"10.150.103.69\",\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"RouteServerSubnet\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testSubnetName\":\"default\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Scale-Win-UEFI-03-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/migrationRecoveryPoints/5ec876b6-89ae-4681-bd03-9dadad61351e\",\"lastRecoveryPointReceived\":\"2022-09-26T11:54:21.083Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/migrationRecoveryPoints/88547c18-99c6-4763-bfb7-7a33d2c26b16\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"true\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Start-AzMigrateServerMigration+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2022-05-01+2": { + "Start-AzMigrateServerMigration+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "20" ], @@ -196,10 +196,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Scale-Win-UEFI-03\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationTime\":\"2022-09-23T17:47:15.2771522Z\",\"lastMigrationStatus\":\"CompletedWithInformation\",\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[{\"innerHealthErrors\":[],\"errorSource\":\"ReplicationUnitFailoverValidatorError\",\"errorType\":\"8010\",\"errorLevel\":\"Error\",\"errorCategory\":\"TestFailover\",\"errorCode\":\"110084\",\"summaryMessage\":\"\",\"errorMessage\":\"No successful test migration has been done on the virtual machine \u0027Scale-Win-UEFI-03\u0027.\",\"possibleCauses\":\"No successful test migration has been done on the virtual machine after it was replicated.\",\"recommendedAction\":\"Do a test migration on the virtual machine.\",\"creationTimeUtc\":\"2022-09-25T16:55:08.3023561Z\",\"recoveryProviderErrorMessage\":null,\"entityId\":\"72eab4fb-f77b-56f1-b2d4-c21166aedcc3\",\"errorId\":\"6:8010\",\"customerResolvability\":\"NotAllowed\"}],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[{\"jobName\":\"PlannedFailover\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/11af33d5-128a-45dd-88f6-ab382d21828f\",\"startTime\":\"2022-09-23T17:47:15.2771522Z\",\"jobStatus\":\"CompletedWithInformation\"}],\"eventCorrelationId\":\"711e3761-e500-4601-a6e9-559baef2282b\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0\",\"osType\":\"Windows\",\"firmwareType\":\"EFI\",\"targetGeneration\":\"V2\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"PAYG\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Scale-Win-UEFI-03\",\"targetVmSize\":\"Standard_B12ms\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C296-b4dd-8745-0474-2826c3aae7bd\",\"diskName\":\"Scale-WinUEFI02\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[SCSI_5TB] Scale-WinUEFI02/Scale-WinUEFI02.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/asrseeddisk-Scale_Wi-Scale_Wi-fb308118-b390-453d-ae8c-bd7ea3c25ea1\",\"seedBlobUri\":null,\"targetManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ashishRg/providers/Microsoft.Compute/disks/Scale-Win-UEFI-03-OSdisk-00\",\"targetBlobUri\":null,\"targetDiskName\":\"Scale-Win-UEFI-03-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"vmNics\":[{\"nicId\":\"388dde09-4052-434d-99e9-71f477a6f375\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":\"10.150.103.69\",\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"RouteServerSubnet\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/--fancy(migrate)-----__/providers/Microsoft.Network/virtualNetworks/cbtsignoff2105targetnetwork\",\"testSubnetName\":\"default\",\"testIPAddress\":\"\",\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Scale-Win-UEFI-03-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/migrationRecoveryPoints/5ec876b6-89ae-4681-bd03-9dadad61351e\",\"lastRecoveryPointReceived\":\"2022-09-26T11:54:21.083Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/migrationRecoveryPoints/88547c18-99c6-4763-bfb7-7a33d2c26b16\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"true\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Start-AzMigrateServerMigration+[NoContext]+ByInputObjectVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/migrate?api-version=2022-05-01+3": { + "Start-AzMigrateServerMigration+[NoContext]+ByInputObjectVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/migrate?api-version=2023-01-01+3": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/migrate?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/migrate?api-version=2023-01-01", "Content": "{\n \"properties\": {\n \"providerSpecificDetails\": {\n \"instanceType\": \"VMwareCbt\",\n \"performShutdown\": \"false\"\n }\n }\n}", "Headers": { }, @@ -213,11 +213,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/operationresults/17c9b188-4b47-4c2f-b8e4-6640f343c4a3?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_500268c0-5082-60d0-e0e8-243f14eae6e0/operationresults/17c9b188-4b47-4c2f-b8e4-6640f343c4a3?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/17c9b188-4b47-4c2f-b8e4-6640f343c4a3", "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/17c9b188-4b47-4c2f-b8e4-6640f343c4a3" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/17c9b188-4b47-4c2f-b8e4-6640f343c4a3?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/17c9b188-4b47-4c2f-b8e4-6640f343c4a3?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "ae9dc73d-0001-481c-9e5d-b80b4717b1f9" ], "Server": [ "Kestrel" ], @@ -233,10 +233,10 @@ "Content": null } }, - "Start-AzMigrateServerMigration+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/17c9b188-4b47-4c2f-b8e4-6640f343c4a3?api-version=2022-05-01+4": { + "Start-AzMigrateServerMigration+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/17c9b188-4b47-4c2f-b8e4-6640f343c4a3?api-version=2023-01-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/17c9b188-4b47-4c2f-b8e4-6640f343c4a3?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/17c9b188-4b47-4c2f-b8e4-6640f343c4a3?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "22" ], diff --git a/src/Migrate/test/Start-AzMigrateTestMigration.Recording.json b/src/Migrate/test/Start-AzMigrateTestMigration.Recording.json index cf2577dba63c..bbb69b95a89c 100644 --- a/src/Migrate/test/Start-AzMigrateTestMigration.Recording.json +++ b/src/Migrate/test/Start-AzMigrateTestMigration.Recording.json @@ -1,8 +1,8 @@ { - "Start-AzMigrateTestMigration+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9?api-version=2022-05-01+1": { + "Start-AzMigrateTestMigration+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "23" ], @@ -39,10 +39,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Scale-Rhel8-03\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationStatus\":null,\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[{\"innerHealthErrors\":[],\"errorSource\":\"ReplicationUnitFailoverValidatorError\",\"errorType\":\"8010\",\"errorLevel\":\"Error\",\"errorCategory\":\"TestFailover\",\"errorCode\":\"110084\",\"summaryMessage\":\"\",\"errorMessage\":\"No successful test migration has been done on the virtual machine \u0027Scale-Rhel8-03\u0027.\",\"possibleCauses\":\"No successful test migration has been done on the virtual machine after it was replicated.\",\"recommendedAction\":\"Do a test migration on the virtual machine.\",\"creationTimeUtc\":\"2022-09-26T05:16:22.8871285Z\",\"recoveryProviderErrorMessage\":null,\"entityId\":\"5914e571-f3f4-56c7-b3e6-83adaf53c5c4\",\"errorId\":\"6:8010\",\"customerResolvability\":\"NotAllowed\"}],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"7a0a8c1c-1f32-4120-87a1-77e4b114cc7a\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9\",\"osType\":\"Linux\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Scale-Rhel8-03\",\"targetVmSize\":\"Basic_A2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C29e-7a04-a496-cc6d-73620c3a651b\",\"diskName\":\"Scale-Rhel8-03\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[SCSI_5TB] Scale-Rhel8-03/Scale-Rhel8-03.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":37580963840,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-Scale_Rh-Scale_Rh-1e893df3-a0e5-47ec-937d-d5df4c75eab8\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"Scale-Rhel8-03-OSdisk-00\"},{\"diskId\":\"6000C294-d5ba-5399-a863-a44cc05bbf25\",\"diskName\":\"Scale-Rhel8-03_1\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[SCSI_5TB] Scale-Rhel8-03/Scale-Rhel8-03_1.vmdk\",\"isOSDisk\":\"false\",\"capacityInBytes\":5368709120,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-Scale_Rh-Scale_Rh-487de529-4b66-4ad0-a52c-178ab5ab8c1c\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"Scale-Rhel8-03-datadisk-01\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"4bb09882-8fbe-42b3-b300-4a59bce68d83\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":null,\"testIPAddress\":null,\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Scale-Rhel8-03-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":null,\"lastRecoveryPointReceived\":\"2022-09-26T11:54:19.917Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9/migrationRecoveryPoints/70e86df8-7dcd-4899-9eec-a5ba19849b6b\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Start-AzMigrateTestMigration+[NoContext]+ByIDVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9/testMigrate?api-version=2022-05-01+2": { + "Start-AzMigrateTestMigration+[NoContext]+ByIDVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9/testMigrate?api-version=2023-01-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9/testMigrate?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9/testMigrate?api-version=2023-01-01", "Content": "{\n \"properties\": {\n \"providerSpecificDetails\": {\n \"instanceType\": \"VMwareCbt\",\n \"recoveryPointId\": \"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9/migrationRecoveryPoints/70e86df8-7dcd-4899-9eec-a5ba19849b6b\",\n \"networkId\": \"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\"\n }\n }\n}", "Headers": { }, @@ -56,11 +56,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9/operationresults/72aec3c5-42cc-4acf-bd8b-953281c162e0?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50159b65-0c15-6b2a-6d92-0d7115ffd1e9/operationresults/72aec3c5-42cc-4acf-bd8b-953281c162e0?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/72aec3c5-42cc-4acf-bd8b-953281c162e0", "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/72aec3c5-42cc-4acf-bd8b-953281c162e0" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/72aec3c5-42cc-4acf-bd8b-953281c162e0?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/72aec3c5-42cc-4acf-bd8b-953281c162e0?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "ded81686-8a32-46ac-9508-c745238a63f1" ], "Server": [ "Kestrel" ], @@ -76,10 +76,10 @@ "Content": null } }, - "Start-AzMigrateTestMigration+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/72aec3c5-42cc-4acf-bd8b-953281c162e0?api-version=2022-05-01+3": { + "Start-AzMigrateTestMigration+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/72aec3c5-42cc-4acf-bd8b-953281c162e0?api-version=2023-01-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/72aec3c5-42cc-4acf-bd8b-953281c162e0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/72aec3c5-42cc-4acf-bd8b-953281c162e0?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "25" ], @@ -116,10 +116,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/72aec3c5-42cc-4acf-bd8b-953281c162e0\",\"name\":\"72aec3c5-42cc-4acf-bd8b-953281c162e0\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationJobs\",\"properties\":{\"activityId\":\"ded81686-8a32-46ac-9508-c745238a63f1 ActivityId: 3a29c6bc-14b5-41d6-b9ca-69ca8c632490\",\"scenarioName\":\"TestMigrate\",\"friendlyName\":\"Test migration\",\"state\":\"InProgress\",\"stateDescription\":\"InProgress\",\"tasks\":[{\"taskId\":\"TestFailoverPreflightChecksTask\",\"name\":\"VmTfoPrerequisitesCheck\",\"startTime\":\"2022-09-26T13:43:30.6411034Z\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Prerequisites check for test migration\",\"state\":\"InProgress\",\"stateDescription\":\"InProgress\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]},{\"taskId\":\"BeginTestFailoverTask\",\"name\":\"VmTfoInitiateFailover\",\"startTime\":\"0001-01-01T00:00:00\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Preparing for test migration\",\"state\":\"NotStarted\",\"stateDescription\":\"NotStarted\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]},{\"taskId\":\"PrepareTestProtectedEntitiesTask\",\"name\":\"VmTfoPrepareTestVm\",\"startTime\":\"0001-01-01T00:00:00\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Creating test virtual machine\",\"state\":\"NotStarted\",\"stateDescription\":\"NotStarted\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]},{\"taskId\":\"BootTestProtectedEntitiesTask\",\"name\":\"VmTfoBootTestVm\",\"startTime\":\"0001-01-01T00:00:00\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Starting test virtual machine\",\"state\":\"NotStarted\",\"stateDescription\":\"NotStarted\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]}],\"errors\":[],\"startTime\":\"2022-09-26T13:43:30.066127Z\",\"allowedActions\":[\"Cancel\"],\"targetObjectId\":\"5914e571-f3f4-56c7-b3e6-83adaf53c5c4\",\"targetObjectName\":\"Scale-Rhel8-03\",\"targetInstanceType\":\"ProtectionEntity\",\"customDetails\":{\"instanceType\":\"AsrJobDetails\",\"affectedObjectDetails\":{\"primaryVmId\":\"5914e571-f3f4-56c7-b3e6-83adaf53c5c4\",\"primaryVmName\":\"Scale-Rhel8-03\",\"recoveryVmId\":\"\",\"recoveryVmName\":\"Scale-Rhel8-03\",\"protectionProfileId\":\"4af409af-0d07-5e52-95dc-1e472a625f17\",\"primaryCloudId\":\"cloud_e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryCloudName\":\"signoffccyappae52replicationcontainer\",\"recoveryCloudId\":\"d38048d4-b460-4791-8ece-108395ee8478\",\"recoveryCloudName\":\"Microsoft Azure\",\"primaryVmmId\":\"e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryVmmName\":\"signoffccyappae52replicationfabric\",\"recoveryVmmId\":\"21a9403c-6ec1-44f2-b744-b4e50b792387\",\"recoveryVmmName\":\"Microsoft Azure\",\"primaryFabricProviderId\":\"VMwareV2\",\"recoveryFabricProviderId\":\"Azure\"}}}}" } }, - "Start-AzMigrateTestMigration+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6?api-version=2022-05-01+1": { + "Start-AzMigrateTestMigration+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "26" ], @@ -156,10 +156,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"win2k10-02-c\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationStatus\":null,\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[{\"innerHealthErrors\":[],\"errorSource\":\"ReplicationUnitFailoverValidatorError\",\"errorType\":\"8010\",\"errorLevel\":\"Error\",\"errorCategory\":\"TestFailover\",\"errorCode\":\"110084\",\"summaryMessage\":\"\",\"errorMessage\":\"No successful test migration has been done on the virtual machine \u0027win2k10-02-c\u0027.\",\"possibleCauses\":\"No successful test migration has been done on the virtual machine after it was replicated.\",\"recommendedAction\":\"Do a test migration on the virtual machine.\",\"creationTimeUtc\":\"2022-09-26T05:38:22.8280991Z\",\"recoveryProviderErrorMessage\":null,\"entityId\":\"6b407141-5a2e-56f9-b42b-03b7b69def43\",\"errorId\":\"6:8010\",\"customerResolvability\":\"NotAllowed\"}],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"2caaff14-d284-42dd-ac59-fe202fb62fd8\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6\",\"osType\":\"Windows\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"win2k10-02-c\",\"targetVmSize\":\"Basic_A3\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C295-ea92-17cb-1b65-3f9e32319099\",\"diskName\":\"win2k10-02-c\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[T55_10TB] win2k10-02-c/win2k10-02-c.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-win2k10_-win2k10_-7fd5a9f8-f672-4c01-83eb-81331a6cb9fb\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"win2k10-02-c-OSdisk-00\"},{\"diskId\":\"6000C29f-9857-adf6-62e3-a5493b9c684b\",\"diskName\":\"win2k10-02-c_1\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[T55_10TB] win2k10-02-c/win2k10-02-c_1.vmdk\",\"isOSDisk\":\"false\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-win2k10_-win2k10_-b5c2bc2b-010c-4bb4-9e13-988c8dd75682\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"win2k10-02-c-datadisk-01\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"c4694c63-cd83-4f30-8800-0c5f63d46979\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":\"10.150.101.73\",\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":null,\"testIPAddress\":null,\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-win2k10-02-c-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":null,\"lastRecoveryPointReceived\":\"2022-09-26T17:23:09.417Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6/migrationRecoveryPoints/15883924-dff8-48d8-a99a-568ee9186234\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Start-AzMigrateTestMigration+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6?api-version=2022-05-01+2": { + "Start-AzMigrateTestMigration+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "27" ], @@ -196,10 +196,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"win2k10-02-c\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationStatus\":null,\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[{\"innerHealthErrors\":[],\"errorSource\":\"ReplicationUnitFailoverValidatorError\",\"errorType\":\"8010\",\"errorLevel\":\"Error\",\"errorCategory\":\"TestFailover\",\"errorCode\":\"110084\",\"summaryMessage\":\"\",\"errorMessage\":\"No successful test migration has been done on the virtual machine \u0027win2k10-02-c\u0027.\",\"possibleCauses\":\"No successful test migration has been done on the virtual machine after it was replicated.\",\"recommendedAction\":\"Do a test migration on the virtual machine.\",\"creationTimeUtc\":\"2022-09-26T05:38:22.8280991Z\",\"recoveryProviderErrorMessage\":null,\"entityId\":\"6b407141-5a2e-56f9-b42b-03b7b69def43\",\"errorId\":\"6:8010\",\"customerResolvability\":\"NotAllowed\"}],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"2caaff14-d284-42dd-ac59-fe202fb62fd8\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6\",\"osType\":\"Windows\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"win2k10-02-c\",\"targetVmSize\":\"Basic_A3\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C295-ea92-17cb-1b65-3f9e32319099\",\"diskName\":\"win2k10-02-c\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[T55_10TB] win2k10-02-c/win2k10-02-c.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-win2k10_-win2k10_-7fd5a9f8-f672-4c01-83eb-81331a6cb9fb\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"win2k10-02-c-OSdisk-00\"},{\"diskId\":\"6000C29f-9857-adf6-62e3-a5493b9c684b\",\"diskName\":\"win2k10-02-c_1\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[T55_10TB] win2k10-02-c/win2k10-02-c_1.vmdk\",\"isOSDisk\":\"false\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-win2k10_-win2k10_-b5c2bc2b-010c-4bb4-9e13-988c8dd75682\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"win2k10-02-c-datadisk-01\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"c4694c63-cd83-4f30-8800-0c5f63d46979\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":\"10.150.101.73\",\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":null,\"testIPAddress\":null,\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-win2k10-02-c-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":null,\"lastRecoveryPointReceived\":\"2022-09-26T17:23:09.417Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6/migrationRecoveryPoints/15883924-dff8-48d8-a99a-568ee9186234\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Start-AzMigrateTestMigration+[NoContext]+ByInputObjectVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6/testMigrate?api-version=2022-05-01+3": { + "Start-AzMigrateTestMigration+[NoContext]+ByInputObjectVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6/testMigrate?api-version=2023-01-01+3": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6/testMigrate?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6/testMigrate?api-version=2023-01-01", "Content": "{\n \"properties\": {\n \"providerSpecificDetails\": {\n \"instanceType\": \"VMwareCbt\",\n \"recoveryPointId\": \"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6/migrationRecoveryPoints/15883924-dff8-48d8-a99a-568ee9186234\",\n \"networkId\": \"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\"\n }\n }\n}", "Headers": { }, @@ -213,11 +213,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6/operationresults/3b13c302-b257-462d-9bf8-77e158158252?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015dc21-bdb3-3f13-25c9-ed9724bfbfc6/operationresults/3b13c302-b257-462d-9bf8-77e158158252?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/3b13c302-b257-462d-9bf8-77e158158252", "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/3b13c302-b257-462d-9bf8-77e158158252" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/3b13c302-b257-462d-9bf8-77e158158252?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/3b13c302-b257-462d-9bf8-77e158158252?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "090d3cc9-5090-4e91-9bcd-8c2b7a8fb58f" ], "Server": [ "Kestrel" ], @@ -233,10 +233,10 @@ "Content": null } }, - "Start-AzMigrateTestMigration+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/3b13c302-b257-462d-9bf8-77e158158252?api-version=2022-05-01+4": { + "Start-AzMigrateTestMigration+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/3b13c302-b257-462d-9bf8-77e158158252?api-version=2023-01-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/3b13c302-b257-462d-9bf8-77e158158252?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/3b13c302-b257-462d-9bf8-77e158158252?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "29" ], diff --git a/src/Migrate/test/Start-AzMigrateTestMigrationCleanup.Recording.json b/src/Migrate/test/Start-AzMigrateTestMigrationCleanup.Recording.json index 1a2d3ef9e481..93b77bd57e64 100644 --- a/src/Migrate/test/Start-AzMigrateTestMigrationCleanup.Recording.json +++ b/src/Migrate/test/Start-AzMigrateTestMigrationCleanup.Recording.json @@ -1,8 +1,8 @@ { - "Start-AzMigrateTestMigrationCleanup+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980?api-version=2022-05-01+1": { + "Start-AzMigrateTestMigrationCleanup+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "30" ], @@ -39,10 +39,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"FT-Win10-Cloned\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationStatus\":null,\"testMigrateState\":\"TestMigrationInProgress\",\"testMigrateStateDescription\":\"Test migration in progress\",\"health\":\"Normal\",\"healthErrors\":[{\"innerHealthErrors\":[],\"errorSource\":\"ReplicationUnitFailoverValidatorError\",\"errorType\":\"8010\",\"errorLevel\":\"Error\",\"errorCategory\":\"TestFailover\",\"errorCode\":\"110084\",\"summaryMessage\":\"\",\"errorMessage\":\"No successful test migration has been done on the virtual machine \u0027FT-Win10-Cloned\u0027.\",\"possibleCauses\":\"No successful test migration has been done on the virtual machine after it was replicated.\",\"recommendedAction\":\"Do a test migration on the virtual machine.\",\"creationTimeUtc\":\"2022-09-26T05:45:03.2570479Z\",\"recoveryProviderErrorMessage\":null,\"entityId\":\"96b6c033-7c77-5543-888d-c6fecbb1aacb\",\"errorId\":\"6:8010\",\"customerResolvability\":\"NotAllowed\"}],\"allowedOperations\":[],\"currentJob\":{\"jobName\":\"TestFailover\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/8a09b5fc-868c-4e33-b37b-cf764627d99d\",\"startTime\":\"2022-09-26T13:03:39.288529Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"85a68ea4-513b-48af-8502-238c13e9024c\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980\",\"osType\":\"Windows\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"FT-Win10-Cloned\",\"targetVmSize\":\"Basic_A3\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C291-6c84-5593-a4c0-290555e40440\",\"diskName\":\"FT-Win10-Cloned\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[T55_10TB] FT-Win10-Cloned/FT-Win10-Cloned.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-FT_Win10-FT_Win10-17e0b323-ddb3-49b7-9a09-017ed6616fbe\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"FT-Win10-Cloned-OSdisk-00\"},{\"diskId\":\"6000C29a-5b68-2a5e-a187-821e32cb04ca\",\"diskName\":\"FT-Win10-Cloned_1\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[T55_10TB] FT-Win10-Cloned/FT-Win10-Cloned_1.vmdk\",\"isOSDisk\":\"false\",\"capacityInBytes\":10737418240,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-FT_Win10-FT_Win10-36cd3bb8-a64b-4b4d-b889-dc83be8808f0\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"FT-Win10-Cloned-datadisk-01\"},{\"diskId\":\"6000C295-318c-b31b-2b5d-a2a236d8f27a\",\"diskName\":\"FT-Win10-Cloned_2\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[T55_10TB] FT-Win10-Cloned/FT-Win10-Cloned_2.vmdk\",\"isOSDisk\":\"false\",\"capacityInBytes\":21474836480,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-FT_Win10-FT_Win10-5e17c6ba-c52c-4287-962c-5319f2b857ef\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"FT-Win10-Cloned-datadisk-02\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"4e3c1ef0-5e09-465b-8956-84c52d71270d\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testSubnetName\":\"default\",\"testIPAddress\":null,\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-FT-Win10-Cloned-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980/migrationRecoveryPoints/2678bf76-314a-4b6e-97ff-92aff3b15c32\",\"lastRecoveryPointReceived\":\"2022-09-26T17:23:09.416Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980/migrationRecoveryPoints/2678bf76-314a-4b6e-97ff-92aff3b15c32\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Start-AzMigrateTestMigrationCleanup+[NoContext]+ByIDVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980/testMigrateCleanup?api-version=2022-05-01+2": { + "Start-AzMigrateTestMigrationCleanup+[NoContext]+ByIDVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980/testMigrateCleanup?api-version=2023-01-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980/testMigrateCleanup?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980/testMigrateCleanup?api-version=2023-01-01", "Content": "{\n \"properties\": {\n \"comments\": \"Test migrate cleanup from powershell\"\n }\n}", "Headers": { }, @@ -56,11 +56,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980/operationresults/554d5df0-1163-48c3-8288-d0be7a120052?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015e16e-832e-8632-880f-976ead854980/operationresults/554d5df0-1163-48c3-8288-d0be7a120052?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/554d5df0-1163-48c3-8288-d0be7a120052", "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/554d5df0-1163-48c3-8288-d0be7a120052" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/554d5df0-1163-48c3-8288-d0be7a120052?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/554d5df0-1163-48c3-8288-d0be7a120052?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "c5b9fc38-21b1-4390-999c-52cec6e28cf2" ], "Server": [ "Kestrel" ], @@ -76,10 +76,10 @@ "Content": null } }, - "Start-AzMigrateTestMigrationCleanup+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/554d5df0-1163-48c3-8288-d0be7a120052?api-version=2022-05-01+3": { + "Start-AzMigrateTestMigrationCleanup+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/554d5df0-1163-48c3-8288-d0be7a120052?api-version=2023-01-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/554d5df0-1163-48c3-8288-d0be7a120052?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/554d5df0-1163-48c3-8288-d0be7a120052?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "32" ], @@ -116,10 +116,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/554d5df0-1163-48c3-8288-d0be7a120052\",\"name\":\"554d5df0-1163-48c3-8288-d0be7a120052\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationJobs\",\"properties\":{\"activityId\":\"c5b9fc38-21b1-4390-999c-52cec6e28cf2 ActivityId: 47d6748f-02b8-47a0-a42e-588c7395c8bf\",\"scenarioName\":null,\"friendlyName\":null,\"state\":\"NotStarted\",\"stateDescription\":\"NotStarted\",\"tasks\":[],\"errors\":[],\"allowedActions\":[],\"targetObjectId\":null,\"targetObjectName\":null,\"targetInstanceType\":\"ProtectionEntity\",\"customDetails\":{\"instanceType\":\"AsrJobDetails\",\"affectedObjectDetails\":{}}}}" } }, - "Start-AzMigrateTestMigrationCleanup+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2022-05-01+1": { + "Start-AzMigrateTestMigrationCleanup+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "33" ], @@ -156,10 +156,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Scale-Rhel7\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationTime\":\"2022-09-26T13:07:06.2426648Z\",\"lastTestMigrationStatus\":\"Succeeded\",\"lastMigrationStatus\":null,\"testMigrateState\":\"TestMigrationSucceeded\",\"testMigrateStateDescription\":\"Test clean up pending\",\"health\":\"Normal\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"TestMigrateCleanup\"],\"currentJob\":{\"jobName\":\"TestFailover\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/0caa1c59-de25-4999-9e0c-208130f22551\",\"startTime\":\"2022-09-26T13:07:06.2426648Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"b151ff38-919c-4e10-aab5-caedb08ebc06\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"osType\":\"Linux\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Scale-Rhel7\",\"targetVmSize\":\"Standard_A1_v2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C29a-e551-281f-56c2-45d9524f0b6a\",\"diskName\":\"Scale-Rhel7\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[SCSI_5TB] Scale-Rhel7/Scale-Rhel7.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-Scale_Rh-Scale_Rh-a4ffca03-27c9-41e9-bbf4-2c2538855534\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"Scale-Rhel7-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"bf00d29d-df79-4406-bacb-ee4a5bb65fe6\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testSubnetName\":\"default\",\"testIPAddress\":null,\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Scale-Rhel7-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/migrationRecoveryPoints/ce9d97d1-cbf6-4554-bd99-7a3c1ebc36ef\",\"lastRecoveryPointReceived\":\"2022-09-26T11:56:31.012Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/migrationRecoveryPoints/ce9d97d1-cbf6-4554-bd99-7a3c1ebc36ef\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Start-AzMigrateTestMigrationCleanup+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2022-05-01+2": { + "Start-AzMigrateTestMigrationCleanup+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "34" ], @@ -196,10 +196,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Scale-Rhel7\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationTime\":\"2022-09-26T13:07:06.2426648Z\",\"lastTestMigrationStatus\":\"Succeeded\",\"lastMigrationStatus\":null,\"testMigrateState\":\"TestMigrationSucceeded\",\"testMigrateStateDescription\":\"Test clean up pending\",\"health\":\"Normal\",\"healthErrors\":[],\"allowedOperations\":[\"DisableMigration\",\"TestMigrateCleanup\"],\"currentJob\":{\"jobName\":\"TestFailover\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/0caa1c59-de25-4999-9e0c-208130f22551\",\"startTime\":\"2022-09-26T13:07:06.2426648Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"b151ff38-919c-4e10-aab5-caedb08ebc06\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"osType\":\"Linux\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Scale-Rhel7\",\"targetVmSize\":\"Standard_A1_v2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C29a-e551-281f-56c2-45d9524f0b6a\",\"diskName\":\"Scale-Rhel7\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[SCSI_5TB] Scale-Rhel7/Scale-Rhel7.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-Scale_Rh-Scale_Rh-a4ffca03-27c9-41e9-bbf4-2c2538855534\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"Scale-Rhel7-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"bf00d29d-df79-4406-bacb-ee4a5bb65fe6\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testSubnetName\":\"default\",\"testIPAddress\":null,\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Scale-Rhel7-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/migrationRecoveryPoints/ce9d97d1-cbf6-4554-bd99-7a3c1ebc36ef\",\"lastRecoveryPointReceived\":\"2022-09-26T11:56:31.012Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/migrationRecoveryPoints/ce9d97d1-cbf6-4554-bd99-7a3c1ebc36ef\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Start-AzMigrateTestMigrationCleanup+[NoContext]+ByInputObjectVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/testMigrateCleanup?api-version=2022-05-01+3": { + "Start-AzMigrateTestMigrationCleanup+[NoContext]+ByInputObjectVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/testMigrateCleanup?api-version=2023-01-01+3": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/testMigrateCleanup?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/testMigrateCleanup?api-version=2023-01-01", "Content": "{\n \"properties\": {\n \"comments\": \"Test migrate cleanup from powershell\"\n }\n}", "Headers": { }, @@ -213,11 +213,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/operationresults/9bdfebbb-18ab-430a-a9bf-5b53e9b4375e?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/operationresults/9bdfebbb-18ab-430a-a9bf-5b53e9b4375e?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/9bdfebbb-18ab-430a-a9bf-5b53e9b4375e", "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/9bdfebbb-18ab-430a-a9bf-5b53e9b4375e" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/9bdfebbb-18ab-430a-a9bf-5b53e9b4375e?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/9bdfebbb-18ab-430a-a9bf-5b53e9b4375e?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "dbb6c0f0-4b55-4f71-a4a9-cbb1877669a4" ], "Server": [ "Kestrel" ], @@ -233,10 +233,10 @@ "Content": null } }, - "Start-AzMigrateTestMigrationCleanup+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/9bdfebbb-18ab-430a-a9bf-5b53e9b4375e?api-version=2022-05-01+4": { + "Start-AzMigrateTestMigrationCleanup+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/9bdfebbb-18ab-430a-a9bf-5b53e9b4375e?api-version=2023-01-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/9bdfebbb-18ab-430a-a9bf-5b53e9b4375e?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/9bdfebbb-18ab-430a-a9bf-5b53e9b4375e?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "36" ], diff --git a/src/Migrate/test/Suspend-AzMigrateServerReplication.Recording.json b/src/Migrate/test/Suspend-AzMigrateServerReplication.Recording.json index 55682d999bb3..3313c61ee0a0 100644 --- a/src/Migrate/test/Suspend-AzMigrateServerReplication.Recording.json +++ b/src/Migrate/test/Suspend-AzMigrateServerReplication.Recording.json @@ -1,8 +1,8 @@ { - "Suspend-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2022-05-01+1": { + "Suspend-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "11" ], @@ -39,10 +39,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"Scale-Rhel7\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationStatus\":null,\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[{\"innerHealthErrors\":[],\"errorSource\":\"ReplicationUnitFailoverValidatorError\",\"errorType\":\"8010\",\"errorLevel\":\"Error\",\"errorCategory\":\"TestFailover\",\"errorCode\":\"110084\",\"summaryMessage\":\"\",\"errorMessage\":\"No successful test migration has been done on the virtual machine \u0027Scale-Rhel7\u0027.\",\"possibleCauses\":\"No successful test migration has been done on the virtual machine after it was replicated.\",\"recommendedAction\":\"Do a test migration on the virtual machine.\",\"creationTimeUtc\":\"2022-09-26T05:16:22.9340044Z\",\"recoveryProviderErrorMessage\":null,\"entityId\":\"ae1d360a-4bae-5989-b82a-ed31b2ccc6b4\",\"errorId\":\"6:8010\",\"customerResolvability\":\"NotAllowed\"}],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"b151ff38-919c-4e10-aab5-caedb08ebc06\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3\",\"osType\":\"Linux\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"Scale-Rhel7\",\"targetVmSize\":\"Standard_A1_v2\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C29a-e551-281f-56c2-45d9524f0b6a\",\"diskName\":\"Scale-Rhel7\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[SCSI_5TB] Scale-Rhel7/Scale-Rhel7.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-Scale_Rh-Scale_Rh-a4ffca03-27c9-41e9-bbf4-2c2538855534\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"Scale-Rhel7-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"bf00d29d-df79-4406-bacb-ee4a5bb65fe6\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":null,\"testIPAddress\":null,\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-Scale-Rhel7-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":null,\"lastRecoveryPointReceived\":\"2022-09-26T08:35:59.52Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/migrationRecoveryPoints/6160f6fe-7193-46b4-97d2-b4540f062866\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Suspend-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/pauseReplication?api-version=2022-05-01+2": { + "Suspend-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/pauseReplication?api-version=2023-01-01+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/pauseReplication?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/pauseReplication?api-version=2023-01-01", "Content": "{\n \"properties\": {\n \"instanceType\": \"VMwarecbt\"\n }\n}", "Headers": { }, @@ -56,11 +56,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/operationresults/38b77dcc-0801-4161-8e04-d6bbf2e22779?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50158ad9-3cd9-6b16-d37e-6f03f5b871d3/operationresults/38b77dcc-0801-4161-8e04-d6bbf2e22779?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/38b77dcc-0801-4161-8e04-d6bbf2e22779", "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/38b77dcc-0801-4161-8e04-d6bbf2e22779" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/38b77dcc-0801-4161-8e04-d6bbf2e22779?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/38b77dcc-0801-4161-8e04-d6bbf2e22779?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "6665e6ea-ae31-4c6e-9f86-65e9fbd90c03" ], "Server": [ "Kestrel" ], @@ -76,10 +76,10 @@ "Content": null } }, - "Suspend-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/38b77dcc-0801-4161-8e04-d6bbf2e22779?api-version=2022-05-01+3": { + "Suspend-AzMigrateServerReplication+[NoContext]+ByIDVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/38b77dcc-0801-4161-8e04-d6bbf2e22779?api-version=2023-01-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/38b77dcc-0801-4161-8e04-d6bbf2e22779?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/38b77dcc-0801-4161-8e04-d6bbf2e22779?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "13" ], @@ -116,10 +116,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/38b77dcc-0801-4161-8e04-d6bbf2e22779\",\"name\":\"38b77dcc-0801-4161-8e04-d6bbf2e22779\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationJobs\",\"properties\":{\"activityId\":\"6665e6ea-ae31-4c6e-9f86-65e9fbd90c03 ActivityId: b5915140-9205-4cc5-976d-ad1ca558260c\",\"scenarioName\":\"PauseReplication\",\"friendlyName\":\"Pause replication\",\"state\":\"InProgress\",\"stateDescription\":\"InProgress\",\"tasks\":[{\"taskId\":\"PauseReplicationPreflightChecksTask\",\"name\":\"PauseReplicationPreflightChecksTask\",\"startTime\":\"2022-09-26T10:51:27.1070929Z\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Prerequisites check for pause replication\",\"state\":\"InProgress\",\"stateDescription\":\"InProgress\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]},{\"taskId\":\"PauseReplicationTask\",\"name\":\"PauseReplicationTask\",\"startTime\":\"0001-01-01T00:00:00\",\"endTime\":\"0001-01-01T00:00:00\",\"allowedActions\":[],\"friendlyName\":\"Starting pause replication\",\"state\":\"NotStarted\",\"stateDescription\":\"NotStarted\",\"taskType\":\"TaskDetails\",\"customDetails\":{\"instanceType\":\"TaskDetails\"},\"groupTaskCustomDetails\":null,\"errors\":[]}],\"errors\":[],\"startTime\":\"2022-09-26T10:51:26.3416013Z\",\"allowedActions\":[],\"targetObjectId\":\"ae1d360a-4bae-5989-b82a-ed31b2ccc6b4\",\"targetObjectName\":\"Scale-Rhel7\",\"targetInstanceType\":\"ProtectionEntity\",\"customDetails\":{\"instanceType\":\"AsrJobDetails\",\"affectedObjectDetails\":{\"primaryVmId\":\"ae1d360a-4bae-5989-b82a-ed31b2ccc6b4\",\"primaryVmName\":\"Scale-Rhel7\",\"recoveryVmId\":\"\",\"recoveryVmName\":\"Scale-Rhel7\",\"protectionProfileId\":\"4af409af-0d07-5e52-95dc-1e472a625f17\",\"primaryCloudId\":\"cloud_e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryCloudName\":\"signoffccyappae52replicationcontainer\",\"recoveryCloudId\":\"d38048d4-b460-4791-8ece-108395ee8478\",\"recoveryCloudName\":\"Microsoft Azure\",\"primaryVmmId\":\"e87f6b0c-6076-5aa5-9e79-3e73df771c73\",\"primaryVmmName\":\"signoffccyappae52replicationfabric\",\"recoveryVmmId\":\"21a9403c-6ec1-44f2-b744-b4e50b792387\",\"recoveryVmmName\":\"Microsoft Azure\",\"primaryFabricProviderId\":\"VMwareV2\",\"recoveryFabricProviderId\":\"Azure\"}}}}" } }, - "Suspend-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0?api-version=2022-05-01+1": { + "Suspend-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0?api-version=2023-01-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "14" ], @@ -156,10 +156,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"win2k12-01\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationStatus\":null,\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[{\"innerHealthErrors\":[],\"errorSource\":\"ReplicationUnitFailoverValidatorError\",\"errorType\":\"8010\",\"errorLevel\":\"Error\",\"errorCategory\":\"TestFailover\",\"errorCode\":\"110084\",\"summaryMessage\":\"\",\"errorMessage\":\"No successful test migration has been done on the virtual machine \u0027win2k12-01\u0027.\",\"possibleCauses\":\"No successful test migration has been done on the virtual machine after it was replicated.\",\"recommendedAction\":\"Do a test migration on the virtual machine.\",\"creationTimeUtc\":\"2022-09-26T05:48:38.4439726Z\",\"recoveryProviderErrorMessage\":null,\"entityId\":\"7a910bd8-5ab1-58d5-9f98-493d53dd9fae\",\"errorId\":\"6:8010\",\"customerResolvability\":\"NotAllowed\"}],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"70bf2a6c-e930-4a08-9203-9fe67a66b5a4\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0\",\"osType\":\"Windows\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"win2k12-01\",\"targetVmSize\":\"Basic_A3\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C297-e32e-5601-9889-b0acea190c83\",\"diskName\":\"win2k12-01\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[iSCSI_5TB] win2k12-01/win2k12-01.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-win2k12_-win2k12_-61dc81a7-b65d-41dd-b680-58a794673a24\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"win2k12-01-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"726c991c-ec94-4138-be19-885e8bed30b6\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":null,\"testIPAddress\":null,\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-win2k12-01-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":null,\"lastRecoveryPointReceived\":\"1999-01-22T06:48:15.062Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0/migrationRecoveryPoints/51f977f2-f497-4dcc-96ae-916d4149f471\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Suspend-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0?api-version=2022-05-01+2": { + "Suspend-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0?api-version=2023-01-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "15" ], @@ -196,10 +196,10 @@ "Content": "{\"id\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0\",\"name\":\"idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0\",\"type\":\"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems\",\"properties\":{\"machineName\":\"win2k12-01\",\"policyId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationPolicies/migratesignoffccyapp3352sitepolicy\",\"policyFriendlyName\":\"migratesignoffccyapp3352sitepolicy\",\"recoveryServicesProviderId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationRecoveryServicesProviders/25e13d18-d9a2-538b-9ff8-a494ac0efd2d\",\"replicationStatus\":\"Delta sync\",\"migrationState\":\"Replicating\",\"migrationStateDescription\":\"Ready to migrate\",\"lastTestMigrationStatus\":null,\"lastMigrationStatus\":null,\"testMigrateState\":\"None\",\"testMigrateStateDescription\":\"None\",\"health\":\"Normal\",\"healthErrors\":[{\"innerHealthErrors\":[],\"errorSource\":\"ReplicationUnitFailoverValidatorError\",\"errorType\":\"8010\",\"errorLevel\":\"Error\",\"errorCategory\":\"TestFailover\",\"errorCode\":\"110084\",\"summaryMessage\":\"\",\"errorMessage\":\"No successful test migration has been done on the virtual machine \u0027win2k12-01\u0027.\",\"possibleCauses\":\"No successful test migration has been done on the virtual machine after it was replicated.\",\"recommendedAction\":\"Do a test migration on the virtual machine.\",\"creationTimeUtc\":\"2022-09-26T05:48:38.4439726Z\",\"recoveryProviderErrorMessage\":null,\"entityId\":\"7a910bd8-5ab1-58d5-9f98-493d53dd9fae\",\"errorId\":\"6:8010\",\"customerResolvability\":\"NotAllowed\"}],\"allowedOperations\":[\"DisableMigration\",\"TestMigrate\",\"Migrate\",\"PauseReplication\"],\"currentJob\":{\"jobName\":\"None\",\"jobId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/None\",\"startTime\":\"1753-01-01T01:01:01Z\"},\"criticalJobHistory\":[],\"eventCorrelationId\":\"70bf2a6c-e930-4a08-9203-9fe67a66b5a4\",\"providerSpecificDetails\":{\"instanceType\":\"VMwareCbt\",\"vmwareMachineId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/machines/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0\",\"osType\":\"Windows\",\"firmwareType\":\"BIOS\",\"targetGeneration\":\"V1\",\"licenseType\":\"NoLicenseType\",\"sqlServerLicenseType\":\"NotSpecified\",\"dataMoverRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"snapshotRunAsAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.OffAzure/VMwareSites/signoffccyapp3352site/runasaccounts/525f32f1-97ab-5073-8c0b-b6634ae24347\",\"storageAccountId\":null,\"targetVmName\":\"win2k12-01\",\"targetVmSize\":\"Basic_A3\",\"targetLocation\":\"centraluseuap\",\"targetResourceGroupId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg\",\"targetAvailabilitySetId\":\"\",\"targetAvailabilityZone\":\"\",\"targetProximityPlacementGroupId\":\"\",\"targetBootDiagnosticsStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"targetVmTags\":{},\"protectedDisks\":[{\"diskId\":\"6000C297-e32e-5601-9889-b0acea190c83\",\"diskName\":\"win2k12-01\",\"diskType\":\"Standard_LRS\",\"diskPath\":\"[iSCSI_5TB] win2k12-01/win2k12-01.vmdk\",\"isOSDisk\":\"true\",\"capacityInBytes\":42949672960,\"logStorageAccountId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Storage/storageAccounts/migratelsa1612849844\",\"logStorageAccountSasSecretName\":\"migratelsa1612849844-cacheSas\",\"diskEncryptionSetId\":null,\"seedManagedDiskId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.Compute/disks/asrseeddisk-win2k12_-win2k12_-61dc81a7-b65d-41dd-b680-58a794673a24\",\"seedBlobUri\":null,\"targetManagedDiskId\":null,\"targetBlobUri\":null,\"targetDiskName\":\"win2k12-01-OSdisk-00\"}],\"targetNetworkId\":\"/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/fancy(migrate)/providers/Microsoft.Network/virtualNetworks/Cbtsignoff2105targetnetwork\",\"testNetworkId\":\"\",\"vmNics\":[{\"nicId\":\"726c991c-ec94-4138-be19-885e8bed30b6\",\"isPrimaryNic\":\"true\",\"sourceIPAddress\":null,\"sourceIPAddressType\":\"Static\",\"sourceNetworkId\":\"VM Network\",\"targetIPAddress\":\"\",\"targetIPAddressType\":\"Dynamic\",\"targetSubnetName\":\"default\",\"testNetworkId\":null,\"testSubnetName\":null,\"testIPAddress\":null,\"testIPAddressType\":\"Dynamic\",\"targetNicName\":\"nic-win2k12-01-00\",\"isSelectedForMigration\":\"true\"}],\"targetNicTags\":{},\"migrationRecoveryPointId\":null,\"lastRecoveryPointReceived\":\"1999-01-22T06:48:15.062Z\",\"lastRecoveryPointId\":\"/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0/migrationRecoveryPoints/51f977f2-f497-4dcc-96ae-916d4149f471\",\"initialSeedingProgressPercentage\":null,\"migrationProgressPercentage\":null,\"resyncProgressPercentage\":null,\"resumeProgressPercentage\":null,\"initialSeedingRetryCount\":0,\"resyncRetryCount\":0,\"resumeRetryCount\":0,\"resyncRequired\":\"false\",\"resyncState\":\"None\",\"performAutoResync\":\"false\",\"seedDiskTags\":null,\"targetDiskTags\":{}}}}" } }, - "Suspend-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0/pauseReplication?api-version=2022-05-01+3": { + "Suspend-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$POST+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0/pauseReplication?api-version=2023-01-01+3": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0/pauseReplication?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0/pauseReplication?api-version=2023-01-01", "Content": "{\n \"properties\": {\n \"instanceType\": \"VMwarecbt\"\n }\n}", "Headers": { }, @@ -213,11 +213,11 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0/operationresults/f9f10c09-cdfb-4a42-909c-79018e6b3193?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_50157b0d-fdb9-7abd-03cd-97f16b552bd0/operationresults/f9f10c09-cdfb-4a42-909c-79018e6b3193?api-version=2023-01-01" ], "Retry-After": [ "30" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/f9f10c09-cdfb-4a42-909c-79018e6b3193", "/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/f9f10c09-cdfb-4a42-909c-79018e6b3193" ], - "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/f9f10c09-cdfb-4a42-909c-79018e6b3193?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationOperationStatus/f9f10c09-cdfb-4a42-909c-79018e6b3193?api-version=2023-01-01" ], "X-Content-Type-Options": [ "nosniff" ], "x-ms-client-request-id": [ "55906eeb-6174-49ec-8b44-fea9e412d5f5" ], "Server": [ "Kestrel" ], @@ -233,10 +233,10 @@ "Content": null } }, - "Suspend-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/f9f10c09-cdfb-4a42-909c-79018e6b3193?api-version=2022-05-01+4": { + "Suspend-AzMigrateServerReplication+[NoContext]+ByInputObjectVMwareCbt+$GET+https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/f9f10c09-cdfb-4a42-909c-79018e6b3193?api-version=2023-01-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/f9f10c09-cdfb-4a42-909c-79018e6b3193?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationJobs/f9f10c09-cdfb-4a42-909c-79018e6b3193?api-version=2023-01-01", "Content": null, "Headers": { "x-ms-unique-id": [ "17" ],